@swagger-api/apidom-parser-adapter-openapi-yaml-3-1 1.0.0-rc.1 → 1.0.0-rc.3
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.apidomParserAdapterOpenApiYaml3_1=t():e.apidomParserAdapterOpenApiYaml3_1=t()}(self,(()=>(()=>{var __webpack_modules__={85:(e,t,s)=>{"use strict";s(9828);var r=s(1100),n=s(8900),i=s(1811),o=s(6625);for(var a in r)i(n[a],a),o[a]=o.Array},88:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(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 r=s(9098),n=s(4713),i=s(4871),o=s(3410),a=s(2769),c=s(1926),l=s(3671),u=s(3491),d=s(1811),m=s(3999),h=s(3508),p=s(8655),_=s(6625),f=s(2621),g=o.PROPER,y=o.CONFIGURABLE,v=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,w=p("iterator"),E="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,s,o,p,f,O){c(s,t,o);var P,T,A,M=function(e){if(e===p&&k)return k;if(!b&&e&&e in R)return R[e];switch(e){case E:case x:case S:return function(){return new s(this,e)}}return function(){return new s(this)}},F=t+" Iterator",N=!1,R=e.prototype,I=R[w]||R["@@iterator"]||p&&R[p],k=!b&&I||M(p),C="Array"===t&&R.entries||I;if(C&&(P=l(C.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===v||(u?u(P,v):a(P[w])||h(P,w,j)),d(P,F,!0,!0),i&&(_[F]=j)),g&&p===x&&I&&I.name!==x&&(!i&&y?m(R,"name",x):(N=!0,k=function(){return n(I,this)})),p)if(T={values:M(x),keys:f?k:M(E),entries:M(S)},O)for(A in T)(b||N||!(A in R))&&h(R,A,T[A]);else r({target:t,proto:!0,forced:b||N},T);return i&&!O||R[w]===k||h(R,w,k,{name:p}),_[t]=k,T}},195:(e,t,s)=>{var r=s(4882),n=s(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(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 r=s(4572),n=s(4713),i=s(7235),o=s(459),a=s(2877),c=s(8130),l=s(4317),u=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 f,g,y,v,b,w,E,x=s&&s.that,S=!(!s||!s.AS_ENTRIES),j=!(!s||!s.IS_RECORD),O=!(!s||!s.IS_ITERATOR),P=!(!s||!s.INTERRUPTED),T=r(t,x),A=function(e){return f&&m(f,"normal",e),new p(!0,e)},M=function(e){return S?(i(e),P?T(e[0],e[1],A):T(e[0],e[1])):P?T(e,A):T(e)};if(j)f=e.iterator;else if(O)f=e;else{if(!(g=d(e)))throw new h(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((b=M(e[y]))&&l(_,b))return b;return new p(!1)}f=u(e,g)}for(w=j?e.next:f.next;!(E=n(w,f)).done;){try{b=M(E.value)}catch(e){m(f,"throw",e)}if("object"==typeof b&&b&&l(_,b))return b}return new p(!1)}},239:(e,t,s)=>{"use strict";s(5442);var r=s(6656);s(85),e.exports=r},262:(e,t,s)=>{"use strict";var r=s(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},353:(e,t,s)=>{var r=s(1340),n=s(3934),i=s(8861),o=s(1182),a=s(8486),c=s(3142),l=s(5853),u=s(8666),d="[object Arguments]",m="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,_,f,g){var y=c(e),v=c(t),b=y?m:a(e),w=v?m:a(t),E=(b=b==d?h:b)==h,x=(w=w==d?h:w)==h,S=b==w;if(S&&l(e)){if(!l(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||u(e)?n(e,t,s,_,f,g):i(e,t,b,s,_,f,g);if(!(1&s)){var j=E&&p.call(e,"__wrapped__"),O=x&&p.call(t,"__wrapped__");if(j||O){var P=j?e.value():e,T=O?t.value():t;return g||(g=new r),f(P,T,s,_,g)}}return!!S&&(g||(g=new r),o(e,t,s,_,f,g))}},358:(e,t,s)=>{var r=s(6137),n=s(3283),i=s(3142),o=s(5853),a=s(9632),c=s(8666),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),u=!s&&n(e),d=!s&&!u&&o(e),m=!s&&!u&&!d&&c(e),h=s||u||d||m,p=h?r(e.length,String):[],_=p.length;for(var f in e)!t&&!l.call(e,f)||h&&("length"==f||d&&("offset"==f||"parent"==f)||m&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,_))||p.push(f);return p}},393:(e,t,s)=>{var r=s(8244),n=s(7979),i=s(1211);e.exports=function(e){return r(e,i,n)}},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 r=s(9098),n=s(8900),i=s(7013),o=s(6453),a="WebAssembly",c=n[a],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var s={};s[e]=o(e,t,l),r({global:!0,constructor:!0,arity:1,forced:l},s)},d=function(e,t){if(c&&c[e]){var s={};s[e]=o(a+"."+e,t,l),r({target:a,stat:!0,constructor:!0,arity:1,forced:l},s)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("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 r=s(4713),n=s(262),i=s(6281),o=s(4674),a=s(9258),c=s(8655),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var s,c=o(e,u);if(c){if(void 0===t&&(t="default"),s=r(c,e,t),!n(s)||i(s))return s;throw new l("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 r=s(8631);e.exports=class extends r{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 r=s(7379),n=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)&&n(e.length)&&!!o[r(e)]}},701:(e,t,s)=>{"use strict";var r=s(6100),n=s(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},814:(e,t,s)=>{"use strict";var r=s(2769),n=s(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(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 r=s(8407),n=s(4674),i=s(3057),o=s(6625),a=s(8655)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[r(e)]}},986:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==r(e)}},1003:(e,t,s)=>{"use strict";var r=s(8099),n=s(8900),i=s(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(n[e]):r[e]&&r[e][t]||n[e]&&n[e][t]}},1005:(e,t,s)=>{"use strict";var r=s(3273),n=s(4574),i=s(8130),o=function(e){return function(t,s,o){var a=r(t),c=i(a);if(0===c)return!e&&-1;var l,u=n(o,c);if(e&&s!=s){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===s)return e||u||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 r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var s=t[e];return"__lodash_hash_undefined__"===s?void 0:s}return n.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var s=-1,r=t.length,n=e.length;++s<r;)e[n+s]=t[s];return e}},1139:(e,t,s)=>{"use strict";var r=s(8407),n=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},1182:(e,t,s)=>{var r=s(393),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,i,o,a){var c=1&s,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var d=u;d--;){var m=l[d];if(!(c?m in t:n.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 f=c;++d<u;){var g=e[m=l[d]],y=t[m];if(i)var v=c?i(y,g,m,t,e,a):i(g,y,m,e,t,a);if(!(void 0===v?g===y||o(g,y,s,i,a):v)){_=!1;break}f||(f="constructor"==m)}if(_&&!f){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"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 r=s(358),n=s(195),i=s(6529);e.exports=function(e){return i(e)?r(e):n(e)}},1212:(e,t,s)=>{e.exports=s(8411)},1268:(e,t,s)=>{"use strict";var r=s(6100),n=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},1314:(e,t,s)=>{"use strict";var r=s(8900),n=s(2769),i=r.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},1330:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203);e.exports=r&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,s)=>{var r=s(1386),n=s(4103),i=s(1779),o=s(4162),a=s(7462),c=s(6638);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},1386:(e,t,s)=>{var r=s(2393),n=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 r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1395:(e,t,s)=>{"use strict";var r=s(6100),n=s(1203),i=s(9932),o=Object,a=r("".split);e.exports=n((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 r=s(4713),n=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(n(s))return i(r(s,e));throw new c(o(e)+" is not iterable")}},1623:(e,t,s)=>{var r=s(8942).Uint8Array;e.exports=r},1743:(e,t,s)=>{"use strict";var r=s(4713),n=s(7235),i=s(4674);e.exports=function(e,t,s){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw s;return s}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw s;if(a)throw o;return n(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 r=s(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,s)=>{"use strict";var r=s(4904),n=s(9989).f,i=s(3999),o=s(701),a=s(9559),c=s(8655)("toStringTag");e.exports=function(e,t,s,l){var u=s?e:e&&e.prototype;u&&(o(u,c)||n(u,c,{configurable:!0,value:t}),l&&!r&&i(u,"toString",a))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,s)=>{"use strict";var r=s(2621).IteratorPrototype,n=s(5780),i=s(480),o=s(1811),a=s(6625),c=function(){return this};e.exports=function(e,t,s,l){var u=t+" Iterator";return e.prototype=n(r,{next:i(+!l,s)}),o(e,u,!1,!0),a[u]=c,e}},1950:(e,t,s)=>{var r=s(8942)["__core-js_shared__"];e.exports=r},1966:(e,t,s)=>{"use strict";var r=s(2937),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},2049:(e,t,s)=>{var r=s(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,s=r(t,e);return!(s<0)&&(s==t.length-1?t.pop():n.call(t,s,1),--this.size,!0)}},2137:(e,t,s)=>{"use strict";var r=s(5426),n=Object;e.exports=function(e){return n(r(e))}},2306:(e,t,s)=>{e=s.nmd(e);var r=s(4967),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.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 r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}}},2555:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==r(e)}},2621:(e,t,s)=>{"use strict";var r,n,i,o=s(1203),a=s(2769),c=s(262),l=s(5780),u=s(3671),d=s(3508),m=s(8655),h=s(4871),p=m("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(r=n):_=!0),!c(r)||o((function(){var e={};return r[p].call(e)!==e}))?r={}:h&&(r=l(r)),a(r[p])||d(r,p,(function(){return this})),e.exports={IteratorPrototype:r,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 r=s(1203);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,s)=>{"use strict";var r=s(8655),n=s(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2937:(e,t,s)=>{"use strict";var r=s(262);e.exports=function(e){return r(e)||null===e}},3004:(e,t,s)=>{const r=s(8631);e.exports=class extends r{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 r=s(9098),n=s(4317),i=s(3671),o=s(3491),a=s(7464),c=s(5780),l=s(3999),u=s(480),d=s(8148),m=s(4279),h=s(208),p=s(4879),_=s(8655)("toStringTag"),f=Error,g=[].push,y=function(e,t){var s,r=n(v,this);o?s=o(new f,r?i(this):v):(s=r?this:c(v),l(s,_,"Error")),void 0!==t&&l(s,"message",p(t)),m(s,y,s.stack,1),arguments.length>2&&d(s,arguments[2]);var a=[];return h(e,g,{that:a}),l(s,"errors",a),s};o?o(y,f):a(y,f,{name:!0});var v=y.prototype=c(f.prototype,{constructor:u(1,y),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},3103:(e,t,s)=>{var r=s(4715)(s(8942),"DataView");e.exports=r},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,s)=>{const r=s(394);e.exports=class extends r{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 r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(s.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(s.attributes=this.serialiseObject(r))}if(r)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 r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(s.content=r)}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([]),r=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==s.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),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 r=this.deserialiseContent(e.content);if(void 0===r&&null!==s.content||(s.content=r),"enum"===s.element){s.content&&s.attributes.set("enumerations",s.content);let e=s.attributes.get("samples");if(s.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const n=new t(r);n.element=s.element,e.push(n)}))}));const n=e.shift();s.content=n?n.content:void 0,s.attributes.set("samples",e)}else s.content=void 0;let r=s.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);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 r=s.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},3212:(e,t,s)=>{var r=s(8250),n=s(1877),i=s(8006);function o(e){var t=-1,s=null==e?0:e.length;for(this.__data__=new r;++t<s;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},3273:(e,t,s)=>{"use strict";var r=s(1395),n=s(5426);e.exports=function(e){return r(n(e))}},3283:(e,t,s)=>{var r=s(6027),n=s(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3305:(e,t,s)=>{var r=s(4497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3311:(e,t,s)=>{const r=s(1517),n=s(4123);class i extends n{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(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((s,r)=>{e.bind(t)(s.value,s.key,s,r)}))}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 r=s(5024),n=s(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},3489:(e,t,s)=>{"use strict";var r=s(1003);e.exports=r("document","documentElement")},3491:(e,t,s)=>{"use strict";var r=s(3574),n=s(262),i=s(5426),o=s(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,s={};try{(e=r(Object.prototype,"__proto__","set"))(s,[]),t=s instanceof Array}catch(e){}return function(s,r){return i(s),o(r),n(s)?(t?e(s,r):s.__proto__=r,s):s}}():void 0)},3507:(e,t,s)=>{"use strict";var r=s(2769),n=s(262),i=s(3491);e.exports=function(e,t,s){var o,a;return i&&r(o=t.constructor)&&o!==s&&n(a=o.prototype)&&a!==s.prototype&&i(e,a),e}},3508:(e,t,s)=>{"use strict";var r=s(3999);e.exports=function(e,t,s,n){return n&&n.enumerable?e[t]=s:r(e,t,s),e}},3531:(e,t,s)=>{"use strict";var r=s(8900).navigator,n=r&&r.userAgent;e.exports=n?String(n):""},3574:(e,t,s)=>{"use strict";var r=s(6100),n=s(814);e.exports=function(e,t,s){try{return r(n(Object.getOwnPropertyDescriptor(e,t)[s]))}catch(e){}}},3655:(e,t,s)=>{var r=s(7379),n=s(1580);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,s)=>{"use strict";var r=s(701),n=s(2769),i=s(2137),o=s(4275),a=s(2871),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var s=t.constructor;return n(s)&&t instanceof s?s.prototype:t instanceof l?u:null}},3753:(e,t,s)=>{"use strict";var r=s(4871),n=s(8900),i=s(7525),o="__core-js_shared__",a=e.exports=n[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:r?"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 r=s(5571).charAt,n=s(1139),i=s(8417),o=s(164),a=s(877),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:n(e),index:0})}),(function(){var e,t=u(this),s=t.string,n=t.index;return n>=s.length?a(void 0,!0):(e=r(s,n),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,r)=>{fs.readFile(e,t?void 0:"utf8",((e,n)=>{e?r(e):s(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,s)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{(200==r.status||0==r.status&&r.response)&&s(r.response),t(r.status)},r.onerror=t,r.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,r){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,s,r):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,s).then(r,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,s,r)}))))}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 r=t+s,n=t;e[n]&&!(n>=r);)++n;if(n-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,n));for(var i="";t<n;){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 l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i},getDylinkMetadata=e=>{var t=0,s=0;function r(){for(var s=0,r=1;;){var n=e[t++];if(s+=(127&n)*r,r*=128,!(128&n))break}return s}function n(){var s=r();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 l=r();s=t+l,o=n()}var u={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==o){u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();for(var d=r(),m=0;m<d;++m){var h=n();u.neededDynlibs.push(h)}}else{i("dylink.0"!==o);for(;t<s;){var p=e[t++],_=r();if(1===p)u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();else if(2===p)for(d=r(),m=0;m<d;++m)h=n(),u.neededDynlibs.push(h);else if(3===p)for(var f=r();f--;){var g=n();256&r()&&u.tlsExports.add(g)}else if(4===p)for(f=r();f--;){n(),g=n();1==(3&r())&&u.weakImports.add(g)}else t+=_}}return u};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 r={refcount:1/0,name:e,exports:s,global:!0};return LDSO.loadedLibsByName[e]=r,null!=t&&(LDSO.loadedLibsByHandle[t]=r),r},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]]]},r=1;r<e.length;++r)s.parameters.push(t[e[r]]);return s},generateFuncType=(e,t)=>{var s=e.slice(0,1),r=e.slice(1),n={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(r.length,t);for(var i=0;i<r.length;++i)t.push(n[r[i]]);"v"==s?t.push(0):t.push(1,n[s])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var s=[1];generateFuncType(t,s);var r=[0,97,115,109,1,0,0,0,1];uleb128Encode(s.length,r),r.push(...s),r.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var n=new WebAssembly.Module(new Uint8Array(r));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 s=e;s<e+t;s++){var r=getWasmTableEntry(s);r&&functionsInTableMap.set(r,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 r=getEmptyTableSlot();try{setWasmTableEntry(r,e)}catch(s){if(!(s instanceof TypeError))throw s;var n=convertJsFunctionToWasm(e,t);setWasmTableEntry(r,n)}return functionsInTableMap.set(e,r),r},updateGOT=(e,t)=>{for(var s in e)if(!isInternalSym(s)){var r=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 r?GOT[s].value=addFunction(r):"number"==typeof r?GOT[s].value=r:err(`unhandled export type for '${s}': ${typeof r}`))}},relocateExports=(e,t,s)=>{var r={};for(var n in e){var i=e[n];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),r[n]=i}return updateGOT(r,s),r},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 r=stackSave();try{return dynCall(e,t,s)}catch(e){if(stackRestore(r),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,r]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=r)};e(s);const t="__main_argc_argv";"main"==s&&e(t),s==t&&e("main"),s.startsWith("dynCall_")&&!Module.hasOwnProperty(s)&&(Module[s]=r)}},asyncLoad=(e,t,s,r)=>{var n=r?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),n&&removeRunDependency(n)}),(t=>{if(!s)throw`Loading data file "${e}" failed.`;s()})),n&&addRunDependency(n)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},s,r){var n=LDSO.loadedLibsByName[e];if(n)return t.global?n.global||(n.global=!0,mergeLibSymbols(n.exports,e)):s&&Object.assign(s,n.exports),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,r&&(LDSO.loadedLibsByHandle[r]=n),!t.loadAsync||Promise.resolve(!0);function i(){if(r){var s=LE_HEAP_LOAD_U32(4*(r+28>>2)),n=LE_HEAP_LOAD_U32(4*(r+32>>2));if(s&&n){var i=HEAP8.slice(s,s+n);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((n=>loadWebAssemblyModule(n,t,e,s,r))):loadWebAssemblyModule(i(),t,e,s,r)}function a(t){n.global?mergeLibSymbols(t,e):s&&Object.assign(s,t),n.exports=t}return(n=newDSO(e,r,"loading")).refcount=t.nodelete?1/0:1,n.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 r,n,i=1;i<=4;i*=2){var o=t*(1+.2/i);o=Math.min(o,e+100663296);var a=Math.min(s,(r=Math.max(e,o))+((n=65536)-r%n)%n);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,r,n){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,r)=>{for(var n=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]);n+=a}return LE_HEAP_STORE_U32(4*(r>>2),n),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,r,n){const i=currentParseCallback(t,{row:s,column:r});"string"==typeof i?(setValue(n,i.length,"i32"),stringToUTF16(i,e,10240)):setValue(n,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 r=e.charCodeAt(s);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++s):t+=3}return t},stringToUTF8Array=(e,t,s,r)=>{if(!(r>0))return 0;for(var n=s,i=s+r-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-n},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 r=t,n=(s-=2)<2*e.length?s/2:e.length,i=0;i<n;++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-r},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,r)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,s,r),_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,r,n)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,s,r,n),_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,r,n)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,s,r,n),_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,r,n,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,r,n,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,r,n,i,o,a,c,l,u)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,s,r,n,i,o,a,c,l,u),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,s,r,n,i,o,a,c,l,u)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,s,r,n,i,o,a,c,l,u),_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,r,n)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,s,r,n),_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,r=stackAlloc(4*(s+1)),n=r;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(s,r);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 r=0,n=0;if(s?.includedRanges){r=s.includedRanges.length,n=C._calloc(r,SIZE_OF_RANGE);let e=n;for(let t=0;t<r;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,n,r);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 r=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(r),r+=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,r){assertInternal(e),this[0]=t,this.language=s,this.textCallback=r}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"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(s)}return r}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 r=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(r),r+=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"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(s)}return r}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 r=[],n=this.tree.language.types;for(let t=0,s=n.length;t<s;t++)e.includes(n[t])&&r.push(t);const i=C._malloc(SIZE_OF_INT*r.length);for(let e=0,t=r.length;e<t;e++)setValue(i+e*SIZE_OF_INT,r[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,r.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),r=C._malloc(s+1);stringToUTF8(e,r,s+1);const n=C._ts_language_symbol_for_name(this[0],r,s,t);return C._free(r),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),s=C._malloc(t+1);stringToUTF8(e,s,t+1);const r=C._ts_query_new(this[0],s,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!r){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=getValue(TRANSFER_BUFFER,"i32"),n=UTF8ToString(s,r).length,i=e.substr(n,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 ${n}: '${i}'...`),a="";break;default:o=new SyntaxError(`Bad syntax at offset ${n}: '${i}'...`),a=""}throw o.index=n,o.length=a.length,C._free(s),o}const n=C._ts_query_string_count(r),i=C._ts_query_capture_count(r),o=C._ts_query_pattern_count(r),a=new Array(i),c=new Array(n);for(let e=0;e<i;e++){const t=C._ts_query_capture_name_for_id(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,s)}for(let e=0;e<n;e++){const t=C._ts_query_string_value_for_id(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");c[e]=UTF8ToString(t,s)}const l=new Array(o),u=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(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");m[e]=[],h[e]=[];const n=[];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)n.push({type:"capture",name:a[s]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:c[s]});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 s,r=!0,i=!0;switch(t){case"any-not-eq?":case"not-eq?":r=!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,s=n[2].name;h[e].push((e=>{const n=[],o=[];for(const r of e)r.name===t&&n.push(r.node),r.name===s&&o.push(r.node);const a=(e,t,s)=>s?e.text===t.text:e.text!==t.text;return i?n.every((e=>o.some((t=>a(e,t,r))))):n.some((e=>o.some((t=>a(e,t,r)))))}))}else{s=n[1].name;const t=n[2].value,o=e=>e.text===t,a=e=>e.text!==t;h[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node);const n=r?o:a;return i?t.every(n):t.some(n)}))}break;case"any-not-match?":case"not-match?":r=!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}.`);s=n[1].name;const o=new RegExp(n[2].value);i=!t.startsWith("any-"),h[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);const n=(e,t)=>t?o.test(e):!o.test(e);return 0===t.length?!r:i?t.every((e=>n(e,r))):t.some((e=>n(e,r)))}));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.".');l[e]||(l[e]={}),l[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 a="is?"===t?u:d;a[e]||(a[e]={}),a[e][n[1].value]=n[2]?n[2].value:null;break;case"not-any-of?":r=!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.".`);s=n[1].name;const c=n.slice(2).map((e=>e.value));h[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);return 0===t.length?!r:t.every((e=>c.includes(e)))===r}));break;default:m[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(d[e])}return C._free(s),new Query(INTERNAL,r,a,h,m,Object.freeze(l),Object.freeze(u),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 r=e[s]();return new Language(INTERNAL,r)}))}}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,r,n,i,o,a){assertInternal(e),this[0]=t,this.captureNames=s,this.textPredicates=r,this.predicates=n,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:r=0,endIndex:n=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,r,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),d=new Array(c);this.exceededMatchLimit=Boolean(u);let m=0,h=l;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 r=new Array(s);if(h=unmarshalCaptures(this,e.tree,h,r),this.textPredicates[t].every((e=>e(r)))){d[m]={pattern:t,captures:r};const e=this.setProperties[t];e&&(d[m].setProperties=e);const s=this.assertedProperties[t];s&&(d[m].assertedProperties=s);const n=this.refutedProperties[t];n&&(d[m].refutedProperties=n),m++}}return d.length=m,C._free(l),d}captures(e,{startPosition:t=ZERO_POINT,endPosition:s=ZERO_POINT,startIndex:r=0,endIndex:n=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,r,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),d=[];this.exceededMatchLimit=Boolean(u);const m=[];let h=l;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 r=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[r],s=this.setProperties[t];s&&(e.setProperties=s);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),d.push(e)}}return C._free(l),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 r=s-t;let n=e.textCallback(t,null,s);for(t+=n.length;t<s;){const r=e.textCallback(t,null,s);if(!(r&&r.length>0))break;t+=r.length,n+=r}return t>s&&(n=n.slice(0,r)),n}function unmarshalCaptures(e,t,s,r){for(let n=0,i=r.length;n<i;n++){const i=getValue(s,"i32"),o=unmarshalNode(t,s+=SIZE_OF_INT);s+=SIZE_OF_NODE,r[n]={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 r=getValue(t+=SIZE_OF_INT,"i32"),n=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=r,a.startPosition={row:n,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 r=s(6100),n=Error,i=r("".replace),o=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},3934:(e,t,s)=>{var r=s(3212),n=s(6465),i=s(5568);e.exports=function(e,t,s,o,a,c){var l=1&s,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var p=-1,_=!0,f=2&s?new r:void 0;for(c.set(e,t),c.set(t,e);++p<u;){var g=e[p],y=t[p];if(o)var v=l?o(y,g,p,t,e,c):o(g,y,p,e,t,c);if(void 0!==v){if(v)continue;_=!1;break}if(f){if(!n(t,(function(e,t){if(!i(f,t)&&(g===e||a(g,e,s,o,c)))return f.push(t)}))){_=!1;break}}else if(g!==y&&!a(g,y,s,o,c)){_=!1;break}}return c.delete(e),c.delete(t),_}},3964:(e,t,s)=>{var r=s(7034);e.exports=function(e,t){var s=this.__data__,n=r(s,e);return n<0?(++this.size,s.push([e,t])):s[n][1]=t,this}},3999:(e,t,s)=>{"use strict";var r=s(5024),n=s(9989),i=s(480);e.exports=r?function(e,t,s){return n.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 r=s(1386);e.exports=function(){this.__data__=new r,this.size=0}},4123:(e,t,s)=>{const r=s(1517);function n(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((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=n(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 r=s(8141),n=s(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},4279:(e,t,s)=>{"use strict";var r=s(3999),n=s(3885),i=s(5791),o=Error.captureStackTrace;e.exports=function(e,t,s,a){i&&(o?o(e,t):r(e,"stack",n(s,a)))}},4317:(e,t,s)=>{"use strict";var r=s(6100);e.exports=r({}.isPrototypeOf)},4497:(e,t,s)=>{var r=s(4715)(Object,"create");e.exports=r},4512:(e,t,s)=>{var r=s(4715)(s(8942),"Set");e.exports=r},4543:(e,t,s)=>{"use strict";var r=s(5024),n=s(4713),i=s(7161),o=s(480),a=s(3273),c=s(5341),l=s(701),u=s(9665),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=c(t),u)try{return d(e,t)}catch(e){}if(l(e,t))return o(!n(i.f,e,t),e[t])}},4572:(e,t,s)=>{"use strict";var r=s(9344),n=s(814),i=s(1780),o=r(r.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,s)=>{"use strict";var r=s(9903),n=Math.max,i=Math.min;e.exports=function(e,t){var s=r(e);return s<0?n(s+t,0):i(s,t)}},4603:(e,t,s)=>{"use strict";var r=s(5547),n=s(1203),i=s(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4674:(e,t,s)=>{"use strict";var r=s(814),n=s(3057);e.exports=function(e,t){var s=e[t];return n(s)?void 0:r(s)}},4687:(e,t,s)=>{var r=s(353),n=s(547);e.exports=function e(t,s,i,o,a){return t===s||(null==t||null==s||!n(t)&&!n(s)?t!=t&&s!=s:r(t,s,i,o,e,a))}},4700:(e,t,s)=>{var r=s(9067);e.exports=function(e,t){var s=e.__data__;return r(t)?s["string"==typeof t?"string":"hash"]:s.map}},4713:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype.call;e.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},4715:(e,t,s)=>{var r=s(9624),n=s(155);e.exports=function(e,t){var s=n(e,t);return r(s)?s:void 0}},4732:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).has(e)}},4759:(e,t,s)=>{var r,n=s(1950),i=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";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 r=s(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(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 r={};r[s(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},4967:(e,t,s)=>{var r="object"==typeof s.g&&s.g&&s.g.Object===Object&&s.g;e.exports=r},5024:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,s)=>{var r=s(4497);e.exports=function(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,s)=>{var r=s(3305),n=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 r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},5116:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,n)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},5341:(e,t,s)=>{"use strict";var r=s(493),n=s(6281);e.exports=function(e){var t=r(e,"string");return n(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 r=s(3057),n=TypeError;e.exports=function(e){if(r(e))throw new n("Can't call method on "+e);return e}},5442:(e,t,s)=>{"use strict";s(5695)},5516:(e,t,s)=>{"use strict";var r=s(9989).f;e.exports=function(e,t,s){s in e||r(e,s,{configurable:!0,get:function(){return t[s]},set:function(e){t[s]=e}})}},5547:(e,t,s)=>{"use strict";var r,n,i=s(8900),o=s(3531),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(n=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(n=+r[1]),e.exports=n},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,s)=>{"use strict";var r=s(6100),n=s(9903),i=s(1139),o=s(5426),a=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(e){return function(t,s){var r,u,d=i(o(t)),m=n(s),h=d.length;return m<0||m>=h?e?"":void 0:(r=c(d,m))<55296||r>56319||m+1===h||(u=c(d,m+1))<56320||u>57343?e?a(d,m):r:e?l(d,m,m+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},5642:(e,t,s)=>{const r=s(1517),n=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(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const s=e,r=this.getMember(s);return r?r.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(((r,n,i)=>{const o=e.bind(t)(r,n,i);o&&s.push(o)})),s}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((s=>e.bind(t)(s.value,s.key,s)))}}},5650:(e,t,s)=>{var r=s(8942).Symbol;e.exports=r},5681:(e,t,s)=>{var r=s(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,s)=>{"use strict";var r=s(1003),n=s(6100),i=s(5116),o=s(7313),a=s(7235),c=n([].concat);e.exports=r("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 r=s(9310),n=s(8138),i=s(986),o=s(2563),a=s(1580),c=s(394),l=s(7547);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(r,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,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 r=this.elementDetection[s][0],n=this.elementDetection[s][1];if(r(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 c(this)}}c.prototype.Namespace=u,e.exports=u},5777:e=>{"use strict";var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?s:t)(r)}},5780:(e,t,s)=>{"use strict";var r,n=s(7235),i=s(7389),o=s(9683),a=s(5241),c=s(3489),l=s(9619),u=s(4275),d="prototype",m="script",h=u("IE_PROTO"),p=function(){},_=function(e){return"<"+m+">"+e+"</"+m+">"},f=function(e){e.write(_("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,s;g="undefined"!=typeof document?document.domain&&r?f(r):(t=l("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):f(r);for(var n=o.length;n--;)delete g[d][o[n]];return g()};a[h]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(p[d]=n(e),s=new p,p[d]=null,s[h]=e):s=g(),void 0===t?s:i.f(s,t)}},5791:(e,t,s)=>{"use strict";var r=s(1203),n=s(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},5853:(e,t,s)=>{e=s.nmd(e);var r=s(8942),n=s(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},5894:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e,r){s[++t]=[r,e]})),s}},6027:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},6100:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.call,o=r&&n.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var s=-1,r=Array(e);++s<e;)r[s]=t(s);return r}},6138:(e,t,s)=>{"use strict";var r=s(9098),n=s(1003),i=s(7013),o=s(1203),a=s(6453),c="AggregateError",l=n(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,s){return i(e,this,arguments)}}),u,!0)})},6281:(e,t,s)=>{"use strict";var r=s(1003),n=s(2769),i=s(4317),o=s(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(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 r=s(4687);e.exports=function(e,t){return r(e,t)}},6453:(e,t,s)=>{"use strict";var r=s(1003),n=s(701),i=s(3999),o=s(4317),a=s(3491),c=s(7464),l=s(5516),u=s(3507),d=s(4879),m=s(8148),h=s(4279),p=s(5024),_=s(4871);e.exports=function(e,t,s,f){var g="stackTraceLimit",y=f?2:1,v=e.split("."),b=v[v.length-1],w=r.apply(null,v);if(w){var E=w.prototype;if(!_&&n(E,"cause")&&delete E.cause,!s)return w;var x=r("Error"),S=t((function(e,t){var s=d(f?t:e,void 0),r=f?new w(e):new w;return void 0!==s&&i(r,"message",s),h(r,S,r.stack,2),this&&o(E,this)&&u(r,this,S),arguments.length>y&&m(r,arguments[y]),r}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):p&&g in w&&(l(S,w,g),l(S,w,"prepareStackTrace")),c(S,w),!_)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},6465:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length;++s<r;)if(t(e[s],s,e))return!0;return!1}},6529:(e,t,s)=>{var r=s(3655),n=s(5387);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,s)=>{var r=s(1386),n=s(9770),i=s(8250);e.exports=function(e,t){var s=this.__data__;if(s instanceof r){var o=s.__data__;if(!n||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 r=s(8099);e.exports=r.AggregateError},6850:(e,t,s)=>{"use strict";t.MH=void 0;const r=s(8583);function n(e,t,s){const n=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(n)||void 0!==s&&s!==e.length)throw new SyntaxError(r.errorMessages.get(t));return n}function i(e,t){const s=n(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=n(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(s,e)}return String.fromCharCode(s)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,s,a,c,l,u,d,m,h){if(void 0!==s)return"\\";if(void 0!==a)return function(e){const t=n(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const s=n(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(s)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==l)return i(l,u);if(void 0!==d)return i(d);if("0"===m)return"\0";if(void 0!==m)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const s=parseInt(e,8);return String.fromCharCode(s)}(m,!t);if(void 0!==h)return p=h,o.get(p)||p;var p;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=c},7013:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},7034:(e,t,s)=>{var r=s(6285);e.exports=function(e,t){for(var s=e.length;s--;)if(r(e[s][0],t))return s;return-1}},7144:(e,t,s)=>{var r=s(7034);e.exports=function(e){var t=this.__data__,s=r(t,e);return s<0?void 0:t[s][1]}},7161:(e,t)=>{"use strict";var s={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!s.call({1:2},1);t.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:s},7202:(e,t,s)=>{"use strict";var r=s(239);e.exports=r},7235:(e,t,s)=>{"use strict";var r=s(262),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not an object")}},7309:(e,t,s)=>{const r=s(2322),n=s(8631);e.exports=class extends n{constructor(e,t,s,n){super(new r,s,n),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 r=s(5650),n=s(8870),i=s(9005),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},7389:(e,t,s)=>{"use strict";var r=s(5024),n=s(1330),i=s(9989),o=s(7235),a=s(3273),c=s(8364);t.f=r&&!n?Object.defineProperties:function(e,t){o(e);for(var s,r=a(t),n=c(t),l=n.length,u=0;l>u;)i.f(e,s=n[u++],r[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 r=s(7034);e.exports=function(e){return r(this.__data__,e)>-1}},7460:(e,t,s)=>{"use strict";var r=s(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,s)=>{"use strict";var r=s(701),n=s(5691),i=s(4543),o=s(9989);e.exports=function(e,t,s){for(var a=n(t),c=o.f,l=i.f,u=0;u<a.length;u++){var d=a[u];r(e,d)||s&&r(s,d)||c(e,d,l(t,d))}}},7525:(e,t,s)=>{"use strict";var r=s(8900),n=Object.defineProperty;e.exports=function(e,t){try{n(r,e,{value:t,configurable:!0,writable:!0})}catch(s){r[e]=t}return t}},7547:(e,t,s)=>{const r=s(8631),n=s(3004),i=s(8712),o=s(2536),a=s(2555),c=s(9796),l=s(7309),u=s(5642),d=s(9620),m=s(593),h=s(4123),p=s(3311),_=s(2322);function f(e){if(e instanceof r)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 n;if(Array.isArray(e))return new c(e.map(f));if("object"==typeof e){return new u(e)}return e}r.prototype.ObjectElement=u,r.prototype.RefElement=m,r.prototype.MemberElement=l,r.prototype.refract=f,h.prototype.refract=f,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:d,RefElement:m,refract:f,ArraySlice:h,ObjectSlice:p,KeyValuePair:_}},7979:(e,t,s)=>{var r=s(9847),n=s(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:n;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 r=s(3766)(Object.keys,Object);e.exports=r},8130:(e,t,s)=>{"use strict";var r=s(8146);e.exports=function(e){return r(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,s)=>{var r=s(7379),n=s(3142),i=s(547);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==r(e)}},8141:(e,t,s)=>{"use strict";var r=s(3753);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},8146:(e,t,s)=>{"use strict";var r=s(9903),n=Math.min;e.exports=function(e){var t=r(e);return t>0?n(t,9007199254740991):0}},8148:(e,t,s)=>{"use strict";var r=s(262),n=s(3999);e.exports=function(e,t){r(t)&&"cause"in t&&n(e,"cause",t.cause)}},8244:(e,t,s)=>{var r=s(1129),n=s(3142);e.exports=function(e,t,s){var i=t(e);return n(e)?i:r(i,s(e))}},8250:(e,t,s)=>{var r=s(9753),n=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 r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8326:(e,t,s)=>{const r=s(5735),n=s(7547);t.g$=r,t.KeyValuePair=s(2322),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,s(394),s(3148)},8337:(e,t,s)=>{"use strict";s(5442);var r=s(7202);e.exports=r},8364:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683);e.exports=Object.keys||function(e){return r(e,n)}},8407:(e,t,s)=>{"use strict";var r=s(4904),n=s(2769),i=s(9932),o=s(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,s,r;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"===(r=i(t))&&n(t.callee)?"Arguments":r}},8411:(e,t,s)=>{"use strict";e.exports=s(8337)},8417:(e,t,s)=>{"use strict";var r,n,i,o=s(1314),a=s(8900),c=s(262),l=s(3999),u=s(701),d=s(3753),m=s(4275),h=s(5241),p="Object already initialized",_=a.TypeError,f=a.WeakMap;if(o||d.state){var g=d.state||(d.state=new f);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new _(p);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=m("state");h[y]=!0,r=function(e,t){if(u(e,y))throw new _(p);return t.facade=e,l(e,y,t),t},n=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:r,get:n,has:i,enforce:function(e){return i(e)?n(e):r(e,{})},getterFor:function(e){return function(t){var s;if(!c(t)||(s=n(t)).type!==e)throw new _("Incompatible receiver, "+e+" required");return s}}}},8486:(e,t,s)=>{var r=s(3103),n=s(9770),i=s(9413),o=s(4512),a=s(9270),c=s(7379),l=s(4066),u="[object Map]",d="[object Promise]",m="[object Set]",h="[object WeakMap]",p="[object DataView]",_=l(r),f=l(n),g=l(i),y=l(o),v=l(a),b=c;(r&&b(new r(new ArrayBuffer(1)))!=p||n&&b(new n)!=u||i&&b(i.resolve())!=d||o&&b(new o)!=m||a&&b(new a)!=h)&&(b=function(e){var t=c(e),s="[object Object]"==t?e.constructor:void 0,r=s?l(s):"";if(r)switch(r){case _:return p;case f:return u;case g:return d;case y:return m;case v:return h}return t}),e.exports=b},8583:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(s=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[s.MalformedUnicode,"malformed Unicode character escape sequence"],[s.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[s.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[s.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[s.EndOfString,"malformed escape sequence at end of string"]])},8600:(e,t,s)=>{"use strict";var r=s(6100),n=s(701),i=s(3273),o=s(1005).indexOf,a=s(5241),c=r([].push);e.exports=function(e,t){var s,r=i(e),l=0,u=[];for(s in r)!n(a,s)&&n(r,s)&&c(u,s);for(;t.length>l;)n(r,s=t[l++])&&(~o(u,s)||c(u,s));return u}},8631:(e,t,s)=>{const r=s(6343),n=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 n?{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 r=(e,t)=>(e.push(t),e),o=(e,s)=>{s.element===t&&e.push(s);const i=s.findRecursive(t);return i&&i.reduce(r,e),s.content instanceof n&&(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 r=e[t],n=s.indexOf(r);if(-1===n)return!1;s=s.splice(0,n)}return!0}))),s}set(e){return this.content=e,this}equals(e){return r(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 n)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 n){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 r=s(8900),n=s(8141),i=s(701),o=s(1268),a=s(4603),c=s(7460),l=r.Symbol,u=n("wks"),d=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:d("Symbol."+e)),u[e]}},8666:(e,t,s)=>{var r=s(674),n=s(9460),i=s(2306),o=i&&i.isTypedArray,a=o?n(o):r;e.exports=a},8696:(e,t,s)=>{"use strict";var r=s(1203),n=s(2769),i=/#|\.prototype\./,o=function(e,t){var s=c[a(e)];return s===u||s!==l&&(n(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},8712:(e,t,s)=>{const r=s(8631);e.exports=class extends r{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 r=s(5650),n=s(1623),i=s(6285),o=s(3934),a=s(5894),c=s(7447),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,s,r,l,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 n(e),new n(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&r;if(h||(h=c),e.size!=t.size&&!p)return!1;var _=m.get(e);if(_)return _==t;r|=2,m.set(e,t);var f=o(h(e),h(t),r,l,d,m);return m.delete(e),f;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},8870:(e,t,s)=>{var r=s(5650),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),s=e[a];try{e[a]=void 0;var r=!0}catch(e){}var n=o.call(e);return r&&(t?e[a]=s:delete e[a]),n}},8900:function(e,t,s){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s.g&&s.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,s)=>{var r=s(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||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 r=s(4700);e.exports=function(e,t){var s=r(this,e),n=s.size;return s.set(e,t),this.size+=s.size==n?0:1,this}},9098:(e,t,s)=>{"use strict";var r=s(8900),n=s(7013),i=s(9344),o=s(2769),a=s(4543).f,c=s(8696),l=s(8099),u=s(4572),d=s(3999),m=s(701);s(3753);var h=function(e){var t=function(s,r,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,r)}return new e(s,r,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,n,p,_,f,g,y,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,j=E?r:x?r[w]:r[w]&&r[w].prototype,O=E?l:l[w]||d(l,w,{})[w],P=O.prototype;for(_ in t)n=!(s=c(E?_:w+(x?".":"#")+_,e.forced))&&j&&m(j,_),g=O[_],n&&(y=e.dontCallGetSet?(b=a(j,_))&&b.value:j[_]),f=n&&y?y:t[_],(s||S||typeof g!=typeof f)&&(v=e.bind&&n?u(f,r):e.wrap&&n?h(f):S&&o(f)?i(f):f,(e.sham||f&&f.sham||g&&g.sham)&&d(v,"sham",!0),d(O,_,v),S&&(m(l,p=w+"Prototype")||d(l,p,{}),d(l[p],_,f),e.real&&P&&(s||!P[_])&&d(P,_,f)))}},9258:(e,t,s)=>{"use strict";var r=s(4713),n=s(2769),i=s(262),o=TypeError;e.exports=function(e,t){var s,a;if("string"===t&&n(s=e.toString)&&!i(a=r(s,e)))return a;if(n(s=e.valueOf)&&!i(a=r(s,e)))return a;if("string"!==t&&n(s=e.toString)&&!i(a=r(s,e)))return a;throw new o("Can't convert object to primitive value")}},9270:(e,t,s)=>{var r=s(4715)(s(8942),"WeakMap");e.exports=r},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,s)=>{"use strict";var r=s(9932),n=s(6100);e.exports=function(e){if("Function"===r(e))return n(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 r=s(4715)(s(8942),"Promise");e.exports=r},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,s)=>{"use strict";var r=s(4904),n=s(8407);e.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},9619:(e,t,s)=>{"use strict";var r=s(8900),n=s(262),i=r.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9620:(e,t,s)=>{const r=s(8631);e.exports=class extends r{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 r=s(3655),n=s(4759),i=s(1580),o=s(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,m=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?m:a).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var r=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<s}},9665:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203),i=s(9619);e.exports=!r&&!n((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 r=s(5098),n=s(1386),i=s(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}},9770:(e,t,s)=>{var r=s(4715)(s(8942),"Map");e.exports=r},9796:(e,t,s)=>{const r=s(1517),n=s(8631),i=s(4123);class o extends n{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((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let s,r;void 0!==t?(s=0,r=this.refract(t)):(s=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=s;t<this.length;t+=1){const s=this.content[t];r="object"===this.primitive()?this.refract(e(r,s.value,s.key,s,this)):this.refract(e(r,s,t,this))}return r}forEach(e,t){this.content.forEach(((s,r)=>{e.bind(t)(s,this.refract(r))}))}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||{},r=!!s.recursive,n=void 0===s.results?[]:s.results;return this.forEach(((t,s,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:r}),e(t,s,i)&&n.push(t)})),n}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 r=s(3273),n=s(8137),i=s(6625),o=s(8417),a=s(9989).f,c=s(164),l=s(877),u=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:r(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,l(void 0,!0);switch(e.kind){case"keys":return l(s,!1);case"values":return l(t[s],!1)}return l([s,t[s]],!1)}),"values");var _=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&d&&"values"!==_.name)try{a(_,"name",{value:"values"})}catch(e){}},9847:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length,n=0,i=[];++s<r;){var o=e[s];t(o,s,e)&&(i[n++]=o)}return i}},9903:(e,t,s)=>{"use strict";var r=s(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},9932:(e,t,s)=>{"use strict";var r=s(6100),n=r({}.toString),i=r("".slice);e.exports=function(e){return i(n(e),8,-1)}},9989:(e,t,s)=>{"use strict";var r=s(5024),n=s(9665),i=s(1330),o=s(7235),a=s(5341),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",m="configurable",h="writable";t.f=r?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 r=u(e,t);r&&r[h]&&(e[t]=s.value,s={configurable:m in s?s[m]:r[m],enumerable:d in s?s[d]:r[d],writable:!1})}return l(e,t,s)}:l:function(e,t,s){if(o(e),t=a(t),o(s),n)try{return l(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 r=s.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=s[r--].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:()=>Yg,detectionRegExp:()=>Kg,mediaTypes:()=>Zg,namespace:()=>Qg,parse:()=>Xg});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>un,includesClasses:()=>mn,includesSymbols:()=>dn,isAnnotationElement:()=>on,isArrayElement:()=>tn,isBooleanElement:()=>Qr,isCommentElement:()=>an,isElement:()=>Zr,isLinkElement:()=>rn,isMemberElement:()=>sn,isNullElement:()=>Xr,isNumberElement:()=>Yr,isObjectElement:()=>en,isParseResultElement:()=>cn,isPrimitiveElement:()=>ln,isRefElement:()=>nn,isStringElement:()=>Kr});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>Ho,isJSONSchemaElement:()=>Vo,isLinkDescriptionElement:()=>Go,isMediaElement:()=>Jo});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{isBooleanJsonSchemaElement:()=>xl,isCallbackElement:()=>rl,isComponentsElement:()=>nl,isContactElement:()=>il,isDiscriminatorElement:()=>Ml,isExampleElement:()=>ol,isExternalDocumentationElement:()=>al,isHeaderElement:()=>cl,isInfoElement:()=>ll,isLicenseElement:()=>ul,isLinkElement:()=>dl,isMediaTypeElement:()=>Tl,isOpenApi3_0Element:()=>hl,isOpenapiElement:()=>ml,isOperationElement:()=>pl,isParameterElement:()=>_l,isPathItemElement:()=>fl,isPathsElement:()=>gl,isReferenceElement:()=>yl,isRequestBodyElement:()=>vl,isResponseElement:()=>bl,isResponsesElement:()=>wl,isSchemaElement:()=>El,isSecurityRequirementElement:()=>Sl,isSecuritySchemeElement:()=>jl,isServerElement:()=>Ol,isServerVariableElement:()=>Pl,isServersElement:()=>Al});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{isJSONReferenceElement:()=>Ho,isJSONSchemaElement:()=>ap,isLinkDescriptionElement:()=>cp,isMediaElement:()=>Jo});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{isJSONReferenceElement:()=>Ho,isJSONSchemaElement:()=>vp,isLinkDescriptionElement:()=>bp});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{isJSONSchemaElement:()=>Kp,isLinkDescriptionElement:()=>Yp});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{isJSONSchemaElement:()=>u_,isLinkDescriptionElement:()=>d_});var a={};function c(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function l(e){return function t(s){return 0===arguments.length||c(s)?t:e.apply(this,arguments)}}function u(e){return function t(s,r){switch(arguments.length){case 0:return t;case 1:return c(s)?t:l((function(t){return e(s,t)}));default:return c(s)&&c(r)?t:c(s)?l((function(t){return e(t,r)})):c(r)?l((function(t){return e(s,t)})):e(s,r)}}}function d(e){return function t(s,r,n){switch(arguments.length){case 0:return t;case 1:return c(s)?t:u((function(t,r){return e(s,t,r)}));case 2:return c(s)&&c(r)?t:c(s)?u((function(t,s){return e(t,r,s)})):c(r)?u((function(t,r){return e(s,t,r)})):l((function(t){return e(s,r,t)}));default:return c(s)&&c(r)&&c(n)?t:c(s)&&c(r)?u((function(t,s){return e(t,s,n)})):c(s)&&c(n)?u((function(t,s){return e(t,r,s)})):c(r)&&c(n)?u((function(t,r){return e(s,t,r)})):c(s)?l((function(t){return e(t,r,n)})):c(r)?l((function(t){return e(s,t,n)})):c(n)?l((function(t){return e(s,r,t)})):e(s,r,n)}}}__webpack_require__.r(a),__webpack_require__.d(a,{isBooleanJsonSchemaElement:()=>xf,isCallbackElement:()=>Q_,isComponentsElement:()=>ef,isContactElement:()=>tf,isExampleElement:()=>sf,isExternalDocumentationElement:()=>rf,isHeaderElement:()=>nf,isInfoElement:()=>of,isJsonSchemaDialectElement:()=>af,isLicenseElement:()=>cf,isLinkElement:()=>lf,isMediaTypeElement:()=>Tf,isOpenApi3_1Element:()=>df,isOpenapiElement:()=>uf,isOperationElement:()=>mf,isParameterElement:()=>hf,isPathItemElement:()=>pf,isPathItemElementExternal:()=>_f,isPathsElement:()=>ff,isReferenceElement:()=>gf,isReferenceElementExternal:()=>yf,isRequestBodyElement:()=>vf,isResponseElement:()=>bf,isResponsesElement:()=>wf,isSchemaElement:()=>Ef,isSecurityRequirementElement:()=>Sf,isSecuritySchemeElement:()=>jf,isServerElement:()=>Of,isServerVariableElement:()=>Pf});const m=u((function(e,t){return null==t||t!=t?e:t})),h=Number.isInteger||function(e){return(e|0)===e};function p(e){return"[object String]"===Object.prototype.toString.call(e)}function _(e,t){var s=e<0?t.length+e:e;return p(t)?t.charAt(s):t[s]}const f=u((function(e,t){if(null!=t)return h(e)?_(e,t):t[e]}));const g=d((function(e,t,s){return m(e,f(t,s))}));var y=u((function(e,t){for(var s={},r={},n=0,i=e.length;n<i;)r[e[n]]=1,n+=1;for(var o in t)r.hasOwnProperty(o)||(s[o]=t[o]);return s}));const v=y;function b(e,t,s){for(var r=0,n=s.length;r<n;)t=e(t,s[r]),r+=1;return t}const w=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const E=l((function(e){return!!w(e)||!!e&&("object"==typeof e&&(!p(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var x="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function S(e,t,s){return function(r,n,i){if(E(i))return e(r,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(r,n,i,"fantasy-land/reduce");if(null!=i[x])return s(r,n,i[x]());if("function"==typeof i.next)return s(r,n,i);if("function"==typeof i.reduce)return t(r,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function j(e,t,s){for(var r=s.next();!r.done;)t=e(t,r.value),r=s.next();return t}function O(e,t,s,r){return s[r](e,t)}const P=S(b,O,j);function T(e,t,s){return function(){if(0===arguments.length)return s();var r=arguments[arguments.length-1];if(!w(r)){for(var n=0;n<e.length;){if("function"==typeof r[e[n]])return r[e[n]].apply(r,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return s.apply(this,arguments)}}function A(e,t){for(var s=0,r=t.length,n=Array(r);s<r;)n[s]=e(t[s]),s+=1;return n}const M=function(){return this.xf["@@transducer/init"]()},F=function(e){return this.xf["@@transducer/result"](e)};var N=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const R=function(e){return function(t){return new N(e,t)}};function I(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,r){return t.apply(this,arguments)};case 4:return function(e,s,r,n){return t.apply(this,arguments)};case 5:return function(e,s,r,n,i){return t.apply(this,arguments)};case 6:return function(e,s,r,n,i,o){return t.apply(this,arguments)};case 7:return function(e,s,r,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,s,r,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,s,r,n,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,s,r,n,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function k(e,t,s){return function(){for(var r=[],n=0,i=e,o=0,a=!1;o<t.length||n<arguments.length;){var l;o<t.length&&(!c(t[o])||n>=arguments.length)?l=t[o]:(l=arguments[n],n+=1),r[o]=l,c(l)?a=!0:i-=1,o+=1}return!a&&i<=0?s.apply(this,r):I(Math.max(0,i),k(e,r,s))}}const C=u((function(e,t){return 1===e?l(t):I(e,k(e,[],t))}));function $(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var D=Object.prototype.toString;const L=function(){return"[object Arguments]"===D.call(arguments)?function(e){return"[object Arguments]"===D.call(e)}:function(e){return $("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),B=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=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},H="function"!=typeof Object.keys||U?l((function(e){if(Object(e)!==e)return[];var t,s,r=[],n=U&&L(e);for(t in e)!$(t,e)||n&&"length"===t||(r[r.length]=t);if(q)for(s=B.length-1;s>=0;)$(t=B[s],e)&&!V(r,t)&&(r[r.length]=t),s-=1;return r})):l((function(e){return Object(e)!==e?[]:Object.keys(e)}));const J=H;const G=u(T(["fantasy-land/map","map"],R,(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 b((function(s,r){return s[r]=e(t[r]),s}),{},J(t));default:return A(e,t)}})));const W=u((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))}:P((function(e,s){return function(e,t){var s;t=t||[];var r=(e=e||[]).length,n=t.length,i=[];for(s=0;s<r;)i[i.length]=e[s],s+=1;for(s=0;s<n;)i[i.length]=t[s],s+=1;return i}(e,G(s,t))}),[],e)}));const z=u((function(e,t){var s=C(e,t);return C(e,(function(){return b(W,G(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Z=l((function(e){return z(e.length,e)}));const K=Z(l((function(e){return!e})));function Y(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function X(e,t,s){for(var r=0,n=s.length;r<n;){if(e(t,s[r]))return!0;r+=1}return!1}const Q="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const ee=l((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function te(e,t,s,r){var n=Y(e);function i(e,t){return se(e,t,s.slice(),r.slice())}return!X((function(e,t){return!X(i,t,e)}),Y(t),n)}function se(e,t,s,r){if(Q(e,t))return!0;var n,i,o=ee(e);if(o!==ee(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"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Q(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Q(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 r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&te(e.entries(),t.entries(),s.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&te(e.values(),t.values(),s.concat([e]),r.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=J(e);if(c.length!==J(t).length)return!1;var l=s.concat([e]),u=r.concat([t]);for(a=c.length-1;a>=0;){var d=c[a];if(!$(d,t)||!se(t[d],e[d],l,u))return!1;a-=1}return!0}const re=u((function(e,t){return se(e,t,[],[])}));const ne=l((function(e){return function(){return e}}));const ie=ne(void 0);const oe=re(ie());const ae=K(oe);var ce=__webpack_require__(8326);function le(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ue(e,t,s){for(var r=0,n=s.length;r<n;){if((t=e["@@transducer/step"](t,s[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const de=u((function(e,t){return I(e.length,(function(){return e.apply(t,arguments)}))}));function me(e,t,s){for(var r=s.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=s.next()}return e["@@transducer/result"](t)}function he(e,t,s,r){return e["@@transducer/result"](s[r](de(e["@@transducer/step"],e),t))}const pe=S(ue,he,me);var _e=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 fe(e){return new _e(e)}const ge=d((function(e,t,s){return pe("function"==typeof e?fe(e):e,t,s)}));function ye(e,t){return function(){var s=arguments.length;if(0===s)return t();var r=arguments[s-1];return w(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,s-1))}}const ve=d(ye("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const be=l(ye("tail",ve(1,1/0)));function we(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return I(arguments[0].length,ge(le,arguments[0],be(arguments)))}var Ee=function(e,t){switch(arguments.length){case 0:return Ee;case 1:return function t(s){return 0===arguments.length?t:Q(e,s)};default:return Q(e,t)}};const xe=Ee;function Se(e,t){return function(e,t,s){var r,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;s<e.length;){if(0===(n=e[s])&&1/n===r)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(n=e[s])&&n!=n)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(re(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function je(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 Oe=function(e){return(e<10?"0":"")+e};const Pe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Oe(e.getUTCMonth()+1)+"-"+Oe(e.getUTCDate())+"T"+Oe(e.getUTCHours())+":"+Oe(e.getUTCMinutes())+":"+Oe(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Te(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ae=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Me(e){return function(t){return new Ae(e,t)}}const Fe=u(T(["fantasy-land/filter","filter"],Me,(function(e,t){return Te(t)?b((function(s,r){return e(t[r])&&(s[r]=t[r]),s}),{},J(t)):function(e,t){for(var s=0,r=t.length,n=[];s<r;)e(t[s])&&(n[n.length]=t[s]),s+=1;return n}(e,t)})));const Ne=u((function(e,t){return Fe((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Re(e,t){var s=function(s){var r=t.concat([e]);return Se(s,r)?"<Circular>":Re(s,r)},r=function(e,t){return A((function(t){return je(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+A(s,e).join(", ")+"))";case"[object Array]":return"["+A(s,e).concat(r(e,Ne((function(e){return/^\d+$/.test(e)}),J(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):je(Pe(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())+")":je(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+r(e,J(e)).join(", ")+"}"}}const Ie=l((function(e){return Re(e,[])}));function ke(e,t){for(var s=t,r=0;r<e.length;r+=1){if(null==s)return;var n=e[r];s=h(n)?_(n,s):s[n]}return s}const Ce=d((function(e,t,s){return e(ke(t,s))}));function $e(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const De=u((function(e,t){return e&&t}));const Le=u((function(e,t){return $e(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Z(De)(e,t)}));const qe=re(null);const Be=K(qe);function Ue(e){return Ue="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},Ue(e)}const Ve=function(e){return"object"===Ue(e)};const He=C(1,Le(Be,Ve));const Je=u((function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var r=s(e,t);if(void 0!==r)return r;var n=s(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Ie(e),o=s(i,Ie(t));return void 0!==o&&o===i?e:t}));const Ge=u((function(e,t){return G(f(e),t)}));const We=l((function(e){return C(ge(Je,0,Ge("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 ze=C(1,we(ee,xe("GeneratorFunction")));const Ze=C(1,we(ee,xe("AsyncFunction")));const Ke=We([we(ee,xe("Function")),ze,Ze]);var Ye=we(ee,xe("Object")),Xe=we(Ie,re(Ie(Object))),Qe=Ce(Le(Ke,Xe),["constructor"]);const et=C(1,(function(e){if(!He(e)||!Ye(e))return!1;var t=Object.getPrototypeOf(e);return!!qe(t)||Qe(t)}));class tt extends ce.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 st=tt;class rt extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const nt=rt;class it extends ce.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(oe(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const ot=it;class at extends ce.g${constructor(){super(),this.register("annotation",st),this.register("comment",nt),this.register("parseResult",ot)}}const ct=new at,lt=e=>{const t=new at;return et(e)&&t.use(e),t},ut=ct;const dt=C(1,we(ee,xe("String"))),mt=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",ht=globalThis.fetch;Ke(ht)&&(globalThis.fetch=(...e)=>dt(e[0])&&e[0].endsWith("tree-sitter.wasm")?ht.apply(globalThis,[mt,be(e)]):ht.apply(globalThis,e));var pt=__webpack_require__(3833),_t=__webpack_require__(1212);const ft=class extends _t{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 gt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(ft,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 yt=gt,vt=__webpack_require__.p+"1496cfca5e4d41188323a914b9705264.wasm";let bt=null,wt=null;const Et=async e=>{if(null===bt&&null===wt)wt=pt.init().then((()=>pt.Language.load(vt))).then((e=>{const t=new pt;return t.setLanguage(e),t})).finally((()=>{wt=null})),bt=await wt;else if(null===bt&&null!==wt)bt=await wt;else if(null===bt)throw new yt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return bt.parse(e)};const xt=class extends yt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const St=class extends xt{};const jt=class extends St{};const Ot=class extends jt{specificTagName;explicitTagName;tagKind;tagStartPositionRow;tagStartPositionColumn;tagStartPositionIndex;tagEndPositionRow;tagEndPositionColumn;tagEndPositionIndex;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagStartPositionRow=t.tagStartPositionRow,this.tagStartPositionColumn=t.tagStartPositionColumn,this.tagStartPositionIndex=t.tagStartPositionIndex,this.tagEndPositionRow=t.tagEndPositionRow,this.tagEndPositionColumn=t.tagEndPositionColumn,this.tagEndPositionIndex=t.tagEndPositionIndex,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const Pt=class{static type="node";type="node";isMissing;children;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;constructor({children:e=[],isMissing:t=!1,startPositionRow:s,startPositionColumn:r,startIndex:n,endPositionRow:i,endPositionColumn:o,endIndex:a}={}){this.type=this.constructor.type,this.isMissing=t,this.children=e,this.startPositionRow=s,this.startPositionColumn=r,this.startIndex=n,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}};let Tt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const At=class extends Pt{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...s}){super({...s}),this.explicitName=e,this.kind=t}};const Mt=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Ft=class extends Mt{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Tt.Mapping}};const Nt=class extends Mt{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Tt.Sequence}};const Rt=class extends Mt{static uri="tag:yaml.org,2002:str"};const It=d((function(e,t,s){return m(e,ke(t,s))}));const kt=l((function(e){return C(e.length,e)}));var Ct="\t\n\v\f\r \u2028\u2029\ufeff";const $t=l("function"==typeof String.prototype.trim&&!Ct.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Ct+"]["+Ct+"]*"),s=new RegExp("["+Ct+"]["+Ct+"]*$");return e.replace(t,"").replace(s,"")});const Dt=u((function(e,t){return C(e+1,(function(){var s=arguments[e];if(null!=s&&$e(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ie(s)+' does not have a method named "'+t+'"')}))}));const Lt=Dt(1,"split");const qt=Dt(1,"join");const Bt=l((function(e){return p(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Ut(){if(0===arguments.length)throw new Error("compose requires at least one argument");return we.apply(this,Bt(arguments))}const Vt=C(4,(function(e,t,s,r){return pe(e("function"==typeof t?fe(t):t),s,r)}));const Ht=u((function(e,t){if(w(e)){if(w(t))return e.concat(t);throw new TypeError(Ie(t)+" is not an array")}if(p(e)){if(p(t))return e+t;throw new TypeError(Ie(t)+" is not a string")}if(null!=e&&$e(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&$e(e.concat))return e.concat(t);throw new TypeError(Ie(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Jt=re("");const Gt=u((function(e,t){return C(ge(Je,0,Ge("length",t)),(function(){var s=arguments,r=this;return e.apply(r,A((function(e){return e.apply(r,s)}),t))}))}));function Wt(e){return e}const zt=l(Wt);const Zt=C(1,we(ee,xe("Number")));var Kt=Le(Zt,isFinite);var Yt=C(1,Kt);const Xt=Ke(Number.isFinite)?C(1,de(Number.isFinite,Number)):Yt;var Qt=Le(Xt,Gt(re,[Math.floor,zt]));var es=C(1,Qt);const ts=Ke(Number.isInteger)?C(1,de(Number.isInteger,Number)):es;const ss=l((function(e){return C(e.length,(function(t,s){var r=Array.prototype.slice.call(arguments,0);return r[0]=s,r[1]=t,e.apply(this,r)}))}));const rs=K(Xt);const ns=C(1,Le(Zt,u((function(e,t){return e>t}))(0)));var is=kt((function(e,t){var s=Number(t);if(s!==t&&(s=0),ns(s))throw new RangeError("repeat count must be non-negative");if(rs(s))throw new RangeError("repeat count must be less than infinity");if(s=Math.floor(s),0===e.length||0===s)return"";if(e.length*s>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*s;s=Math.floor(Math.log(s)/Math.log(2));for(var n=e;s;)n+=e,s-=1;return n+=n.substring(0,r-n.length)})),os=ss(Dt(1,"repeat"));const as=Ke(String.prototype.repeat)?os:is;const cs=d((function(e,t,s){return s.replace(e,t)}));var ls=cs(/[\s\uFEFF\xA0]+$/,""),us=Dt(0,"trimEnd");const ds=Ke(String.prototype.trimEnd)?us:ls;var ms=cs(/^[\s\uFEFF\xA0]+/,""),hs=Dt(0,"trimStart");const ps=Ke(String.prototype.trimStart)?hs:ms;var _s=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function fs(e){return function(t){return new _s(e,t)}}const gs=u(T(["dropWhile"],fs,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return ve(s,1/0,t)})));const ys=ss(u(Se));const vs=kt((function(e,t){return we(Lt(""),gs(ys(e)),qt(""))(t)}));const bs=ss(Ht);var ws=__webpack_require__(6850);const Es=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,xs=e=>{const t=(e=>{const t=e.match(Es),s=It("",["groups","indentation"],t);return Jt(s)?void 0:parseInt(s,10)})(e);if(ts(t))return as(" ",t);const s=It("",[1],e.split("\n")),r=It(0,["groups","indentation","length"],s.match(/^(?<indentation>[ ]*)/));return as(" ",r)},Ss=e=>{const t=e.match(Es),s=It("",["groups","chomping"],t);return Jt(s)?void 0:s},js=(e,t)=>oe(e)?`${ds(t)}\n`:"-"===e?ds(t):t,Os=e=>e.replace(/\r\n/g,"\n"),Ps=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,s)=>t?e:` ${s.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Ts=kt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),As=we(Os,$t,Ps,Lt("\n"),G(ps),qt("\n")),Ms=we(Os,$t,Ps,Lt("\n"),G(ps),qt("\n"),Ts("'")),Fs=we(Os,$t,(e=>e.replace(/\\\n\s*/g,"")),Ps,ws.MH,Lt("\n"),G(ps),qt("\n"),Ts('"'));let Ns=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),Rs=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Is=class{static test(e){return e.tag.kind===Tt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const s=e.clone();return e.style===Ns.Plain?t=As(e.content):e.style===Ns.SingleQuoted?t=Ms(e.content):e.style===Ns.DoubleQuoted?t=Fs(e.content):e.style===Ns.Literal?t=(e=>{const t=xs(e),s=Ss(e),r=Os(e),n=be(r.split("\n")),i=Ut(G(vs(t)),G(bs("\n"))),o=Vt(i,Ht,"",n);return js(s,o)})(e.content):e.style===Ns.Folded&&(t=(e=>{const t=xs(e),s=Ss(e),r=Os(e),n=be(r.split("\n")),i=Ut(G(vs(t)),G(bs("\n"))),o=Vt(i,Ht,"",n),a=Ps(o);return js(s,a)})(e.content)),s.content=t,s}static resolve(e){return e}};const ks=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Ft),this.registerTag(new Nt),this.registerTag(new Rt)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Tt.Scalar?t=Rt.uri:e.tag.kind===Tt.Sequence?t=Nt.uri:e.tag.kind===Tt.Mapping&&(t=Ft.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t}registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})}registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this}overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this}resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let s=e;Is.test(e)&&(s=Is.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new Ot(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagStartPositionRow:e.tag.startPositionRow,tagStartPositionColumn:e.tag.startPositionColumn,tagStartPositionIndex:e.tag.startIndex,tagEndPositionRow:e.tag.endPositionRow,tagEndPositionColumn:e.tag.endPositionColumn,tagEndPositionIndex:e.tag.endIndex,node:e.clone()});if(!r.test(s))throw new Ot(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagStartPositionRow:e.tag.startPositionRow,tagStartPositionColumn:e.tag.startPositionColumn,tagStartPositionIndex:e.tag.startIndex,tagEndPositionRow:e.tag.endPositionRow,tagEndPositionColumn:e.tag.endPositionColumn,tagEndPositionIndex:e.tag.endIndex,nodeCanonicalContent:s.content,node:e.clone()});return r.resolve(s)}};const Cs=class extends Mt{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,s=e.clone();return s.content=t,s}};const $s=class extends Mt{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),s=e.clone();return s.content=t,s}};const Ds=class extends Mt{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),s=e.clone();return s.content=t,s}};const Ls=class extends Mt{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const qs=class extends ks{constructor(){super(),this.registerTag(new Cs,!0),this.registerTag(new $s,!0),this.registerTag(new Ds,!0),this.registerTag(new Ls,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===Tt.Sequence)t=Nt.uri;else if(e.tag.kind===Tt.Mapping)t=Ft.uri;else if(e.tag.kind===Tt.Scalar){const s=this.tags.find((t=>t.test(e)));t=(null==s?void 0:s.tag)||"?"}return t}};const Bs=class extends Pt{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:s,styleGroup:r,...n}){super({...n}),this.anchor=e,this.tag=t,this.style=s,this.styleGroup=r}};const Us=class extends Bs{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Vs=class extends St{},Hs=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Js=e=>Hs("mapping",e),Gs=e=>Hs("sequence",e),Ws=e=>Hs("keyValuePair",e),zs=e=>Hs("scalar",e),Zs=e=>Hs("alias",e);const Ks=class{addAnchor(e){if(!(e=>Hs("anchor",e))(e.anchor))throw new Vs("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Us({content:e.content,style:Ns.Plain,styleGroup:Rs.Flow})}},Ys=(e,t,s)=>{const r=e[t];if(null!=r){if(!s&&"function"==typeof r)return r;const e=s?r.leave:r.enter;if("function"==typeof e)return e}else{const r=s?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},Xs={},Qs=e=>null==e?void 0:e.type,er=e=>"string"==typeof Qs(e),tr=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),sr=(e,{visitFnGetter:t=Ys,nodeTypeGetter:s=Qs,breakSymbol:r=Xs,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,u,d,m,h,p){let _=l,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=a.call(e[l],_,u,d,m,h,g);if("function"==typeof(null==t?void 0:t.then))throw new xt("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},leave(n,o,l,u,d,m){let h=n;const p={...m,replaceWith(e,t){m.replaceWith(e,t),h=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(h),!0);if("function"==typeof a){const t=a.call(e[n],h,o,l,u,d,p);if("function"==typeof(null==t?void 0:t.then))throw new xt("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===h&&(c[n]=a)}}};sr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Ys,nodeTypeGetter:s=Qs,breakSymbol:r=Xs,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(l,u,d,m,h,p){let _=l,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=await a.call(e[l],_,u,d,m,h,g);if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},async leave(n,o,l,u,d,m){let h=n;const p={...m,replaceWith(e,t){m.replaceWith(e,t),h=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(h),!0);if("function"==typeof a){const t=await a.call(e[n],h,o,l,u,d,p);if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===h&&(c[n]=a)}}};const rr=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=Xs,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Ys,nodeTypeGetter:c=Qs,nodePredicate:l=er,nodeCloneFn:u=tr,detectCycles:d=!0,detectCyclesCallback:m=null}={})=>{const h=s||{};let p,_,f=Array.isArray(e),g=[e],y=-1,v=[],b=e;const w=[],E=[];do{y+=1;const e=y===g.length;let s;const j=e&&0!==v.length;if(e){if(s=0===E.length?void 0:w.pop(),b=_,_=E.pop(),j)if(f){b=b.slice();let e=0;for(const[t,s]of v){const r=t-e;s===i?(b.splice(r,1),e+=1):b[r]=s}}else{b=u(b);for(const[e,t]of v)b[e]=t}y=p.index,g=p.keys,v=p.edits,f=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(s=f?y:g[y],b=_[s],b===i||void 0===b)continue;w.push(s)}let O;if(!Array.isArray(b)){var x;if(!l(b))throw new xt(`Invalid AST Node: ${String(b)}`,{node:b});if(d&&E.includes(b)){"function"==typeof m&&m(b,s,_,w,E),w.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,b,s,_,w,E):_&&(_[s]=t),e||(b=t)}};O=i.call(t,b,s,_,w,E,n)}if("function"==typeof(null===(x=O)||void 0===x?void 0:x.then))throw new xt("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(O===n)break;if(O===o){if(!e){w.pop();continue}}else if(void 0!==O&&(v.push([s,O]),!e)){if(!l(O)){w.pop();continue}b=O}}var S;if(void 0===O&&j&&v.push([s,b]),!e)p={inArray:f,index:y,keys:g,edits:v,prev:p},f=Array.isArray(b),g=f?b:null!==(S=h[c(b)])&&void 0!==S?S:[],y=-1,v=[],_!==i&&void 0!==_&&E.push(_),_=b}while(void 0!==p);return 0!==v.length?v[v.length-1][1]:e};rr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=Xs,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Ys,nodeTypeGetter:c=Qs,nodePredicate:l=er,nodeCloneFn:u=tr,detectCycles:d=!0,detectCyclesCallback:m=null}={})=>{const h=s||{};let p,_,f=Array.isArray(e),g=[e],y=-1,v=[],b=e;const w=[],E=[];do{y+=1;const e=y===g.length;let s;const S=e&&0!==v.length;if(e){if(s=0===E.length?void 0:w.pop(),b=_,_=E.pop(),S)if(f){b=b.slice();let e=0;for(const[t,s]of v){const r=t-e;s===i?(b.splice(r,1),e+=1):b[r]=s}}else{b=u(b);for(const[e,t]of v)b[e]=t}y=p.index,g=p.keys,v=p.edits,f=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(s=f?y:g[y],b=_[s],b===i||void 0===b)continue;w.push(s)}let j;if(!Array.isArray(b)){if(!l(b))throw new xt(`Invalid AST Node: ${String(b)}`,{node:b});if(d&&E.includes(b)){"function"==typeof m&&m(b,s,_,w,E),w.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,b,s,_,w,E):_&&(_[s]=t),e||(b=t)}};j=await i.call(t,b,s,_,w,E,n)}if(j===n)break;if(j===o){if(!e){w.pop();continue}}else if(void 0!==j&&(v.push([s,j]),!e)){if(!l(j)){w.pop();continue}b=j}}var x;if(void 0===j&&S&&v.push([s,b]),!e)p={inArray:f,index:y,keys:g,edits:v,prev:p},f=Array.isArray(b),g=f?b:null!==(x=h[c(b)])&&void 0!==x?x:[],y=-1,v=[],_!==i&&void 0!==_&&E.push(_),_=b}while(void 0!==p);return 0!==v.length?v[v.length-1][1]:e};const nr=class extends Pt{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class ir extends Pt{static type="stream"}Object.defineProperty(ir.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Hs("document",e))(e)||(e=>Hs("comment",e))(e))):[]},enumerable:!0});const or=ir;const ar=l((function(e){return _(0,e)}));const cr=class extends Pt{static type="parseResult";get rootNode(){return ar(this.children)}};const lr="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),s=1,r=arguments.length;s<r;){var n=arguments[s];if(null!=n)for(var i in n)$(i,n)&&(t[i]=n[i]);s+=1}return t};const ur=u((function(e,t){return lr({},e,t)}));const dr=class extends Pt{static type="directive";name;parameters;constructor({name:e,parameters:t,...s}){super({...s}),this.name=e,this.parameters=ur({version:void 0,handle:void 0,prefix:void 0},t)}};const mr=class extends Pt{static type="document"};const hr=class extends Bs{};class pr extends hr{static type="mapping"}Object.defineProperty(pr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Ws):[]},enumerable:!0});const _r=pr;class fr extends Pt{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(fr.prototype,{key:{get(){return this.children.filter((e=>zs(e)||Js(e)||Gs(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>zs(e)||Js(e)||Gs(e)||Zs(e))(t)))[0]},enumerable:!0}});const gr=fr;class yr extends hr{static type="sequence"}Object.defineProperty(yr.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Gs(e)||Js(e)||zs(e)||Zs(e))):[]},enumerable:!0});const vr=yr;const br=class extends Pt{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const wr=class extends Pt{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Er=class extends Pt{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const xr=class extends Pt{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}};const Sr=u((function(e,t){return b((function(s,r){return s[r]=e(t[r],r,t),s}),{},J(t))}));const jr=l((function(e){return null==e}));var Or=u((function(e,t){if(0===e.length||jr(t))return!1;for(var s=t,r=0;r<e.length;){if(jr(s)||!$(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));const Pr=Or;var Tr=u((function(e,t){return Pr([e],t)}));const Ar=Tr;const Mr=d((function(e,t,s){return e(f(t,s))}));const Fr=u(ke),Nr=(e,t)=>{const s=m(e,t);return Sr((e=>{if(et(e)&&Ar("$ref",e)&&Mr(dt,"$ref",e)){const t=Fr(["$ref"],e),r=vs("#/",t);return Fr(r.split("/"),s)}return et(e)?Nr(e,s):e}),e)},Rr=(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);const Ir=class{type;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;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("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},kr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Cr=e=>Array.isArray(e)||er(e);class $r{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(e){return t=>null!=t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.endsWith(e)}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new nr(Rr({name:t.text},t))}static hasKeyValuePairEmptyKey(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode}static hasKeyValuePairEmptyValue(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode}static kindNodeToYamlTag(e){const{tag:t}=e,s=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?Tt.Mapping:e.type.endsWith("sequence")?Tt.Sequence:Tt.Scalar;return new At(Rr({explicitName:s,kind:r},t))}schema;referenceManager;stream={enter:e=>new or(Rr({children:e.children,isMissing:e.isMissing},e)),leave:e=>new cr({children:[e]})};yaml_directive={enter:e=>{var t;const s=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new dr(Rr({name:"%YAML",parameters:{version:s}},e))}};tag_directive={enter:e=>{const t=e.children[0],s=e.children[1],r=new dr(Rr({name:"%TAG",parameters:{handle:null==t?void 0:t.text,prefix:null==s?void 0:s.text}},e));return this.schema.registerTagDirective(r),r}};reserved_directive={enter:e=>{const t=e.children[0],s=e.children[1],r=e.children[2];return new dr(Rr({name:null==t?void 0:t.text,parameters:{handle:null==s?void 0:s.text,prefix:null==r?void 0:r.text}},e))}};document={enter:e=>new mr(Rr({children:e.children,isMissing:e.isMissing},e)),leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if($r.isScalar(t)||$r.isMapping(t)||$r.isSequence(t))return e.children;const s=new Us({content:"",anchor:$r.kindNodeToYamlAnchor(t),tag:$r.kindNodeToYamlTag(t),startPositionRow:t.endPositionRow,startPositionColumn:t.endPositionColumn,startIndex:t.endIndex,endPositionRow:t.endPositionRow,endPositionColumn:t.endPositionColumn,endIndex:t.endIndex,styleGroup:Rs.Flow,style:Ns.Plain});return this.registerAnchor(s),[...e.children,s]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=new _r(Rr({children:e.children,anchor:s,tag:t,styleGroup:Rs.Block,style:Ns.NextLine,isMissing:e.isMissing},e));return this.registerAnchor(r),this.schema.resolve(r)}};block_mapping_pair={enter:e=>{const t=[...e.children];if($r.hasKeyValuePairEmptyKey(e)){const s=this.createKeyValuePairEmptyKey(e);t.unshift(s)}if($r.hasKeyValuePairEmptyValue(e)){const s=this.createKeyValuePairEmptyValue(e);t.push(s)}return new gr(Rr({children:t,styleGroup:Rs.Block,isMissing:e.isMissing},e))}};flow_mapping={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=new _r(Rr({children:e.children,anchor:s,tag:t,styleGroup:Rs.Flow,style:Ns.Explicit,isMissing:e.isMissing},e));return this.registerAnchor(r),this.schema.resolve(r)}};flow_pair={enter:e=>{const t=[...e.children];if($r.hasKeyValuePairEmptyKey(e)){const s=this.createKeyValuePairEmptyKey(e);t.unshift(s)}if($r.hasKeyValuePairEmptyValue(e)){const s=this.createKeyValuePairEmptyValue(e);t.push(s)}return new gr(Rr({children:t,styleGroup:Rs.Flow,isMissing:e.isMissing},e))}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=new vr(Rr({children:e.children,anchor:s,tag:t,styleGroup:Rs.Block,style:Ns.NextLine},e));return this.registerAnchor(r),this.schema.resolve(r)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;return[new Us({content:"",tag:new At({explicitName:"?",kind:Tt.Scalar}),startPositionRow:e.endPositionRow,startPositionColumn:e.endPositionColumn,startIndex:e.endIndex,endPositionRow:e.endPositionRow,endPositionColumn:e.endPositionColumn,endIndex:e.endIndex,styleGroup:Rs.Flow,style:Ns.Plain})]}};flow_sequence={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=new vr(Rr({children:e.children.flat(),anchor:s,tag:t,styleGroup:Rs.Flow,style:Ns.Explicit},e));return this.registerAnchor(r),this.schema.resolve(r)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=new Us(Rr({content:e.text,anchor:s,tag:t,styleGroup:Rs.Flow,style:Ns.Plain},e));return this.registerAnchor(r),this.schema.resolve(r)}};single_quote_scalar={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=new Us(Rr({content:e.text,anchor:s,tag:t,styleGroup:Rs.Flow,style:Ns.SingleQuoted},e));return this.registerAnchor(r),this.schema.resolve(r)}};double_quote_scalar={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=new Us(Rr({content:e.text,anchor:s,tag:t,styleGroup:Rs.Flow,style:Ns.DoubleQuoted},e));return this.registerAnchor(r),this.schema.resolve(r)}};block_scalar={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=e.text.startsWith("|")?Ns.Literal:e.text.startsWith(">")?Ns.Folded:Ns.Plain,n=new Us(Rr({content:e.text,anchor:s,tag:t,styleGroup:Rs.Block,style:r},e));return this.registerAnchor(n),this.schema.resolve(n)}};comment={enter:e=>new br({content:e.text})};alias={enter:e=>{const t=new wr({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Ir&&!e.isNamed){const t=e.type||e.text,{isMissing:s}=e;return new Er(Rr({value:t,isMissing:s},e))}}ERROR(e,t,s,r){const n=new xr(Rr({children:e.children,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text},e));return 0===r.length?new cr({children:[n]}):n}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const{keyNode:t}=e,s=(null==t?void 0:t.children)||[],r=s.find($r.isKind("tag")),n=s.find($r.isKind("anchor")),i=new At(void 0!==r?Rr({explicitName:r.text,kind:Tt.Scalar},r):{explicitName:"?",kind:Tt.Scalar}),o=void 0!==n?new nr(Rr({name:n.text},n)):void 0,a=new Us({content:"",startPositionRow:e.startPositionRow,startPositionColumn:e.startPositionColumn,startIndex:e.startIndex,endPositionRow:e.startPositionRow,endPositionColumn:e.startPositionColumn,endIndex:e.startIndex,tag:i,anchor:o,styleGroup:Rs.Flow,style:Ns.Plain});return this.registerAnchor(a),a}createKeyValuePairEmptyValue(e){const{valueNode:t}=e,s=(null==t?void 0:t.children)||[],r=s.find($r.isKind("tag")),n=s.find($r.isKind("anchor")),i=new At(void 0!==r?Rr({explicitName:r.text,kind:Tt.Scalar},r):{explicitName:"?",kind:Tt.Scalar}),o=void 0!==n?new nr(Rr({name:n.text},n)):void 0,a=new Us({content:"",startPositionRow:e.endPositionRow,startPositionColumn:e.endPositionColumn,startIndex:e.endIndex,endPositionRow:e.endPositionRow,endPositionColumn:e.endPositionColumn,endIndex:e.endIndex,tag:i,anchor:o,styleGroup:Rs.Flow,style:Ns.Plain});return this.registerAnchor(a),a}}const Dr=$r;function Lr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var qr=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=Lr(this.xf["@@transducer/step"](e,!1))),e},e}();function Br(e){return function(t){return new qr(e,t)}}const Ur=u(T(["all"],Br,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0}))),Vr=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Hr=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Jr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Gr=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ce.wE)&&t.classes.includes(e),Wr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,zr=e=>e({hasMethod:Vr,hasBasicElementProps:Hr,primitiveEq:Jr,isElementType:Wr,hasClass:Gr}),Zr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Hg||e(s)&&t(void 0,s))),Kr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Om||e(s)&&t("string",s))),Yr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.kT||e(s)&&t("number",s))),Xr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Os||e(s)&&t("null",s))),Qr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.bd||e(s)&&t("boolean",s))),en=zr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof ce.Sh||e(r)&&t("object",r)&&s("keys",r)&&s("values",r)&&s("items",r))),tn=zr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof ce.wE&&!(r instanceof ce.Sh)||e(r)&&t("array",r)&&s("push",r)&&s("unshift",r)&&s("map",r)&&s("reduce",r))),sn=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Pr||e(r)&&t("member",r)&&s(void 0,r))),rn=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Ft||e(r)&&t("link",r)&&s(void 0,r))),nn=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.sI||e(r)&&t("ref",r)&&s(void 0,r))),on=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof st||e(r)&&t("annotation",r)&&s("array",r))),an=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof nt||e(r)&&t("comment",r)&&s("string",r))),cn=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ot||e(r)&&t("parseResult",r)&&s("array",r))),ln=e=>Wr("object",e)||Wr("array",e)||Wr("boolean",e)||Wr("number",e)||Wr("string",e)||Wr("null",e)||Wr("member",e),un=e=>!!Zr(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)),dn=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!tn(s)&&Ur(ys(s.toValue()),e)},mn=(e,t)=>0===e.length||Ur(ys(t.classes.toValue()),e);const hn=class extends xt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const pn=class extends hn{};const _n=class extends hn{},fn=(e,t={})=>{const{visited:s=new WeakMap}=t,r={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof ce.KeyValuePair){const{key:t,value:n}=e,i=Zr(t)?fn(t,r):t,o=Zr(n)?fn(n,r):n,a=new ce.KeyValuePair(i,o);return s.set(e,a),a}if(e instanceof ce.ot){const t=e=>fn(e,r),n=[...e].map(t),i=new ce.ot(n);return s.set(e,i),i}if(e instanceof ce.G6){const t=e=>fn(e,r),n=[...e].map(t),i=new ce.G6(n);return s.set(e,i),i}if(Zr(e)){const t=vn(e);if(s.set(e,t),e.content)if(Zr(e.content))t.content=fn(e.content,r);else if(e.content instanceof ce.KeyValuePair)t.content=fn(e.content,r);else if(Array.isArray(e.content)){const s=e=>fn(e,r);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new pn("Value provided to cloneDeep function couldn't be cloned",{value:e})};fn.safe=e=>{try{return fn(e)}catch{return e}};const gn=e=>{const{key:t,value:s}=e;return new ce.KeyValuePair(t,s)},yn=e=>{const t=new e.constructor;if(t.element=e.element,un(e)&&Rr(t,e),e.meta.length>0&&(t._meta=fn(e.meta)),e.attributes.length>0&&(t._attributes=fn(e.attributes)),Zr(e.content)){const s=e.content;t.content=yn(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ce.KeyValuePair?t.content=gn(e.content):t.content=e.content;return t},vn=e=>{if(e instanceof ce.KeyValuePair)return gn(e);if(e instanceof ce.ot)return(e=>{const t=[...e];return new ce.ot(t)})(e);if(e instanceof ce.G6)return(e=>{const t=[...e];return new ce.G6(t)})(e);if(Zr(e))return yn(e);throw new _n("Value provided to cloneShallow function couldn't be cloned",{value:e})};vn.safe=e=>{try{return vn(e)}catch{return e}};const bn=e=>en(e)?"ObjectElement":tn(e)?"ArrayElement":sn(e)?"MemberElement":Kr(e)?"StringElement":Qr(e)?"BooleanElement":Yr(e)?"NumberElement":Xr(e)?"NullElement":rn(e)?"LinkElement":nn(e)?"RefElement":void 0,wn=e=>Zr(e)?vn(e):tr(e),En=we(bn,dt),xn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const Sn=(e,t,{keyMap:s=xn,...r}={})=>rr(e,t,{keyMap:s,nodeTypeGetter:bn,nodePredicate:En,nodeCloneFn:wn,...r});Sn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=xn,...r}={})=>rr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:bn,nodePredicate:En,nodeCloneFn:wn,...r});const jn=d((function(e,t,s){var r,n={};for(r in s=s||{},t=t||{})$(r,t)&&(n[r]=$(r,s)?e(r,t[r],s[r]):t[r]);for(r in s)$(r,s)&&!$(r,n)&&(n[r]=s[r]);return n}));const On=d((function e(t,s,r){return jn((function(s,r,n){return Te(r)&&Te(n)?e(t,r,n):t(s,r,n)}),s,r)}));const Pn=u((function(e,t){return On((function(e,t,s){return s}),e,t)}));const Tn=ve(0,-1);const An=u((function(e,t){return e.apply(this,t)}));const Mn=K(Ke);var Fn=l((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():w(e)?[]:p(e)?"":Te(e)?{}:L(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 Nn=Fn;const Rn=l((function(e){return null!=e&&re(e,Nn(e))}));const In=C(1,Ke(Array.isArray)?Array.isArray:we(ee,xe("Array")));const kn=Le(In,Rn);const Cn=C(3,(function(e,t,s){var r=Fr(e,s),n=Fr(Tn(e),s);if(!Mn(r)&&!kn(e)){var i=de(r,n);return An(i,t)}})),$n=()=>({predicates:{...e},namespace:ut}),Dn={toolboxCreator:$n,visitorOptions:{nodeTypeGetter:bn,exposeEdits:!0}},Ln=(e,t,s={})=>{if(0===t.length)return e;const r=Pn(Dn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=sr(a.map(g({},"visitor")),{...i});a.forEach(Cn(["pre"],[]));const l=Sn(e,c,i);return a.forEach(Cn(["post"],[])),l};Ln[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const r=Pn(Dn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=sr[Symbol.for("nodejs.util.promisify.custom")],l=Sn[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(g({},"visitor")),{...i});await Promise.allSettled(a.map(Cn(["pre"],[])));const d=await l(e,u,i);return await Promise.allSettled(a.map(Cn(["post"],[]))),d};const qn=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Zr(e)&&(e.meta.length>0&&(r.meta=fn(e.meta)),e.attributes.length>0&&(r.attributes=fn(e.attributes))),Ln(r,s,{toolboxCreator:$n,visitorOptions:{nodeTypeGetter:bn}})},Bn=e=>(t,s={})=>qn(t,{...s,Type:e});ce.Sh.refract=Bn(ce.Sh),ce.wE.refract=Bn(ce.wE),ce.Om.refract=Bn(ce.Om),ce.bd.refract=Bn(ce.bd),ce.Os.refract=Bn(ce.Os),ce.kT.refract=Bn(ce.kT),ce.Ft.refract=Bn(ce.Ft),ce.sI.refract=Bn(ce.sI),st.refract=Bn(st),nt.refract=Bn(nt),ot.refract=Bn(ot);const Un={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...xn},Vn=e=>Zr(e)?bn(e):Qs(e),Hn=e=>Zr(e)||er(e)||Array.isArray(e);const Jn=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new ot;t._content=e.children.flat(1);const s=t.findElements(ln);if(s.length>0){s[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=lt()}comment(e){if(0===this.processedDocumentCount){const t=new nt(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,s=this.processedDocumentCount>=1;if(t){const t=new st("Only first document within YAML stream will be used. Rest will be discarded.");t.classes.push("warning"),this.maybeAddSourceMap(e,t),this.annotations.push(t)}return s?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new ce.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new ce.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}sequence(e){const t=new ce.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}scalar(e){const t=this.namespace.toElement(e.content);return""===e.content&&e.style===Ns.Plain&&(t.classes.push("yaml-e-node"),t.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new st(t);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}error(e,t,s,r){const n=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new st(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new ot;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){this.sourceMap&&Rr(t,e)}};class Gn{cursor;constructor(e){this.cursor=e}stream(){return new Ir(this.cursor)}yaml_directive(){return new Ir(this.cursor)}tag_directive(){return new Ir(this.cursor)}reserved_directive(){return new Ir(this.cursor)}document(){return new Ir(this.cursor)}block_node(){return new Ir(this.cursor).setFieldName(this.cursor)}flow_node(){return new Ir(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Ir(this.cursor)}block_mapping_pair(){return new Ir(this.cursor)}flow_mapping(){return new Ir(this.cursor)}flow_pair(){return new Ir(this.cursor)}block_sequence(){return new Ir(this.cursor)}block_sequence_item(){return new Ir(this.cursor)}flow_sequence(){return new Ir(this.cursor)}plain_scalar(){return new Ir(this.cursor)}single_quote_scalar(){return new Ir(this.cursor)}double_quote_scalar(){return new Ir(this.cursor)}block_scalar(){return new Ir(this.cursor)}ERROR(){return new Ir(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Ir(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Gn(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Gn(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Wn=Gn,zn=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new Wn(s),[n]=Array.from(r),i=new Dr,o=new Jn,a=new qs,c=new Ks,l=rr(n,i,{keyMap:kr,nodePredicate:Cr,state:{schema:a,sourceMap:t,referenceManager:c}});return rr(l.rootNode,o,{keyMap:Un,nodeTypeGetter:Vn,nodePredicate:Hn,state:{sourceMap:t}})};class Zn extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Kn=Zn;class Yn extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Xn=Yn;class Qn extends ce.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 ei=Qn;class ti extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const si=ti;class ri extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const ni=ri;class ii extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const oi=ii;class ai extends ce.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 ci=ai;class li extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ce.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(li.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ui=li;class di extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const mi=di;class hi extends ce.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 pi=hi;class _i extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Kr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Kr(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const fi=_i;class gi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const yi=gi;class vi extends ce.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 bi=vi;class wi extends ce.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 Ei=wi;class xi extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Si=xi;class ji extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Oi=ji;class Pi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Ti=Pi;class Ai extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new ce.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Ai.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Mi=Ai;class Fi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Ni=Fi;class Ri extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const Ii=Ri;class ki extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Ci=ki;class $i extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new ce.bd(!1)}set required(e){this.set("required",e)}}const Di=$i;class Li extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const qi=Li;class Bi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Ui=Bi;const Vi=class extends yt{};class Hi extends ce.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 Ji=Hi;class Gi extends ce.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 Wi=Gi;class zi extends ce.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 Zi=zi;class Ki extends ce.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 Yi=Ki;const Xi=function(){return!0},Qi=e=>"string"==typeof(null==e?void 0:e.type)?e.type:bn(e),eo={EphemeralObject:["content"],EphemeralArray:["content"],...xn},to=(e,t,{keyMap:s=eo,...r}={})=>Sn(e,t,{keyMap:s,nodeTypeGetter:Qi,nodePredicate:Xi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});to[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=eo,...s}={})=>Sn[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Qi,nodePredicate:Xi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const so=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 ro=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 no{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new ro(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 so(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 r=t[3];return"EphemeralObject"===(null===(s=r[r.length-1])||void 0===s?void 0:s.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Kr(e.href)?e.href.toValue():""}}const io=e=>Zr(e)?Kr(e)||Yr(e)||Qr(e)||Xr(e)?e.toValue():to(e,new no):e,oo=e=>{const t=e.meta.length>0?fn(e.meta):void 0,s=e.attributes.length>0?fn(e.attributes):void 0;return new e.constructor(void 0,t,s)},ao=(e,t)=>t.clone&&t.isMergeableElement(e)?lo(oo(e),e,t):e,co={clone:!0,isMergeableElement:e=>en(e)||tn(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>ao(e,s))),objectElementMerge:(e,t,s)=>{const r=en(e)?oo(e):oo(t);return en(e)&&e.forEach(((e,t,n)=>{const i=vn(n);i.value=ao(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=io(n);let a;if(en(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);a=vn(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return lo;const s=t.customMerge(e,t);return"function"==typeof s?s:lo})(n,s)(r,t,s)}else a=vn(i),a.value=ao(t,s);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},lo=(e,t,s)=>{var r,n,i;const o={...co,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:co.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:co.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:co.objectElementMerge;const a=tn(t);if(!(a===tn(e)))return ao(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=>fn(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>fn(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};lo.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ce.Sh:e.reduce(((e,s)=>lo(e,s,t)),oo(e[0]))};const uo=lo;const mo=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=uo(t.meta,e.meta)),un(e)&&Rr(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=uo(t.attributes,e.attributes))}};const ho=class extends mo{enter(e){return this.element=fn(e),Xs}},po=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},_o=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:_o(s,[...t,s])},fo=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>_o(e)));for(;s.every((e=>e.length>0));){const e=s.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,i=Object.create(n),o=_o(n);for(let t of e){let e=_o(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(po(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},go=e=>e.filter(((t,s)=>e.indexOf(t)==s)),yo=(e,t)=>{const s=t.map((e=>_o(e)));let r=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][r];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}r++}},vo=(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(yo(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==yo(r,e)||void 0!==t[r],get:(s,r)=>(yo(r,e)||t)[r],set(t,s,r){const n=yo(s,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[s]=r,!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)))))}),bo=null,wo="copy",Eo="copy",xo="deep",So=new WeakMap,jo=e=>So.get(e),Oo=(e,t)=>{var s,r;const n=go([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=go([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},Po=(e,t)=>{var s,r,n,i;return{property:Oo(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:Oo(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},To=(e,t)=>{var s,r,n,i,o,a;return{class:go([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:Po(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:Po(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Ao=new Map,Mo=(...e)=>{const t=((...e)=>{var t;const s=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const n=[..._o(e.prototype).map((e=>e.constructor)),...null!==(t=jo(e))&&void 0!==t?t:[]].filter((e=>!s.has(e)));for(let e of n)r.add(e);s.add(e),r.delete(e)}return[...s]})(...e).map((e=>Ao.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>To(e,t)))},Fo=e=>{let t=Ao.get(e);return t||(t={},Ao.set(e,t)),t};function No(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=bo;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let s of e)s.apply(this,t)},s={[i]:t};n.push(s)}function o(...t){for(const s of e)po(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Eo?fo(n,o):(a=n,c=o,vo([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===wo?fo(e,null,["prototype"]):vo(e,Function.prototype));let l=o;if("none"!==xo){const n="deep"===xo?Mo(...e):((...e)=>{const t=e.map((e=>Fo(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>To(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Ro(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},l),Ro(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},l.prototype)}var u,d;return u=l,d=e,So.set(u,d),l}const Ro=(e,t)=>{const s=e.property,r=e.method;if(s)for(let e in s)for(let r of s[e])r(t,e);if(r)for(let e in r)for(let s of r[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const Io=l((function(e){return C(ge(Je,0,Ge("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 ko=l((function(e){return!Rn(e)}));const Co=u((function(e,t){return e||t}));var $o=K(C(1,Le(Be,u((function(e,t){return $e(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Z(Co)(e,t)}))(Ve,Ke))));const Do=Io([dt,$o,ko]);const Lo=u((function(e,t){for(var s={},r=0;r<e.length;)e[r]in t&&(s[e[r]]=t[e[r]]),r+=1;return s}));const qo=class extends mo{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Lo(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Fr(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ce(Ke,["visitors",...e],this.specObj)?Fr(["visitors",...e],this.specObj):Fr(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof ho&&(null==r?void 0:r.constructor)===ho?fn(t):(Sn(t,r,s),r.element)}};const Bo=class extends qo{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,r,n)=>{if(Kr(r)&&s.includes(io(r))&&!this.ignoredFields.includes(io(r))){const s=this.toRefractedElement([...t,"fixedFields",io(r)],e),i=new ce.Pr(fn(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(io(r))||this.element.content.push(fn(n))})),this.copyMetaAndAttributes(e,this.element),Xs}};const Uo=class{parent;constructor({parent:e}){this.parent=e}},Vo=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ji||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),Ho=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wi||e(r)&&t("JSONReference",r)&&s("object",r))),Jo=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zi||e(r)&&t("media",r)&&s("object",r))),Go=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yi||e(r)&&t("linkDescription",r)&&s("object",r)));class Wo extends(No(Bo,Uo,ho)){constructor(e){super(e),this.element=new Ji,this.specPath=ne(["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,Bo.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(oe(this.parent)&&!Kr(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Vo(this.parent)&&!Kr(e.get("$schema"))){const e=m(io(this.parent.meta.get("inheritedDialectIdentifier")),io(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?fn(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ce.wE,r=io(e.get(t));Do(r)&&s.push(r),this.element.setMetaProperty("ancestorsSchemaIdentifiers",s)}}const zo=Wo,Zo=e=>en(e)&&e.hasKey("$ref");class Ko extends(No(qo,Uo,ho)){ObjectElement(e){const t=Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Xs}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const Yo=Ko;const Xo=class extends ho{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Qo=function(){return!1};const ea=class extends qo{specPath;ignoredFields;fieldPatternPredicate=Qo;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(!this.ignoredFields.includes(io(t))&&this.fieldPatternPredicate(io(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(fn(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(io(t))||this.element.content.push(fn(s))})),this.copyMetaAndAttributes(e,this.element),Xs}};const ta=class extends ea{constructor(e){super(e),this.fieldPatternPredicate=Do}};class sa extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ra=sa;class na extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ia=na;class oa extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const aa=oa;const ca=class extends ho{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const la=class extends ho{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 ua extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const da=ua;class ma extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const ha=ma;class pa extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const _a=pa;class fa extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ga=fa;class ya extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.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),Xs}}const va=ya;class ba extends(No(Bo,ho)){constructor(e){super(e),this.element=new Wi,this.specPath=ne(["document","objects","JSONReference"])}ObjectElement(e){const t=Bo.prototype.ObjectElement.call(this,e);return Kr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const wa=ba;const Ea=class extends ho{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const xa=d((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 Sa=l((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var ja=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Oa=ja;const Pa=l(Lr);const Ta=K(jr);const Aa=Le(In,ko);function Ma(e){return function(e){if(Array.isArray(e))return Fa(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 Fa(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)?Fa(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 Fa(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=Array(t);s<t;s++)r[s]=e[s];return r}var Na=we(Oa(Sa((function(e,t){return e.length>t.length}))),ar,f("length")),Ra=kt((function(e,t,s){var r=s.apply(void 0,Ma(e));return Ta(r)?Pa(r):t}));const Ia=xa(Aa,(function(e){var t=Na(e);return C(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return ge(Ra(s),void 0,e)}))}),ie);const ka=class extends qo{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>xa(e,ne(t),ie))),s=Ia(t)(e);return this.element=this.toRefractedElement(s,e),Xs}};const Ca=class extends ka{constructor(e){super(e),this.alternator=[{predicate:Zo,specPath:["document","objects","JSONReference"]},{predicate:Xi,specPath:["document","objects","JSONSchema"]}]}};class $a extends(No(Bo,ho)){constructor(e){super(e),this.element=new Zi,this.specPath=ne(["document","objects","Media"])}}const Da=$a;class La extends(No(Bo,ho)){constructor(e){super(e),this.element=new Yi,this.specPath=ne(["document","objects","LinkDescription"])}}const qa=La,Ba={visitors:{value:ho,JSONSchemaOrJSONReferenceVisitor:Ca,document:{objects:{JSONSchema:{$visitor:zo,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:Ca,items:Yo,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Xo,properties:ra,additionalProperties:Ca,patternProperties:ia,dependencies:aa,enum:ca,type:la,allOf:da,anyOf:ha,oneOf:_a,not:Ca,definitions:ga,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:va,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:wa,fixedFields:{$ref:Ea}},Media:{$visitor:Da,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:qa,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ca,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ca}}}}}},Ua=e=>{if(Zr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Va={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...xn},Ha={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Ji),t.register("jSONReference",Wi),t.register("media",Zi),t.register("linkDescription",Yi),t}},Ja=()=>{const e=lt(Ha);return{predicates:{...t,isStringElement:Kr},namespace:e}},Ga=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Ba}={})=>{const n=(0,ce.e)(e),i=Nr(r),o=new(Fr(t,i))({specObj:i});return Sn(n,o),Ln(o.element,s,{toolboxCreator:Ja,visitorOptions:{keyMap:Va,nodeTypeGetter:Ua}})},Wa=e=>(t,s={})=>Ga(t,{specPath:e,...s});Ji.refract=Wa(["visitors","document","objects","JSONSchema","$visitor"]),Wi.refract=Wa(["visitors","document","objects","JSONReference","$visitor"]),Zi.refract=Wa(["visitors","document","objects","Media","$visitor"]),Yi.refract=Wa(["visitors","document","objects","LinkDescription","$visitor"]);const za=class extends Ji{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Vi("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Vi("idProp setter in Schema class is not not supported.")}get $schema(){throw new Vi("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Vi("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new Vi("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Vi("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Vi("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Vi("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new Vi("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Vi("definitions setter in Schema class is not not supported.")}get base(){throw new Vi("base getter in Schema class is not not supported.")}set base(e){throw new Vi("base setter in Schema class is not not supported.")}get links(){throw new Vi("links getter in Schema class is not not supported.")}set links(e){throw new Vi("links setter in Schema class is not not supported.")}get media(){throw new Vi("media getter in Schema class is not not supported.")}set media(e){throw new Vi("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class Za extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const Ka=Za;class Ya extends ce.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 Xa=Ya;class Qa extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const ec=Qa;class tc extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const sc=tc;class rc extends ce.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 nc=rc;class ic extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const oc=ic;const ac=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=uo(t.meta,e.meta)),un(e)&&Rr(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=uo(t.attributes,e.attributes))}};const cc=class extends ac{enter(e){return this.element=fn(e),Xs}};const lc=class extends ac{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:r,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=r,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Lo(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Fr(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ce(Ke,["visitors",...e],this.specObj)?Fr(["visitors",...e],this.specObj):Fr(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof cc&&(null==r?void 0:r.constructor)===cc?fn(t):(Sn(t,r,s),r.element)}};var uc=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Lr(s):s},e}();function dc(e){return function(t){return new uc(e,t)}}const mc=u(T(["take"],dc,(function(e,t){return ve(0,e<0?1/0:e,t)})));const hc=u((function(e,t){return re(mc(e.length,t),e)})),pc=e=>en(e)&&e.hasKey("$ref"),_c=en,fc=en,gc=e=>Kr(e.key)&&hc("x-",io(e.key));const yc=class extends lc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=gc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Kr(r)&&s.includes(io(r))&&!this.ignoredFields.includes(io(r))){const s=this.toRefractedElement([...t,"fixedFields",io(r)],e),i=new ce.Pr(fn(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(io(r))||this.element.content.push(fn(n))})),this.copyMetaAndAttributes(e,this.element),Xs}};class vc extends(No(yc,cc)){constructor(e){super(e),this.element=new Oi,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return yc.prototype.ObjectElement.call(this,e)}}const bc=vc;class wc extends(No(lc,cc)){StringElement(e){const t=new Si(io(e));return this.copyMetaAndAttributes(e,t),this.element=t,Xs}}const Ec=wc;const xc=class extends lc{MemberElement(e){return this.element=fn(e),this.element.classes.push("specification-extension"),Xs}};class Sc extends(No(yc,cc)){constructor(e){super(e),this.element=new mi,this.specPath=ne(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const jc=Sc;const Oc=class extends cc{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Pc extends(No(yc,cc)){constructor(e){super(e),this.element=new ei,this.specPath=ne(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Tc=Pc;class Ac extends(No(yc,cc)){constructor(e){super(e),this.element=new pi,this.specPath=ne(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Mc=Ac;class Fc extends(No(yc,cc)){constructor(e){super(e),this.element=new fi,this.specPath=ne(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return(Kr(this.element.operationId)||Kr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Nc=Fc;const Rc=class extends cc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Ic=class extends cc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const kc=class extends lc{specPath;ignoredFields;fieldPatternPredicate=Qo;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=gc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:r,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof n&&(this.specificationExtensionPredicate=n)}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(io(t))&&this.fieldPatternPredicate(io(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(fn(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(io(t))||this.element.content.push(fn(s))})),this.copyMetaAndAttributes(e,this.element),Xs}};const Cc=class extends kc{constructor(e){super(e),this.fieldPatternPredicate=Do}};class $c extends ce.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push($c.primaryClass)}}const Dc=$c;class Lc extends(No(Cc,cc)){constructor(e){super(e),this.element=new Dc,this.specPath=ne(["value"])}}const qc=Lc;class Bc extends(No(yc,cc)){constructor(e){super(e),this.element=new ec,this.specPath=ne(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Uc=Bc;const Vc=class extends cc{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Hc extends ce.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Hc.primaryClass)}}const Jc=Hc;class Gc extends(No(lc,cc)){constructor(e){super(e),this.element=new Jc}ArrayElement(e){return e.forEach((e=>{const t=_c(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const Wc=Gc;class zc extends(No(yc,cc)){constructor(e){super(e),this.element=new sc,this.specPath=ne(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Zc=zc;class Kc extends ce.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(Kc.primaryClass)}}const Yc=Kc;class Xc extends(No(Cc,cc)){constructor(e){super(e),this.element=new Yc,this.specPath=ne(["document","objects","ServerVariable"])}}const Qc=Xc;class el extends(No(yc,cc)){constructor(e){super(e),this.element=new yi,this.specPath=ne(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const tl=el;const sl=class extends lc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>xa(e,ne(t),ie))),s=Ia(t)(e);return this.element=this.toRefractedElement(s,e),Xs}},rl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Kn||e(r)&&t("callback",r)&&s("object",r))),nl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xn||e(r)&&t("components",r)&&s("object",r))),il=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ei||e(r)&&t("contact",r)&&s("object",r))),ol=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oi||e(r)&&t("example",r)&&s("object",r))),al=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ci||e(r)&&t("externalDocumentation",r)&&s("object",r))),cl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ui||e(r)&&t("header",r)&&s("object",r))),ll=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof mi||e(r)&&t("info",r)&&s("object",r))),ul=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof pi||e(r)&&t("license",r)&&s("object",r))),dl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof fi||e(r)&&t("link",r)&&s("object",r))),ml=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Si||e(r)&&t("openapi",r)&&s("string",r))),hl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Oi||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),pl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ti||e(r)&&t("operation",r)&&s("object",r))),_l=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mi||e(r)&&t("parameter",r)&&s("object",r))),fl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ni||e(r)&&t("pathItem",r)&&s("object",r))),gl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ii||e(r)&&t("paths",r)&&s("object",r))),yl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ci||e(r)&&t("reference",r)&&s("object",r))),vl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Di||e(r)&&t("requestBody",r)&&s("object",r))),bl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qi||e(r)&&t("response",r)&&s("object",r))),wl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ui||e(r)&&t("responses",r)&&s("object",r))),El=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof za||e(r)&&t("schema",r)&&s("object",r))),xl=e=>Qr(e)&&e.classes.includes("boolean-json-schema"),Sl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ka||e(r)&&t("securityRequirement",r)&&s("object",r))),jl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xa||e(r)&&t("securityScheme",r)&&s("object",r))),Ol=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ec||e(r)&&t("server",r)&&s("object",r))),Pl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof sc||e(r)&&t("serverVariable",r)&&s("object",r))),Tl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof yi||e(r)&&t("mediaType",r)&&s("object",r))),Al=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Jc||e(n)&&t("array",n)&&s("array",n)&&r("servers",n))),Ml=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof si||e(r)&&t("discriminator",r)&&s("object",r)));class Fl extends(No(sl,cc)){constructor(e){super(e),this.alternator=[{predicate:pc,specPath:["document","objects","Reference"]},{predicate:Xi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=sl.prototype.enter.call(this,e);return yl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Nl=Fl;class Rl extends(No(Cc,cc)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("examples"),this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Il=Rl;class kl extends ce.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(kl.primaryClass),this.classes.push("examples")}}const Cl=kl;const $l=class extends Il{constructor(e){super(e),this.element=new Cl}};class Dl extends ce.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Dl.primaryClass)}}const Ll=Dl;class ql extends(No(Cc,cc)){constructor(e){super(e),this.element=new Ll,this.specPath=ne(["document","objects","Encoding"])}}const Bl=ql;class Ul extends(No(Cc,cc)){constructor(e){super(e),this.element=new Ka,this.specPath=ne(["value"])}}const Vl=Ul;class Hl extends ce.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Hl.primaryClass)}}const Jl=Hl;class Gl extends(No(lc,cc)){constructor(e){super(e),this.element=new Jl}ArrayElement(e){return e.forEach((e=>{if(en(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(fn(e))})),this.copyMetaAndAttributes(e,this.element),Xs}}const Wl=Gl;class zl extends(No(yc,cc)){constructor(e){super(e),this.element=new Xn,this.specPath=ne(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Zl=zl;class Kl extends(No(yc,cc)){constructor(e){super(e),this.element=new nc,this.specPath=ne(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Yl=Kl;class Xl extends(No(yc,cc)){constructor(e){super(e),this.element=new Ci,this.specPath=ne(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return Kr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Ql=Xl;const eu=class extends cc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class tu extends(No(yc,cc)){constructor(e){super(e),this.element=new Mi,this.specPath=ne(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return en(this.element.contentProp)&&this.element.contentProp.filter(Tl).forEach(((e,t)=>{e.setMetaProperty("media-type",io(t))})),t}}const su=tu;class ru extends(No(sl,cc)){constructor(e){super(e),this.alternator=[{predicate:pc,specPath:["document","objects","Reference"]},{predicate:Xi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=sl.prototype.enter.call(this,e);return yl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const nu=ru;class iu extends(No(yc,cc)){constructor(e){super(e),this.element=new ui,this.specPath=ne(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const ou=iu;class au extends(No(sl,cc)){constructor(e){super(e),this.alternator=[{predicate:pc,specPath:["document","objects","Reference"]},{predicate:Xi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=sl.prototype.enter.call(this,e);return yl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const cu=au;class lu extends ce.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(lu.primaryClass),this.classes.push("examples")}}const uu=lu;const du=class extends Il{constructor(e){super(e),this.element=new uu}};class mu extends(No(Cc,cc)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("content"),this.specPath=ne(["document","objects","MediaType"])}}const hu=mu;class pu extends ce.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(pu.primaryClass),this.classes.push("content")}}const _u=pu;const fu=class extends hu{constructor(e){super(e),this.element=new _u}};class gu extends(No(yc,cc)){constructor(e){super(e),this.element=new za,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const yu=gu,vu=Ba.visitors.document.objects.JSONSchema.fixedFields.allOf;const bu=class extends vu{ArrayElement(e){const t=vu.prototype.ArrayElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},wu=Ba.visitors.document.objects.JSONSchema.fixedFields.anyOf;const Eu=class extends wu{ArrayElement(e){const t=wu.prototype.ArrayElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},xu=Ba.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Su=class extends xu{ArrayElement(e){const t=xu.prototype.ArrayElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},ju=Ba.visitors.document.objects.JSONSchema.fixedFields.items;const Ou=class extends ju{ObjectElement(e){const t=ju.prototype.ObjectElement.call(this,e);return yl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},Pu=Ba.visitors.document.objects.JSONSchema.fixedFields.properties;const Tu=class extends Pu{ObjectElement(e){const t=Pu.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Au=Ba.visitors.document.objects.JSONSchema.fixedFields.type;const Mu=class extends Au{ArrayElement(e){return this.enter(e)}},Fu=Ba.visitors.JSONSchemaOrJSONReferenceVisitor;const Nu=class extends Fu{ObjectElement(e){const t=Fu.prototype.enter.call(this,e);return yl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Ru extends(No(yc,cc)){constructor(e){super(e),this.element=new si,this.specPath=ne(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Iu=Ru;class ku extends ce.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(ku.primaryClass)}}const Cu=ku;class $u extends(No(Cc,cc)){constructor(e){super(e),this.element=new Cu,this.specPath=ne(["value"])}}const Du=$u;class Lu extends(No(yc,cc)){constructor(e){super(e),this.element=new oc,this.specPath=ne(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const qu=Lu;class Bu extends ce.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Bu.primaryClass),this.classes.push("examples")}}const Uu=Bu;const Vu=class extends Il{constructor(e){super(e),this.element=new Uu}};class Hu extends ce.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Hu.primaryClass),this.classes.push("content")}}const Ju=Hu;const Gu=class extends hu{constructor(e){super(e),this.element=new Ju}};class Wu extends ce.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(Wu.primaryClass)}}const zu=Wu;class Zu extends(No(Cc,cc)){constructor(e){super(e),this.element=new zu,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Ku=Zu;class Yu extends ce.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(Yu.primaryClass)}}const Xu=Yu;class Qu extends(No(Cc,cc)){constructor(e){super(e),this.element=new Xu,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(bl).forEach(((e,t)=>{e.setMetaProperty("http-status-code",io(t))})),t}}const ed=Qu;class td extends ce.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(td.primaryClass),this.classes.push("parameters")}}const sd=td;class rd extends(No(Cc,cc)){constructor(e){super(e),this.element=new sd,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const nd=rd;class id extends ce.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(id.primaryClass),this.classes.push("examples")}}const od=id;class ad extends(No(Cc,cc)){constructor(e){super(e),this.element=new od,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const cd=ad;class ld extends ce.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(ld.primaryClass)}}const ud=ld;class dd extends(No(Cc,cc)){constructor(e){super(e),this.element=new ud,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const md=dd;class hd extends ce.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(hd.primaryClass)}}const pd=hd;class _d extends(No(Cc,cc)){constructor(e){super(e),this.element=new pd,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(cl).forEach(((e,t)=>{e.setMetaProperty("header-name",io(t))})),t}}const fd=_d;class gd extends ce.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(gd.primaryClass)}}const yd=gd;class vd extends(No(Cc,cc)){constructor(e){super(e),this.element=new yd,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const bd=vd;class wd extends ce.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(wd.primaryClass)}}const Ed=wd;class xd extends(No(Cc,cc)){constructor(e){super(e),this.element=new Ed,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Sd=xd;class jd extends ce.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(jd.primaryClass)}}const Od=jd;class Pd extends(No(Cc,cc)){constructor(e){super(e),this.element=new Od,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Td=Pd;class Ad extends(No(yc,cc)){constructor(e){super(e),this.element=new oi,this.specPath=ne(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return Kr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Md=Ad;const Fd=class extends cc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Nd extends(No(yc,cc)){constructor(e){super(e),this.element=new ci,this.specPath=ne(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Rd=Nd;class Id extends(No(yc,cc)){constructor(e){super(e),this.element=new ni,this.specPath=ne(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return en(this.element.headers)&&this.element.headers.filter(cl).forEach(((e,t)=>{e.setMetaProperty("header-name",io(t))})),t}}const kd=Id;class Cd extends ce.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Cd.primaryClass)}}const $d=Cd;class Dd extends(No(Cc,cc)){constructor(e){super(e),this.element=new $d,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!cl(e))return;const s=io(t);e.setMetaProperty("headerName",s)})),t}}const Ld=Dd;class qd extends(No(kc,cc)){constructor(e){super(e),this.element=new Ii,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Xi}ObjectElement(e){const t=kc.prototype.ObjectElement.call(this,e);return this.element.filter(fl).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",fn(t))})),t}}const Bd=qd;class Ud extends(No(yc,cc)){constructor(e){super(e),this.element=new Di,this.specPath=ne(["document","objects","RequestBody"])}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return en(this.element.contentProp)&&this.element.contentProp.filter(Tl).forEach(((e,t)=>{e.setMetaProperty("media-type",io(t))})),t}}const Vd=Ud;class Hd extends ce.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Hd.primaryClass),this.classes.push("content")}}const Jd=Hd;const Gd=class extends hu{constructor(e){super(e),this.element=new Jd}};class Wd extends(No(kc,cc)){constructor(e){super(e),this.element=new Kn,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(fl).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",io(t))})),t}}const zd=Wd;class Zd extends(No(yc,cc)){constructor(e){super(e),this.element=new qi,this.specPath=ne(["document","objects","Response"])}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return en(this.element.contentProp)&&this.element.contentProp.filter(Tl).forEach(((e,t)=>{e.setMetaProperty("media-type",io(t))})),en(this.element.headers)&&this.element.headers.filter(cl).forEach(((e,t)=>{e.setMetaProperty("header-name",io(t))})),t}}const Kd=Zd;class Yd extends ce.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Yd.primaryClass)}}const Xd=Yd;class Qd extends(No(Cc,cc)){constructor(e){super(e),this.element=new Xd,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!cl(e))return;const s=io(t);e.setMetaProperty("header-name",s)})),t}}const em=Qd;class tm extends ce.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(tm.primaryClass),this.classes.push("content")}}const sm=tm;const rm=class extends hu{constructor(e){super(e),this.element=new sm}};class nm extends ce.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(nm.primaryClass)}}const im=nm;class om extends(No(Cc,cc)){constructor(e){super(e),this.element=new im,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const am=om;function cm(e){return"[object Number]"===Object.prototype.toString.call(e)}const lm=u((function(e,t){if(!cm(e)||!cm(t))throw new TypeError("Both arguments to range must be numbers");for(var s=Array(e<t?t-e:0),r=e<0?t+Math.abs(e):t-e,n=0;n<r;)s[n]=n+e,n+=1;return s}));function um(e,t,s){var r,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?e in s._items[n]||(t&&(s._items[n][e]=!0),!1):(t&&(s._items[n]={},s._items[n][e]=!0),!1);case"boolean":if(n in s._items){var i=e?1:0;return!!s._items[n][i]||(t&&(s._items[n][i]=!0),!1)}return t&&(s._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?!!Se(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1);case"undefined":return!!s._items[n]||(t&&(s._items[n]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in s._items?!!Se(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1)}}const dm=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!um(e,!0,this)},e.prototype.has=function(e){return um(e,!1,this)},e}();const mm=u((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new dm,a=0;a<i;a+=1)o.add(t[a]);for(;r<n;)o.add(e[r])&&(s[s.length]=e[r]),r+=1;return s}));class hm extends(No(yc,kc)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:s}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...s,...mm(e.keys(),t)],yc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,kc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Xs}}const pm=hm;class _m extends(No(pm,cc)){constructor(e){super(e),this.element=new Ui,this.specPathFixedFields=ne(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>pc(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${lm(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=pm.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(bl).forEach(((e,t)=>{const s=fn(t);this.fieldPatternPredicate(io(s))&&e.setMetaProperty("http-status-code",s)})),t}}const fm=_m;class gm extends(No(sl,cc)){constructor(e){super(e),this.alternator=[{predicate:pc,specPath:["document","objects","Reference"]},{predicate:Xi,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=sl.prototype.enter.call(this,e);return yl(this.element)?this.element.setMetaProperty("referenced-element","response"):bl(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const ym=gm;class vm extends(No(yc,cc)){constructor(e){super(e),this.element=new Ti,this.specPath=ne(["document","objects","Operation"])}}const bm=vm;class wm extends ce.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(wm.primaryClass)}}const Em=wm;const xm=class extends cc{constructor(e){super(e),this.element=new Em}ArrayElement(e){return this.element=this.element.concat(fn(e)),Xs}};class Sm extends ce.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Sm.primaryClass),this.classes.push("parameters")}}const jm=Sm;class Om extends(No(lc,cc)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=pc(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);yl(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const Pm=Om;const Tm=class extends Pm{constructor(e){super(e),this.element=new jm}};const Am=class extends sl{constructor(e){super(e),this.alternator=[{predicate:pc,specPath:["document","objects","Reference"]},{predicate:Xi,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=sl.prototype.enter.call(this,e);return yl(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Mm extends ce.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Mm.primaryClass)}}const Fm=Mm;class Nm extends(No(Cc,cc)){specPath;constructor(e){super(e),this.element=new Fm,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Rm=Nm;class Im extends ce.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Im.primaryClass),this.classes.push("security")}}const km=Im;class Cm extends(No(lc,cc)){constructor(e){super(e),this.element=new km}ArrayElement(e){return e.forEach((e=>{const t=en(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const $m=Cm;class Dm extends ce.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Dm.primaryClass),this.classes.push("servers")}}const Lm=Dm;const qm=class extends Wc{constructor(e){super(e),this.element=new Lm}};class Bm extends(No(yc,cc)){constructor(e){super(e),this.element=new Ni,this.specPath=ne(["document","objects","PathItem"])}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return this.element.filter(pl).forEach(((e,t)=>{const s=fn(t);s.content=io(s).toUpperCase(),e.setMetaProperty("http-method",s)})),Kr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Um=Bm;const Vm=class extends cc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Hm extends ce.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Hm.primaryClass),this.classes.push("servers")}}const Jm=Hm;const Gm=class extends Wc{constructor(e){super(e),this.element=new Jm}};class Wm extends ce.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Wm.primaryClass),this.classes.push("parameters")}}const zm=Wm;const Zm=class extends Pm{constructor(e){super(e),this.element=new zm}};class Km extends(No(yc,cc)){constructor(e){super(e),this.element=new Xa,this.specPath=ne(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Ym=Km;class Xm extends(No(yc,cc)){constructor(e){super(e),this.element=new Ei,this.specPath=ne(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Qm=Xm;class eh extends(No(yc,cc)){constructor(e){super(e),this.element=new bi,this.specPath=ne(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const th=eh;class sh extends ce.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(sh.primaryClass)}}const rh=sh;class nh extends(No(Cc,cc)){constructor(e){super(e),this.element=new rh,this.specPath=ne(["value"])}}const ih=nh;class oh extends ce.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(oh.primaryClass)}}const ah=oh;class ch extends(No(lc,cc)){constructor(e){super(e),this.element=new ah}ArrayElement(e){return e.forEach((e=>{const t=fc(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const lh=ch,{fixedFields:uh}=Ba.visitors.document.objects.JSONSchema,dh={visitors:{value:cc,document:{objects:{OpenApi:{$visitor:bc,fixedFields:{openapi:Ec,info:{$ref:"#/visitors/document/objects/Info"},servers:Wc,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Wl,tags:lh,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:jc,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Oc}},Contact:{$visitor:Tc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Mc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Uc,fixedFields:{url:Vc,description:{$ref:"#/visitors/value"},variables:Qc}},ServerVariable:{$visitor:Zc,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Zl,fixedFields:{schemas:Ku,responses:ed,parameters:nd,examples:cd,requestBodies:md,headers:fd,securitySchemes:bd,links:Sd,callbacks:Td}},Paths:{$visitor:Bd},PathItem:{$visitor:Um,fixedFields:{$ref:Vm,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Gm,parameters:Zm}},Operation:{$visitor:bm,fixedFields:{tags:xm,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Tm,requestBody:Am,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Rm,deprecated:{$ref:"#/visitors/value"},security:$m,servers:qm}},ExternalDocumentation:{$visitor:Rd,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:su,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:nu,example:{$ref:"#/visitors/value"},examples:Vu,content:Gu}},RequestBody:{$visitor:Vd,fixedFields:{description:{$ref:"#/visitors/value"},content:Gd,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:tl,fixedFields:{schema:Nl,example:{$ref:"#/visitors/value"},examples:$l,encoding:Bl}},Encoding:{$visitor:kd,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Ld,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:fm,fixedFields:{default:ym}},Response:{$visitor:Kd,fixedFields:{description:{$ref:"#/visitors/value"},headers:em,content:rm,links:am}},Callback:{$visitor:zd},Example:{$visitor:Md,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Fd}},Link:{$visitor:Nc,fixedFields:{operationRef:Rc,operationId:Ic,parameters:qc,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:ou,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:cu,example:{$ref:"#/visitors/value"},examples:du,content:fu}},Tag:{$visitor:Yl,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Ql,fixedFields:{$ref:eu}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:yu,fixedFields:{title:uh.title,multipleOf:uh.multipleOf,maximum:uh.maximum,exclusiveMaximum:uh.exclusiveMaximum,minimum:uh.minimum,exclusiveMinimum:uh.exclusiveMinimum,maxLength:uh.maxLength,minLength:uh.minLength,pattern:uh.pattern,maxItems:uh.maxItems,minItems:uh.minItems,uniqueItems:uh.uniqueItems,maxProperties:uh.maxProperties,minProperties:uh.minProperties,required:uh.required,enum:uh.enum,type:Mu,allOf:bu,anyOf:Eu,oneOf:Su,not:Nu,items:Ou,properties:Tu,additionalProperties:Nu,description:uh.description,format:uh.format,default:uh.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Iu,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Du}},XML:{$visitor:qu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Ym,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:Qm,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:th,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:ih}},SecurityRequirement:{$visitor:Vl}},extension:{$visitor:xc}}}},mh=e=>{if(Zr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},hh={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...xn},ph={namespace:e=>{const{base:t}=e;return t.register("callback",Kn),t.register("components",Xn),t.register("contact",ei),t.register("discriminator",si),t.register("encoding",ni),t.register("example",oi),t.register("externalDocumentation",ci),t.register("header",ui),t.register("info",mi),t.register("license",pi),t.register("link",fi),t.register("mediaType",yi),t.register("oAuthFlow",bi),t.register("oAuthFlows",Ei),t.register("openapi",Si),t.register("openApi3_0",Oi),t.register("operation",Ti),t.register("parameter",Mi),t.register("pathItem",Ni),t.register("paths",Ii),t.register("reference",Ci),t.register("requestBody",Di),t.register("response",qi),t.register("responses",Ui),t.register("schema",za),t.register("securityRequirement",Ka),t.register("securityScheme",Xa),t.register("server",ec),t.register("serverVariable",sc),t.register("tag",nc),t.register("xml",oc),t}},_h=()=>{const e=lt(ph);return{predicates:{...s,isElement:Zr,isStringElement:Kr,isArrayElement:tn,isObjectElement:en,isMemberElement:sn,includesClasses:mn,hasElementSourceMap:un},namespace:e}},fh=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=Nr(dh),i=new(Fr(t,n))({specObj:n});return Sn(r,i),Ln(i.element,s,{toolboxCreator:_h,visitorOptions:{keyMap:hh,nodeTypeGetter:mh}})},gh=e=>(t,s={})=>fh(t,{specPath:e,...s});Kn.refract=gh(["visitors","document","objects","Callback","$visitor"]),Xn.refract=gh(["visitors","document","objects","Components","$visitor"]),ei.refract=gh(["visitors","document","objects","Contact","$visitor"]),oi.refract=gh(["visitors","document","objects","Example","$visitor"]),si.refract=gh(["visitors","document","objects","Discriminator","$visitor"]),ni.refract=gh(["visitors","document","objects","Encoding","$visitor"]),ci.refract=gh(["visitors","document","objects","ExternalDocumentation","$visitor"]),ui.refract=gh(["visitors","document","objects","Header","$visitor"]),mi.refract=gh(["visitors","document","objects","Info","$visitor"]),pi.refract=gh(["visitors","document","objects","License","$visitor"]),fi.refract=gh(["visitors","document","objects","Link","$visitor"]),yi.refract=gh(["visitors","document","objects","MediaType","$visitor"]),bi.refract=gh(["visitors","document","objects","OAuthFlow","$visitor"]),Ei.refract=gh(["visitors","document","objects","OAuthFlows","$visitor"]),Si.refract=gh(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Oi.refract=gh(["visitors","document","objects","OpenApi","$visitor"]),Ti.refract=gh(["visitors","document","objects","Operation","$visitor"]),Mi.refract=gh(["visitors","document","objects","Parameter","$visitor"]),Ni.refract=gh(["visitors","document","objects","PathItem","$visitor"]),Ii.refract=gh(["visitors","document","objects","Paths","$visitor"]),Ci.refract=gh(["visitors","document","objects","Reference","$visitor"]),Di.refract=gh(["visitors","document","objects","RequestBody","$visitor"]),qi.refract=gh(["visitors","document","objects","Response","$visitor"]),Ui.refract=gh(["visitors","document","objects","Responses","$visitor"]),za.refract=gh(["visitors","document","objects","Schema","$visitor"]),Ka.refract=gh(["visitors","document","objects","SecurityRequirement","$visitor"]),Xa.refract=gh(["visitors","document","objects","SecurityScheme","$visitor"]),ec.refract=gh(["visitors","document","objects","Server","$visitor"]),sc.refract=gh(["visitors","document","objects","ServerVariable","$visitor"]),nc.refract=gh(["visitors","document","objects","Tag","$visitor"]),oc.refract=gh(["visitors","document","objects","XML","$visitor"]);const yh=class extends Kn{};const vh=class extends Xn{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const bh=class extends ei{};const wh=class extends si{};const Eh=class extends ni{};const xh=class extends oi{};const Sh=class extends ci{};const jh=class extends ui{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Oh=class extends mi{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class Ph extends ce.Om{static default=new Ph("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const Th=Ph;const Ah=class extends pi{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Mh=class extends fi{};const Fh=class extends yi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Nh=class extends bi{};const Rh=class extends Ei{};const Ih=class extends Si{};class kh extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Ch=kh;const $h=class extends Ti{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Dh=class extends Mi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Lh=class extends Ni{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}};const qh=class extends Ii{};class Bh extends Ci{}Object.defineProperty(Bh.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Bh.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Uh=Bh;const Vh=class extends Di{};const Hh=class extends qi{};const Jh=class extends Ui{};const Gh=class extends Ji{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft6"}get idProp(){throw new Vi("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Vi("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 Wh=class extends Yi{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 Vi("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Vi("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 Vi("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Vi("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Vi("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Vi("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var zh=d((function e(t,s,r){if(0===t.length)return s;var n=t[0];if(t.length>1){var i=!jr(r)&&$(n,r)&&"object"==typeof r[n]?r[n]:h(t[1])?[]:{};s=e(Array.prototype.slice.call(t,1),s,i)}return function(e,t,s){if(h(e)&&w(s)){var r=[].concat(s);return r[e]=t,r}var n={};for(var i in s)n[i]=s[i];return n[e]=t,n}(n,s,r)}));const Zh=zh;const Kh=d((function(e,t,s){var r=Array.prototype.slice.call(s,0);return r.splice(e,t),r}));var Yh=d((function(e,t,s){return Zh([e],t,s)}));const Xh=Yh;var Qh=u((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(h(e)&&w(t))return Kh(e,1,t);var s={};for(var r in t)s[r]=t[r];return delete s[e],s}(t[0],s);default:var r=t[0],n=Array.prototype.slice.call(t,1);return null==s[r]?function(e,t){if(h(e)&&w(t))return[].concat(t);var s={};for(var r in t)s[r]=t[r];return s}(r,s):Xh(r,e(n,s[r]),s)}}));const ep=Qh;const tp=class extends zo{constructor(e){super(e),this.element=new Gh}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 sp=class extends Yo{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Xs}};const rp=class extends ho{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const np=class extends qa{constructor(e){super(e),this.element=new Wh}},ip=we(Zh(["visitors","document","objects","JSONSchema","$visitor"],tp),ep(["visitors","document","objects","JSONSchema","fixedFields","id"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","$id"],Ba.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","contains"],Ba.visitors.JSONSchemaOrJSONReferenceVisitor),Zh(["visitors","document","objects","JSONSchema","fixedFields","items"],sp),Zh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Ba.visitors.JSONSchemaOrJSONReferenceVisitor),Zh(["visitors","document","objects","JSONSchema","fixedFields","const"],Ba.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","examples"],rp),Zh(["visitors","document","objects","LinkDescription","$visitor"],np),Zh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Ba.visitors.JSONSchemaOrJSONReferenceVisitor),ep(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Zh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Ba.visitors.JSONSchemaOrJSONReferenceVisitor),ep(["visitors","document","objects","LinkDescription","fixedFields","method"]),ep(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Zh(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Ba.visitors.value))(Ba),op={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...xn},ap=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gh||e(r)&&t("JSONSchemaDraft6",r)&&s("object",r))),cp=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wh||e(r)&&t("linkDescription",r)&&s("object",r))),lp={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Gh),t.register("jSONReference",Wi),t.register("media",Zi),t.register("linkDescription",Wh),t}},up=()=>{const e=lt(lp);return{predicates:{...r,isStringElement:Kr},namespace:e}},dp=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=ip}={})=>{const n=(0,ce.e)(e),i=Nr(r),o=new(Fr(t,i))({specObj:i});return Sn(n,o),Ln(o.element,s,{toolboxCreator:up,visitorOptions:{keyMap:op,nodeTypeGetter:Ua}})},mp=e=>(t,s={})=>dp(t,{specPath:e,...s});Gh.refract=mp(["visitors","document","objects","JSONSchema","$visitor"]),Wh.refract=mp(["visitors","document","objects","LinkDescription","$visitor"]);const hp=class extends Gh{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 Vi('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Vi('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 pp=class extends Wh{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 Vi("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Vi("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 Vi("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Vi("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 _p=class extends tp{constructor(e){super(e),this.element=new hp}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const fp=class extends np{constructor(e){super(e),this.element=new pp}},gp=we(Zh(["visitors","document","objects","JSONSchema","$visitor"],_p),Zh(["visitors","document","objects","JSONSchema","fixedFields","$comment"],ip.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","if"],ip.visitors.JSONSchemaOrJSONReferenceVisitor),Zh(["visitors","document","objects","JSONSchema","fixedFields","then"],ip.visitors.JSONSchemaOrJSONReferenceVisitor),Zh(["visitors","document","objects","JSONSchema","fixedFields","else"],ip.visitors.JSONSchemaOrJSONReferenceVisitor),ep(["visitors","document","objects","JSONSchema","fixedFields","media"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],ip.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],ip.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],ip.visitors.value),Zh(["visitors","document","objects","LinkDescription","$visitor"],fp),Zh(["visitors","document","objects","LinkDescription","fixedFields","anchor"],ip.visitors.value),Zh(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],ip.visitors.value),ep(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Zh(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],ip.visitors.value),Zh(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],ip.visitors.value),Zh(["visitors","document","objects","LinkDescription","fixedFields","description"],ip.visitors.value),Zh(["visitors","document","objects","LinkDescription","fixedFields","$comment"],ip.visitors.value),Zh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],ip.visitors.JSONSchemaOrJSONReferenceVisitor),ep(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Zh(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],ip.visitors.value))(ip),yp={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...xn},vp=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof hp||e(r)&&t("JSONSchemaDraft7",r)&&s("object",r))),bp=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof pp||e(r)&&t("linkDescription",r)&&s("object",r))),wp={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",hp),t.register("jSONReference",Wi),t.register("linkDescription",pp),t}},Ep=()=>{const e=lt(wp);return{predicates:{...n,isStringElement:Kr},namespace:e}},xp=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=gp}={})=>{const n=(0,ce.e)(e),i=Nr(r),o=new(Fr(t,i))({specObj:i});return Sn(n,o),Ln(o.element,s,{toolboxCreator:Ep,visitorOptions:{keyMap:yp,nodeTypeGetter:Ua}})},Sp=e=>(t,s={})=>xp(t,{specPath:e,...s});hp.refract=Sp(["visitors","document","objects","JSONSchema","$visitor"]),pp.refract=Sp(["visitors","document","objects","LinkDescription","$visitor"]);const jp=class extends hp{constructor(e,t,s){super(e,t,s),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get definitions(){throw new Vi("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Vi("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get dependencies(){throw new Vi("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Vi("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}};const Op=class extends pp{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const Pp=class extends _p{constructor(e){super(e),this.element=new jp}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Bo.prototype.ObjectElement.call(this,e);return Kr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const Tp=class extends ho{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Ap=class extends ho{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Mp extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=ne(["document","objects","JSONSchema"])}}const Fp=Mp;class Np extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xs}}const Rp=Np;class Ip extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xs}}const kp=Ip;class Cp extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xs}}const $p=Cp;class Dp extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ne(["document","objects","JSONSchema"])}}const Lp=Dp;class qp extends(No(qo,Uo,ho)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Xs}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xs}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Xs}}const Bp=qp;class Up extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Vp=Up;class Hp extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Jp=Hp;const Gp=class extends ho{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const Wp=class extends fp{constructor(e){super(e),this.element=new Op}},zp=we(Zh(["visitors","document","objects","JSONSchema","$visitor"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Tp),Zh(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],gp.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],gp.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],gp.visitors.value),ep(["visitors","document","objects","JSONReference","$visitor"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","$ref"],Ap),ep(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Fp),Zh(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Rp),Zh(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],kp),Zh(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],$p),Zh(["visitors","document","objects","JSONSchema","fixedFields","not"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","if"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","then"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","else"],Pp),ep(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],Lp),Zh(["visitors","document","objects","JSONSchema","fixedFields","items"],Bp),Zh(["visitors","document","objects","JSONSchema","fixedFields","contains"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","properties"],Vp),Zh(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Jp),Zh(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],gp.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","minContains"],gp.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Gp),Zh(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],gp.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Pp),Zh(["visitors","document","objects","LinkDescription","$visitor"],Wp),Zh(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Pp),Zh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Pp),Zh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Pp),Zh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Pp))(gp),Zp={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...xn},Kp=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jp||e(r)&&t("JSONSchema201909",r)&&s("object",r))),Yp=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Op||e(r)&&t("linkDescription",r)&&s("object",r))),Xp={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",jp),t.register("linkDescription",Op),t}},Qp=()=>{const e=lt(Xp);return{predicates:{...i,isStringElement:Kr},namespace:e}},e_=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=zp}={})=>{const n=(0,ce.e)(e),i=Nr(r),o=new(Fr(t,i))({specObj:i});return Sn(n,o),Ln(o.element,s,{toolboxCreator:Qp,visitorOptions:{keyMap:Zp,nodeTypeGetter:Ua}})},t_=e=>(t,s={})=>e_(t,{specPath:e,...s});jp.refract=t_(["visitors","document","objects","JSONSchema","$visitor"]),Op.refract=t_(["visitors","document","objects","LinkDescription","$visitor"]);const s_=class extends jp{constructor(e,t,s){super(e,t,s),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new Vi("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Vi("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new Vi("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Vi("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const r_=class extends Op{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const n_=class extends Pp{constructor(e){super(e),this.element=new s_}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class i_ extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xs}}const o_=i_;const a_=class extends Wp{constructor(e){super(e),this.element=new r_}},c_=we(Zh(["visitors","document","objects","JSONSchema","$visitor"],n_),ep(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],zp.visitors.value),ep(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],zp.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","not"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","if"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","then"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","else"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],o_),Zh(["visitors","document","objects","JSONSchema","fixedFields","items"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","contains"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],n_),ep(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],n_),Zh(["visitors","document","objects","LinkDescription","$visitor"],a_),Zh(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],n_),Zh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],n_),Zh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],n_),Zh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],n_))(zp),l_={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...xn},u_=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof s_||e(r)&&t("JSONSchema202012",r)&&s("object",r))),d_=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof r_||e(r)&&t("linkDescription",r)&&s("object",r))),m_={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",s_),t.register("linkDescription",r_),t}},h_=()=>{const e=lt(m_);return{predicates:{...o,isStringElement:Kr},namespace:e}},p_=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=c_}={})=>{const n=(0,ce.e)(e),i=Nr(r),o=new(Fr(t,i))({specObj:i});return Sn(n,o),Ln(o.element,s,{toolboxCreator:h_,visitorOptions:{keyMap:l_,nodeTypeGetter:Ua}})},__=e=>(t,s={})=>p_(t,{specPath:e,...s});s_.refract=__(["visitors","document","objects","JSONSchema","$visitor"]),r_.refract=__(["visitors","document","objects","LinkDescription","$visitor"]);const f_=class extends s_{constructor(e,t,s){super(e,t,s),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}};const g_=class extends Ka{};const y_=class extends Xa{};const v_=class extends ec{};const b_=class extends sc{};const w_=class extends nc{};const E_=class extends oc{};class x_ extends(No(yc,cc)){constructor(e){super(e),this.element=new Ch,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,yc.prototype.ObjectElement.call(this,e)}}const S_=x_,j_=dh.visitors.document.objects.Info.$visitor;const O_=class extends j_{constructor(e){super(e),this.element=new Oh}},P_=dh.visitors.document.objects.Contact.$visitor;const T_=class extends P_{constructor(e){super(e),this.element=new bh}},A_=dh.visitors.document.objects.License.$visitor;const M_=class extends A_{constructor(e){super(e),this.element=new Ah}},F_=dh.visitors.document.objects.Link.$visitor;const N_=class extends F_{constructor(e){super(e),this.element=new Mh}};class R_ extends(No(lc,cc)){StringElement(e){const t=new Th(io(e));return this.copyMetaAndAttributes(e,t),this.element=t,Xs}}const I_=R_,k_=dh.visitors.document.objects.Server.$visitor;const C_=class extends k_{constructor(e){super(e),this.element=new v_}},$_=dh.visitors.document.objects.ServerVariable.$visitor;const D_=class extends $_{constructor(e){super(e),this.element=new b_}},L_=dh.visitors.document.objects.MediaType.$visitor;const q_=class extends L_{constructor(e){super(e),this.element=new Fh}},B_=dh.visitors.document.objects.SecurityRequirement.$visitor;const U_=class extends B_{constructor(e){super(e),this.element=new g_}},V_=dh.visitors.document.objects.Components.$visitor;const H_=class extends V_{constructor(e){super(e),this.element=new vh}},J_=dh.visitors.document.objects.Tag.$visitor;const G_=class extends J_{constructor(e){super(e),this.element=new w_}},W_=dh.visitors.document.objects.Reference.$visitor;const z_=class extends W_{constructor(e){super(e),this.element=new Uh}},Z_=dh.visitors.document.objects.Parameter.$visitor;const K_=class extends Z_{constructor(e){super(e),this.element=new Dh}},Y_=dh.visitors.document.objects.Header.$visitor;const X_=class extends Y_{constructor(e){super(e),this.element=new jh}},Q_=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof yh||e(r)&&t("callback",r)&&s("object",r))),ef=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vh||e(r)&&t("components",r)&&s("object",r))),tf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof bh||e(r)&&t("contact",r)&&s("object",r))),sf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof xh||e(r)&&t("example",r)&&s("object",r))),rf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Sh||e(r)&&t("externalDocumentation",r)&&s("object",r))),nf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jh||e(r)&&t("header",r)&&s("object",r))),of=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Oh||e(r)&&t("info",r)&&s("object",r))),af=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Th||e(r)&&t("jsonSchemaDialect",r)&&s("string",r))),cf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ah||e(r)&&t("license",r)&&s("object",r))),lf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mh||e(r)&&t("link",r)&&s("object",r))),uf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ih||e(r)&&t("openapi",r)&&s("string",r))),df=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Ch||e(n)&&t("openApi3_1",n)&&s("object",n)&&r("api",n))),mf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $h||e(r)&&t("operation",r)&&s("object",r))),hf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Dh||e(r)&&t("parameter",r)&&s("object",r))),pf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Lh||e(r)&&t("pathItem",r)&&s("object",r))),_f=e=>{if(!pf(e))return!1;if(!Kr(e.$ref))return!1;const t=io(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},ff=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qh||e(r)&&t("paths",r)&&s("object",r))),gf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Uh||e(r)&&t("reference",r)&&s("object",r))),yf=e=>{if(!gf(e))return!1;if(!Kr(e.$ref))return!1;const t=io(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},vf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vh||e(r)&&t("requestBody",r)&&s("object",r))),bf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hh||e(r)&&t("response",r)&&s("object",r))),wf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jh||e(r)&&t("responses",r)&&s("object",r))),Ef=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof f_||e(r)&&t("schema",r)&&s("object",r))),xf=e=>Qr(e)&&e.classes.includes("boolean-json-schema"),Sf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof g_||e(r)&&t("securityRequirement",r)&&s("object",r))),jf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof y_||e(r)&&t("securityScheme",r)&&s("object",r))),Of=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof v_||e(r)&&t("server",r)&&s("object",r))),Pf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof b_||e(r)&&t("serverVariable",r)&&s("object",r))),Tf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fh||e(r)&&t("mediaType",r)&&s("object",r)));class Af extends(No(yc,Uo,cc)){constructor(e){super(e),this.element=new f_,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Th.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=yc.prototype.ObjectElement.call(this,e);return Kr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return n_.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&af(this.openApiSemanticElement.jsonSchemaDialect)?io(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Kr(this.openApiGenericElement.get("jsonSchemaDialect"))?io(this.openApiGenericElement.get("jsonSchemaDialect")):io(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return n_.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return n_.prototype.handleSchemaIdentifier.call(this,e)}}const Mf=Af;const Ff=class extends Fp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Nf=class extends Rp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Rf=class extends kp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const If=class extends $p{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const kf=class extends Lp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Cf=class extends o_{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const $f=class extends Vp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Df=class extends Jp{constructor(e){super(e),this.passingOptionsNames.push("parent")}},Lf=dh.visitors.document.objects.Discriminator.$visitor;const qf=class extends Lf{constructor(e){super(e),this.element=new wh,this.canSupportSpecificationExtensions=!0}},Bf=dh.visitors.document.objects.XML.$visitor;const Uf=class extends Bf{constructor(e){super(e),this.element=new E_}};class Vf extends(No(Cc,cc)){constructor(e){super(e),this.element=new zu,this.specPath=ne(["document","objects","Schema"])}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(Ef).forEach(((e,t)=>{e.setMetaProperty("schemaName",io(t))})),t}}const Hf=Vf;class Jf extends ce.Sh{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(Jf.primaryClass)}}const Gf=Jf;class Wf extends(No(Cc,cc)){constructor(e){super(e),this.element=new Gf,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const zf=Wf,Zf=dh.visitors.document.objects.Example.$visitor;const Kf=class extends Zf{constructor(e){super(e),this.element=new xh}},Yf=dh.visitors.document.objects.ExternalDocumentation.$visitor;const Xf=class extends Yf{constructor(e){super(e),this.element=new Sh}},Qf=dh.visitors.document.objects.Encoding.$visitor;const eg=class extends Qf{constructor(e){super(e),this.element=new Eh}},tg=dh.visitors.document.objects.Paths.$visitor;const sg=class extends tg{constructor(e){super(e),this.element=new qh}},rg=dh.visitors.document.objects.RequestBody.$visitor;const ng=class extends rg{constructor(e){super(e),this.element=new Vh}},ig=dh.visitors.document.objects.Callback.$visitor;const og=class extends ig{constructor(e){super(e),this.element=new yh,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=ig.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},ag=dh.visitors.document.objects.Response.$visitor;const cg=class extends ag{constructor(e){super(e),this.element=new Hh}},lg=dh.visitors.document.objects.Responses.$visitor;const ug=class extends lg{constructor(e){super(e),this.element=new Jh}},dg=dh.visitors.document.objects.Operation.$visitor;const mg=class extends dg{constructor(e){super(e),this.element=new $h}},hg=dh.visitors.document.objects.PathItem.$visitor;const pg=class extends hg{constructor(e){super(e),this.element=new Lh}},_g=dh.visitors.document.objects.SecurityScheme.$visitor;const fg=class extends _g{constructor(e){super(e),this.element=new y_}},gg=dh.visitors.document.objects.OAuthFlows.$visitor;const yg=class extends gg{constructor(e){super(e),this.element=new Rh}},vg=dh.visitors.document.objects.OAuthFlow.$visitor;const bg=class extends vg{constructor(e){super(e),this.element=new Nh}};class wg extends ce.Sh{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(wg.primaryClass)}}const Eg=wg;class xg extends(No(Cc,cc)){constructor(e){super(e),this.element=new Eg,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(pf).forEach(((e,t)=>{e.setMetaProperty("webhook-name",io(t))})),t}}const Sg=xg,{JSONSchema:jg,LinkDescription:Og}=c_.visitors.document.objects,Pg={visitors:{value:dh.visitors.value,document:{objects:{OpenApi:{$visitor:S_,fixedFields:{openapi:dh.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:I_,servers:dh.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Sg,components:{$ref:"#/visitors/document/objects/Components"},security:dh.visitors.document.objects.OpenApi.fixedFields.security,tags:dh.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:O_,fixedFields:{title:dh.visitors.document.objects.Info.fixedFields.title,description:dh.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:dh.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:dh.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:T_,fixedFields:{name:dh.visitors.document.objects.Contact.fixedFields.name,url:dh.visitors.document.objects.Contact.fixedFields.url,email:dh.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:M_,fixedFields:{name:dh.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:dh.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:C_,fixedFields:{url:dh.visitors.document.objects.Server.fixedFields.url,description:dh.visitors.document.objects.Server.fixedFields.description,variables:dh.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:D_,fixedFields:{enum:dh.visitors.document.objects.ServerVariable.fixedFields.enum,default:dh.visitors.document.objects.ServerVariable.fixedFields.default,description:dh.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:H_,fixedFields:{schemas:Hf,responses:dh.visitors.document.objects.Components.fixedFields.responses,parameters:dh.visitors.document.objects.Components.fixedFields.parameters,examples:dh.visitors.document.objects.Components.fixedFields.examples,requestBodies:dh.visitors.document.objects.Components.fixedFields.requestBodies,headers:dh.visitors.document.objects.Components.fixedFields.headers,securitySchemes:dh.visitors.document.objects.Components.fixedFields.securitySchemes,links:dh.visitors.document.objects.Components.fixedFields.links,callbacks:dh.visitors.document.objects.Components.fixedFields.callbacks,pathItems:zf}},Paths:{$visitor:sg},PathItem:{$visitor:pg,fixedFields:{$ref:dh.visitors.document.objects.PathItem.fixedFields.$ref,summary:dh.visitors.document.objects.PathItem.fixedFields.summary,description:dh.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:dh.visitors.document.objects.PathItem.fixedFields.servers,parameters:dh.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:mg,fixedFields:{tags:dh.visitors.document.objects.Operation.fixedFields.tags,summary:dh.visitors.document.objects.Operation.fixedFields.summary,description:dh.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:dh.visitors.document.objects.Operation.fixedFields.operationId,parameters:dh.visitors.document.objects.Operation.fixedFields.parameters,requestBody:dh.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:dh.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:dh.visitors.document.objects.Operation.fixedFields.deprecated,security:dh.visitors.document.objects.Operation.fixedFields.security,servers:dh.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Xf,fixedFields:{description:dh.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:dh.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:K_,fixedFields:{name:dh.visitors.document.objects.Parameter.fixedFields.name,in:dh.visitors.document.objects.Parameter.fixedFields.in,description:dh.visitors.document.objects.Parameter.fixedFields.description,required:dh.visitors.document.objects.Parameter.fixedFields.required,deprecated:dh.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:dh.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:dh.visitors.document.objects.Parameter.fixedFields.style,explode:dh.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:dh.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:dh.visitors.document.objects.Parameter.fixedFields.example,examples:dh.visitors.document.objects.Parameter.fixedFields.examples,content:dh.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:ng,fixedFields:{description:dh.visitors.document.objects.RequestBody.fixedFields.description,content:dh.visitors.document.objects.RequestBody.fixedFields.content,required:dh.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:q_,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:dh.visitors.document.objects.MediaType.fixedFields.example,examples:dh.visitors.document.objects.MediaType.fixedFields.examples,encoding:dh.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:eg,fixedFields:{contentType:dh.visitors.document.objects.Encoding.fixedFields.contentType,headers:dh.visitors.document.objects.Encoding.fixedFields.headers,style:dh.visitors.document.objects.Encoding.fixedFields.style,explode:dh.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:dh.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:ug,fixedFields:{default:dh.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:cg,fixedFields:{description:dh.visitors.document.objects.Response.fixedFields.description,headers:dh.visitors.document.objects.Response.fixedFields.headers,content:dh.visitors.document.objects.Response.fixedFields.content,links:dh.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:og},Example:{$visitor:Kf,fixedFields:{summary:dh.visitors.document.objects.Example.fixedFields.summary,description:dh.visitors.document.objects.Example.fixedFields.description,value:dh.visitors.document.objects.Example.fixedFields.value,externalValue:dh.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:N_,fixedFields:{operationRef:dh.visitors.document.objects.Link.fixedFields.operationRef,operationId:dh.visitors.document.objects.Link.fixedFields.operationId,parameters:dh.visitors.document.objects.Link.fixedFields.parameters,requestBody:dh.visitors.document.objects.Link.fixedFields.requestBody,description:dh.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:X_,fixedFields:{description:dh.visitors.document.objects.Header.fixedFields.description,required:dh.visitors.document.objects.Header.fixedFields.required,deprecated:dh.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:dh.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:dh.visitors.document.objects.Header.fixedFields.style,explode:dh.visitors.document.objects.Header.fixedFields.explode,allowReserved:dh.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:dh.visitors.document.objects.Header.fixedFields.example,examples:dh.visitors.document.objects.Header.fixedFields.examples,content:dh.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:G_,fixedFields:{name:dh.visitors.document.objects.Tag.fixedFields.name,description:dh.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:z_,fixedFields:{$ref:dh.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Og},Schema:{$visitor:Mf,fixedFields:{...jg.fixedFields,$defs:Ff,allOf:Nf,anyOf:Rf,oneOf:If,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:kf,prefixItems:Cf,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:$f,patternProperties:Df,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:qf,fixedFields:{propertyName:dh.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:dh.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Uf,fixedFields:{name:dh.visitors.document.objects.XML.fixedFields.name,namespace:dh.visitors.document.objects.XML.fixedFields.namespace,prefix:dh.visitors.document.objects.XML.fixedFields.prefix,attribute:dh.visitors.document.objects.XML.fixedFields.attribute,wrapped:dh.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:fg,fixedFields:{type:dh.visitors.document.objects.SecurityScheme.fixedFields.type,description:dh.visitors.document.objects.SecurityScheme.fixedFields.description,name:dh.visitors.document.objects.SecurityScheme.fixedFields.name,in:dh.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:dh.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:dh.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:dh.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:yg,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:bg,fixedFields:{authorizationUrl:dh.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:dh.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:dh.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:dh.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:U_}},extension:{$visitor:dh.visitors.document.extension.$visitor}}}},Tg=e=>{if(Zr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ag={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...xn},Mg=function(){const e=Ng,t=Fg,s=this,r="parser.js: Parser(): ";s.ast=void 0,s.stats=void 0,s.trace=void 0,s.callbacks=[];let n,i,o,a,c,l,u,d=0,m=0,h=0,p=0,_=0,f=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};s.parse=(g,y,b,w)=>{const E=`${r}parse(): `;d=0,m=0,h=0,p=0,_=0,n=void 0,i=void 0,o=void 0,a=void 0,f.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(b),n=g.rules,i=g.udts;const x=y.toLowerCase();let S;for(const e in n)if(n.hasOwnProperty(e)&&x===n[e].lower){S=n[e].index;break}if(void 0===S)throw new Error(`${E}start rule name '${startRule}' not recognized`);(()=>{const e=`${r}initializeCallbacks(): `;let t,o;for(c=[],l=[],t=0;t<n.length;t+=1)c[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<n.length;t+=1)a.push(n[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const r in s.callbacks)if(s.callbacks.hasOwnProperty(r)){if(t=a.indexOf(r.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${r}' not a rule or udt name`);if(o=s.callbacks[r]?s.callbacks[r]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${r}] must be function reference or falsy)`);t<n.length?c[t]=o:l[t-n.length]=o}})(),s.trace&&s.trace.init(n,i,a),s.stats&&s.stats.init(n,i),s.ast&&s.ast.init(n,i,a),u=w,o=[{type:e.RNM,index:S}],v(0,0),o=void 0;let j=!1;switch(f.state){case e.ACTIVE:throw new Error(`${E}final state should never be 'ACTIVE'`);case e.NOMATCH:j=!1;break;case e.EMPTY:case e.MATCH:j=f.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:j,state:f.state,stateName:e.idName(f.state),length:a.length,matched:f.phraseLength,maxMatched:_,maxTreeDepth:h,nodeHits:p}};const g=(t,s,n,i)=>{if(s.phraseLength>n){let e=`${r}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(s.state){case e.ACTIVE:if(!i)throw new Error(`${r}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:s.phraseLength=0;break;case e.MATCH:0===s.phraseLength&&(s.state=e.EMPTY);break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${r}opRNM(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}},y=(t,c)=>{let m,h,p;const _=o[t],g=i[_.index];f.UdtIndex=g.index,d||(p=s.ast&&s.ast.udtDefined(_.index),p&&(h=n.length+_.index,m=s.ast.getLength(),s.ast.down(h,g.name)));const y=a.length-c;l[_.index](f,a,c,u),((t,s,n)=>{if(s.phraseLength>n){let e=`${r}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(s.state){case e.ACTIVE:throw new Error(`${r}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);s.phraseLength=0;break;case e.MATCH:if(0===s.phraseLength){if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);s.state=e.EMPTY}break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${r}opUDT(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}})(g,f,y),d||p&&(f.state===e.NOMATCH?s.ast.setLength(m):s.ast.up(h,g.name,c,f.phraseLength))},v=(t,i)=>{const l=`${r}opExecute(): `,b=o[t];switch(p+=1,m>h&&(h=m),m+=1,f.refresh(),s.trace&&s.trace.down(b,i),b.type){case e.ALT:((t,s)=>{const r=o[t];for(let t=0;t<r.children.length&&(v(r.children[t],s),f.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,r)=>{let n,i,a,c;const l=o[t];s.ast&&(i=s.ast.getLength()),n=!0,a=r,c=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],a),f.state===e.NOMATCH){n=!1;break}a+=f.phraseLength,c+=f.phraseLength}n?(f.state=0===c?e.EMPTY:e.MATCH,f.phraseLength=c):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(i))})(t,i);break;case e.REP:((t,r)=>{let n,i,c,l;const u=o[t];if(0===u.max)return f.state=e.EMPTY,void(f.phraseLength=0);for(i=r,c=0,l=0,s.ast&&(n=s.ast.getLength());!(i>=a.length)&&(v(t+1,i),f.state!==e.NOMATCH)&&f.state!==e.EMPTY&&(l+=1,c+=f.phraseLength,i+=f.phraseLength,l!==u.max););f.state===e.EMPTY||l>=u.min?(f.state=0===c?e.EMPTY:e.MATCH,f.phraseLength=c):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(n))})(t,i);break;case e.RNM:((t,r)=>{let i,l,m;const h=o[t],p=n[h.index],_=c[p.index];if(d||(l=s.ast&&s.ast.ruleDefined(h.index),l&&(i=s.ast.getLength(),s.ast.down(h.index,n[h.index].name))),_){const t=a.length-r;_(f,a,r,u),g(p,f,t,!0),f.state===e.ACTIVE&&(m=o,o=p.opcodes,v(0,r),o=m,_(f,a,r,u),g(p,f,t,!1))}else m=o,o=p.opcodes,v(0,r,f),o=m;d||l&&(f.state===e.NOMATCH?s.ast.setLength(i):s.ast.up(h.index,p.name,r,f.phraseLength))})(t,i);break;case e.TRG:((t,s)=>{const r=o[t];f.state=e.NOMATCH,s<a.length&&r.min<=a[s]&&a[s]<=r.max&&(f.state=e.MATCH,f.phraseLength=1)})(t,i);break;case e.TBS:((t,s)=>{const r=o[t],n=r.string.length;if(f.state=e.NOMATCH,s+n<=a.length){for(let e=0;e<n;e+=1)if(a[s+e]!==r.string[e])return;f.state=e.MATCH,f.phraseLength=n}})(t,i);break;case e.TLS:((t,s)=>{let r;const n=o[t];f.state=e.NOMATCH;const i=n.string.length;if(0!==i){if(s+i<=a.length){for(let e=0;e<i;e+=1)if(r=a[s+e],r>=65&&r<=90&&(r+=32),r!==n.string[e])return;f.state=e.MATCH,f.phraseLength=i}}else f.state=e.EMPTY})(t,i);break;case e.UDT:y(t,i);break;case e.AND:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.EMPTY;break;case e.NOMATCH:f.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${f.state}`)}})(t,i);break;case e.NOT:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.NOMATCH;break;case e.NOMATCH:f.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${f.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}d||i+f.phraseLength>_&&(_=i+f.phraseLength),s.stats&&s.stats.collect(b,f),s.trace&&s.trace.up(b,f.state,i,f.phraseLength),m-=1}},Fg={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,s)=>{let r=e;for(;!(void 0===t||t<0);){if(void 0===s){r=e.slice(t);break}if(s<=0)return"";r=e.slice(t,t+s);break}return String.fromCodePoint(...r)}},Ng={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case Ng.ALT:return"ALT";case Ng.CAT:return"CAT";case Ng.REP:return"REP";case Ng.RNM:return"RNM";case Ng.TRG:return"TRG";case Ng.TBS:return"TBS";case Ng.TLS:return"TLS";case Ng.UDT:return"UDT";case Ng.AND:return"AND";case Ng.NOT:return"NOT";case Ng.ACTIVE:return"ACTIVE";case Ng.EMPTY:return"EMPTY";case Ng.MATCH:return"MATCH";case Ng.NOMATCH:return"NOMATCH";case Ng.SEM_PRE:return"SEM_PRE";case Ng.SEM_POST:return"SEM_POST";case Ng.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Rg(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}class Ig extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const kg=Ig;new Rg;new Rg,new Mg,new Rg,new Mg,new Rg,new Mg,new Rg,new Mg;const Cg=e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};const $g=class extends kg{},Dg=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map((e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return Cg(String(e))})).join("/")}`}catch(t){throw new $g("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};const Lg={namespace:e=>{const{base:t}=e;return t.register("callback",yh),t.register("components",vh),t.register("contact",bh),t.register("discriminator",wh),t.register("encoding",Eh),t.register("example",xh),t.register("externalDocumentation",Sh),t.register("header",jh),t.register("info",Oh),t.register("jsonSchemaDialect",Th),t.register("license",Ah),t.register("link",Mh),t.register("mediaType",Fh),t.register("oAuthFlow",Nh),t.register("oAuthFlows",Rh),t.register("openapi",Ih),t.register("openApi3_1",Ch),t.register("operation",$h),t.register("parameter",Dh),t.register("pathItem",Lh),t.register("paths",qh),t.register("reference",Uh),t.register("requestBody",Vh),t.register("response",Hh),t.register("responses",Jh),t.register("schema",f_),t.register("securityRequirement",g_),t.register("securityScheme",y_),t.register("server",v_),t.register("serverVariable",b_),t.register("tag",w_),t.register("xml",E_),t}},qg=e=>{const t=e.reduce(((t,s,r)=>{if(sn(s)){const e=String(io(s.key));t.push(e)}else if(tn(e[r-2])){const n=String(e[r-2].content.indexOf(s));t.push(n)}return t}),[]);return Dg(t)},Bg=()=>{const e=lt(Lg);return{predicates:{...a,isElement:Zr,isStringElement:Kr,isArrayElement:tn,isObjectElement:en,isMemberElement:sn,isServersElement:Al,includesClasses:mn,hasElementSourceMap:un},ancestorLineageToJSONPointer:qg,namespace:e}},Ug=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=Nr(Pg),i=new(Fr(t,n))({specObj:n});return Sn(r,i),Ln(i.element,s,{toolboxCreator:Bg,visitorOptions:{keyMap:Ag,nodeTypeGetter:Tg}})},Vg=e=>(t,s={})=>Ug(t,{specPath:e,...s});yh.refract=Vg(["visitors","document","objects","Callback","$visitor"]),vh.refract=Vg(["visitors","document","objects","Components","$visitor"]),bh.refract=Vg(["visitors","document","objects","Contact","$visitor"]),xh.refract=Vg(["visitors","document","objects","Example","$visitor"]),wh.refract=Vg(["visitors","document","objects","Discriminator","$visitor"]),Eh.refract=Vg(["visitors","document","objects","Encoding","$visitor"]),Sh.refract=Vg(["visitors","document","objects","ExternalDocumentation","$visitor"]),jh.refract=Vg(["visitors","document","objects","Header","$visitor"]),Oh.refract=Vg(["visitors","document","objects","Info","$visitor"]),Th.refract=Vg(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Ah.refract=Vg(["visitors","document","objects","License","$visitor"]),Mh.refract=Vg(["visitors","document","objects","Link","$visitor"]),Fh.refract=Vg(["visitors","document","objects","MediaType","$visitor"]),Nh.refract=Vg(["visitors","document","objects","OAuthFlow","$visitor"]),Rh.refract=Vg(["visitors","document","objects","OAuthFlows","$visitor"]),Ih.refract=Vg(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Ch.refract=Vg(["visitors","document","objects","OpenApi","$visitor"]),$h.refract=Vg(["visitors","document","objects","Operation","$visitor"]),Dh.refract=Vg(["visitors","document","objects","Parameter","$visitor"]),Lh.refract=Vg(["visitors","document","objects","PathItem","$visitor"]),qh.refract=Vg(["visitors","document","objects","Paths","$visitor"]),Uh.refract=Vg(["visitors","document","objects","Reference","$visitor"]),Vh.refract=Vg(["visitors","document","objects","RequestBody","$visitor"]),Hh.refract=Vg(["visitors","document","objects","Response","$visitor"]),Jh.refract=Vg(["visitors","document","objects","Responses","$visitor"]),f_.refract=Vg(["visitors","document","objects","Schema","$visitor"]),g_.refract=Vg(["visitors","document","objects","SecurityRequirement","$visitor"]),y_.refract=Vg(["visitors","document","objects","SecurityScheme","$visitor"]),v_.refract=Vg(["visitors","document","objects","Server","$visitor"]),b_.refract=Vg(["visitors","document","objects","ServerVariable","$visitor"]),w_.refract=Vg(["visitors","document","objects","Tag","$visitor"]),E_.refract=Vg(["visitors","document","objects","XML","$visitor"]);const Hg=l((function(e){return _(-1,e)}));const Jg=class extends Vi{};const Gg=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Jg("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Jg("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Jg("latest method in MediaTypes class is not yet implemented.")}};class Wg extends Gg{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(s)))||this.unknownMediaType}latest(e="generic"){return Hg(this.filterByFormat(e))}}const zg=new Wg("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),Zg=new Wg(...zg.filterByFormat("generic"),...zg.filterByFormat("yaml")),Kg=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m,Yg=async e=>Kg.test(e)&&await(async e=>{try{return!(await Et(e)).rootNode.isError}catch{return!1}})(e),Xg=async(e,t={})=>{const s=g({},"refractorOpts",t),r=v(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1}={})=>{const s=await Et(e);return zn(s,{sourceMap:t})})(e,r),{result:i}=n;if(ae(i)){const e=Ch.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},Qg=lt(Lg)})(),__webpack_exports__})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiYaml3_1=t():e.apidomParserAdapterOpenApiYaml3_1=t()}(self,(()=>(()=>{var __webpack_modules__={85:(e,t,s)=>{"use strict";s(9828);var r=s(1100),n=s(8900),i=s(1811),o=s(6625);for(var a in r)i(n[a],a),o[a]=o.Array},88:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(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 r=s(9098),n=s(4713),i=s(4871),o=s(3410),a=s(2769),c=s(1926),l=s(3671),u=s(3491),d=s(1811),m=s(3999),h=s(3508),p=s(8655),_=s(6625),f=s(2621),g=o.PROPER,y=o.CONFIGURABLE,v=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,w=p("iterator"),E="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,s,o,p,f,O){c(s,t,o);var P,T,A,M=function(e){if(e===p&&k)return k;if(!b&&e&&e in R)return R[e];switch(e){case E:case x:case S:return function(){return new s(this,e)}}return function(){return new s(this)}},F=t+" Iterator",N=!1,R=e.prototype,I=R[w]||R["@@iterator"]||p&&R[p],k=!b&&I||M(p),C="Array"===t&&R.entries||I;if(C&&(P=l(C.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===v||(u?u(P,v):a(P[w])||h(P,w,j)),d(P,F,!0,!0),i&&(_[F]=j)),g&&p===x&&I&&I.name!==x&&(!i&&y?m(R,"name",x):(N=!0,k=function(){return n(I,this)})),p)if(T={values:M(x),keys:f?k:M(E),entries:M(S)},O)for(A in T)(b||N||!(A in R))&&h(R,A,T[A]);else r({target:t,proto:!0,forced:b||N},T);return i&&!O||R[w]===k||h(R,w,k,{name:p}),_[t]=k,T}},195:(e,t,s)=>{var r=s(4882),n=s(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(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 r=s(4572),n=s(4713),i=s(7235),o=s(459),a=s(2877),c=s(8130),l=s(4317),u=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 f,g,y,v,b,w,E,x=s&&s.that,S=!(!s||!s.AS_ENTRIES),j=!(!s||!s.IS_RECORD),O=!(!s||!s.IS_ITERATOR),P=!(!s||!s.INTERRUPTED),T=r(t,x),A=function(e){return f&&m(f,"normal",e),new p(!0,e)},M=function(e){return S?(i(e),P?T(e[0],e[1],A):T(e[0],e[1])):P?T(e,A):T(e)};if(j)f=e.iterator;else if(O)f=e;else{if(!(g=d(e)))throw new h(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((b=M(e[y]))&&l(_,b))return b;return new p(!1)}f=u(e,g)}for(w=j?e.next:f.next;!(E=n(w,f)).done;){try{b=M(E.value)}catch(e){m(f,"throw",e)}if("object"==typeof b&&b&&l(_,b))return b}return new p(!1)}},239:(e,t,s)=>{"use strict";s(5442);var r=s(6656);s(85),e.exports=r},262:(e,t,s)=>{"use strict";var r=s(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},353:(e,t,s)=>{var r=s(1340),n=s(3934),i=s(8861),o=s(1182),a=s(8486),c=s(3142),l=s(5853),u=s(8666),d="[object Arguments]",m="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,_,f,g){var y=c(e),v=c(t),b=y?m:a(e),w=v?m:a(t),E=(b=b==d?h:b)==h,x=(w=w==d?h:w)==h,S=b==w;if(S&&l(e)){if(!l(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||u(e)?n(e,t,s,_,f,g):i(e,t,b,s,_,f,g);if(!(1&s)){var j=E&&p.call(e,"__wrapped__"),O=x&&p.call(t,"__wrapped__");if(j||O){var P=j?e.value():e,T=O?t.value():t;return g||(g=new r),f(P,T,s,_,g)}}return!!S&&(g||(g=new r),o(e,t,s,_,f,g))}},358:(e,t,s)=>{var r=s(6137),n=s(3283),i=s(3142),o=s(5853),a=s(9632),c=s(8666),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),u=!s&&n(e),d=!s&&!u&&o(e),m=!s&&!u&&!d&&c(e),h=s||u||d||m,p=h?r(e.length,String):[],_=p.length;for(var f in e)!t&&!l.call(e,f)||h&&("length"==f||d&&("offset"==f||"parent"==f)||m&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,_))||p.push(f);return p}},393:(e,t,s)=>{var r=s(8244),n=s(7979),i=s(1211);e.exports=function(e){return r(e,i,n)}},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 r=s(9098),n=s(8900),i=s(7013),o=s(6453),a="WebAssembly",c=n[a],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var s={};s[e]=o(e,t,l),r({global:!0,constructor:!0,arity:1,forced:l},s)},d=function(e,t){if(c&&c[e]){var s={};s[e]=o(a+"."+e,t,l),r({target:a,stat:!0,constructor:!0,arity:1,forced:l},s)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("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 r=s(4713),n=s(262),i=s(6281),o=s(4674),a=s(9258),c=s(8655),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var s,c=o(e,u);if(c){if(void 0===t&&(t="default"),s=r(c,e,t),!n(s)||i(s))return s;throw new l("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 r=s(8631);e.exports=class extends r{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 r=s(7379),n=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)&&n(e.length)&&!!o[r(e)]}},701:(e,t,s)=>{"use strict";var r=s(6100),n=s(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},814:(e,t,s)=>{"use strict";var r=s(2769),n=s(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(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 r=s(8407),n=s(4674),i=s(3057),o=s(6625),a=s(8655)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[r(e)]}},986:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==r(e)}},1003:(e,t,s)=>{"use strict";var r=s(8099),n=s(8900),i=s(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(n[e]):r[e]&&r[e][t]||n[e]&&n[e][t]}},1005:(e,t,s)=>{"use strict";var r=s(3273),n=s(4574),i=s(8130),o=function(e){return function(t,s,o){var a=r(t),c=i(a);if(0===c)return!e&&-1;var l,u=n(o,c);if(e&&s!=s){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===s)return e||u||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 r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var s=t[e];return"__lodash_hash_undefined__"===s?void 0:s}return n.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var s=-1,r=t.length,n=e.length;++s<r;)e[n+s]=t[s];return e}},1139:(e,t,s)=>{"use strict";var r=s(8407),n=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},1182:(e,t,s)=>{var r=s(393),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,i,o,a){var c=1&s,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var d=u;d--;){var m=l[d];if(!(c?m in t:n.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 f=c;++d<u;){var g=e[m=l[d]],y=t[m];if(i)var v=c?i(y,g,m,t,e,a):i(g,y,m,e,t,a);if(!(void 0===v?g===y||o(g,y,s,i,a):v)){_=!1;break}f||(f="constructor"==m)}if(_&&!f){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"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 r=s(358),n=s(195),i=s(6529);e.exports=function(e){return i(e)?r(e):n(e)}},1212:(e,t,s)=>{e.exports=s(8411)},1268:(e,t,s)=>{"use strict";var r=s(6100),n=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},1314:(e,t,s)=>{"use strict";var r=s(8900),n=s(2769),i=r.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},1330:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203);e.exports=r&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,s)=>{var r=s(1386),n=s(4103),i=s(1779),o=s(4162),a=s(7462),c=s(6638);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},1386:(e,t,s)=>{var r=s(2393),n=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 r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1395:(e,t,s)=>{"use strict";var r=s(6100),n=s(1203),i=s(9932),o=Object,a=r("".split);e.exports=n((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 r=s(4713),n=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(n(s))return i(r(s,e));throw new c(o(e)+" is not iterable")}},1623:(e,t,s)=>{var r=s(8942).Uint8Array;e.exports=r},1743:(e,t,s)=>{"use strict";var r=s(4713),n=s(7235),i=s(4674);e.exports=function(e,t,s){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw s;return s}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw s;if(a)throw o;return n(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 r=s(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,s)=>{"use strict";var r=s(4904),n=s(9989).f,i=s(3999),o=s(701),a=s(9559),c=s(8655)("toStringTag");e.exports=function(e,t,s,l){var u=s?e:e&&e.prototype;u&&(o(u,c)||n(u,c,{configurable:!0,value:t}),l&&!r&&i(u,"toString",a))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,s)=>{"use strict";var r=s(2621).IteratorPrototype,n=s(5780),i=s(480),o=s(1811),a=s(6625),c=function(){return this};e.exports=function(e,t,s,l){var u=t+" Iterator";return e.prototype=n(r,{next:i(+!l,s)}),o(e,u,!1,!0),a[u]=c,e}},1950:(e,t,s)=>{var r=s(8942)["__core-js_shared__"];e.exports=r},1966:(e,t,s)=>{"use strict";var r=s(2937),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},2049:(e,t,s)=>{var r=s(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,s=r(t,e);return!(s<0)&&(s==t.length-1?t.pop():n.call(t,s,1),--this.size,!0)}},2137:(e,t,s)=>{"use strict";var r=s(5426),n=Object;e.exports=function(e){return n(r(e))}},2306:(e,t,s)=>{e=s.nmd(e);var r=s(4967),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.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 r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}}},2555:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==r(e)}},2621:(e,t,s)=>{"use strict";var r,n,i,o=s(1203),a=s(2769),c=s(262),l=s(5780),u=s(3671),d=s(3508),m=s(8655),h=s(4871),p=m("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(r=n):_=!0),!c(r)||o((function(){var e={};return r[p].call(e)!==e}))?r={}:h&&(r=l(r)),a(r[p])||d(r,p,(function(){return this})),e.exports={IteratorPrototype:r,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 r=s(1203);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,s)=>{"use strict";var r=s(8655),n=s(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2937:(e,t,s)=>{"use strict";var r=s(262);e.exports=function(e){return r(e)||null===e}},3004:(e,t,s)=>{const r=s(8631);e.exports=class extends r{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 r=s(9098),n=s(4317),i=s(3671),o=s(3491),a=s(7464),c=s(5780),l=s(3999),u=s(480),d=s(8148),m=s(4279),h=s(208),p=s(4879),_=s(8655)("toStringTag"),f=Error,g=[].push,y=function(e,t){var s,r=n(v,this);o?s=o(new f,r?i(this):v):(s=r?this:c(v),l(s,_,"Error")),void 0!==t&&l(s,"message",p(t)),m(s,y,s.stack,1),arguments.length>2&&d(s,arguments[2]);var a=[];return h(e,g,{that:a}),l(s,"errors",a),s};o?o(y,f):a(y,f,{name:!0});var v=y.prototype=c(f.prototype,{constructor:u(1,y),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},3103:(e,t,s)=>{var r=s(4715)(s(8942),"DataView");e.exports=r},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,s)=>{const r=s(394);e.exports=class extends r{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 r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(s.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(s.attributes=this.serialiseObject(r))}if(r)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 r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(s.content=r)}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([]),r=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==s.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),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 r=this.deserialiseContent(e.content);if(void 0===r&&null!==s.content||(s.content=r),"enum"===s.element){s.content&&s.attributes.set("enumerations",s.content);let e=s.attributes.get("samples");if(s.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const n=new t(r);n.element=s.element,e.push(n)}))}));const n=e.shift();s.content=n?n.content:void 0,s.attributes.set("samples",e)}else s.content=void 0;let r=s.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);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 r=s.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},3212:(e,t,s)=>{var r=s(8250),n=s(1877),i=s(8006);function o(e){var t=-1,s=null==e?0:e.length;for(this.__data__=new r;++t<s;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},3273:(e,t,s)=>{"use strict";var r=s(1395),n=s(5426);e.exports=function(e){return r(n(e))}},3283:(e,t,s)=>{var r=s(6027),n=s(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3305:(e,t,s)=>{var r=s(4497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3311:(e,t,s)=>{const r=s(1517),n=s(4123);class i extends n{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(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((s,r)=>{e.bind(t)(s.value,s.key,s,r)}))}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 r=s(5024),n=s(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},3489:(e,t,s)=>{"use strict";var r=s(1003);e.exports=r("document","documentElement")},3491:(e,t,s)=>{"use strict";var r=s(3574),n=s(262),i=s(5426),o=s(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,s={};try{(e=r(Object.prototype,"__proto__","set"))(s,[]),t=s instanceof Array}catch(e){}return function(s,r){return i(s),o(r),n(s)?(t?e(s,r):s.__proto__=r,s):s}}():void 0)},3507:(e,t,s)=>{"use strict";var r=s(2769),n=s(262),i=s(3491);e.exports=function(e,t,s){var o,a;return i&&r(o=t.constructor)&&o!==s&&n(a=o.prototype)&&a!==s.prototype&&i(e,a),e}},3508:(e,t,s)=>{"use strict";var r=s(3999);e.exports=function(e,t,s,n){return n&&n.enumerable?e[t]=s:r(e,t,s),e}},3531:(e,t,s)=>{"use strict";var r=s(8900).navigator,n=r&&r.userAgent;e.exports=n?String(n):""},3574:(e,t,s)=>{"use strict";var r=s(6100),n=s(814);e.exports=function(e,t,s){try{return r(n(Object.getOwnPropertyDescriptor(e,t)[s]))}catch(e){}}},3655:(e,t,s)=>{var r=s(7379),n=s(1580);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,s)=>{"use strict";var r=s(701),n=s(2769),i=s(2137),o=s(4275),a=s(2871),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var s=t.constructor;return n(s)&&t instanceof s?s.prototype:t instanceof l?u:null}},3753:(e,t,s)=>{"use strict";var r=s(4871),n=s(8900),i=s(7525),o="__core-js_shared__",a=e.exports=n[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:r?"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 r=s(5571).charAt,n=s(1139),i=s(8417),o=s(164),a=s(877),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:n(e),index:0})}),(function(){var e,t=u(this),s=t.string,n=t.index;return n>=s.length?a(void 0,!0):(e=r(s,n),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,r)=>{fs.readFile(e,t?void 0:"utf8",((e,n)=>{e?r(e):s(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,s)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{(200==r.status||0==r.status&&r.response)&&s(r.response),t(r.status)},r.onerror=t,r.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,r){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,s,r):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,s).then(r,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,s,r)}))))}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 r=t+s,n=t;e[n]&&!(n>=r);)++n;if(n-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,n));for(var i="";t<n;){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 l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i},getDylinkMetadata=e=>{var t=0,s=0;function r(){for(var s=0,r=1;;){var n=e[t++];if(s+=(127&n)*r,r*=128,!(128&n))break}return s}function n(){var s=r();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 l=r();s=t+l,o=n()}var u={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==o){u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();for(var d=r(),m=0;m<d;++m){var h=n();u.neededDynlibs.push(h)}}else{i("dylink.0"!==o);for(;t<s;){var p=e[t++],_=r();if(1===p)u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();else if(2===p)for(d=r(),m=0;m<d;++m)h=n(),u.neededDynlibs.push(h);else if(3===p)for(var f=r();f--;){var g=n();256&r()&&u.tlsExports.add(g)}else if(4===p)for(f=r();f--;){n(),g=n();1==(3&r())&&u.weakImports.add(g)}else t+=_}}return u};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 r={refcount:1/0,name:e,exports:s,global:!0};return LDSO.loadedLibsByName[e]=r,null!=t&&(LDSO.loadedLibsByHandle[t]=r),r},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]]]},r=1;r<e.length;++r)s.parameters.push(t[e[r]]);return s},generateFuncType=(e,t)=>{var s=e.slice(0,1),r=e.slice(1),n={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(r.length,t);for(var i=0;i<r.length;++i)t.push(n[r[i]]);"v"==s?t.push(0):t.push(1,n[s])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var s=[1];generateFuncType(t,s);var r=[0,97,115,109,1,0,0,0,1];uleb128Encode(s.length,r),r.push(...s),r.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var n=new WebAssembly.Module(new Uint8Array(r));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 s=e;s<e+t;s++){var r=getWasmTableEntry(s);r&&functionsInTableMap.set(r,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 r=getEmptyTableSlot();try{setWasmTableEntry(r,e)}catch(s){if(!(s instanceof TypeError))throw s;var n=convertJsFunctionToWasm(e,t);setWasmTableEntry(r,n)}return functionsInTableMap.set(e,r),r},updateGOT=(e,t)=>{for(var s in e)if(!isInternalSym(s)){var r=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 r?GOT[s].value=addFunction(r):"number"==typeof r?GOT[s].value=r:err(`unhandled export type for '${s}': ${typeof r}`))}},relocateExports=(e,t,s)=>{var r={};for(var n in e){var i=e[n];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),r[n]=i}return updateGOT(r,s),r},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 r=stackSave();try{return dynCall(e,t,s)}catch(e){if(stackRestore(r),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,r]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=r)};e(s);const t="__main_argc_argv";"main"==s&&e(t),s==t&&e("main"),s.startsWith("dynCall_")&&!Module.hasOwnProperty(s)&&(Module[s]=r)}},asyncLoad=(e,t,s,r)=>{var n=r?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),n&&removeRunDependency(n)}),(t=>{if(!s)throw`Loading data file "${e}" failed.`;s()})),n&&addRunDependency(n)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},s,r){var n=LDSO.loadedLibsByName[e];if(n)return t.global?n.global||(n.global=!0,mergeLibSymbols(n.exports,e)):s&&Object.assign(s,n.exports),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,r&&(LDSO.loadedLibsByHandle[r]=n),!t.loadAsync||Promise.resolve(!0);function i(){if(r){var s=LE_HEAP_LOAD_U32(4*(r+28>>2)),n=LE_HEAP_LOAD_U32(4*(r+32>>2));if(s&&n){var i=HEAP8.slice(s,s+n);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((n=>loadWebAssemblyModule(n,t,e,s,r))):loadWebAssemblyModule(i(),t,e,s,r)}function a(t){n.global?mergeLibSymbols(t,e):s&&Object.assign(s,t),n.exports=t}return(n=newDSO(e,r,"loading")).refcount=t.nodelete?1/0:1,n.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 r,n,i=1;i<=4;i*=2){var o=t*(1+.2/i);o=Math.min(o,e+100663296);var a=Math.min(s,(r=Math.max(e,o))+((n=65536)-r%n)%n);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,r,n){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,r)=>{for(var n=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]);n+=a}return LE_HEAP_STORE_U32(4*(r>>2),n),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,r,n){const i=currentParseCallback(t,{row:s,column:r});"string"==typeof i?(setValue(n,i.length,"i32"),stringToUTF16(i,e,10240)):setValue(n,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 r=e.charCodeAt(s);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++s):t+=3}return t},stringToUTF8Array=(e,t,s,r)=>{if(!(r>0))return 0;for(var n=s,i=s+r-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-n},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 r=t,n=(s-=2)<2*e.length?s/2:e.length,i=0;i<n;++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-r},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,r)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,s,r),_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,r,n)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,s,r,n),_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,r,n)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,s,r,n),_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,r,n,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,r,n,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,r,n,i,o,a,c,l,u)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,s,r,n,i,o,a,c,l,u),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,s,r,n,i,o,a,c,l,u)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,s,r,n,i,o,a,c,l,u),_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,r,n)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,s,r,n),_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,r=stackAlloc(4*(s+1)),n=r;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(s,r);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 r=0,n=0;if(s?.includedRanges){r=s.includedRanges.length,n=C._calloc(r,SIZE_OF_RANGE);let e=n;for(let t=0;t<r;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,n,r);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 r=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(r),r+=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,r){assertInternal(e),this[0]=t,this.language=s,this.textCallback=r}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"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(s)}return r}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 r=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(r),r+=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"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(s)}return r}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 r=[],n=this.tree.language.types;for(let t=0,s=n.length;t<s;t++)e.includes(n[t])&&r.push(t);const i=C._malloc(SIZE_OF_INT*r.length);for(let e=0,t=r.length;e<t;e++)setValue(i+e*SIZE_OF_INT,r[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,r.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),r=C._malloc(s+1);stringToUTF8(e,r,s+1);const n=C._ts_language_symbol_for_name(this[0],r,s,t);return C._free(r),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),s=C._malloc(t+1);stringToUTF8(e,s,t+1);const r=C._ts_query_new(this[0],s,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!r){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=getValue(TRANSFER_BUFFER,"i32"),n=UTF8ToString(s,r).length,i=e.substr(n,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 ${n}: '${i}'...`),a="";break;default:o=new SyntaxError(`Bad syntax at offset ${n}: '${i}'...`),a=""}throw o.index=n,o.length=a.length,C._free(s),o}const n=C._ts_query_string_count(r),i=C._ts_query_capture_count(r),o=C._ts_query_pattern_count(r),a=new Array(i),c=new Array(n);for(let e=0;e<i;e++){const t=C._ts_query_capture_name_for_id(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,s)}for(let e=0;e<n;e++){const t=C._ts_query_string_value_for_id(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");c[e]=UTF8ToString(t,s)}const l=new Array(o),u=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(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");m[e]=[],h[e]=[];const n=[];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)n.push({type:"capture",name:a[s]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:c[s]});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 s,r=!0,i=!0;switch(t){case"any-not-eq?":case"not-eq?":r=!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,s=n[2].name;h[e].push((e=>{const n=[],o=[];for(const r of e)r.name===t&&n.push(r.node),r.name===s&&o.push(r.node);const a=(e,t,s)=>s?e.text===t.text:e.text!==t.text;return i?n.every((e=>o.some((t=>a(e,t,r))))):n.some((e=>o.some((t=>a(e,t,r)))))}))}else{s=n[1].name;const t=n[2].value,o=e=>e.text===t,a=e=>e.text!==t;h[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node);const n=r?o:a;return i?t.every(n):t.some(n)}))}break;case"any-not-match?":case"not-match?":r=!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}.`);s=n[1].name;const o=new RegExp(n[2].value);i=!t.startsWith("any-"),h[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);const n=(e,t)=>t?o.test(e):!o.test(e);return 0===t.length?!r:i?t.every((e=>n(e,r))):t.some((e=>n(e,r)))}));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.".');l[e]||(l[e]={}),l[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 a="is?"===t?u:d;a[e]||(a[e]={}),a[e][n[1].value]=n[2]?n[2].value:null;break;case"not-any-of?":r=!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.".`);s=n[1].name;const c=n.slice(2).map((e=>e.value));h[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);return 0===t.length?!r:t.every((e=>c.includes(e)))===r}));break;default:m[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(d[e])}return C._free(s),new Query(INTERNAL,r,a,h,m,Object.freeze(l),Object.freeze(u),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 r=e[s]();return new Language(INTERNAL,r)}))}}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,r,n,i,o,a){assertInternal(e),this[0]=t,this.captureNames=s,this.textPredicates=r,this.predicates=n,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:r=0,endIndex:n=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,r,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),d=new Array(c);this.exceededMatchLimit=Boolean(u);let m=0,h=l;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 r=new Array(s);if(h=unmarshalCaptures(this,e.tree,h,r),this.textPredicates[t].every((e=>e(r)))){d[m]={pattern:t,captures:r};const e=this.setProperties[t];e&&(d[m].setProperties=e);const s=this.assertedProperties[t];s&&(d[m].assertedProperties=s);const n=this.refutedProperties[t];n&&(d[m].refutedProperties=n),m++}}return d.length=m,C._free(l),d}captures(e,{startPosition:t=ZERO_POINT,endPosition:s=ZERO_POINT,startIndex:r=0,endIndex:n=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,r,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),d=[];this.exceededMatchLimit=Boolean(u);const m=[];let h=l;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 r=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[r],s=this.setProperties[t];s&&(e.setProperties=s);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),d.push(e)}}return C._free(l),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 r=s-t;let n=e.textCallback(t,null,s);for(t+=n.length;t<s;){const r=e.textCallback(t,null,s);if(!(r&&r.length>0))break;t+=r.length,n+=r}return t>s&&(n=n.slice(0,r)),n}function unmarshalCaptures(e,t,s,r){for(let n=0,i=r.length;n<i;n++){const i=getValue(s,"i32"),o=unmarshalNode(t,s+=SIZE_OF_INT);s+=SIZE_OF_NODE,r[n]={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 r=getValue(t+=SIZE_OF_INT,"i32"),n=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=r,a.startPosition={row:n,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 r=s(6100),n=Error,i=r("".replace),o=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},3934:(e,t,s)=>{var r=s(3212),n=s(6465),i=s(5568);e.exports=function(e,t,s,o,a,c){var l=1&s,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var p=-1,_=!0,f=2&s?new r:void 0;for(c.set(e,t),c.set(t,e);++p<u;){var g=e[p],y=t[p];if(o)var v=l?o(y,g,p,t,e,c):o(g,y,p,e,t,c);if(void 0!==v){if(v)continue;_=!1;break}if(f){if(!n(t,(function(e,t){if(!i(f,t)&&(g===e||a(g,e,s,o,c)))return f.push(t)}))){_=!1;break}}else if(g!==y&&!a(g,y,s,o,c)){_=!1;break}}return c.delete(e),c.delete(t),_}},3964:(e,t,s)=>{var r=s(7034);e.exports=function(e,t){var s=this.__data__,n=r(s,e);return n<0?(++this.size,s.push([e,t])):s[n][1]=t,this}},3999:(e,t,s)=>{"use strict";var r=s(5024),n=s(9989),i=s(480);e.exports=r?function(e,t,s){return n.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 r=s(1386);e.exports=function(){this.__data__=new r,this.size=0}},4123:(e,t,s)=>{const r=s(1517);function n(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((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=n(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 r=s(8141),n=s(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},4279:(e,t,s)=>{"use strict";var r=s(3999),n=s(3885),i=s(5791),o=Error.captureStackTrace;e.exports=function(e,t,s,a){i&&(o?o(e,t):r(e,"stack",n(s,a)))}},4317:(e,t,s)=>{"use strict";var r=s(6100);e.exports=r({}.isPrototypeOf)},4497:(e,t,s)=>{var r=s(4715)(Object,"create");e.exports=r},4512:(e,t,s)=>{var r=s(4715)(s(8942),"Set");e.exports=r},4543:(e,t,s)=>{"use strict";var r=s(5024),n=s(4713),i=s(7161),o=s(480),a=s(3273),c=s(5341),l=s(701),u=s(9665),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=c(t),u)try{return d(e,t)}catch(e){}if(l(e,t))return o(!n(i.f,e,t),e[t])}},4572:(e,t,s)=>{"use strict";var r=s(9344),n=s(814),i=s(1780),o=r(r.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,s)=>{"use strict";var r=s(9903),n=Math.max,i=Math.min;e.exports=function(e,t){var s=r(e);return s<0?n(s+t,0):i(s,t)}},4603:(e,t,s)=>{"use strict";var r=s(5547),n=s(1203),i=s(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4674:(e,t,s)=>{"use strict";var r=s(814),n=s(3057);e.exports=function(e,t){var s=e[t];return n(s)?void 0:r(s)}},4687:(e,t,s)=>{var r=s(353),n=s(547);e.exports=function e(t,s,i,o,a){return t===s||(null==t||null==s||!n(t)&&!n(s)?t!=t&&s!=s:r(t,s,i,o,e,a))}},4700:(e,t,s)=>{var r=s(9067);e.exports=function(e,t){var s=e.__data__;return r(t)?s["string"==typeof t?"string":"hash"]:s.map}},4713:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype.call;e.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},4715:(e,t,s)=>{var r=s(9624),n=s(155);e.exports=function(e,t){var s=n(e,t);return r(s)?s:void 0}},4732:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).has(e)}},4759:(e,t,s)=>{var r,n=s(1950),i=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";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 r=s(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(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 r={};r[s(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},4967:(e,t,s)=>{var r="object"==typeof s.g&&s.g&&s.g.Object===Object&&s.g;e.exports=r},5024:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,s)=>{var r=s(4497);e.exports=function(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,s)=>{var r=s(3305),n=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 r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},5116:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,n)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},5341:(e,t,s)=>{"use strict";var r=s(493),n=s(6281);e.exports=function(e){var t=r(e,"string");return n(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 r=s(3057),n=TypeError;e.exports=function(e){if(r(e))throw new n("Can't call method on "+e);return e}},5442:(e,t,s)=>{"use strict";s(5695)},5516:(e,t,s)=>{"use strict";var r=s(9989).f;e.exports=function(e,t,s){s in e||r(e,s,{configurable:!0,get:function(){return t[s]},set:function(e){t[s]=e}})}},5547:(e,t,s)=>{"use strict";var r,n,i=s(8900),o=s(3531),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(n=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(n=+r[1]),e.exports=n},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,s)=>{"use strict";var r=s(6100),n=s(9903),i=s(1139),o=s(5426),a=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(e){return function(t,s){var r,u,d=i(o(t)),m=n(s),h=d.length;return m<0||m>=h?e?"":void 0:(r=c(d,m))<55296||r>56319||m+1===h||(u=c(d,m+1))<56320||u>57343?e?a(d,m):r:e?l(d,m,m+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},5642:(e,t,s)=>{const r=s(1517),n=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(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const s=e,r=this.getMember(s);return r?r.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(((r,n,i)=>{const o=e.bind(t)(r,n,i);o&&s.push(o)})),s}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((s=>e.bind(t)(s.value,s.key,s)))}}},5650:(e,t,s)=>{var r=s(8942).Symbol;e.exports=r},5681:(e,t,s)=>{var r=s(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,s)=>{"use strict";var r=s(1003),n=s(6100),i=s(5116),o=s(7313),a=s(7235),c=n([].concat);e.exports=r("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 r=s(9310),n=s(8138),i=s(986),o=s(2563),a=s(1580),c=s(394),l=s(7547);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(r,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,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 r=this.elementDetection[s][0],n=this.elementDetection[s][1];if(r(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 c(this)}}c.prototype.Namespace=u,e.exports=u},5777:e=>{"use strict";var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?s:t)(r)}},5780:(e,t,s)=>{"use strict";var r,n=s(7235),i=s(7389),o=s(9683),a=s(5241),c=s(3489),l=s(9619),u=s(4275),d="prototype",m="script",h=u("IE_PROTO"),p=function(){},_=function(e){return"<"+m+">"+e+"</"+m+">"},f=function(e){e.write(_("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,s;g="undefined"!=typeof document?document.domain&&r?f(r):(t=l("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):f(r);for(var n=o.length;n--;)delete g[d][o[n]];return g()};a[h]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(p[d]=n(e),s=new p,p[d]=null,s[h]=e):s=g(),void 0===t?s:i.f(s,t)}},5791:(e,t,s)=>{"use strict";var r=s(1203),n=s(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},5853:(e,t,s)=>{e=s.nmd(e);var r=s(8942),n=s(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},5894:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e,r){s[++t]=[r,e]})),s}},6027:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},6100:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.call,o=r&&n.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var s=-1,r=Array(e);++s<e;)r[s]=t(s);return r}},6138:(e,t,s)=>{"use strict";var r=s(9098),n=s(1003),i=s(7013),o=s(1203),a=s(6453),c="AggregateError",l=n(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,s){return i(e,this,arguments)}}),u,!0)})},6281:(e,t,s)=>{"use strict";var r=s(1003),n=s(2769),i=s(4317),o=s(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(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 r=s(4687);e.exports=function(e,t){return r(e,t)}},6453:(e,t,s)=>{"use strict";var r=s(1003),n=s(701),i=s(3999),o=s(4317),a=s(3491),c=s(7464),l=s(5516),u=s(3507),d=s(4879),m=s(8148),h=s(4279),p=s(5024),_=s(4871);e.exports=function(e,t,s,f){var g="stackTraceLimit",y=f?2:1,v=e.split("."),b=v[v.length-1],w=r.apply(null,v);if(w){var E=w.prototype;if(!_&&n(E,"cause")&&delete E.cause,!s)return w;var x=r("Error"),S=t((function(e,t){var s=d(f?t:e,void 0),r=f?new w(e):new w;return void 0!==s&&i(r,"message",s),h(r,S,r.stack,2),this&&o(E,this)&&u(r,this,S),arguments.length>y&&m(r,arguments[y]),r}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):p&&g in w&&(l(S,w,g),l(S,w,"prepareStackTrace")),c(S,w),!_)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},6465:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length;++s<r;)if(t(e[s],s,e))return!0;return!1}},6529:(e,t,s)=>{var r=s(3655),n=s(5387);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,s)=>{var r=s(1386),n=s(9770),i=s(8250);e.exports=function(e,t){var s=this.__data__;if(s instanceof r){var o=s.__data__;if(!n||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 r=s(8099);e.exports=r.AggregateError},6850:(e,t,s)=>{"use strict";t.MH=void 0;const r=s(8583);function n(e,t,s){const n=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(n)||void 0!==s&&s!==e.length)throw new SyntaxError(r.errorMessages.get(t));return n}function i(e,t){const s=n(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=n(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(s,e)}return String.fromCharCode(s)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,s,a,c,l,u,d,m,h){if(void 0!==s)return"\\";if(void 0!==a)return function(e){const t=n(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const s=n(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(s)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==l)return i(l,u);if(void 0!==d)return i(d);if("0"===m)return"\0";if(void 0!==m)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const s=parseInt(e,8);return String.fromCharCode(s)}(m,!t);if(void 0!==h)return p=h,o.get(p)||p;var p;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=c},7013:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},7034:(e,t,s)=>{var r=s(6285);e.exports=function(e,t){for(var s=e.length;s--;)if(r(e[s][0],t))return s;return-1}},7144:(e,t,s)=>{var r=s(7034);e.exports=function(e){var t=this.__data__,s=r(t,e);return s<0?void 0:t[s][1]}},7161:(e,t)=>{"use strict";var s={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!s.call({1:2},1);t.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:s},7202:(e,t,s)=>{"use strict";var r=s(239);e.exports=r},7235:(e,t,s)=>{"use strict";var r=s(262),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not an object")}},7309:(e,t,s)=>{const r=s(2322),n=s(8631);e.exports=class extends n{constructor(e,t,s,n){super(new r,s,n),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 r=s(5650),n=s(8870),i=s(9005),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},7389:(e,t,s)=>{"use strict";var r=s(5024),n=s(1330),i=s(9989),o=s(7235),a=s(3273),c=s(8364);t.f=r&&!n?Object.defineProperties:function(e,t){o(e);for(var s,r=a(t),n=c(t),l=n.length,u=0;l>u;)i.f(e,s=n[u++],r[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 r=s(7034);e.exports=function(e){return r(this.__data__,e)>-1}},7460:(e,t,s)=>{"use strict";var r=s(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,s)=>{"use strict";var r=s(701),n=s(5691),i=s(4543),o=s(9989);e.exports=function(e,t,s){for(var a=n(t),c=o.f,l=i.f,u=0;u<a.length;u++){var d=a[u];r(e,d)||s&&r(s,d)||c(e,d,l(t,d))}}},7525:(e,t,s)=>{"use strict";var r=s(8900),n=Object.defineProperty;e.exports=function(e,t){try{n(r,e,{value:t,configurable:!0,writable:!0})}catch(s){r[e]=t}return t}},7547:(e,t,s)=>{const r=s(8631),n=s(3004),i=s(8712),o=s(2536),a=s(2555),c=s(9796),l=s(7309),u=s(5642),d=s(9620),m=s(593),h=s(4123),p=s(3311),_=s(2322);function f(e){if(e instanceof r)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 n;if(Array.isArray(e))return new c(e.map(f));if("object"==typeof e){return new u(e)}return e}r.prototype.ObjectElement=u,r.prototype.RefElement=m,r.prototype.MemberElement=l,r.prototype.refract=f,h.prototype.refract=f,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:d,RefElement:m,refract:f,ArraySlice:h,ObjectSlice:p,KeyValuePair:_}},7979:(e,t,s)=>{var r=s(9847),n=s(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:n;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 r=s(3766)(Object.keys,Object);e.exports=r},8130:(e,t,s)=>{"use strict";var r=s(8146);e.exports=function(e){return r(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,s)=>{var r=s(7379),n=s(3142),i=s(547);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==r(e)}},8141:(e,t,s)=>{"use strict";var r=s(3753);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},8146:(e,t,s)=>{"use strict";var r=s(9903),n=Math.min;e.exports=function(e){var t=r(e);return t>0?n(t,9007199254740991):0}},8148:(e,t,s)=>{"use strict";var r=s(262),n=s(3999);e.exports=function(e,t){r(t)&&"cause"in t&&n(e,"cause",t.cause)}},8244:(e,t,s)=>{var r=s(1129),n=s(3142);e.exports=function(e,t,s){var i=t(e);return n(e)?i:r(i,s(e))}},8250:(e,t,s)=>{var r=s(9753),n=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 r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8326:(e,t,s)=>{const r=s(5735),n=s(7547);t.g$=r,t.KeyValuePair=s(2322),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,s(394),s(3148)},8337:(e,t,s)=>{"use strict";s(5442);var r=s(7202);e.exports=r},8364:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683);e.exports=Object.keys||function(e){return r(e,n)}},8407:(e,t,s)=>{"use strict";var r=s(4904),n=s(2769),i=s(9932),o=s(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,s,r;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"===(r=i(t))&&n(t.callee)?"Arguments":r}},8411:(e,t,s)=>{"use strict";e.exports=s(8337)},8417:(e,t,s)=>{"use strict";var r,n,i,o=s(1314),a=s(8900),c=s(262),l=s(3999),u=s(701),d=s(3753),m=s(4275),h=s(5241),p="Object already initialized",_=a.TypeError,f=a.WeakMap;if(o||d.state){var g=d.state||(d.state=new f);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new _(p);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=m("state");h[y]=!0,r=function(e,t){if(u(e,y))throw new _(p);return t.facade=e,l(e,y,t),t},n=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:r,get:n,has:i,enforce:function(e){return i(e)?n(e):r(e,{})},getterFor:function(e){return function(t){var s;if(!c(t)||(s=n(t)).type!==e)throw new _("Incompatible receiver, "+e+" required");return s}}}},8486:(e,t,s)=>{var r=s(3103),n=s(9770),i=s(9413),o=s(4512),a=s(9270),c=s(7379),l=s(4066),u="[object Map]",d="[object Promise]",m="[object Set]",h="[object WeakMap]",p="[object DataView]",_=l(r),f=l(n),g=l(i),y=l(o),v=l(a),b=c;(r&&b(new r(new ArrayBuffer(1)))!=p||n&&b(new n)!=u||i&&b(i.resolve())!=d||o&&b(new o)!=m||a&&b(new a)!=h)&&(b=function(e){var t=c(e),s="[object Object]"==t?e.constructor:void 0,r=s?l(s):"";if(r)switch(r){case _:return p;case f:return u;case g:return d;case y:return m;case v:return h}return t}),e.exports=b},8583:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(s=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[s.MalformedUnicode,"malformed Unicode character escape sequence"],[s.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[s.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[s.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[s.EndOfString,"malformed escape sequence at end of string"]])},8600:(e,t,s)=>{"use strict";var r=s(6100),n=s(701),i=s(3273),o=s(1005).indexOf,a=s(5241),c=r([].push);e.exports=function(e,t){var s,r=i(e),l=0,u=[];for(s in r)!n(a,s)&&n(r,s)&&c(u,s);for(;t.length>l;)n(r,s=t[l++])&&(~o(u,s)||c(u,s));return u}},8631:(e,t,s)=>{const r=s(6343),n=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 n?{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 r=(e,t)=>(e.push(t),e),o=(e,s)=>{s.element===t&&e.push(s);const i=s.findRecursive(t);return i&&i.reduce(r,e),s.content instanceof n&&(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 r=e[t],n=s.indexOf(r);if(-1===n)return!1;s=s.splice(0,n)}return!0}))),s}set(e){return this.content=e,this}equals(e){return r(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 n)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 n){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 r=s(8900),n=s(8141),i=s(701),o=s(1268),a=s(4603),c=s(7460),l=r.Symbol,u=n("wks"),d=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:d("Symbol."+e)),u[e]}},8666:(e,t,s)=>{var r=s(674),n=s(9460),i=s(2306),o=i&&i.isTypedArray,a=o?n(o):r;e.exports=a},8696:(e,t,s)=>{"use strict";var r=s(1203),n=s(2769),i=/#|\.prototype\./,o=function(e,t){var s=c[a(e)];return s===u||s!==l&&(n(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},8712:(e,t,s)=>{const r=s(8631);e.exports=class extends r{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 r=s(5650),n=s(1623),i=s(6285),o=s(3934),a=s(5894),c=s(7447),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,s,r,l,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 n(e),new n(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&r;if(h||(h=c),e.size!=t.size&&!p)return!1;var _=m.get(e);if(_)return _==t;r|=2,m.set(e,t);var f=o(h(e),h(t),r,l,d,m);return m.delete(e),f;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},8870:(e,t,s)=>{var r=s(5650),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),s=e[a];try{e[a]=void 0;var r=!0}catch(e){}var n=o.call(e);return r&&(t?e[a]=s:delete e[a]),n}},8900:function(e,t,s){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s.g&&s.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,s)=>{var r=s(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||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 r=s(4700);e.exports=function(e,t){var s=r(this,e),n=s.size;return s.set(e,t),this.size+=s.size==n?0:1,this}},9098:(e,t,s)=>{"use strict";var r=s(8900),n=s(7013),i=s(9344),o=s(2769),a=s(4543).f,c=s(8696),l=s(8099),u=s(4572),d=s(3999),m=s(701);s(3753);var h=function(e){var t=function(s,r,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,r)}return new e(s,r,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,n,p,_,f,g,y,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,j=E?r:x?r[w]:r[w]&&r[w].prototype,O=E?l:l[w]||d(l,w,{})[w],P=O.prototype;for(_ in t)n=!(s=c(E?_:w+(x?".":"#")+_,e.forced))&&j&&m(j,_),g=O[_],n&&(y=e.dontCallGetSet?(b=a(j,_))&&b.value:j[_]),f=n&&y?y:t[_],(s||S||typeof g!=typeof f)&&(v=e.bind&&n?u(f,r):e.wrap&&n?h(f):S&&o(f)?i(f):f,(e.sham||f&&f.sham||g&&g.sham)&&d(v,"sham",!0),d(O,_,v),S&&(m(l,p=w+"Prototype")||d(l,p,{}),d(l[p],_,f),e.real&&P&&(s||!P[_])&&d(P,_,f)))}},9258:(e,t,s)=>{"use strict";var r=s(4713),n=s(2769),i=s(262),o=TypeError;e.exports=function(e,t){var s,a;if("string"===t&&n(s=e.toString)&&!i(a=r(s,e)))return a;if(n(s=e.valueOf)&&!i(a=r(s,e)))return a;if("string"!==t&&n(s=e.toString)&&!i(a=r(s,e)))return a;throw new o("Can't convert object to primitive value")}},9270:(e,t,s)=>{var r=s(4715)(s(8942),"WeakMap");e.exports=r},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,s)=>{"use strict";var r=s(9932),n=s(6100);e.exports=function(e){if("Function"===r(e))return n(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 r=s(4715)(s(8942),"Promise");e.exports=r},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,s)=>{"use strict";var r=s(4904),n=s(8407);e.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},9619:(e,t,s)=>{"use strict";var r=s(8900),n=s(262),i=r.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9620:(e,t,s)=>{const r=s(8631);e.exports=class extends r{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 r=s(3655),n=s(4759),i=s(1580),o=s(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,m=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?m:a).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var r=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<s}},9665:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203),i=s(9619);e.exports=!r&&!n((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 r=s(5098),n=s(1386),i=s(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}},9770:(e,t,s)=>{var r=s(4715)(s(8942),"Map");e.exports=r},9796:(e,t,s)=>{const r=s(1517),n=s(8631),i=s(4123);class o extends n{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((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let s,r;void 0!==t?(s=0,r=this.refract(t)):(s=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=s;t<this.length;t+=1){const s=this.content[t];r="object"===this.primitive()?this.refract(e(r,s.value,s.key,s,this)):this.refract(e(r,s,t,this))}return r}forEach(e,t){this.content.forEach(((s,r)=>{e.bind(t)(s,this.refract(r))}))}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||{},r=!!s.recursive,n=void 0===s.results?[]:s.results;return this.forEach(((t,s,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:r}),e(t,s,i)&&n.push(t)})),n}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 r=s(3273),n=s(8137),i=s(6625),o=s(8417),a=s(9989).f,c=s(164),l=s(877),u=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:r(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,l(void 0,!0);switch(e.kind){case"keys":return l(s,!1);case"values":return l(t[s],!1)}return l([s,t[s]],!1)}),"values");var _=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&d&&"values"!==_.name)try{a(_,"name",{value:"values"})}catch(e){}},9847:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length,n=0,i=[];++s<r;){var o=e[s];t(o,s,e)&&(i[n++]=o)}return i}},9903:(e,t,s)=>{"use strict";var r=s(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},9932:(e,t,s)=>{"use strict";var r=s(6100),n=r({}.toString),i=r("".slice);e.exports=function(e){return i(n(e),8,-1)}},9989:(e,t,s)=>{"use strict";var r=s(5024),n=s(9665),i=s(1330),o=s(7235),a=s(5341),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",m="configurable",h="writable";t.f=r?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 r=u(e,t);r&&r[h]&&(e[t]=s.value,s={configurable:m in s?s[m]:r[m],enumerable:d in s?s[d]:r[d],writable:!1})}return l(e,t,s)}:l:function(e,t,s){if(o(e),t=a(t),o(s),n)try{return l(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 r=s.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=s[r--].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:()=>Yg,detectionRegExp:()=>Kg,mediaTypes:()=>Zg,namespace:()=>Qg,parse:()=>Xg});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>un,includesClasses:()=>mn,includesSymbols:()=>dn,isAnnotationElement:()=>on,isArrayElement:()=>tn,isBooleanElement:()=>Qr,isCommentElement:()=>an,isElement:()=>Zr,isLinkElement:()=>rn,isMemberElement:()=>sn,isNullElement:()=>Xr,isNumberElement:()=>Yr,isObjectElement:()=>en,isParseResultElement:()=>cn,isPrimitiveElement:()=>ln,isRefElement:()=>nn,isStringElement:()=>Kr});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>Ho,isJSONSchemaElement:()=>Vo,isLinkDescriptionElement:()=>Go,isMediaElement:()=>Jo});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{isBooleanJsonSchemaElement:()=>xl,isCallbackElement:()=>rl,isComponentsElement:()=>nl,isContactElement:()=>il,isDiscriminatorElement:()=>Ml,isExampleElement:()=>ol,isExternalDocumentationElement:()=>al,isHeaderElement:()=>cl,isInfoElement:()=>ll,isLicenseElement:()=>ul,isLinkElement:()=>dl,isMediaTypeElement:()=>Tl,isOpenApi3_0Element:()=>hl,isOpenapiElement:()=>ml,isOperationElement:()=>pl,isParameterElement:()=>_l,isPathItemElement:()=>fl,isPathsElement:()=>gl,isReferenceElement:()=>yl,isRequestBodyElement:()=>vl,isResponseElement:()=>bl,isResponsesElement:()=>wl,isSchemaElement:()=>El,isSecurityRequirementElement:()=>Sl,isSecuritySchemeElement:()=>jl,isServerElement:()=>Ol,isServerVariableElement:()=>Pl,isServersElement:()=>Al});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{isJSONReferenceElement:()=>Ho,isJSONSchemaElement:()=>ap,isLinkDescriptionElement:()=>cp,isMediaElement:()=>Jo});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{isJSONReferenceElement:()=>Ho,isJSONSchemaElement:()=>vp,isLinkDescriptionElement:()=>bp});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{isJSONSchemaElement:()=>Kp,isLinkDescriptionElement:()=>Yp});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{isJSONSchemaElement:()=>u_,isLinkDescriptionElement:()=>d_});var a={};function c(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function l(e){return function t(s){return 0===arguments.length||c(s)?t:e.apply(this,arguments)}}function u(e){return function t(s,r){switch(arguments.length){case 0:return t;case 1:return c(s)?t:l((function(t){return e(s,t)}));default:return c(s)&&c(r)?t:c(s)?l((function(t){return e(t,r)})):c(r)?l((function(t){return e(s,t)})):e(s,r)}}}function d(e){return function t(s,r,n){switch(arguments.length){case 0:return t;case 1:return c(s)?t:u((function(t,r){return e(s,t,r)}));case 2:return c(s)&&c(r)?t:c(s)?u((function(t,s){return e(t,r,s)})):c(r)?u((function(t,r){return e(s,t,r)})):l((function(t){return e(s,r,t)}));default:return c(s)&&c(r)&&c(n)?t:c(s)&&c(r)?u((function(t,s){return e(t,s,n)})):c(s)&&c(n)?u((function(t,s){return e(t,r,s)})):c(r)&&c(n)?u((function(t,r){return e(s,t,r)})):c(s)?l((function(t){return e(t,r,n)})):c(r)?l((function(t){return e(s,t,n)})):c(n)?l((function(t){return e(s,r,t)})):e(s,r,n)}}}__webpack_require__.r(a),__webpack_require__.d(a,{isBooleanJsonSchemaElement:()=>xf,isCallbackElement:()=>Q_,isComponentsElement:()=>ef,isContactElement:()=>tf,isExampleElement:()=>sf,isExternalDocumentationElement:()=>rf,isHeaderElement:()=>nf,isInfoElement:()=>of,isJsonSchemaDialectElement:()=>af,isLicenseElement:()=>cf,isLinkElement:()=>lf,isMediaTypeElement:()=>Tf,isOpenApi3_1Element:()=>df,isOpenapiElement:()=>uf,isOperationElement:()=>mf,isParameterElement:()=>hf,isPathItemElement:()=>pf,isPathItemElementExternal:()=>_f,isPathsElement:()=>ff,isReferenceElement:()=>gf,isReferenceElementExternal:()=>yf,isRequestBodyElement:()=>vf,isResponseElement:()=>bf,isResponsesElement:()=>wf,isSchemaElement:()=>Ef,isSecurityRequirementElement:()=>Sf,isSecuritySchemeElement:()=>jf,isServerElement:()=>Of,isServerVariableElement:()=>Pf});const m=u((function(e,t){return null==t||t!=t?e:t})),h=Number.isInteger||function(e){return(e|0)===e};function p(e){return"[object String]"===Object.prototype.toString.call(e)}function _(e,t){var s=e<0?t.length+e:e;return p(t)?t.charAt(s):t[s]}const f=u((function(e,t){if(null!=t)return h(e)?_(e,t):t[e]}));const g=d((function(e,t,s){return m(e,f(t,s))}));var y=u((function(e,t){for(var s={},r={},n=0,i=e.length;n<i;)r[e[n]]=1,n+=1;for(var o in t)r.hasOwnProperty(o)||(s[o]=t[o]);return s}));const v=y;function b(e,t,s){for(var r=0,n=s.length;r<n;)t=e(t,s[r]),r+=1;return t}const w=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const E=l((function(e){return!!w(e)||!!e&&("object"==typeof e&&(!p(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var x="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function S(e,t,s){return function(r,n,i){if(E(i))return e(r,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(r,n,i,"fantasy-land/reduce");if(null!=i[x])return s(r,n,i[x]());if("function"==typeof i.next)return s(r,n,i);if("function"==typeof i.reduce)return t(r,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function j(e,t,s){for(var r=s.next();!r.done;)t=e(t,r.value),r=s.next();return t}function O(e,t,s,r){return s[r](e,t)}const P=S(b,O,j);function T(e,t,s){return function(){if(0===arguments.length)return s();var r=arguments[arguments.length-1];if(!w(r)){for(var n=0;n<e.length;){if("function"==typeof r[e[n]])return r[e[n]].apply(r,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return s.apply(this,arguments)}}function A(e,t){for(var s=0,r=t.length,n=Array(r);s<r;)n[s]=e(t[s]),s+=1;return n}const M=function(){return this.xf["@@transducer/init"]()},F=function(e){return this.xf["@@transducer/result"](e)};var N=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const R=function(e){return function(t){return new N(e,t)}};function I(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,r){return t.apply(this,arguments)};case 4:return function(e,s,r,n){return t.apply(this,arguments)};case 5:return function(e,s,r,n,i){return t.apply(this,arguments)};case 6:return function(e,s,r,n,i,o){return t.apply(this,arguments)};case 7:return function(e,s,r,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,s,r,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,s,r,n,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,s,r,n,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function k(e,t,s){return function(){for(var r=[],n=0,i=e,o=0,a=!1;o<t.length||n<arguments.length;){var l;o<t.length&&(!c(t[o])||n>=arguments.length)?l=t[o]:(l=arguments[n],n+=1),r[o]=l,c(l)?a=!0:i-=1,o+=1}return!a&&i<=0?s.apply(this,r):I(Math.max(0,i),k(e,r,s))}}const C=u((function(e,t){return 1===e?l(t):I(e,k(e,[],t))}));function $(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var D=Object.prototype.toString;const L=function(){return"[object Arguments]"===D.call(arguments)?function(e){return"[object Arguments]"===D.call(e)}:function(e){return $("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),B=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=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},H="function"!=typeof Object.keys||U?l((function(e){if(Object(e)!==e)return[];var t,s,r=[],n=U&&L(e);for(t in e)!$(t,e)||n&&"length"===t||(r[r.length]=t);if(q)for(s=B.length-1;s>=0;)$(t=B[s],e)&&!V(r,t)&&(r[r.length]=t),s-=1;return r})):l((function(e){return Object(e)!==e?[]:Object.keys(e)}));const J=H;const G=u(T(["fantasy-land/map","map"],R,(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 b((function(s,r){return s[r]=e(t[r]),s}),{},J(t));default:return A(e,t)}})));const W=u((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))}:P((function(e,s){return function(e,t){var s;t=t||[];var r=(e=e||[]).length,n=t.length,i=[];for(s=0;s<r;)i[i.length]=e[s],s+=1;for(s=0;s<n;)i[i.length]=t[s],s+=1;return i}(e,G(s,t))}),[],e)}));const z=u((function(e,t){var s=C(e,t);return C(e,(function(){return b(W,G(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Z=l((function(e){return z(e.length,e)}));const K=Z(l((function(e){return!e})));function Y(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function X(e,t,s){for(var r=0,n=s.length;r<n;){if(e(t,s[r]))return!0;r+=1}return!1}const Q="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const ee=l((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function te(e,t,s,r){var n=Y(e);function i(e,t){return se(e,t,s.slice(),r.slice())}return!X((function(e,t){return!X(i,t,e)}),Y(t),n)}function se(e,t,s,r){if(Q(e,t))return!0;var n,i,o=ee(e);if(o!==ee(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"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Q(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Q(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 r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&te(e.entries(),t.entries(),s.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&te(e.values(),t.values(),s.concat([e]),r.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=J(e);if(c.length!==J(t).length)return!1;var l=s.concat([e]),u=r.concat([t]);for(a=c.length-1;a>=0;){var d=c[a];if(!$(d,t)||!se(t[d],e[d],l,u))return!1;a-=1}return!0}const re=u((function(e,t){return se(e,t,[],[])}));const ne=l((function(e){return function(){return e}}));const ie=ne(void 0);const oe=re(ie());const ae=K(oe);var ce=__webpack_require__(8326);function le(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ue(e,t,s){for(var r=0,n=s.length;r<n;){if((t=e["@@transducer/step"](t,s[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const de=u((function(e,t){return I(e.length,(function(){return e.apply(t,arguments)}))}));function me(e,t,s){for(var r=s.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=s.next()}return e["@@transducer/result"](t)}function he(e,t,s,r){return e["@@transducer/result"](s[r](de(e["@@transducer/step"],e),t))}const pe=S(ue,he,me);var _e=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 fe(e){return new _e(e)}const ge=d((function(e,t,s){return pe("function"==typeof e?fe(e):e,t,s)}));function ye(e,t){return function(){var s=arguments.length;if(0===s)return t();var r=arguments[s-1];return w(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,s-1))}}const ve=d(ye("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const be=l(ye("tail",ve(1,1/0)));function we(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return I(arguments[0].length,ge(le,arguments[0],be(arguments)))}var Ee=function(e,t){switch(arguments.length){case 0:return Ee;case 1:return function t(s){return 0===arguments.length?t:Q(e,s)};default:return Q(e,t)}};const xe=Ee;function Se(e,t){return function(e,t,s){var r,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;s<e.length;){if(0===(n=e[s])&&1/n===r)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(n=e[s])&&n!=n)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(re(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function je(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 Oe=function(e){return(e<10?"0":"")+e};const Pe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Oe(e.getUTCMonth()+1)+"-"+Oe(e.getUTCDate())+"T"+Oe(e.getUTCHours())+":"+Oe(e.getUTCMinutes())+":"+Oe(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Te(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ae=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Me(e){return function(t){return new Ae(e,t)}}const Fe=u(T(["fantasy-land/filter","filter"],Me,(function(e,t){return Te(t)?b((function(s,r){return e(t[r])&&(s[r]=t[r]),s}),{},J(t)):function(e,t){for(var s=0,r=t.length,n=[];s<r;)e(t[s])&&(n[n.length]=t[s]),s+=1;return n}(e,t)})));const Ne=u((function(e,t){return Fe((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Re(e,t){var s=function(s){var r=t.concat([e]);return Se(s,r)?"<Circular>":Re(s,r)},r=function(e,t){return A((function(t){return je(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+A(s,e).join(", ")+"))";case"[object Array]":return"["+A(s,e).concat(r(e,Ne((function(e){return/^\d+$/.test(e)}),J(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):je(Pe(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())+")":je(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+r(e,J(e)).join(", ")+"}"}}const Ie=l((function(e){return Re(e,[])}));function ke(e,t){for(var s=t,r=0;r<e.length;r+=1){if(null==s)return;var n=e[r];s=h(n)?_(n,s):s[n]}return s}const Ce=d((function(e,t,s){return e(ke(t,s))}));function $e(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const De=u((function(e,t){return e&&t}));const Le=u((function(e,t){return $e(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Z(De)(e,t)}));const qe=re(null);const Be=K(qe);function Ue(e){return Ue="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},Ue(e)}const Ve=function(e){return"object"===Ue(e)};const He=C(1,Le(Be,Ve));const Je=u((function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var r=s(e,t);if(void 0!==r)return r;var n=s(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Ie(e),o=s(i,Ie(t));return void 0!==o&&o===i?e:t}));const Ge=u((function(e,t){return G(f(e),t)}));const We=l((function(e){return C(ge(Je,0,Ge("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 ze=C(1,we(ee,xe("GeneratorFunction")));const Ze=C(1,we(ee,xe("AsyncFunction")));const Ke=We([we(ee,xe("Function")),ze,Ze]);var Ye=we(ee,xe("Object")),Xe=we(Ie,re(Ie(Object))),Qe=Ce(Le(Ke,Xe),["constructor"]);const et=C(1,(function(e){if(!He(e)||!Ye(e))return!1;var t=Object.getPrototypeOf(e);return!!qe(t)||Qe(t)}));class tt extends ce.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 st=tt;class rt extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const nt=rt;class it extends ce.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(oe(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const ot=it;class at extends ce.g${constructor(){super(),this.register("annotation",st),this.register("comment",nt),this.register("parseResult",ot)}}const ct=new at,lt=e=>{const t=new at;return et(e)&&t.use(e),t},ut=ct;const dt=C(1,we(ee,xe("String"))),mt=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",ht=globalThis.fetch;Ke(ht)&&(globalThis.fetch=(...e)=>dt(e[0])&&e[0].endsWith("tree-sitter.wasm")?ht.apply(globalThis,[mt,be(e)]):ht.apply(globalThis,e));var pt=__webpack_require__(3833),_t=__webpack_require__(1212);const ft=class extends _t{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 gt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(ft,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 yt=gt,vt=__webpack_require__.p+"fe6ac473f020fbdb0dc39a494e428b55.wasm";let bt=null,wt=null;const Et=async e=>{if(null===bt&&null===wt)wt=pt.init().then((()=>pt.Language.load(vt))).then((e=>{const t=new pt;return t.setLanguage(e),t})).finally((()=>{wt=null})),bt=await wt;else if(null===bt&&null!==wt)bt=await wt;else if(null===bt)throw new yt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return bt.parse(e)};const xt=class extends yt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const St=class extends xt{};const jt=class extends St{};const Ot=class extends jt{specificTagName;explicitTagName;tagKind;tagStartPositionRow;tagStartPositionColumn;tagStartPositionIndex;tagEndPositionRow;tagEndPositionColumn;tagEndPositionIndex;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagStartPositionRow=t.tagStartPositionRow,this.tagStartPositionColumn=t.tagStartPositionColumn,this.tagStartPositionIndex=t.tagStartPositionIndex,this.tagEndPositionRow=t.tagEndPositionRow,this.tagEndPositionColumn=t.tagEndPositionColumn,this.tagEndPositionIndex=t.tagEndPositionIndex,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const Pt=class{static type="node";type="node";isMissing;children;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;constructor({children:e=[],isMissing:t=!1,startPositionRow:s,startPositionColumn:r,startIndex:n,endPositionRow:i,endPositionColumn:o,endIndex:a}={}){this.type=this.constructor.type,this.isMissing=t,this.children=e,this.startPositionRow=s,this.startPositionColumn=r,this.startIndex=n,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}};let Tt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const At=class extends Pt{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...s}){super({...s}),this.explicitName=e,this.kind=t}};const Mt=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Ft=class extends Mt{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Tt.Mapping}};const Nt=class extends Mt{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Tt.Sequence}};const Rt=class extends Mt{static uri="tag:yaml.org,2002:str"};const It=d((function(e,t,s){return m(e,ke(t,s))}));const kt=l((function(e){return C(e.length,e)}));var Ct="\t\n\v\f\r \u2028\u2029\ufeff";const $t=l("function"==typeof String.prototype.trim&&!Ct.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Ct+"]["+Ct+"]*"),s=new RegExp("["+Ct+"]["+Ct+"]*$");return e.replace(t,"").replace(s,"")});const Dt=u((function(e,t){return C(e+1,(function(){var s=arguments[e];if(null!=s&&$e(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ie(s)+' does not have a method named "'+t+'"')}))}));const Lt=Dt(1,"split");const qt=Dt(1,"join");const Bt=l((function(e){return p(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Ut(){if(0===arguments.length)throw new Error("compose requires at least one argument");return we.apply(this,Bt(arguments))}const Vt=C(4,(function(e,t,s,r){return pe(e("function"==typeof t?fe(t):t),s,r)}));const Ht=u((function(e,t){if(w(e)){if(w(t))return e.concat(t);throw new TypeError(Ie(t)+" is not an array")}if(p(e)){if(p(t))return e+t;throw new TypeError(Ie(t)+" is not a string")}if(null!=e&&$e(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&$e(e.concat))return e.concat(t);throw new TypeError(Ie(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Jt=re("");const Gt=u((function(e,t){return C(ge(Je,0,Ge("length",t)),(function(){var s=arguments,r=this;return e.apply(r,A((function(e){return e.apply(r,s)}),t))}))}));function Wt(e){return e}const zt=l(Wt);const Zt=C(1,we(ee,xe("Number")));var Kt=Le(Zt,isFinite);var Yt=C(1,Kt);const Xt=Ke(Number.isFinite)?C(1,de(Number.isFinite,Number)):Yt;var Qt=Le(Xt,Gt(re,[Math.floor,zt]));var es=C(1,Qt);const ts=Ke(Number.isInteger)?C(1,de(Number.isInteger,Number)):es;const ss=l((function(e){return C(e.length,(function(t,s){var r=Array.prototype.slice.call(arguments,0);return r[0]=s,r[1]=t,e.apply(this,r)}))}));const rs=K(Xt);const ns=C(1,Le(Zt,u((function(e,t){return e>t}))(0)));var is=kt((function(e,t){var s=Number(t);if(s!==t&&(s=0),ns(s))throw new RangeError("repeat count must be non-negative");if(rs(s))throw new RangeError("repeat count must be less than infinity");if(s=Math.floor(s),0===e.length||0===s)return"";if(e.length*s>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*s;s=Math.floor(Math.log(s)/Math.log(2));for(var n=e;s;)n+=e,s-=1;return n+=n.substring(0,r-n.length)})),os=ss(Dt(1,"repeat"));const as=Ke(String.prototype.repeat)?os:is;const cs=d((function(e,t,s){return s.replace(e,t)}));var ls=cs(/[\s\uFEFF\xA0]+$/,""),us=Dt(0,"trimEnd");const ds=Ke(String.prototype.trimEnd)?us:ls;var ms=cs(/^[\s\uFEFF\xA0]+/,""),hs=Dt(0,"trimStart");const ps=Ke(String.prototype.trimStart)?hs:ms;var _s=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function fs(e){return function(t){return new _s(e,t)}}const gs=u(T(["dropWhile"],fs,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return ve(s,1/0,t)})));const ys=ss(u(Se));const vs=kt((function(e,t){return we(Lt(""),gs(ys(e)),qt(""))(t)}));const bs=ss(Ht);var ws=__webpack_require__(6850);const Es=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,xs=e=>{const t=(e=>{const t=e.match(Es),s=It("",["groups","indentation"],t);return Jt(s)?void 0:parseInt(s,10)})(e);if(ts(t))return as(" ",t);const s=It("",[1],e.split("\n")),r=It(0,["groups","indentation","length"],s.match(/^(?<indentation>[ ]*)/));return as(" ",r)},Ss=e=>{const t=e.match(Es),s=It("",["groups","chomping"],t);return Jt(s)?void 0:s},js=(e,t)=>oe(e)?`${ds(t)}\n`:"-"===e?ds(t):t,Os=e=>e.replace(/\r\n/g,"\n"),Ps=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,s)=>t?e:` ${s.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Ts=kt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),As=we(Os,$t,Ps,Lt("\n"),G(ps),qt("\n")),Ms=we(Os,$t,Ps,Lt("\n"),G(ps),qt("\n"),Ts("'")),Fs=we(Os,$t,(e=>e.replace(/\\\n\s*/g,"")),Ps,ws.MH,Lt("\n"),G(ps),qt("\n"),Ts('"'));let Ns=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),Rs=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Is=class{static test(e){return e.tag.kind===Tt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const s=e.clone();return e.style===Ns.Plain?t=As(e.content):e.style===Ns.SingleQuoted?t=Ms(e.content):e.style===Ns.DoubleQuoted?t=Fs(e.content):e.style===Ns.Literal?t=(e=>{const t=xs(e),s=Ss(e),r=Os(e),n=be(r.split("\n")),i=Ut(G(vs(t)),G(bs("\n"))),o=Vt(i,Ht,"",n);return js(s,o)})(e.content):e.style===Ns.Folded&&(t=(e=>{const t=xs(e),s=Ss(e),r=Os(e),n=be(r.split("\n")),i=Ut(G(vs(t)),G(bs("\n"))),o=Vt(i,Ht,"",n),a=Ps(o);return js(s,a)})(e.content)),s.content=t,s}static resolve(e){return e}};const ks=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Ft),this.registerTag(new Nt),this.registerTag(new Rt)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Tt.Scalar?t=Rt.uri:e.tag.kind===Tt.Sequence?t=Nt.uri:e.tag.kind===Tt.Mapping&&(t=Ft.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t}registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})}registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this}overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this}resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let s=e;Is.test(e)&&(s=Is.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new Ot(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagStartPositionRow:e.tag.startPositionRow,tagStartPositionColumn:e.tag.startPositionColumn,tagStartPositionIndex:e.tag.startIndex,tagEndPositionRow:e.tag.endPositionRow,tagEndPositionColumn:e.tag.endPositionColumn,tagEndPositionIndex:e.tag.endIndex,node:e.clone()});if(!r.test(s))throw new Ot(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagStartPositionRow:e.tag.startPositionRow,tagStartPositionColumn:e.tag.startPositionColumn,tagStartPositionIndex:e.tag.startIndex,tagEndPositionRow:e.tag.endPositionRow,tagEndPositionColumn:e.tag.endPositionColumn,tagEndPositionIndex:e.tag.endIndex,nodeCanonicalContent:s.content,node:e.clone()});return r.resolve(s)}};const Cs=class extends Mt{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,s=e.clone();return s.content=t,s}};const $s=class extends Mt{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),s=e.clone();return s.content=t,s}};const Ds=class extends Mt{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),s=e.clone();return s.content=t,s}};const Ls=class extends Mt{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const qs=class extends ks{constructor(){super(),this.registerTag(new Cs,!0),this.registerTag(new $s,!0),this.registerTag(new Ds,!0),this.registerTag(new Ls,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===Tt.Sequence)t=Nt.uri;else if(e.tag.kind===Tt.Mapping)t=Ft.uri;else if(e.tag.kind===Tt.Scalar){const s=this.tags.find((t=>t.test(e)));t=(null==s?void 0:s.tag)||"?"}return t}};const Bs=class extends Pt{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:s,styleGroup:r,...n}){super({...n}),this.anchor=e,this.tag=t,this.style=s,this.styleGroup=r}};const Us=class extends Bs{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Vs=class extends St{},Hs=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Js=e=>Hs("mapping",e),Gs=e=>Hs("sequence",e),Ws=e=>Hs("keyValuePair",e),zs=e=>Hs("scalar",e),Zs=e=>Hs("alias",e);const Ks=class{addAnchor(e){if(!(e=>Hs("anchor",e))(e.anchor))throw new Vs("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Us({content:e.content,style:Ns.Plain,styleGroup:Rs.Flow})}},Ys=(e,t,s)=>{const r=e[t];if(null!=r){if(!s&&"function"==typeof r)return r;const e=s?r.leave:r.enter;if("function"==typeof e)return e}else{const r=s?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},Xs={},Qs=e=>null==e?void 0:e.type,er=e=>"string"==typeof Qs(e),tr=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),sr=(e,{visitFnGetter:t=Ys,nodeTypeGetter:s=Qs,breakSymbol:r=Xs,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,u,d,m,h,p){let _=l,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=a.call(e[l],_,u,d,m,h,g);if("function"==typeof(null==t?void 0:t.then))throw new xt("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},leave(n,o,l,u,d,m){let h=n;const p={...m,replaceWith(e,t){m.replaceWith(e,t),h=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(h),!0);if("function"==typeof a){const t=a.call(e[n],h,o,l,u,d,p);if("function"==typeof(null==t?void 0:t.then))throw new xt("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===h&&(c[n]=a)}}};sr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Ys,nodeTypeGetter:s=Qs,breakSymbol:r=Xs,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(l,u,d,m,h,p){let _=l,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=await a.call(e[l],_,u,d,m,h,g);if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},async leave(n,o,l,u,d,m){let h=n;const p={...m,replaceWith(e,t){m.replaceWith(e,t),h=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(h),!0);if("function"==typeof a){const t=await a.call(e[n],h,o,l,u,d,p);if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===h&&(c[n]=a)}}};const rr=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=Xs,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Ys,nodeTypeGetter:c=Qs,nodePredicate:l=er,nodeCloneFn:u=tr,detectCycles:d=!0,detectCyclesCallback:m=null}={})=>{const h=s||{};let p,_,f=Array.isArray(e),g=[e],y=-1,v=[],b=e;const w=[],E=[];do{y+=1;const e=y===g.length;let s;const j=e&&0!==v.length;if(e){if(s=0===E.length?void 0:w.pop(),b=_,_=E.pop(),j)if(f){b=b.slice();let e=0;for(const[t,s]of v){const r=t-e;s===i?(b.splice(r,1),e+=1):b[r]=s}}else{b=u(b);for(const[e,t]of v)b[e]=t}y=p.index,g=p.keys,v=p.edits,f=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(s=f?y:g[y],b=_[s],b===i||void 0===b)continue;w.push(s)}let O;if(!Array.isArray(b)){var x;if(!l(b))throw new xt(`Invalid AST Node: ${String(b)}`,{node:b});if(d&&E.includes(b)){"function"==typeof m&&m(b,s,_,w,E),w.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,b,s,_,w,E):_&&(_[s]=t),e||(b=t)}};O=i.call(t,b,s,_,w,E,n)}if("function"==typeof(null===(x=O)||void 0===x?void 0:x.then))throw new xt("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(O===n)break;if(O===o){if(!e){w.pop();continue}}else if(void 0!==O&&(v.push([s,O]),!e)){if(!l(O)){w.pop();continue}b=O}}var S;if(void 0===O&&j&&v.push([s,b]),!e)p={inArray:f,index:y,keys:g,edits:v,prev:p},f=Array.isArray(b),g=f?b:null!==(S=h[c(b)])&&void 0!==S?S:[],y=-1,v=[],_!==i&&void 0!==_&&E.push(_),_=b}while(void 0!==p);return 0!==v.length?v[v.length-1][1]:e};rr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=Xs,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Ys,nodeTypeGetter:c=Qs,nodePredicate:l=er,nodeCloneFn:u=tr,detectCycles:d=!0,detectCyclesCallback:m=null}={})=>{const h=s||{};let p,_,f=Array.isArray(e),g=[e],y=-1,v=[],b=e;const w=[],E=[];do{y+=1;const e=y===g.length;let s;const S=e&&0!==v.length;if(e){if(s=0===E.length?void 0:w.pop(),b=_,_=E.pop(),S)if(f){b=b.slice();let e=0;for(const[t,s]of v){const r=t-e;s===i?(b.splice(r,1),e+=1):b[r]=s}}else{b=u(b);for(const[e,t]of v)b[e]=t}y=p.index,g=p.keys,v=p.edits,f=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(s=f?y:g[y],b=_[s],b===i||void 0===b)continue;w.push(s)}let j;if(!Array.isArray(b)){if(!l(b))throw new xt(`Invalid AST Node: ${String(b)}`,{node:b});if(d&&E.includes(b)){"function"==typeof m&&m(b,s,_,w,E),w.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,b,s,_,w,E):_&&(_[s]=t),e||(b=t)}};j=await i.call(t,b,s,_,w,E,n)}if(j===n)break;if(j===o){if(!e){w.pop();continue}}else if(void 0!==j&&(v.push([s,j]),!e)){if(!l(j)){w.pop();continue}b=j}}var x;if(void 0===j&&S&&v.push([s,b]),!e)p={inArray:f,index:y,keys:g,edits:v,prev:p},f=Array.isArray(b),g=f?b:null!==(x=h[c(b)])&&void 0!==x?x:[],y=-1,v=[],_!==i&&void 0!==_&&E.push(_),_=b}while(void 0!==p);return 0!==v.length?v[v.length-1][1]:e};const nr=class extends Pt{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class ir extends Pt{static type="stream"}Object.defineProperty(ir.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Hs("document",e))(e)||(e=>Hs("comment",e))(e))):[]},enumerable:!0});const or=ir;const ar=l((function(e){return _(0,e)}));const cr=class extends Pt{static type="parseResult";get rootNode(){return ar(this.children)}};const lr="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),s=1,r=arguments.length;s<r;){var n=arguments[s];if(null!=n)for(var i in n)$(i,n)&&(t[i]=n[i]);s+=1}return t};const ur=u((function(e,t){return lr({},e,t)}));const dr=class extends Pt{static type="directive";name;parameters;constructor({name:e,parameters:t,...s}){super({...s}),this.name=e,this.parameters=ur({version:void 0,handle:void 0,prefix:void 0},t)}};const mr=class extends Pt{static type="document"};const hr=class extends Bs{};class pr extends hr{static type="mapping"}Object.defineProperty(pr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Ws):[]},enumerable:!0});const _r=pr;class fr extends Pt{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(fr.prototype,{key:{get(){return this.children.filter((e=>zs(e)||Js(e)||Gs(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>zs(e)||Js(e)||Gs(e)||Zs(e))(t)))[0]},enumerable:!0}});const gr=fr;class yr extends hr{static type="sequence"}Object.defineProperty(yr.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Gs(e)||Js(e)||zs(e)||Zs(e))):[]},enumerable:!0});const vr=yr;const br=class extends Pt{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const wr=class extends Pt{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Er=class extends Pt{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const xr=class extends Pt{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}};const Sr=u((function(e,t){return b((function(s,r){return s[r]=e(t[r],r,t),s}),{},J(t))}));const jr=l((function(e){return null==e}));var Or=u((function(e,t){if(0===e.length||jr(t))return!1;for(var s=t,r=0;r<e.length;){if(jr(s)||!$(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));const Pr=Or;var Tr=u((function(e,t){return Pr([e],t)}));const Ar=Tr;const Mr=d((function(e,t,s){return e(f(t,s))}));const Fr=u(ke),Nr=(e,t)=>{const s=m(e,t);return Sr((e=>{if(et(e)&&Ar("$ref",e)&&Mr(dt,"$ref",e)){const t=Fr(["$ref"],e),r=vs("#/",t);return Fr(r.split("/"),s)}return et(e)?Nr(e,s):e}),e)},Rr=(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);const Ir=class{type;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;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("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},kr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Cr=e=>Array.isArray(e)||er(e);class $r{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(e){return t=>null!=t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.endsWith(e)}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new nr(Rr({name:t.text},t))}static hasKeyValuePairEmptyKey(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode}static hasKeyValuePairEmptyValue(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode}static kindNodeToYamlTag(e){const{tag:t}=e,s=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?Tt.Mapping:e.type.endsWith("sequence")?Tt.Sequence:Tt.Scalar;return new At(Rr({explicitName:s,kind:r},t))}schema;referenceManager;stream={enter:e=>new or(Rr({children:e.children,isMissing:e.isMissing},e)),leave:e=>new cr({children:[e]})};yaml_directive={enter:e=>{var t;const s=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new dr(Rr({name:"%YAML",parameters:{version:s}},e))}};tag_directive={enter:e=>{const t=e.children[0],s=e.children[1],r=new dr(Rr({name:"%TAG",parameters:{handle:null==t?void 0:t.text,prefix:null==s?void 0:s.text}},e));return this.schema.registerTagDirective(r),r}};reserved_directive={enter:e=>{const t=e.children[0],s=e.children[1],r=e.children[2];return new dr(Rr({name:null==t?void 0:t.text,parameters:{handle:null==s?void 0:s.text,prefix:null==r?void 0:r.text}},e))}};document={enter:e=>new mr(Rr({children:e.children,isMissing:e.isMissing},e)),leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if($r.isScalar(t)||$r.isMapping(t)||$r.isSequence(t))return e.children;const s=new Us({content:"",anchor:$r.kindNodeToYamlAnchor(t),tag:$r.kindNodeToYamlTag(t),startPositionRow:t.endPositionRow,startPositionColumn:t.endPositionColumn,startIndex:t.endIndex,endPositionRow:t.endPositionRow,endPositionColumn:t.endPositionColumn,endIndex:t.endIndex,styleGroup:Rs.Flow,style:Ns.Plain});return this.registerAnchor(s),[...e.children,s]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=new _r(Rr({children:e.children,anchor:s,tag:t,styleGroup:Rs.Block,style:Ns.NextLine,isMissing:e.isMissing},e));return this.registerAnchor(r),this.schema.resolve(r)}};block_mapping_pair={enter:e=>{const t=[...e.children];if($r.hasKeyValuePairEmptyKey(e)){const s=this.createKeyValuePairEmptyKey(e);t.unshift(s)}if($r.hasKeyValuePairEmptyValue(e)){const s=this.createKeyValuePairEmptyValue(e);t.push(s)}return new gr(Rr({children:t,styleGroup:Rs.Block,isMissing:e.isMissing},e))}};flow_mapping={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=new _r(Rr({children:e.children,anchor:s,tag:t,styleGroup:Rs.Flow,style:Ns.Explicit,isMissing:e.isMissing},e));return this.registerAnchor(r),this.schema.resolve(r)}};flow_pair={enter:e=>{const t=[...e.children];if($r.hasKeyValuePairEmptyKey(e)){const s=this.createKeyValuePairEmptyKey(e);t.unshift(s)}if($r.hasKeyValuePairEmptyValue(e)){const s=this.createKeyValuePairEmptyValue(e);t.push(s)}return new gr(Rr({children:t,styleGroup:Rs.Flow,isMissing:e.isMissing},e))}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=new vr(Rr({children:e.children,anchor:s,tag:t,styleGroup:Rs.Block,style:Ns.NextLine},e));return this.registerAnchor(r),this.schema.resolve(r)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;return[new Us({content:"",tag:new At({explicitName:"?",kind:Tt.Scalar}),startPositionRow:e.endPositionRow,startPositionColumn:e.endPositionColumn,startIndex:e.endIndex,endPositionRow:e.endPositionRow,endPositionColumn:e.endPositionColumn,endIndex:e.endIndex,styleGroup:Rs.Flow,style:Ns.Plain})]}};flow_sequence={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=new vr(Rr({children:e.children.flat(),anchor:s,tag:t,styleGroup:Rs.Flow,style:Ns.Explicit},e));return this.registerAnchor(r),this.schema.resolve(r)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=new Us(Rr({content:e.text,anchor:s,tag:t,styleGroup:Rs.Flow,style:Ns.Plain},e));return this.registerAnchor(r),this.schema.resolve(r)}};single_quote_scalar={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=new Us(Rr({content:e.text,anchor:s,tag:t,styleGroup:Rs.Flow,style:Ns.SingleQuoted},e));return this.registerAnchor(r),this.schema.resolve(r)}};double_quote_scalar={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=new Us(Rr({content:e.text,anchor:s,tag:t,styleGroup:Rs.Flow,style:Ns.DoubleQuoted},e));return this.registerAnchor(r),this.schema.resolve(r)}};block_scalar={enter:e=>{const t=$r.kindNodeToYamlTag(e),s=$r.kindNodeToYamlAnchor(e),r=e.text.startsWith("|")?Ns.Literal:e.text.startsWith(">")?Ns.Folded:Ns.Plain,n=new Us(Rr({content:e.text,anchor:s,tag:t,styleGroup:Rs.Block,style:r},e));return this.registerAnchor(n),this.schema.resolve(n)}};comment={enter:e=>new br({content:e.text})};alias={enter:e=>{const t=new wr({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Ir&&!e.isNamed){const t=e.type||e.text,{isMissing:s}=e;return new Er(Rr({value:t,isMissing:s},e))}}ERROR(e,t,s,r){const n=new xr(Rr({children:e.children,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text},e));return 0===r.length?new cr({children:[n]}):n}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const{keyNode:t}=e,s=(null==t?void 0:t.children)||[],r=s.find($r.isKind("tag")),n=s.find($r.isKind("anchor")),i=new At(void 0!==r?Rr({explicitName:r.text,kind:Tt.Scalar},r):{explicitName:"?",kind:Tt.Scalar}),o=void 0!==n?new nr(Rr({name:n.text},n)):void 0,a=new Us({content:"",startPositionRow:e.startPositionRow,startPositionColumn:e.startPositionColumn,startIndex:e.startIndex,endPositionRow:e.startPositionRow,endPositionColumn:e.startPositionColumn,endIndex:e.startIndex,tag:i,anchor:o,styleGroup:Rs.Flow,style:Ns.Plain});return this.registerAnchor(a),a}createKeyValuePairEmptyValue(e){const{valueNode:t}=e,s=(null==t?void 0:t.children)||[],r=s.find($r.isKind("tag")),n=s.find($r.isKind("anchor")),i=new At(void 0!==r?Rr({explicitName:r.text,kind:Tt.Scalar},r):{explicitName:"?",kind:Tt.Scalar}),o=void 0!==n?new nr(Rr({name:n.text},n)):void 0,a=new Us({content:"",startPositionRow:e.endPositionRow,startPositionColumn:e.endPositionColumn,startIndex:e.endIndex,endPositionRow:e.endPositionRow,endPositionColumn:e.endPositionColumn,endIndex:e.endIndex,tag:i,anchor:o,styleGroup:Rs.Flow,style:Ns.Plain});return this.registerAnchor(a),a}}const Dr=$r;function Lr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var qr=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=Lr(this.xf["@@transducer/step"](e,!1))),e},e}();function Br(e){return function(t){return new qr(e,t)}}const Ur=u(T(["all"],Br,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0}))),Vr=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Hr=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Jr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Gr=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ce.wE)&&t.classes.includes(e),Wr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,zr=e=>e({hasMethod:Vr,hasBasicElementProps:Hr,primitiveEq:Jr,isElementType:Wr,hasClass:Gr}),Zr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Hg||e(s)&&t(void 0,s))),Kr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Om||e(s)&&t("string",s))),Yr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.kT||e(s)&&t("number",s))),Xr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Os||e(s)&&t("null",s))),Qr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.bd||e(s)&&t("boolean",s))),en=zr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof ce.Sh||e(r)&&t("object",r)&&s("keys",r)&&s("values",r)&&s("items",r))),tn=zr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof ce.wE&&!(r instanceof ce.Sh)||e(r)&&t("array",r)&&s("push",r)&&s("unshift",r)&&s("map",r)&&s("reduce",r))),sn=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Pr||e(r)&&t("member",r)&&s(void 0,r))),rn=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Ft||e(r)&&t("link",r)&&s(void 0,r))),nn=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.sI||e(r)&&t("ref",r)&&s(void 0,r))),on=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof st||e(r)&&t("annotation",r)&&s("array",r))),an=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof nt||e(r)&&t("comment",r)&&s("string",r))),cn=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ot||e(r)&&t("parseResult",r)&&s("array",r))),ln=e=>Wr("object",e)||Wr("array",e)||Wr("boolean",e)||Wr("number",e)||Wr("string",e)||Wr("null",e)||Wr("member",e),un=e=>!!Zr(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)),dn=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!tn(s)&&Ur(ys(s.toValue()),e)},mn=(e,t)=>0===e.length||Ur(ys(t.classes.toValue()),e);const hn=class extends xt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const pn=class extends hn{};const _n=class extends hn{},fn=(e,t={})=>{const{visited:s=new WeakMap}=t,r={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof ce.KeyValuePair){const{key:t,value:n}=e,i=Zr(t)?fn(t,r):t,o=Zr(n)?fn(n,r):n,a=new ce.KeyValuePair(i,o);return s.set(e,a),a}if(e instanceof ce.ot){const t=e=>fn(e,r),n=[...e].map(t),i=new ce.ot(n);return s.set(e,i),i}if(e instanceof ce.G6){const t=e=>fn(e,r),n=[...e].map(t),i=new ce.G6(n);return s.set(e,i),i}if(Zr(e)){const t=vn(e);if(s.set(e,t),e.content)if(Zr(e.content))t.content=fn(e.content,r);else if(e.content instanceof ce.KeyValuePair)t.content=fn(e.content,r);else if(Array.isArray(e.content)){const s=e=>fn(e,r);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new pn("Value provided to cloneDeep function couldn't be cloned",{value:e})};fn.safe=e=>{try{return fn(e)}catch{return e}};const gn=e=>{const{key:t,value:s}=e;return new ce.KeyValuePair(t,s)},yn=e=>{const t=new e.constructor;if(t.element=e.element,un(e)&&Rr(t,e),e.meta.length>0&&(t._meta=fn(e.meta)),e.attributes.length>0&&(t._attributes=fn(e.attributes)),Zr(e.content)){const s=e.content;t.content=yn(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ce.KeyValuePair?t.content=gn(e.content):t.content=e.content;return t},vn=e=>{if(e instanceof ce.KeyValuePair)return gn(e);if(e instanceof ce.ot)return(e=>{const t=[...e];return new ce.ot(t)})(e);if(e instanceof ce.G6)return(e=>{const t=[...e];return new ce.G6(t)})(e);if(Zr(e))return yn(e);throw new _n("Value provided to cloneShallow function couldn't be cloned",{value:e})};vn.safe=e=>{try{return vn(e)}catch{return e}};const bn=e=>en(e)?"ObjectElement":tn(e)?"ArrayElement":sn(e)?"MemberElement":Kr(e)?"StringElement":Qr(e)?"BooleanElement":Yr(e)?"NumberElement":Xr(e)?"NullElement":rn(e)?"LinkElement":nn(e)?"RefElement":void 0,wn=e=>Zr(e)?vn(e):tr(e),En=we(bn,dt),xn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const Sn=(e,t,{keyMap:s=xn,...r}={})=>rr(e,t,{keyMap:s,nodeTypeGetter:bn,nodePredicate:En,nodeCloneFn:wn,...r});Sn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=xn,...r}={})=>rr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:bn,nodePredicate:En,nodeCloneFn:wn,...r});const jn=d((function(e,t,s){var r,n={};for(r in s=s||{},t=t||{})$(r,t)&&(n[r]=$(r,s)?e(r,t[r],s[r]):t[r]);for(r in s)$(r,s)&&!$(r,n)&&(n[r]=s[r]);return n}));const On=d((function e(t,s,r){return jn((function(s,r,n){return Te(r)&&Te(n)?e(t,r,n):t(s,r,n)}),s,r)}));const Pn=u((function(e,t){return On((function(e,t,s){return s}),e,t)}));const Tn=ve(0,-1);const An=u((function(e,t){return e.apply(this,t)}));const Mn=K(Ke);var Fn=l((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():w(e)?[]:p(e)?"":Te(e)?{}:L(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 Nn=Fn;const Rn=l((function(e){return null!=e&&re(e,Nn(e))}));const In=C(1,Ke(Array.isArray)?Array.isArray:we(ee,xe("Array")));const kn=Le(In,Rn);const Cn=C(3,(function(e,t,s){var r=Fr(e,s),n=Fr(Tn(e),s);if(!Mn(r)&&!kn(e)){var i=de(r,n);return An(i,t)}})),$n=()=>({predicates:{...e},namespace:ut}),Dn={toolboxCreator:$n,visitorOptions:{nodeTypeGetter:bn,exposeEdits:!0}},Ln=(e,t,s={})=>{if(0===t.length)return e;const r=Pn(Dn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=sr(a.map(g({},"visitor")),{...i});a.forEach(Cn(["pre"],[]));const l=Sn(e,c,i);return a.forEach(Cn(["post"],[])),l};Ln[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const r=Pn(Dn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=sr[Symbol.for("nodejs.util.promisify.custom")],l=Sn[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(g({},"visitor")),{...i});await Promise.allSettled(a.map(Cn(["pre"],[])));const d=await l(e,u,i);return await Promise.allSettled(a.map(Cn(["post"],[]))),d};const qn=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Zr(e)&&(e.meta.length>0&&(r.meta=fn(e.meta)),e.attributes.length>0&&(r.attributes=fn(e.attributes))),Ln(r,s,{toolboxCreator:$n,visitorOptions:{nodeTypeGetter:bn}})},Bn=e=>(t,s={})=>qn(t,{...s,Type:e});ce.Sh.refract=Bn(ce.Sh),ce.wE.refract=Bn(ce.wE),ce.Om.refract=Bn(ce.Om),ce.bd.refract=Bn(ce.bd),ce.Os.refract=Bn(ce.Os),ce.kT.refract=Bn(ce.kT),ce.Ft.refract=Bn(ce.Ft),ce.sI.refract=Bn(ce.sI),st.refract=Bn(st),nt.refract=Bn(nt),ot.refract=Bn(ot);const Un={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...xn},Vn=e=>Zr(e)?bn(e):Qs(e),Hn=e=>Zr(e)||er(e)||Array.isArray(e);const Jn=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new ot;t._content=e.children.flat(1);const s=t.findElements(ln);if(s.length>0){s[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=lt()}comment(e){if(0===this.processedDocumentCount){const t=new nt(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,s=this.processedDocumentCount>=1;if(t){const t=new st("Only first document within YAML stream will be used. Rest will be discarded.");t.classes.push("warning"),this.maybeAddSourceMap(e,t),this.annotations.push(t)}return s?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new ce.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new ce.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}sequence(e){const t=new ce.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}scalar(e){const t=this.namespace.toElement(e.content);return""===e.content&&e.style===Ns.Plain&&(t.classes.push("yaml-e-node"),t.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new st(t);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}error(e,t,s,r){const n=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new st(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new ot;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){this.sourceMap&&Rr(t,e)}};class Gn{cursor;constructor(e){this.cursor=e}stream(){return new Ir(this.cursor)}yaml_directive(){return new Ir(this.cursor)}tag_directive(){return new Ir(this.cursor)}reserved_directive(){return new Ir(this.cursor)}document(){return new Ir(this.cursor)}block_node(){return new Ir(this.cursor).setFieldName(this.cursor)}flow_node(){return new Ir(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Ir(this.cursor)}block_mapping_pair(){return new Ir(this.cursor)}flow_mapping(){return new Ir(this.cursor)}flow_pair(){return new Ir(this.cursor)}block_sequence(){return new Ir(this.cursor)}block_sequence_item(){return new Ir(this.cursor)}flow_sequence(){return new Ir(this.cursor)}plain_scalar(){return new Ir(this.cursor)}single_quote_scalar(){return new Ir(this.cursor)}double_quote_scalar(){return new Ir(this.cursor)}block_scalar(){return new Ir(this.cursor)}ERROR(){return new Ir(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Ir(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Gn(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Gn(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Wn=Gn,zn=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new Wn(s),[n]=Array.from(r),i=new Dr,o=new Jn,a=new qs,c=new Ks,l=rr(n,i,{keyMap:kr,nodePredicate:Cr,state:{schema:a,sourceMap:t,referenceManager:c}});return rr(l.rootNode,o,{keyMap:Un,nodeTypeGetter:Vn,nodePredicate:Hn,state:{sourceMap:t}})};class Zn extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Kn=Zn;class Yn extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Xn=Yn;class Qn extends ce.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 ei=Qn;class ti extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const si=ti;class ri extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const ni=ri;class ii extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const oi=ii;class ai extends ce.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 ci=ai;class li extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ce.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(li.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ui=li;class di extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const mi=di;class hi extends ce.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 pi=hi;class _i extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Kr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Kr(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const fi=_i;class gi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const yi=gi;class vi extends ce.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 bi=vi;class wi extends ce.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 Ei=wi;class xi extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Si=xi;class ji extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Oi=ji;class Pi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Ti=Pi;class Ai extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new ce.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Ai.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Mi=Ai;class Fi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Ni=Fi;class Ri extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const Ii=Ri;class ki extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Ci=ki;class $i extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new ce.bd(!1)}set required(e){this.set("required",e)}}const Di=$i;class Li extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const qi=Li;class Bi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Ui=Bi;const Vi=class extends yt{};class Hi extends ce.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 Ji=Hi;class Gi extends ce.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 Wi=Gi;class zi extends ce.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 Zi=zi;class Ki extends ce.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 Yi=Ki;const Xi=function(){return!0},Qi=e=>"string"==typeof(null==e?void 0:e.type)?e.type:bn(e),eo={EphemeralObject:["content"],EphemeralArray:["content"],...xn},to=(e,t,{keyMap:s=eo,...r}={})=>Sn(e,t,{keyMap:s,nodeTypeGetter:Qi,nodePredicate:Xi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});to[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=eo,...s}={})=>Sn[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Qi,nodePredicate:Xi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const so=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 ro=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 no{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new ro(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 so(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 r=t[3];return"EphemeralObject"===(null===(s=r[r.length-1])||void 0===s?void 0:s.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Kr(e.href)?e.href.toValue():""}}const io=e=>Zr(e)?Kr(e)||Yr(e)||Qr(e)||Xr(e)?e.toValue():to(e,new no):e,oo=e=>{const t=e.meta.length>0?fn(e.meta):void 0,s=e.attributes.length>0?fn(e.attributes):void 0;return new e.constructor(void 0,t,s)},ao=(e,t)=>t.clone&&t.isMergeableElement(e)?lo(oo(e),e,t):e,co={clone:!0,isMergeableElement:e=>en(e)||tn(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>ao(e,s))),objectElementMerge:(e,t,s)=>{const r=en(e)?oo(e):oo(t);return en(e)&&e.forEach(((e,t,n)=>{const i=vn(n);i.value=ao(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=io(n);let a;if(en(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);a=vn(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return lo;const s=t.customMerge(e,t);return"function"==typeof s?s:lo})(n,s)(r,t,s)}else a=vn(i),a.value=ao(t,s);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},lo=(e,t,s)=>{var r,n,i;const o={...co,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:co.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:co.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:co.objectElementMerge;const a=tn(t);if(!(a===tn(e)))return ao(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=>fn(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>fn(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};lo.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ce.Sh:e.reduce(((e,s)=>lo(e,s,t)),oo(e[0]))};const uo=lo;const mo=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=uo(t.meta,e.meta)),un(e)&&Rr(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=uo(t.attributes,e.attributes))}};const ho=class extends mo{enter(e){return this.element=fn(e),Xs}},po=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},_o=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:_o(s,[...t,s])},fo=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>_o(e)));for(;s.every((e=>e.length>0));){const e=s.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,i=Object.create(n),o=_o(n);for(let t of e){let e=_o(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(po(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},go=e=>e.filter(((t,s)=>e.indexOf(t)==s)),yo=(e,t)=>{const s=t.map((e=>_o(e)));let r=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][r];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}r++}},vo=(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(yo(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==yo(r,e)||void 0!==t[r],get:(s,r)=>(yo(r,e)||t)[r],set(t,s,r){const n=yo(s,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[s]=r,!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)))))}),bo=null,wo="copy",Eo="copy",xo="deep",So=new WeakMap,jo=e=>So.get(e),Oo=(e,t)=>{var s,r;const n=go([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=go([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},Po=(e,t)=>{var s,r,n,i;return{property:Oo(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:Oo(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},To=(e,t)=>{var s,r,n,i,o,a;return{class:go([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:Po(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:Po(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Ao=new Map,Mo=(...e)=>{const t=((...e)=>{var t;const s=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const n=[..._o(e.prototype).map((e=>e.constructor)),...null!==(t=jo(e))&&void 0!==t?t:[]].filter((e=>!s.has(e)));for(let e of n)r.add(e);s.add(e),r.delete(e)}return[...s]})(...e).map((e=>Ao.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>To(e,t)))},Fo=e=>{let t=Ao.get(e);return t||(t={},Ao.set(e,t)),t};function No(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=bo;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let s of e)s.apply(this,t)},s={[i]:t};n.push(s)}function o(...t){for(const s of e)po(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Eo?fo(n,o):(a=n,c=o,vo([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===wo?fo(e,null,["prototype"]):vo(e,Function.prototype));let l=o;if("none"!==xo){const n="deep"===xo?Mo(...e):((...e)=>{const t=e.map((e=>Fo(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>To(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Ro(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},l),Ro(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},l.prototype)}var u,d;return u=l,d=e,So.set(u,d),l}const Ro=(e,t)=>{const s=e.property,r=e.method;if(s)for(let e in s)for(let r of s[e])r(t,e);if(r)for(let e in r)for(let s of r[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const Io=l((function(e){return C(ge(Je,0,Ge("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 ko=l((function(e){return!Rn(e)}));const Co=u((function(e,t){return e||t}));var $o=K(C(1,Le(Be,u((function(e,t){return $e(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Z(Co)(e,t)}))(Ve,Ke))));const Do=Io([dt,$o,ko]);const Lo=u((function(e,t){for(var s={},r=0;r<e.length;)e[r]in t&&(s[e[r]]=t[e[r]]),r+=1;return s}));const qo=class extends mo{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Lo(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Fr(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ce(Ke,["visitors",...e],this.specObj)?Fr(["visitors",...e],this.specObj):Fr(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof ho&&(null==r?void 0:r.constructor)===ho?fn(t):(Sn(t,r,s),r.element)}};const Bo=class extends qo{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,r,n)=>{if(Kr(r)&&s.includes(io(r))&&!this.ignoredFields.includes(io(r))){const s=this.toRefractedElement([...t,"fixedFields",io(r)],e),i=new ce.Pr(fn(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(io(r))||this.element.content.push(fn(n))})),this.copyMetaAndAttributes(e,this.element),Xs}};const Uo=class{parent;constructor({parent:e}){this.parent=e}},Vo=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ji||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),Ho=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wi||e(r)&&t("JSONReference",r)&&s("object",r))),Jo=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zi||e(r)&&t("media",r)&&s("object",r))),Go=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yi||e(r)&&t("linkDescription",r)&&s("object",r)));class Wo extends(No(Bo,Uo,ho)){constructor(e){super(e),this.element=new Ji,this.specPath=ne(["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,Bo.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(oe(this.parent)&&!Kr(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Vo(this.parent)&&!Kr(e.get("$schema"))){const e=m(io(this.parent.meta.get("inheritedDialectIdentifier")),io(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?fn(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ce.wE,r=io(e.get(t));Do(r)&&s.push(r),this.element.setMetaProperty("ancestorsSchemaIdentifiers",s)}}const zo=Wo,Zo=e=>en(e)&&e.hasKey("$ref");class Ko extends(No(qo,Uo,ho)){ObjectElement(e){const t=Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Xs}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const Yo=Ko;const Xo=class extends ho{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Qo=function(){return!1};const ea=class extends qo{specPath;ignoredFields;fieldPatternPredicate=Qo;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(!this.ignoredFields.includes(io(t))&&this.fieldPatternPredicate(io(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(fn(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(io(t))||this.element.content.push(fn(s))})),this.copyMetaAndAttributes(e,this.element),Xs}};const ta=class extends ea{constructor(e){super(e),this.fieldPatternPredicate=Do}};class sa extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ra=sa;class na extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ia=na;class oa extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const aa=oa;const ca=class extends ho{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const la=class extends ho{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 ua extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const da=ua;class ma extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const ha=ma;class pa extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const _a=pa;class fa extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Zo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ga=fa;class ya extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.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),Xs}}const va=ya;class ba extends(No(Bo,ho)){constructor(e){super(e),this.element=new Wi,this.specPath=ne(["document","objects","JSONReference"])}ObjectElement(e){const t=Bo.prototype.ObjectElement.call(this,e);return Kr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const wa=ba;const Ea=class extends ho{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const xa=d((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 Sa=l((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var ja=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Oa=ja;const Pa=l(Lr);const Ta=K(jr);const Aa=Le(In,ko);function Ma(e){return function(e){if(Array.isArray(e))return Fa(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 Fa(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)?Fa(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 Fa(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=Array(t);s<t;s++)r[s]=e[s];return r}var Na=we(Oa(Sa((function(e,t){return e.length>t.length}))),ar,f("length")),Ra=kt((function(e,t,s){var r=s.apply(void 0,Ma(e));return Ta(r)?Pa(r):t}));const Ia=xa(Aa,(function(e){var t=Na(e);return C(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return ge(Ra(s),void 0,e)}))}),ie);const ka=class extends qo{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>xa(e,ne(t),ie))),s=Ia(t)(e);return this.element=this.toRefractedElement(s,e),Xs}};const Ca=class extends ka{constructor(e){super(e),this.alternator=[{predicate:Zo,specPath:["document","objects","JSONReference"]},{predicate:Xi,specPath:["document","objects","JSONSchema"]}]}};class $a extends(No(Bo,ho)){constructor(e){super(e),this.element=new Zi,this.specPath=ne(["document","objects","Media"])}}const Da=$a;class La extends(No(Bo,ho)){constructor(e){super(e),this.element=new Yi,this.specPath=ne(["document","objects","LinkDescription"])}}const qa=La,Ba={visitors:{value:ho,JSONSchemaOrJSONReferenceVisitor:Ca,document:{objects:{JSONSchema:{$visitor:zo,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:Ca,items:Yo,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Xo,properties:ra,additionalProperties:Ca,patternProperties:ia,dependencies:aa,enum:ca,type:la,allOf:da,anyOf:ha,oneOf:_a,not:Ca,definitions:ga,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:va,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:wa,fixedFields:{$ref:Ea}},Media:{$visitor:Da,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:qa,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ca,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ca}}}}}},Ua=e=>{if(Zr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Va={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...xn},Ha={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Ji),t.register("jSONReference",Wi),t.register("media",Zi),t.register("linkDescription",Yi),t}},Ja=()=>{const e=lt(Ha);return{predicates:{...t,isStringElement:Kr},namespace:e}},Ga=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Ba}={})=>{const n=(0,ce.e)(e),i=Nr(r),o=new(Fr(t,i))({specObj:i});return Sn(n,o),Ln(o.element,s,{toolboxCreator:Ja,visitorOptions:{keyMap:Va,nodeTypeGetter:Ua}})},Wa=e=>(t,s={})=>Ga(t,{specPath:e,...s});Ji.refract=Wa(["visitors","document","objects","JSONSchema","$visitor"]),Wi.refract=Wa(["visitors","document","objects","JSONReference","$visitor"]),Zi.refract=Wa(["visitors","document","objects","Media","$visitor"]),Yi.refract=Wa(["visitors","document","objects","LinkDescription","$visitor"]);const za=class extends Ji{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Vi("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Vi("idProp setter in Schema class is not not supported.")}get $schema(){throw new Vi("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Vi("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new Vi("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Vi("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Vi("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Vi("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new Vi("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Vi("definitions setter in Schema class is not not supported.")}get base(){throw new Vi("base getter in Schema class is not not supported.")}set base(e){throw new Vi("base setter in Schema class is not not supported.")}get links(){throw new Vi("links getter in Schema class is not not supported.")}set links(e){throw new Vi("links setter in Schema class is not not supported.")}get media(){throw new Vi("media getter in Schema class is not not supported.")}set media(e){throw new Vi("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class Za extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const Ka=Za;class Ya extends ce.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 Xa=Ya;class Qa extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const ec=Qa;class tc extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const sc=tc;class rc extends ce.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 nc=rc;class ic extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const oc=ic;const ac=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=uo(t.meta,e.meta)),un(e)&&Rr(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=uo(t.attributes,e.attributes))}};const cc=class extends ac{enter(e){return this.element=fn(e),Xs}};const lc=class extends ac{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:r,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=r,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Lo(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Fr(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ce(Ke,["visitors",...e],this.specObj)?Fr(["visitors",...e],this.specObj):Fr(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof cc&&(null==r?void 0:r.constructor)===cc?fn(t):(Sn(t,r,s),r.element)}};var uc=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Lr(s):s},e}();function dc(e){return function(t){return new uc(e,t)}}const mc=u(T(["take"],dc,(function(e,t){return ve(0,e<0?1/0:e,t)})));const hc=u((function(e,t){return re(mc(e.length,t),e)})),pc=e=>en(e)&&e.hasKey("$ref"),_c=en,fc=en,gc=e=>Kr(e.key)&&hc("x-",io(e.key));const yc=class extends lc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=gc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Kr(r)&&s.includes(io(r))&&!this.ignoredFields.includes(io(r))){const s=this.toRefractedElement([...t,"fixedFields",io(r)],e),i=new ce.Pr(fn(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(io(r))||this.element.content.push(fn(n))})),this.copyMetaAndAttributes(e,this.element),Xs}};class vc extends(No(yc,cc)){constructor(e){super(e),this.element=new Oi,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return yc.prototype.ObjectElement.call(this,e)}}const bc=vc;class wc extends(No(lc,cc)){StringElement(e){const t=new Si(io(e));return this.copyMetaAndAttributes(e,t),this.element=t,Xs}}const Ec=wc;const xc=class extends lc{MemberElement(e){return this.element=fn(e),this.element.classes.push("specification-extension"),Xs}};class Sc extends(No(yc,cc)){constructor(e){super(e),this.element=new mi,this.specPath=ne(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const jc=Sc;const Oc=class extends cc{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Pc extends(No(yc,cc)){constructor(e){super(e),this.element=new ei,this.specPath=ne(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Tc=Pc;class Ac extends(No(yc,cc)){constructor(e){super(e),this.element=new pi,this.specPath=ne(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Mc=Ac;class Fc extends(No(yc,cc)){constructor(e){super(e),this.element=new fi,this.specPath=ne(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return(Kr(this.element.operationId)||Kr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Nc=Fc;const Rc=class extends cc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Ic=class extends cc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const kc=class extends lc{specPath;ignoredFields;fieldPatternPredicate=Qo;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=gc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:r,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof n&&(this.specificationExtensionPredicate=n)}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(io(t))&&this.fieldPatternPredicate(io(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(fn(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(io(t))||this.element.content.push(fn(s))})),this.copyMetaAndAttributes(e,this.element),Xs}};const Cc=class extends kc{constructor(e){super(e),this.fieldPatternPredicate=Do}};class $c extends ce.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push($c.primaryClass)}}const Dc=$c;class Lc extends(No(Cc,cc)){constructor(e){super(e),this.element=new Dc,this.specPath=ne(["value"])}}const qc=Lc;class Bc extends(No(yc,cc)){constructor(e){super(e),this.element=new ec,this.specPath=ne(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Uc=Bc;const Vc=class extends cc{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Hc extends ce.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Hc.primaryClass)}}const Jc=Hc;class Gc extends(No(lc,cc)){constructor(e){super(e),this.element=new Jc}ArrayElement(e){return e.forEach((e=>{const t=_c(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const Wc=Gc;class zc extends(No(yc,cc)){constructor(e){super(e),this.element=new sc,this.specPath=ne(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Zc=zc;class Kc extends ce.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(Kc.primaryClass)}}const Yc=Kc;class Xc extends(No(Cc,cc)){constructor(e){super(e),this.element=new Yc,this.specPath=ne(["document","objects","ServerVariable"])}}const Qc=Xc;class el extends(No(yc,cc)){constructor(e){super(e),this.element=new yi,this.specPath=ne(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const tl=el;const sl=class extends lc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>xa(e,ne(t),ie))),s=Ia(t)(e);return this.element=this.toRefractedElement(s,e),Xs}},rl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Kn||e(r)&&t("callback",r)&&s("object",r))),nl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xn||e(r)&&t("components",r)&&s("object",r))),il=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ei||e(r)&&t("contact",r)&&s("object",r))),ol=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oi||e(r)&&t("example",r)&&s("object",r))),al=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ci||e(r)&&t("externalDocumentation",r)&&s("object",r))),cl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ui||e(r)&&t("header",r)&&s("object",r))),ll=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof mi||e(r)&&t("info",r)&&s("object",r))),ul=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof pi||e(r)&&t("license",r)&&s("object",r))),dl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof fi||e(r)&&t("link",r)&&s("object",r))),ml=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Si||e(r)&&t("openapi",r)&&s("string",r))),hl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Oi||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),pl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ti||e(r)&&t("operation",r)&&s("object",r))),_l=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mi||e(r)&&t("parameter",r)&&s("object",r))),fl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ni||e(r)&&t("pathItem",r)&&s("object",r))),gl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ii||e(r)&&t("paths",r)&&s("object",r))),yl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ci||e(r)&&t("reference",r)&&s("object",r))),vl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Di||e(r)&&t("requestBody",r)&&s("object",r))),bl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qi||e(r)&&t("response",r)&&s("object",r))),wl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ui||e(r)&&t("responses",r)&&s("object",r))),El=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof za||e(r)&&t("schema",r)&&s("object",r))),xl=e=>Qr(e)&&e.classes.includes("boolean-json-schema"),Sl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ka||e(r)&&t("securityRequirement",r)&&s("object",r))),jl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xa||e(r)&&t("securityScheme",r)&&s("object",r))),Ol=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ec||e(r)&&t("server",r)&&s("object",r))),Pl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof sc||e(r)&&t("serverVariable",r)&&s("object",r))),Tl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof yi||e(r)&&t("mediaType",r)&&s("object",r))),Al=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Jc||e(n)&&t("array",n)&&s("array",n)&&r("servers",n))),Ml=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof si||e(r)&&t("discriminator",r)&&s("object",r)));class Fl extends(No(sl,cc)){constructor(e){super(e),this.alternator=[{predicate:pc,specPath:["document","objects","Reference"]},{predicate:Xi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=sl.prototype.enter.call(this,e);return yl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Nl=Fl;class Rl extends(No(Cc,cc)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("examples"),this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Il=Rl;class kl extends ce.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(kl.primaryClass),this.classes.push("examples")}}const Cl=kl;const $l=class extends Il{constructor(e){super(e),this.element=new Cl}};class Dl extends ce.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Dl.primaryClass)}}const Ll=Dl;class ql extends(No(Cc,cc)){constructor(e){super(e),this.element=new Ll,this.specPath=ne(["document","objects","Encoding"])}}const Bl=ql;class Ul extends(No(Cc,cc)){constructor(e){super(e),this.element=new Ka,this.specPath=ne(["value"])}}const Vl=Ul;class Hl extends ce.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Hl.primaryClass)}}const Jl=Hl;class Gl extends(No(lc,cc)){constructor(e){super(e),this.element=new Jl}ArrayElement(e){return e.forEach((e=>{if(en(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(fn(e))})),this.copyMetaAndAttributes(e,this.element),Xs}}const Wl=Gl;class zl extends(No(yc,cc)){constructor(e){super(e),this.element=new Xn,this.specPath=ne(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Zl=zl;class Kl extends(No(yc,cc)){constructor(e){super(e),this.element=new nc,this.specPath=ne(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Yl=Kl;class Xl extends(No(yc,cc)){constructor(e){super(e),this.element=new Ci,this.specPath=ne(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return Kr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Ql=Xl;const eu=class extends cc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class tu extends(No(yc,cc)){constructor(e){super(e),this.element=new Mi,this.specPath=ne(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return en(this.element.contentProp)&&this.element.contentProp.filter(Tl).forEach(((e,t)=>{e.setMetaProperty("media-type",io(t))})),t}}const su=tu;class ru extends(No(sl,cc)){constructor(e){super(e),this.alternator=[{predicate:pc,specPath:["document","objects","Reference"]},{predicate:Xi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=sl.prototype.enter.call(this,e);return yl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const nu=ru;class iu extends(No(yc,cc)){constructor(e){super(e),this.element=new ui,this.specPath=ne(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const ou=iu;class au extends(No(sl,cc)){constructor(e){super(e),this.alternator=[{predicate:pc,specPath:["document","objects","Reference"]},{predicate:Xi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=sl.prototype.enter.call(this,e);return yl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const cu=au;class lu extends ce.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(lu.primaryClass),this.classes.push("examples")}}const uu=lu;const du=class extends Il{constructor(e){super(e),this.element=new uu}};class mu extends(No(Cc,cc)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("content"),this.specPath=ne(["document","objects","MediaType"])}}const hu=mu;class pu extends ce.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(pu.primaryClass),this.classes.push("content")}}const _u=pu;const fu=class extends hu{constructor(e){super(e),this.element=new _u}};class gu extends(No(yc,cc)){constructor(e){super(e),this.element=new za,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const yu=gu,vu=Ba.visitors.document.objects.JSONSchema.fixedFields.allOf;const bu=class extends vu{ArrayElement(e){const t=vu.prototype.ArrayElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},wu=Ba.visitors.document.objects.JSONSchema.fixedFields.anyOf;const Eu=class extends wu{ArrayElement(e){const t=wu.prototype.ArrayElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},xu=Ba.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Su=class extends xu{ArrayElement(e){const t=xu.prototype.ArrayElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},ju=Ba.visitors.document.objects.JSONSchema.fixedFields.items;const Ou=class extends ju{ObjectElement(e){const t=ju.prototype.ObjectElement.call(this,e);return yl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},Pu=Ba.visitors.document.objects.JSONSchema.fixedFields.properties;const Tu=class extends Pu{ObjectElement(e){const t=Pu.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Au=Ba.visitors.document.objects.JSONSchema.fixedFields.type;const Mu=class extends Au{ArrayElement(e){return this.enter(e)}},Fu=Ba.visitors.JSONSchemaOrJSONReferenceVisitor;const Nu=class extends Fu{ObjectElement(e){const t=Fu.prototype.enter.call(this,e);return yl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Ru extends(No(yc,cc)){constructor(e){super(e),this.element=new si,this.specPath=ne(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Iu=Ru;class ku extends ce.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(ku.primaryClass)}}const Cu=ku;class $u extends(No(Cc,cc)){constructor(e){super(e),this.element=new Cu,this.specPath=ne(["value"])}}const Du=$u;class Lu extends(No(yc,cc)){constructor(e){super(e),this.element=new oc,this.specPath=ne(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const qu=Lu;class Bu extends ce.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Bu.primaryClass),this.classes.push("examples")}}const Uu=Bu;const Vu=class extends Il{constructor(e){super(e),this.element=new Uu}};class Hu extends ce.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Hu.primaryClass),this.classes.push("content")}}const Ju=Hu;const Gu=class extends hu{constructor(e){super(e),this.element=new Ju}};class Wu extends ce.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(Wu.primaryClass)}}const zu=Wu;class Zu extends(No(Cc,cc)){constructor(e){super(e),this.element=new zu,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Ku=Zu;class Yu extends ce.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(Yu.primaryClass)}}const Xu=Yu;class Qu extends(No(Cc,cc)){constructor(e){super(e),this.element=new Xu,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(bl).forEach(((e,t)=>{e.setMetaProperty("http-status-code",io(t))})),t}}const ed=Qu;class td extends ce.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(td.primaryClass),this.classes.push("parameters")}}const sd=td;class rd extends(No(Cc,cc)){constructor(e){super(e),this.element=new sd,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const nd=rd;class id extends ce.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(id.primaryClass),this.classes.push("examples")}}const od=id;class ad extends(No(Cc,cc)){constructor(e){super(e),this.element=new od,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const cd=ad;class ld extends ce.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(ld.primaryClass)}}const ud=ld;class dd extends(No(Cc,cc)){constructor(e){super(e),this.element=new ud,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const md=dd;class hd extends ce.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(hd.primaryClass)}}const pd=hd;class _d extends(No(Cc,cc)){constructor(e){super(e),this.element=new pd,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(cl).forEach(((e,t)=>{e.setMetaProperty("header-name",io(t))})),t}}const fd=_d;class gd extends ce.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(gd.primaryClass)}}const yd=gd;class vd extends(No(Cc,cc)){constructor(e){super(e),this.element=new yd,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const bd=vd;class wd extends ce.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(wd.primaryClass)}}const Ed=wd;class xd extends(No(Cc,cc)){constructor(e){super(e),this.element=new Ed,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Sd=xd;class jd extends ce.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(jd.primaryClass)}}const Od=jd;class Pd extends(No(Cc,cc)){constructor(e){super(e),this.element=new Od,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Td=Pd;class Ad extends(No(yc,cc)){constructor(e){super(e),this.element=new oi,this.specPath=ne(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return Kr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Md=Ad;const Fd=class extends cc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Nd extends(No(yc,cc)){constructor(e){super(e),this.element=new ci,this.specPath=ne(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Rd=Nd;class Id extends(No(yc,cc)){constructor(e){super(e),this.element=new ni,this.specPath=ne(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return en(this.element.headers)&&this.element.headers.filter(cl).forEach(((e,t)=>{e.setMetaProperty("header-name",io(t))})),t}}const kd=Id;class Cd extends ce.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Cd.primaryClass)}}const $d=Cd;class Dd extends(No(Cc,cc)){constructor(e){super(e),this.element=new $d,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!cl(e))return;const s=io(t);e.setMetaProperty("headerName",s)})),t}}const Ld=Dd;class qd extends(No(kc,cc)){constructor(e){super(e),this.element=new Ii,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Xi}ObjectElement(e){const t=kc.prototype.ObjectElement.call(this,e);return this.element.filter(fl).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",fn(t))})),t}}const Bd=qd;class Ud extends(No(yc,cc)){constructor(e){super(e),this.element=new Di,this.specPath=ne(["document","objects","RequestBody"])}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return en(this.element.contentProp)&&this.element.contentProp.filter(Tl).forEach(((e,t)=>{e.setMetaProperty("media-type",io(t))})),t}}const Vd=Ud;class Hd extends ce.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Hd.primaryClass),this.classes.push("content")}}const Jd=Hd;const Gd=class extends hu{constructor(e){super(e),this.element=new Jd}};class Wd extends(No(kc,cc)){constructor(e){super(e),this.element=new Kn,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(fl).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",io(t))})),t}}const zd=Wd;class Zd extends(No(yc,cc)){constructor(e){super(e),this.element=new qi,this.specPath=ne(["document","objects","Response"])}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return en(this.element.contentProp)&&this.element.contentProp.filter(Tl).forEach(((e,t)=>{e.setMetaProperty("media-type",io(t))})),en(this.element.headers)&&this.element.headers.filter(cl).forEach(((e,t)=>{e.setMetaProperty("header-name",io(t))})),t}}const Kd=Zd;class Yd extends ce.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Yd.primaryClass)}}const Xd=Yd;class Qd extends(No(Cc,cc)){constructor(e){super(e),this.element=new Xd,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!cl(e))return;const s=io(t);e.setMetaProperty("header-name",s)})),t}}const em=Qd;class tm extends ce.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(tm.primaryClass),this.classes.push("content")}}const sm=tm;const rm=class extends hu{constructor(e){super(e),this.element=new sm}};class nm extends ce.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(nm.primaryClass)}}const im=nm;class om extends(No(Cc,cc)){constructor(e){super(e),this.element=new im,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const am=om;function cm(e){return"[object Number]"===Object.prototype.toString.call(e)}const lm=u((function(e,t){if(!cm(e)||!cm(t))throw new TypeError("Both arguments to range must be numbers");for(var s=Array(e<t?t-e:0),r=e<0?t+Math.abs(e):t-e,n=0;n<r;)s[n]=n+e,n+=1;return s}));function um(e,t,s){var r,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?e in s._items[n]||(t&&(s._items[n][e]=!0),!1):(t&&(s._items[n]={},s._items[n][e]=!0),!1);case"boolean":if(n in s._items){var i=e?1:0;return!!s._items[n][i]||(t&&(s._items[n][i]=!0),!1)}return t&&(s._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?!!Se(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1);case"undefined":return!!s._items[n]||(t&&(s._items[n]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in s._items?!!Se(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1)}}const dm=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!um(e,!0,this)},e.prototype.has=function(e){return um(e,!1,this)},e}();const mm=u((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new dm,a=0;a<i;a+=1)o.add(t[a]);for(;r<n;)o.add(e[r])&&(s[s.length]=e[r]),r+=1;return s}));class hm extends(No(yc,kc)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:s}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...s,...mm(e.keys(),t)],yc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,kc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Xs}}const pm=hm;class _m extends(No(pm,cc)){constructor(e){super(e),this.element=new Ui,this.specPathFixedFields=ne(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>pc(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${lm(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=pm.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(bl).forEach(((e,t)=>{const s=fn(t);this.fieldPatternPredicate(io(s))&&e.setMetaProperty("http-status-code",s)})),t}}const fm=_m;class gm extends(No(sl,cc)){constructor(e){super(e),this.alternator=[{predicate:pc,specPath:["document","objects","Reference"]},{predicate:Xi,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=sl.prototype.enter.call(this,e);return yl(this.element)?this.element.setMetaProperty("referenced-element","response"):bl(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const ym=gm;class vm extends(No(yc,cc)){constructor(e){super(e),this.element=new Ti,this.specPath=ne(["document","objects","Operation"])}}const bm=vm;class wm extends ce.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(wm.primaryClass)}}const Em=wm;const xm=class extends cc{constructor(e){super(e),this.element=new Em}ArrayElement(e){return this.element=this.element.concat(fn(e)),Xs}};class Sm extends ce.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Sm.primaryClass),this.classes.push("parameters")}}const jm=Sm;class Om extends(No(lc,cc)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=pc(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);yl(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const Pm=Om;const Tm=class extends Pm{constructor(e){super(e),this.element=new jm}};const Am=class extends sl{constructor(e){super(e),this.alternator=[{predicate:pc,specPath:["document","objects","Reference"]},{predicate:Xi,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=sl.prototype.enter.call(this,e);return yl(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Mm extends ce.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Mm.primaryClass)}}const Fm=Mm;class Nm extends(No(Cc,cc)){specPath;constructor(e){super(e),this.element=new Fm,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(yl).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Rm=Nm;class Im extends ce.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Im.primaryClass),this.classes.push("security")}}const km=Im;class Cm extends(No(lc,cc)){constructor(e){super(e),this.element=new km}ArrayElement(e){return e.forEach((e=>{const t=en(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const $m=Cm;class Dm extends ce.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Dm.primaryClass),this.classes.push("servers")}}const Lm=Dm;const qm=class extends Wc{constructor(e){super(e),this.element=new Lm}};class Bm extends(No(yc,cc)){constructor(e){super(e),this.element=new Ni,this.specPath=ne(["document","objects","PathItem"])}ObjectElement(e){const t=yc.prototype.ObjectElement.call(this,e);return this.element.filter(pl).forEach(((e,t)=>{const s=fn(t);s.content=io(s).toUpperCase(),e.setMetaProperty("http-method",s)})),Kr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Um=Bm;const Vm=class extends cc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Hm extends ce.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Hm.primaryClass),this.classes.push("servers")}}const Jm=Hm;const Gm=class extends Wc{constructor(e){super(e),this.element=new Jm}};class Wm extends ce.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Wm.primaryClass),this.classes.push("parameters")}}const zm=Wm;const Zm=class extends Pm{constructor(e){super(e),this.element=new zm}};class Km extends(No(yc,cc)){constructor(e){super(e),this.element=new Xa,this.specPath=ne(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Ym=Km;class Xm extends(No(yc,cc)){constructor(e){super(e),this.element=new Ei,this.specPath=ne(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Qm=Xm;class eh extends(No(yc,cc)){constructor(e){super(e),this.element=new bi,this.specPath=ne(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const th=eh;class sh extends ce.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(sh.primaryClass)}}const rh=sh;class nh extends(No(Cc,cc)){constructor(e){super(e),this.element=new rh,this.specPath=ne(["value"])}}const ih=nh;class oh extends ce.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(oh.primaryClass)}}const ah=oh;class ch extends(No(lc,cc)){constructor(e){super(e),this.element=new ah}ArrayElement(e){return e.forEach((e=>{const t=fc(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Xs}}const lh=ch,{fixedFields:uh}=Ba.visitors.document.objects.JSONSchema,dh={visitors:{value:cc,document:{objects:{OpenApi:{$visitor:bc,fixedFields:{openapi:Ec,info:{$ref:"#/visitors/document/objects/Info"},servers:Wc,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Wl,tags:lh,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:jc,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Oc}},Contact:{$visitor:Tc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Mc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Uc,fixedFields:{url:Vc,description:{$ref:"#/visitors/value"},variables:Qc}},ServerVariable:{$visitor:Zc,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Zl,fixedFields:{schemas:Ku,responses:ed,parameters:nd,examples:cd,requestBodies:md,headers:fd,securitySchemes:bd,links:Sd,callbacks:Td}},Paths:{$visitor:Bd},PathItem:{$visitor:Um,fixedFields:{$ref:Vm,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Gm,parameters:Zm}},Operation:{$visitor:bm,fixedFields:{tags:xm,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Tm,requestBody:Am,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Rm,deprecated:{$ref:"#/visitors/value"},security:$m,servers:qm}},ExternalDocumentation:{$visitor:Rd,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:su,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:nu,example:{$ref:"#/visitors/value"},examples:Vu,content:Gu}},RequestBody:{$visitor:Vd,fixedFields:{description:{$ref:"#/visitors/value"},content:Gd,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:tl,fixedFields:{schema:Nl,example:{$ref:"#/visitors/value"},examples:$l,encoding:Bl}},Encoding:{$visitor:kd,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Ld,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:fm,fixedFields:{default:ym}},Response:{$visitor:Kd,fixedFields:{description:{$ref:"#/visitors/value"},headers:em,content:rm,links:am}},Callback:{$visitor:zd},Example:{$visitor:Md,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Fd}},Link:{$visitor:Nc,fixedFields:{operationRef:Rc,operationId:Ic,parameters:qc,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:ou,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:cu,example:{$ref:"#/visitors/value"},examples:du,content:fu}},Tag:{$visitor:Yl,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Ql,fixedFields:{$ref:eu}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:yu,fixedFields:{title:uh.title,multipleOf:uh.multipleOf,maximum:uh.maximum,exclusiveMaximum:uh.exclusiveMaximum,minimum:uh.minimum,exclusiveMinimum:uh.exclusiveMinimum,maxLength:uh.maxLength,minLength:uh.minLength,pattern:uh.pattern,maxItems:uh.maxItems,minItems:uh.minItems,uniqueItems:uh.uniqueItems,maxProperties:uh.maxProperties,minProperties:uh.minProperties,required:uh.required,enum:uh.enum,type:Mu,allOf:bu,anyOf:Eu,oneOf:Su,not:Nu,items:Ou,properties:Tu,additionalProperties:Nu,description:uh.description,format:uh.format,default:uh.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Iu,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Du}},XML:{$visitor:qu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Ym,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:Qm,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:th,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:ih}},SecurityRequirement:{$visitor:Vl}},extension:{$visitor:xc}}}},mh=e=>{if(Zr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},hh={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...xn},ph={namespace:e=>{const{base:t}=e;return t.register("callback",Kn),t.register("components",Xn),t.register("contact",ei),t.register("discriminator",si),t.register("encoding",ni),t.register("example",oi),t.register("externalDocumentation",ci),t.register("header",ui),t.register("info",mi),t.register("license",pi),t.register("link",fi),t.register("mediaType",yi),t.register("oAuthFlow",bi),t.register("oAuthFlows",Ei),t.register("openapi",Si),t.register("openApi3_0",Oi),t.register("operation",Ti),t.register("parameter",Mi),t.register("pathItem",Ni),t.register("paths",Ii),t.register("reference",Ci),t.register("requestBody",Di),t.register("response",qi),t.register("responses",Ui),t.register("schema",za),t.register("securityRequirement",Ka),t.register("securityScheme",Xa),t.register("server",ec),t.register("serverVariable",sc),t.register("tag",nc),t.register("xml",oc),t}},_h=()=>{const e=lt(ph);return{predicates:{...s,isElement:Zr,isStringElement:Kr,isArrayElement:tn,isObjectElement:en,isMemberElement:sn,includesClasses:mn,hasElementSourceMap:un},namespace:e}},fh=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=Nr(dh),i=new(Fr(t,n))({specObj:n});return Sn(r,i),Ln(i.element,s,{toolboxCreator:_h,visitorOptions:{keyMap:hh,nodeTypeGetter:mh}})},gh=e=>(t,s={})=>fh(t,{specPath:e,...s});Kn.refract=gh(["visitors","document","objects","Callback","$visitor"]),Xn.refract=gh(["visitors","document","objects","Components","$visitor"]),ei.refract=gh(["visitors","document","objects","Contact","$visitor"]),oi.refract=gh(["visitors","document","objects","Example","$visitor"]),si.refract=gh(["visitors","document","objects","Discriminator","$visitor"]),ni.refract=gh(["visitors","document","objects","Encoding","$visitor"]),ci.refract=gh(["visitors","document","objects","ExternalDocumentation","$visitor"]),ui.refract=gh(["visitors","document","objects","Header","$visitor"]),mi.refract=gh(["visitors","document","objects","Info","$visitor"]),pi.refract=gh(["visitors","document","objects","License","$visitor"]),fi.refract=gh(["visitors","document","objects","Link","$visitor"]),yi.refract=gh(["visitors","document","objects","MediaType","$visitor"]),bi.refract=gh(["visitors","document","objects","OAuthFlow","$visitor"]),Ei.refract=gh(["visitors","document","objects","OAuthFlows","$visitor"]),Si.refract=gh(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Oi.refract=gh(["visitors","document","objects","OpenApi","$visitor"]),Ti.refract=gh(["visitors","document","objects","Operation","$visitor"]),Mi.refract=gh(["visitors","document","objects","Parameter","$visitor"]),Ni.refract=gh(["visitors","document","objects","PathItem","$visitor"]),Ii.refract=gh(["visitors","document","objects","Paths","$visitor"]),Ci.refract=gh(["visitors","document","objects","Reference","$visitor"]),Di.refract=gh(["visitors","document","objects","RequestBody","$visitor"]),qi.refract=gh(["visitors","document","objects","Response","$visitor"]),Ui.refract=gh(["visitors","document","objects","Responses","$visitor"]),za.refract=gh(["visitors","document","objects","Schema","$visitor"]),Ka.refract=gh(["visitors","document","objects","SecurityRequirement","$visitor"]),Xa.refract=gh(["visitors","document","objects","SecurityScheme","$visitor"]),ec.refract=gh(["visitors","document","objects","Server","$visitor"]),sc.refract=gh(["visitors","document","objects","ServerVariable","$visitor"]),nc.refract=gh(["visitors","document","objects","Tag","$visitor"]),oc.refract=gh(["visitors","document","objects","XML","$visitor"]);const yh=class extends Kn{};const vh=class extends Xn{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const bh=class extends ei{};const wh=class extends si{};const Eh=class extends ni{};const xh=class extends oi{};const Sh=class extends ci{};const jh=class extends ui{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Oh=class extends mi{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class Ph extends ce.Om{static default=new Ph("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const Th=Ph;const Ah=class extends pi{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Mh=class extends fi{};const Fh=class extends yi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Nh=class extends bi{};const Rh=class extends Ei{};const Ih=class extends Si{};class kh extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Ch=kh;const $h=class extends Ti{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Dh=class extends Mi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Lh=class extends Ni{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}};const qh=class extends Ii{};class Bh extends Ci{}Object.defineProperty(Bh.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Bh.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Uh=Bh;const Vh=class extends Di{};const Hh=class extends qi{};const Jh=class extends Ui{};const Gh=class extends Ji{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft6"}get idProp(){throw new Vi("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Vi("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 Wh=class extends Yi{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 Vi("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Vi("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 Vi("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Vi("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Vi("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Vi("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var zh=d((function e(t,s,r){if(0===t.length)return s;var n=t[0];if(t.length>1){var i=!jr(r)&&$(n,r)&&"object"==typeof r[n]?r[n]:h(t[1])?[]:{};s=e(Array.prototype.slice.call(t,1),s,i)}return function(e,t,s){if(h(e)&&w(s)){var r=[].concat(s);return r[e]=t,r}var n={};for(var i in s)n[i]=s[i];return n[e]=t,n}(n,s,r)}));const Zh=zh;const Kh=d((function(e,t,s){var r=Array.prototype.slice.call(s,0);return r.splice(e,t),r}));var Yh=d((function(e,t,s){return Zh([e],t,s)}));const Xh=Yh;var Qh=u((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(h(e)&&w(t))return Kh(e,1,t);var s={};for(var r in t)s[r]=t[r];return delete s[e],s}(t[0],s);default:var r=t[0],n=Array.prototype.slice.call(t,1);return null==s[r]?function(e,t){if(h(e)&&w(t))return[].concat(t);var s={};for(var r in t)s[r]=t[r];return s}(r,s):Xh(r,e(n,s[r]),s)}}));const ep=Qh;const tp=class extends zo{constructor(e){super(e),this.element=new Gh}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 sp=class extends Yo{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Xs}};const rp=class extends ho{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const np=class extends qa{constructor(e){super(e),this.element=new Wh}},ip=we(Zh(["visitors","document","objects","JSONSchema","$visitor"],tp),ep(["visitors","document","objects","JSONSchema","fixedFields","id"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","$id"],Ba.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","contains"],Ba.visitors.JSONSchemaOrJSONReferenceVisitor),Zh(["visitors","document","objects","JSONSchema","fixedFields","items"],sp),Zh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Ba.visitors.JSONSchemaOrJSONReferenceVisitor),Zh(["visitors","document","objects","JSONSchema","fixedFields","const"],Ba.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","examples"],rp),Zh(["visitors","document","objects","LinkDescription","$visitor"],np),Zh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Ba.visitors.JSONSchemaOrJSONReferenceVisitor),ep(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Zh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Ba.visitors.JSONSchemaOrJSONReferenceVisitor),ep(["visitors","document","objects","LinkDescription","fixedFields","method"]),ep(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Zh(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Ba.visitors.value))(Ba),op={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...xn},ap=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gh||e(r)&&t("JSONSchemaDraft6",r)&&s("object",r))),cp=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wh||e(r)&&t("linkDescription",r)&&s("object",r))),lp={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Gh),t.register("jSONReference",Wi),t.register("media",Zi),t.register("linkDescription",Wh),t}},up=()=>{const e=lt(lp);return{predicates:{...r,isStringElement:Kr},namespace:e}},dp=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=ip}={})=>{const n=(0,ce.e)(e),i=Nr(r),o=new(Fr(t,i))({specObj:i});return Sn(n,o),Ln(o.element,s,{toolboxCreator:up,visitorOptions:{keyMap:op,nodeTypeGetter:Ua}})},mp=e=>(t,s={})=>dp(t,{specPath:e,...s});Gh.refract=mp(["visitors","document","objects","JSONSchema","$visitor"]),Wh.refract=mp(["visitors","document","objects","LinkDescription","$visitor"]);const hp=class extends Gh{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 Vi('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Vi('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 pp=class extends Wh{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 Vi("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Vi("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 Vi("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Vi("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 _p=class extends tp{constructor(e){super(e),this.element=new hp}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const fp=class extends np{constructor(e){super(e),this.element=new pp}},gp=we(Zh(["visitors","document","objects","JSONSchema","$visitor"],_p),Zh(["visitors","document","objects","JSONSchema","fixedFields","$comment"],ip.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","if"],ip.visitors.JSONSchemaOrJSONReferenceVisitor),Zh(["visitors","document","objects","JSONSchema","fixedFields","then"],ip.visitors.JSONSchemaOrJSONReferenceVisitor),Zh(["visitors","document","objects","JSONSchema","fixedFields","else"],ip.visitors.JSONSchemaOrJSONReferenceVisitor),ep(["visitors","document","objects","JSONSchema","fixedFields","media"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],ip.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],ip.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],ip.visitors.value),Zh(["visitors","document","objects","LinkDescription","$visitor"],fp),Zh(["visitors","document","objects","LinkDescription","fixedFields","anchor"],ip.visitors.value),Zh(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],ip.visitors.value),ep(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Zh(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],ip.visitors.value),Zh(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],ip.visitors.value),Zh(["visitors","document","objects","LinkDescription","fixedFields","description"],ip.visitors.value),Zh(["visitors","document","objects","LinkDescription","fixedFields","$comment"],ip.visitors.value),Zh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],ip.visitors.JSONSchemaOrJSONReferenceVisitor),ep(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Zh(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],ip.visitors.value))(ip),yp={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...xn},vp=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof hp||e(r)&&t("JSONSchemaDraft7",r)&&s("object",r))),bp=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof pp||e(r)&&t("linkDescription",r)&&s("object",r))),wp={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",hp),t.register("jSONReference",Wi),t.register("linkDescription",pp),t}},Ep=()=>{const e=lt(wp);return{predicates:{...n,isStringElement:Kr},namespace:e}},xp=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=gp}={})=>{const n=(0,ce.e)(e),i=Nr(r),o=new(Fr(t,i))({specObj:i});return Sn(n,o),Ln(o.element,s,{toolboxCreator:Ep,visitorOptions:{keyMap:yp,nodeTypeGetter:Ua}})},Sp=e=>(t,s={})=>xp(t,{specPath:e,...s});hp.refract=Sp(["visitors","document","objects","JSONSchema","$visitor"]),pp.refract=Sp(["visitors","document","objects","LinkDescription","$visitor"]);const jp=class extends hp{constructor(e,t,s){super(e,t,s),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get definitions(){throw new Vi("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Vi("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get dependencies(){throw new Vi("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Vi("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}};const Op=class extends pp{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const Pp=class extends _p{constructor(e){super(e),this.element=new jp}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Bo.prototype.ObjectElement.call(this,e);return Kr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const Tp=class extends ho{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Ap=class extends ho{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Mp extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=ne(["document","objects","JSONSchema"])}}const Fp=Mp;class Np extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xs}}const Rp=Np;class Ip extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xs}}const kp=Ip;class Cp extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xs}}const $p=Cp;class Dp extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ne(["document","objects","JSONSchema"])}}const Lp=Dp;class qp extends(No(qo,Uo,ho)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Xs}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xs}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Xs}}const Bp=qp;class Up extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Vp=Up;class Hp extends(No(ta,Uo,ho)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Jp=Hp;const Gp=class extends ho{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const Wp=class extends fp{constructor(e){super(e),this.element=new Op}},zp=we(Zh(["visitors","document","objects","JSONSchema","$visitor"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Tp),Zh(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],gp.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],gp.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],gp.visitors.value),ep(["visitors","document","objects","JSONReference","$visitor"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","$ref"],Ap),ep(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Fp),Zh(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Rp),Zh(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],kp),Zh(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],$p),Zh(["visitors","document","objects","JSONSchema","fixedFields","not"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","if"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","then"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","else"],Pp),ep(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],Lp),Zh(["visitors","document","objects","JSONSchema","fixedFields","items"],Bp),Zh(["visitors","document","objects","JSONSchema","fixedFields","contains"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","properties"],Vp),Zh(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Jp),Zh(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Pp),Zh(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],gp.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","minContains"],gp.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Gp),Zh(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],gp.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Pp),Zh(["visitors","document","objects","LinkDescription","$visitor"],Wp),Zh(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Pp),Zh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Pp),Zh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Pp),Zh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Pp))(gp),Zp={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...xn},Kp=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jp||e(r)&&t("JSONSchema201909",r)&&s("object",r))),Yp=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Op||e(r)&&t("linkDescription",r)&&s("object",r))),Xp={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",jp),t.register("linkDescription",Op),t}},Qp=()=>{const e=lt(Xp);return{predicates:{...i,isStringElement:Kr},namespace:e}},e_=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=zp}={})=>{const n=(0,ce.e)(e),i=Nr(r),o=new(Fr(t,i))({specObj:i});return Sn(n,o),Ln(o.element,s,{toolboxCreator:Qp,visitorOptions:{keyMap:Zp,nodeTypeGetter:Ua}})},t_=e=>(t,s={})=>e_(t,{specPath:e,...s});jp.refract=t_(["visitors","document","objects","JSONSchema","$visitor"]),Op.refract=t_(["visitors","document","objects","LinkDescription","$visitor"]);const s_=class extends jp{constructor(e,t,s){super(e,t,s),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new Vi("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Vi("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new Vi("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Vi("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const r_=class extends Op{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const n_=class extends Pp{constructor(e){super(e),this.element=new s_}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class i_ extends(No(qo,Uo,ho)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xs}}const o_=i_;const a_=class extends Wp{constructor(e){super(e),this.element=new r_}},c_=we(Zh(["visitors","document","objects","JSONSchema","$visitor"],n_),ep(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],zp.visitors.value),ep(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],zp.visitors.value),Zh(["visitors","document","objects","JSONSchema","fixedFields","not"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","if"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","then"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","else"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],o_),Zh(["visitors","document","objects","JSONSchema","fixedFields","items"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","contains"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],n_),ep(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Zh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],n_),Zh(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],n_),Zh(["visitors","document","objects","LinkDescription","$visitor"],a_),Zh(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],n_),Zh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],n_),Zh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],n_),Zh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],n_))(zp),l_={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...xn},u_=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof s_||e(r)&&t("JSONSchema202012",r)&&s("object",r))),d_=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof r_||e(r)&&t("linkDescription",r)&&s("object",r))),m_={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",s_),t.register("linkDescription",r_),t}},h_=()=>{const e=lt(m_);return{predicates:{...o,isStringElement:Kr},namespace:e}},p_=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=c_}={})=>{const n=(0,ce.e)(e),i=Nr(r),o=new(Fr(t,i))({specObj:i});return Sn(n,o),Ln(o.element,s,{toolboxCreator:h_,visitorOptions:{keyMap:l_,nodeTypeGetter:Ua}})},__=e=>(t,s={})=>p_(t,{specPath:e,...s});s_.refract=__(["visitors","document","objects","JSONSchema","$visitor"]),r_.refract=__(["visitors","document","objects","LinkDescription","$visitor"]);const f_=class extends s_{constructor(e,t,s){super(e,t,s),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}};const g_=class extends Ka{};const y_=class extends Xa{};const v_=class extends ec{};const b_=class extends sc{};const w_=class extends nc{};const E_=class extends oc{};class x_ extends(No(yc,cc)){constructor(e){super(e),this.element=new Ch,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,yc.prototype.ObjectElement.call(this,e)}}const S_=x_,j_=dh.visitors.document.objects.Info.$visitor;const O_=class extends j_{constructor(e){super(e),this.element=new Oh}},P_=dh.visitors.document.objects.Contact.$visitor;const T_=class extends P_{constructor(e){super(e),this.element=new bh}},A_=dh.visitors.document.objects.License.$visitor;const M_=class extends A_{constructor(e){super(e),this.element=new Ah}},F_=dh.visitors.document.objects.Link.$visitor;const N_=class extends F_{constructor(e){super(e),this.element=new Mh}};class R_ extends(No(lc,cc)){StringElement(e){const t=new Th(io(e));return this.copyMetaAndAttributes(e,t),this.element=t,Xs}}const I_=R_,k_=dh.visitors.document.objects.Server.$visitor;const C_=class extends k_{constructor(e){super(e),this.element=new v_}},$_=dh.visitors.document.objects.ServerVariable.$visitor;const D_=class extends $_{constructor(e){super(e),this.element=new b_}},L_=dh.visitors.document.objects.MediaType.$visitor;const q_=class extends L_{constructor(e){super(e),this.element=new Fh}},B_=dh.visitors.document.objects.SecurityRequirement.$visitor;const U_=class extends B_{constructor(e){super(e),this.element=new g_}},V_=dh.visitors.document.objects.Components.$visitor;const H_=class extends V_{constructor(e){super(e),this.element=new vh}},J_=dh.visitors.document.objects.Tag.$visitor;const G_=class extends J_{constructor(e){super(e),this.element=new w_}},W_=dh.visitors.document.objects.Reference.$visitor;const z_=class extends W_{constructor(e){super(e),this.element=new Uh}},Z_=dh.visitors.document.objects.Parameter.$visitor;const K_=class extends Z_{constructor(e){super(e),this.element=new Dh}},Y_=dh.visitors.document.objects.Header.$visitor;const X_=class extends Y_{constructor(e){super(e),this.element=new jh}},Q_=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof yh||e(r)&&t("callback",r)&&s("object",r))),ef=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vh||e(r)&&t("components",r)&&s("object",r))),tf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof bh||e(r)&&t("contact",r)&&s("object",r))),sf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof xh||e(r)&&t("example",r)&&s("object",r))),rf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Sh||e(r)&&t("externalDocumentation",r)&&s("object",r))),nf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jh||e(r)&&t("header",r)&&s("object",r))),of=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Oh||e(r)&&t("info",r)&&s("object",r))),af=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Th||e(r)&&t("jsonSchemaDialect",r)&&s("string",r))),cf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ah||e(r)&&t("license",r)&&s("object",r))),lf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mh||e(r)&&t("link",r)&&s("object",r))),uf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ih||e(r)&&t("openapi",r)&&s("string",r))),df=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Ch||e(n)&&t("openApi3_1",n)&&s("object",n)&&r("api",n))),mf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $h||e(r)&&t("operation",r)&&s("object",r))),hf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Dh||e(r)&&t("parameter",r)&&s("object",r))),pf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Lh||e(r)&&t("pathItem",r)&&s("object",r))),_f=e=>{if(!pf(e))return!1;if(!Kr(e.$ref))return!1;const t=io(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},ff=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qh||e(r)&&t("paths",r)&&s("object",r))),gf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Uh||e(r)&&t("reference",r)&&s("object",r))),yf=e=>{if(!gf(e))return!1;if(!Kr(e.$ref))return!1;const t=io(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},vf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vh||e(r)&&t("requestBody",r)&&s("object",r))),bf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hh||e(r)&&t("response",r)&&s("object",r))),wf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jh||e(r)&&t("responses",r)&&s("object",r))),Ef=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof f_||e(r)&&t("schema",r)&&s("object",r))),xf=e=>Qr(e)&&e.classes.includes("boolean-json-schema"),Sf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof g_||e(r)&&t("securityRequirement",r)&&s("object",r))),jf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof y_||e(r)&&t("securityScheme",r)&&s("object",r))),Of=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof v_||e(r)&&t("server",r)&&s("object",r))),Pf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof b_||e(r)&&t("serverVariable",r)&&s("object",r))),Tf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fh||e(r)&&t("mediaType",r)&&s("object",r)));class Af extends(No(yc,Uo,cc)){constructor(e){super(e),this.element=new f_,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Th.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=yc.prototype.ObjectElement.call(this,e);return Kr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return n_.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&af(this.openApiSemanticElement.jsonSchemaDialect)?io(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Kr(this.openApiGenericElement.get("jsonSchemaDialect"))?io(this.openApiGenericElement.get("jsonSchemaDialect")):io(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return n_.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return n_.prototype.handleSchemaIdentifier.call(this,e)}}const Mf=Af;const Ff=class extends Fp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Nf=class extends Rp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Rf=class extends kp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const If=class extends $p{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const kf=class extends Lp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Cf=class extends o_{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const $f=class extends Vp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Df=class extends Jp{constructor(e){super(e),this.passingOptionsNames.push("parent")}},Lf=dh.visitors.document.objects.Discriminator.$visitor;const qf=class extends Lf{constructor(e){super(e),this.element=new wh,this.canSupportSpecificationExtensions=!0}},Bf=dh.visitors.document.objects.XML.$visitor;const Uf=class extends Bf{constructor(e){super(e),this.element=new E_}};class Vf extends(No(Cc,cc)){constructor(e){super(e),this.element=new zu,this.specPath=ne(["document","objects","Schema"])}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(Ef).forEach(((e,t)=>{e.setMetaProperty("schemaName",io(t))})),t}}const Hf=Vf;class Jf extends ce.Sh{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(Jf.primaryClass)}}const Gf=Jf;class Wf extends(No(Cc,cc)){constructor(e){super(e),this.element=new Gf,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const zf=Wf,Zf=dh.visitors.document.objects.Example.$visitor;const Kf=class extends Zf{constructor(e){super(e),this.element=new xh}},Yf=dh.visitors.document.objects.ExternalDocumentation.$visitor;const Xf=class extends Yf{constructor(e){super(e),this.element=new Sh}},Qf=dh.visitors.document.objects.Encoding.$visitor;const eg=class extends Qf{constructor(e){super(e),this.element=new Eh}},tg=dh.visitors.document.objects.Paths.$visitor;const sg=class extends tg{constructor(e){super(e),this.element=new qh}},rg=dh.visitors.document.objects.RequestBody.$visitor;const ng=class extends rg{constructor(e){super(e),this.element=new Vh}},ig=dh.visitors.document.objects.Callback.$visitor;const og=class extends ig{constructor(e){super(e),this.element=new yh,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=ig.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},ag=dh.visitors.document.objects.Response.$visitor;const cg=class extends ag{constructor(e){super(e),this.element=new Hh}},lg=dh.visitors.document.objects.Responses.$visitor;const ug=class extends lg{constructor(e){super(e),this.element=new Jh}},dg=dh.visitors.document.objects.Operation.$visitor;const mg=class extends dg{constructor(e){super(e),this.element=new $h}},hg=dh.visitors.document.objects.PathItem.$visitor;const pg=class extends hg{constructor(e){super(e),this.element=new Lh}},_g=dh.visitors.document.objects.SecurityScheme.$visitor;const fg=class extends _g{constructor(e){super(e),this.element=new y_}},gg=dh.visitors.document.objects.OAuthFlows.$visitor;const yg=class extends gg{constructor(e){super(e),this.element=new Rh}},vg=dh.visitors.document.objects.OAuthFlow.$visitor;const bg=class extends vg{constructor(e){super(e),this.element=new Nh}};class wg extends ce.Sh{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(wg.primaryClass)}}const Eg=wg;class xg extends(No(Cc,cc)){constructor(e){super(e),this.element=new Eg,this.specPath=e=>pc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(pf).forEach(((e,t)=>{e.setMetaProperty("webhook-name",io(t))})),t}}const Sg=xg,{JSONSchema:jg,LinkDescription:Og}=c_.visitors.document.objects,Pg={visitors:{value:dh.visitors.value,document:{objects:{OpenApi:{$visitor:S_,fixedFields:{openapi:dh.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:I_,servers:dh.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Sg,components:{$ref:"#/visitors/document/objects/Components"},security:dh.visitors.document.objects.OpenApi.fixedFields.security,tags:dh.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:O_,fixedFields:{title:dh.visitors.document.objects.Info.fixedFields.title,description:dh.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:dh.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:dh.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:T_,fixedFields:{name:dh.visitors.document.objects.Contact.fixedFields.name,url:dh.visitors.document.objects.Contact.fixedFields.url,email:dh.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:M_,fixedFields:{name:dh.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:dh.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:C_,fixedFields:{url:dh.visitors.document.objects.Server.fixedFields.url,description:dh.visitors.document.objects.Server.fixedFields.description,variables:dh.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:D_,fixedFields:{enum:dh.visitors.document.objects.ServerVariable.fixedFields.enum,default:dh.visitors.document.objects.ServerVariable.fixedFields.default,description:dh.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:H_,fixedFields:{schemas:Hf,responses:dh.visitors.document.objects.Components.fixedFields.responses,parameters:dh.visitors.document.objects.Components.fixedFields.parameters,examples:dh.visitors.document.objects.Components.fixedFields.examples,requestBodies:dh.visitors.document.objects.Components.fixedFields.requestBodies,headers:dh.visitors.document.objects.Components.fixedFields.headers,securitySchemes:dh.visitors.document.objects.Components.fixedFields.securitySchemes,links:dh.visitors.document.objects.Components.fixedFields.links,callbacks:dh.visitors.document.objects.Components.fixedFields.callbacks,pathItems:zf}},Paths:{$visitor:sg},PathItem:{$visitor:pg,fixedFields:{$ref:dh.visitors.document.objects.PathItem.fixedFields.$ref,summary:dh.visitors.document.objects.PathItem.fixedFields.summary,description:dh.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:dh.visitors.document.objects.PathItem.fixedFields.servers,parameters:dh.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:mg,fixedFields:{tags:dh.visitors.document.objects.Operation.fixedFields.tags,summary:dh.visitors.document.objects.Operation.fixedFields.summary,description:dh.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:dh.visitors.document.objects.Operation.fixedFields.operationId,parameters:dh.visitors.document.objects.Operation.fixedFields.parameters,requestBody:dh.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:dh.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:dh.visitors.document.objects.Operation.fixedFields.deprecated,security:dh.visitors.document.objects.Operation.fixedFields.security,servers:dh.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Xf,fixedFields:{description:dh.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:dh.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:K_,fixedFields:{name:dh.visitors.document.objects.Parameter.fixedFields.name,in:dh.visitors.document.objects.Parameter.fixedFields.in,description:dh.visitors.document.objects.Parameter.fixedFields.description,required:dh.visitors.document.objects.Parameter.fixedFields.required,deprecated:dh.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:dh.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:dh.visitors.document.objects.Parameter.fixedFields.style,explode:dh.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:dh.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:dh.visitors.document.objects.Parameter.fixedFields.example,examples:dh.visitors.document.objects.Parameter.fixedFields.examples,content:dh.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:ng,fixedFields:{description:dh.visitors.document.objects.RequestBody.fixedFields.description,content:dh.visitors.document.objects.RequestBody.fixedFields.content,required:dh.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:q_,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:dh.visitors.document.objects.MediaType.fixedFields.example,examples:dh.visitors.document.objects.MediaType.fixedFields.examples,encoding:dh.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:eg,fixedFields:{contentType:dh.visitors.document.objects.Encoding.fixedFields.contentType,headers:dh.visitors.document.objects.Encoding.fixedFields.headers,style:dh.visitors.document.objects.Encoding.fixedFields.style,explode:dh.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:dh.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:ug,fixedFields:{default:dh.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:cg,fixedFields:{description:dh.visitors.document.objects.Response.fixedFields.description,headers:dh.visitors.document.objects.Response.fixedFields.headers,content:dh.visitors.document.objects.Response.fixedFields.content,links:dh.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:og},Example:{$visitor:Kf,fixedFields:{summary:dh.visitors.document.objects.Example.fixedFields.summary,description:dh.visitors.document.objects.Example.fixedFields.description,value:dh.visitors.document.objects.Example.fixedFields.value,externalValue:dh.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:N_,fixedFields:{operationRef:dh.visitors.document.objects.Link.fixedFields.operationRef,operationId:dh.visitors.document.objects.Link.fixedFields.operationId,parameters:dh.visitors.document.objects.Link.fixedFields.parameters,requestBody:dh.visitors.document.objects.Link.fixedFields.requestBody,description:dh.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:X_,fixedFields:{description:dh.visitors.document.objects.Header.fixedFields.description,required:dh.visitors.document.objects.Header.fixedFields.required,deprecated:dh.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:dh.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:dh.visitors.document.objects.Header.fixedFields.style,explode:dh.visitors.document.objects.Header.fixedFields.explode,allowReserved:dh.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:dh.visitors.document.objects.Header.fixedFields.example,examples:dh.visitors.document.objects.Header.fixedFields.examples,content:dh.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:G_,fixedFields:{name:dh.visitors.document.objects.Tag.fixedFields.name,description:dh.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:z_,fixedFields:{$ref:dh.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Og},Schema:{$visitor:Mf,fixedFields:{...jg.fixedFields,$defs:Ff,allOf:Nf,anyOf:Rf,oneOf:If,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:kf,prefixItems:Cf,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:$f,patternProperties:Df,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:qf,fixedFields:{propertyName:dh.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:dh.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Uf,fixedFields:{name:dh.visitors.document.objects.XML.fixedFields.name,namespace:dh.visitors.document.objects.XML.fixedFields.namespace,prefix:dh.visitors.document.objects.XML.fixedFields.prefix,attribute:dh.visitors.document.objects.XML.fixedFields.attribute,wrapped:dh.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:fg,fixedFields:{type:dh.visitors.document.objects.SecurityScheme.fixedFields.type,description:dh.visitors.document.objects.SecurityScheme.fixedFields.description,name:dh.visitors.document.objects.SecurityScheme.fixedFields.name,in:dh.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:dh.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:dh.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:dh.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:yg,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:bg,fixedFields:{authorizationUrl:dh.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:dh.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:dh.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:dh.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:U_}},extension:{$visitor:dh.visitors.document.extension.$visitor}}}},Tg=e=>{if(Zr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ag={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...xn},Mg=function(){const e=Ng,t=Fg,s=this,r="parser.js: Parser(): ";s.ast=void 0,s.stats=void 0,s.trace=void 0,s.callbacks=[];let n,i,o,a,c,l,u,d=0,m=0,h=0,p=0,_=0,f=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};s.parse=(g,y,b,w)=>{const E=`${r}parse(): `;d=0,m=0,h=0,p=0,_=0,n=void 0,i=void 0,o=void 0,a=void 0,f.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(b),n=g.rules,i=g.udts;const x=y.toLowerCase();let S;for(const e in n)if(n.hasOwnProperty(e)&&x===n[e].lower){S=n[e].index;break}if(void 0===S)throw new Error(`${E}start rule name '${startRule}' not recognized`);(()=>{const e=`${r}initializeCallbacks(): `;let t,o;for(c=[],l=[],t=0;t<n.length;t+=1)c[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<n.length;t+=1)a.push(n[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const r in s.callbacks)if(s.callbacks.hasOwnProperty(r)){if(t=a.indexOf(r.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${r}' not a rule or udt name`);if(o=s.callbacks[r]?s.callbacks[r]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${r}] must be function reference or falsy)`);t<n.length?c[t]=o:l[t-n.length]=o}})(),s.trace&&s.trace.init(n,i,a),s.stats&&s.stats.init(n,i),s.ast&&s.ast.init(n,i,a),u=w,o=[{type:e.RNM,index:S}],v(0,0),o=void 0;let j=!1;switch(f.state){case e.ACTIVE:throw new Error(`${E}final state should never be 'ACTIVE'`);case e.NOMATCH:j=!1;break;case e.EMPTY:case e.MATCH:j=f.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:j,state:f.state,stateName:e.idName(f.state),length:a.length,matched:f.phraseLength,maxMatched:_,maxTreeDepth:h,nodeHits:p}};const g=(t,s,n,i)=>{if(s.phraseLength>n){let e=`${r}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(s.state){case e.ACTIVE:if(!i)throw new Error(`${r}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:s.phraseLength=0;break;case e.MATCH:0===s.phraseLength&&(s.state=e.EMPTY);break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${r}opRNM(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}},y=(t,c)=>{let m,h,p;const _=o[t],g=i[_.index];f.UdtIndex=g.index,d||(p=s.ast&&s.ast.udtDefined(_.index),p&&(h=n.length+_.index,m=s.ast.getLength(),s.ast.down(h,g.name)));const y=a.length-c;l[_.index](f,a,c,u),((t,s,n)=>{if(s.phraseLength>n){let e=`${r}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(s.state){case e.ACTIVE:throw new Error(`${r}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);s.phraseLength=0;break;case e.MATCH:if(0===s.phraseLength){if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);s.state=e.EMPTY}break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${r}opUDT(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}})(g,f,y),d||p&&(f.state===e.NOMATCH?s.ast.setLength(m):s.ast.up(h,g.name,c,f.phraseLength))},v=(t,i)=>{const l=`${r}opExecute(): `,b=o[t];switch(p+=1,m>h&&(h=m),m+=1,f.refresh(),s.trace&&s.trace.down(b,i),b.type){case e.ALT:((t,s)=>{const r=o[t];for(let t=0;t<r.children.length&&(v(r.children[t],s),f.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,r)=>{let n,i,a,c;const l=o[t];s.ast&&(i=s.ast.getLength()),n=!0,a=r,c=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],a),f.state===e.NOMATCH){n=!1;break}a+=f.phraseLength,c+=f.phraseLength}n?(f.state=0===c?e.EMPTY:e.MATCH,f.phraseLength=c):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(i))})(t,i);break;case e.REP:((t,r)=>{let n,i,c,l;const u=o[t];if(0===u.max)return f.state=e.EMPTY,void(f.phraseLength=0);for(i=r,c=0,l=0,s.ast&&(n=s.ast.getLength());!(i>=a.length)&&(v(t+1,i),f.state!==e.NOMATCH)&&f.state!==e.EMPTY&&(l+=1,c+=f.phraseLength,i+=f.phraseLength,l!==u.max););f.state===e.EMPTY||l>=u.min?(f.state=0===c?e.EMPTY:e.MATCH,f.phraseLength=c):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(n))})(t,i);break;case e.RNM:((t,r)=>{let i,l,m;const h=o[t],p=n[h.index],_=c[p.index];if(d||(l=s.ast&&s.ast.ruleDefined(h.index),l&&(i=s.ast.getLength(),s.ast.down(h.index,n[h.index].name))),_){const t=a.length-r;_(f,a,r,u),g(p,f,t,!0),f.state===e.ACTIVE&&(m=o,o=p.opcodes,v(0,r),o=m,_(f,a,r,u),g(p,f,t,!1))}else m=o,o=p.opcodes,v(0,r,f),o=m;d||l&&(f.state===e.NOMATCH?s.ast.setLength(i):s.ast.up(h.index,p.name,r,f.phraseLength))})(t,i);break;case e.TRG:((t,s)=>{const r=o[t];f.state=e.NOMATCH,s<a.length&&r.min<=a[s]&&a[s]<=r.max&&(f.state=e.MATCH,f.phraseLength=1)})(t,i);break;case e.TBS:((t,s)=>{const r=o[t],n=r.string.length;if(f.state=e.NOMATCH,s+n<=a.length){for(let e=0;e<n;e+=1)if(a[s+e]!==r.string[e])return;f.state=e.MATCH,f.phraseLength=n}})(t,i);break;case e.TLS:((t,s)=>{let r;const n=o[t];f.state=e.NOMATCH;const i=n.string.length;if(0!==i){if(s+i<=a.length){for(let e=0;e<i;e+=1)if(r=a[s+e],r>=65&&r<=90&&(r+=32),r!==n.string[e])return;f.state=e.MATCH,f.phraseLength=i}}else f.state=e.EMPTY})(t,i);break;case e.UDT:y(t,i);break;case e.AND:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.EMPTY;break;case e.NOMATCH:f.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${f.state}`)}})(t,i);break;case e.NOT:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.NOMATCH;break;case e.NOMATCH:f.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${f.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}d||i+f.phraseLength>_&&(_=i+f.phraseLength),s.stats&&s.stats.collect(b,f),s.trace&&s.trace.up(b,f.state,i,f.phraseLength),m-=1}},Fg={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,s)=>{let r=e;for(;!(void 0===t||t<0);){if(void 0===s){r=e.slice(t);break}if(s<=0)return"";r=e.slice(t,t+s);break}return String.fromCodePoint(...r)}},Ng={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case Ng.ALT:return"ALT";case Ng.CAT:return"CAT";case Ng.REP:return"REP";case Ng.RNM:return"RNM";case Ng.TRG:return"TRG";case Ng.TBS:return"TBS";case Ng.TLS:return"TLS";case Ng.UDT:return"UDT";case Ng.AND:return"AND";case Ng.NOT:return"NOT";case Ng.ACTIVE:return"ACTIVE";case Ng.EMPTY:return"EMPTY";case Ng.MATCH:return"MATCH";case Ng.NOMATCH:return"NOMATCH";case Ng.SEM_PRE:return"SEM_PRE";case Ng.SEM_POST:return"SEM_POST";case Ng.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Rg(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}class Ig extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const kg=Ig;new Rg;new Rg,new Mg,new Rg,new Mg,new Rg,new Mg,new Rg,new Mg;const Cg=e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};const $g=class extends kg{},Dg=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map((e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return Cg(String(e))})).join("/")}`}catch(t){throw new $g("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};const Lg={namespace:e=>{const{base:t}=e;return t.register("callback",yh),t.register("components",vh),t.register("contact",bh),t.register("discriminator",wh),t.register("encoding",Eh),t.register("example",xh),t.register("externalDocumentation",Sh),t.register("header",jh),t.register("info",Oh),t.register("jsonSchemaDialect",Th),t.register("license",Ah),t.register("link",Mh),t.register("mediaType",Fh),t.register("oAuthFlow",Nh),t.register("oAuthFlows",Rh),t.register("openapi",Ih),t.register("openApi3_1",Ch),t.register("operation",$h),t.register("parameter",Dh),t.register("pathItem",Lh),t.register("paths",qh),t.register("reference",Uh),t.register("requestBody",Vh),t.register("response",Hh),t.register("responses",Jh),t.register("schema",f_),t.register("securityRequirement",g_),t.register("securityScheme",y_),t.register("server",v_),t.register("serverVariable",b_),t.register("tag",w_),t.register("xml",E_),t}},qg=e=>{const t=e.reduce(((t,s,r)=>{if(sn(s)){const e=String(io(s.key));t.push(e)}else if(tn(e[r-2])){const n=String(e[r-2].content.indexOf(s));t.push(n)}return t}),[]);return Dg(t)},Bg=()=>{const e=lt(Lg);return{predicates:{...a,isElement:Zr,isStringElement:Kr,isArrayElement:tn,isObjectElement:en,isMemberElement:sn,isServersElement:Al,includesClasses:mn,hasElementSourceMap:un},ancestorLineageToJSONPointer:qg,namespace:e}},Ug=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=Nr(Pg),i=new(Fr(t,n))({specObj:n});return Sn(r,i),Ln(i.element,s,{toolboxCreator:Bg,visitorOptions:{keyMap:Ag,nodeTypeGetter:Tg}})},Vg=e=>(t,s={})=>Ug(t,{specPath:e,...s});yh.refract=Vg(["visitors","document","objects","Callback","$visitor"]),vh.refract=Vg(["visitors","document","objects","Components","$visitor"]),bh.refract=Vg(["visitors","document","objects","Contact","$visitor"]),xh.refract=Vg(["visitors","document","objects","Example","$visitor"]),wh.refract=Vg(["visitors","document","objects","Discriminator","$visitor"]),Eh.refract=Vg(["visitors","document","objects","Encoding","$visitor"]),Sh.refract=Vg(["visitors","document","objects","ExternalDocumentation","$visitor"]),jh.refract=Vg(["visitors","document","objects","Header","$visitor"]),Oh.refract=Vg(["visitors","document","objects","Info","$visitor"]),Th.refract=Vg(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Ah.refract=Vg(["visitors","document","objects","License","$visitor"]),Mh.refract=Vg(["visitors","document","objects","Link","$visitor"]),Fh.refract=Vg(["visitors","document","objects","MediaType","$visitor"]),Nh.refract=Vg(["visitors","document","objects","OAuthFlow","$visitor"]),Rh.refract=Vg(["visitors","document","objects","OAuthFlows","$visitor"]),Ih.refract=Vg(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Ch.refract=Vg(["visitors","document","objects","OpenApi","$visitor"]),$h.refract=Vg(["visitors","document","objects","Operation","$visitor"]),Dh.refract=Vg(["visitors","document","objects","Parameter","$visitor"]),Lh.refract=Vg(["visitors","document","objects","PathItem","$visitor"]),qh.refract=Vg(["visitors","document","objects","Paths","$visitor"]),Uh.refract=Vg(["visitors","document","objects","Reference","$visitor"]),Vh.refract=Vg(["visitors","document","objects","RequestBody","$visitor"]),Hh.refract=Vg(["visitors","document","objects","Response","$visitor"]),Jh.refract=Vg(["visitors","document","objects","Responses","$visitor"]),f_.refract=Vg(["visitors","document","objects","Schema","$visitor"]),g_.refract=Vg(["visitors","document","objects","SecurityRequirement","$visitor"]),y_.refract=Vg(["visitors","document","objects","SecurityScheme","$visitor"]),v_.refract=Vg(["visitors","document","objects","Server","$visitor"]),b_.refract=Vg(["visitors","document","objects","ServerVariable","$visitor"]),w_.refract=Vg(["visitors","document","objects","Tag","$visitor"]),E_.refract=Vg(["visitors","document","objects","XML","$visitor"]);const Hg=l((function(e){return _(-1,e)}));const Jg=class extends Vi{};const Gg=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Jg("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Jg("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Jg("latest method in MediaTypes class is not yet implemented.")}};class Wg extends Gg{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(s)))||this.unknownMediaType}latest(e="generic"){return Hg(this.filterByFormat(e))}}const zg=new Wg("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),Zg=new Wg(...zg.filterByFormat("generic"),...zg.filterByFormat("yaml")),Kg=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m,Yg=async e=>Kg.test(e)&&await(async e=>{try{return!(await Et(e)).rootNode.isError}catch{return!1}})(e),Xg=async(e,t={})=>{const s=g({},"refractorOpts",t),r=v(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1}={})=>{const s=await Et(e);return zn(s,{sourceMap:t})})(e,r),{result:i}=n;if(ae(i)){const e=Ch.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},Qg=lt(Lg)})(),__webpack_exports__})()));
|