@swagger-api/apidom-parser-adapter-openapi-json-3-0 1.0.0-alpha.5 → 1.0.0-alpha.7

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.apidomParserAdapterOpenApiJson3_0=t():e.apidomParserAdapterOpenApiJson3_0=t()}(self,(()=>(()=>{var e={3103:(e,t,r)=>{var s=r(4715)(r(8942),"DataView");e.exports=s},5098:(e,t,r)=>{var s=r(3305),n=r(9361),i=r(1112),o=r(5276),a=r(5071);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1386:(e,t,r)=>{var s=r(2393),n=r(2049),i=r(7144),o=r(7452),a=r(3964);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9770:(e,t,r)=>{var s=r(4715)(r(8942),"Map");e.exports=s},8250:(e,t,r)=>{var s=r(9753),n=r(5681),i=r(88),o=r(4732),a=r(9068);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9413:(e,t,r)=>{var s=r(4715)(r(8942),"Promise");e.exports=s},4512:(e,t,r)=>{var s=r(4715)(r(8942),"Set");e.exports=s},3212:(e,t,r)=>{var s=r(8250),n=r(1877),i=r(8006);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new s;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},1340:(e,t,r)=>{var s=r(1386),n=r(4103),i=r(1779),o=r(4162),a=r(7462),c=r(6638);function u(e){var t=this.__data__=new s(e);this.size=t.size}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},5650:(e,t,r)=>{var s=r(8942).Symbol;e.exports=s},1623:(e,t,r)=>{var s=r(8942).Uint8Array;e.exports=s},9270:(e,t,r)=>{var s=r(4715)(r(8942),"WeakMap");e.exports=s},9847:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,i=[];++r<s;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}},358:(e,t,r)=>{var s=r(6137),n=r(3283),i=r(3142),o=r(5853),a=r(9632),c=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&n(e),p=!r&&!l&&o(e),h=!r&&!l&&!p&&c(e),m=r||l||p||h,f=m?s(e.length,String):[],d=f.length;for(var _ in e)!t&&!u.call(e,_)||m&&("length"==_||p&&("offset"==_||"parent"==_)||h&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||a(_,d))||f.push(_);return f}},1129:e=>{e.exports=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}},6465:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}},7034:(e,t,r)=>{var s=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},8244:(e,t,r)=>{var s=r(1129),n=r(3142);e.exports=function(e,t,r){var i=t(e);return n(e)?i:s(i,r(e))}},7379:(e,t,r)=>{var s=r(5650),n=r(8870),i=r(9005),o=s?s.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},6027:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},4687:(e,t,r)=>{var s=r(353),n=r(547);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,i,o,e,a))}},353:(e,t,r)=>{var s=r(1340),n=r(3934),i=r(8861),o=r(1182),a=r(8486),c=r(3142),u=r(5853),l=r(8666),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,_,y){var g=c(e),v=c(t),b=g?h:a(e),w=v?h:a(t),E=(b=b==p?m:b)==m,x=(w=w==p?m:w)==m,S=b==w;if(S&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(S&&!E)return y||(y=new s),g||l(e)?n(e,t,r,d,_,y):i(e,t,b,r,d,_,y);if(!(1&r)){var j=E&&f.call(e,"__wrapped__"),P=x&&f.call(t,"__wrapped__");if(j||P){var O=j?e.value():e,A=P?t.value():t;return y||(y=new s),_(O,A,r,d,y)}}return!!S&&(y||(y=new s),o(e,t,r,d,_,y))}},9624:(e,t,r)=>{var s=r(3655),n=r(4759),i=r(1580),o=r(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,h=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(s(e)?h:a).test(o(e))}},674:(e,t,r)=>{var s=r(7379),n=r(5387),i=r(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[s(e)]}},195:(e,t,r)=>{var s=r(4882),n=r(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6137:e=>{e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,r)=>{var s=r(8942)["__core-js_shared__"];e.exports=s},3934:(e,t,r)=>{var s=r(3212),n=r(6465),i=r(5568);e.exports=function(e,t,r,o,a,c){var u=1&r,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var f=-1,d=!0,_=2&r?new s:void 0;for(c.set(e,t),c.set(t,e);++f<l;){var y=e[f],g=t[f];if(o)var v=u?o(g,y,f,t,e,c):o(y,g,f,e,t,c);if(void 0!==v){if(v)continue;d=!1;break}if(_){if(!n(t,(function(e,t){if(!i(_,t)&&(y===e||a(y,e,r,o,c)))return _.push(t)}))){d=!1;break}}else if(y!==g&&!a(y,g,r,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},8861:(e,t,r)=>{var s=r(5650),n=r(1623),i=r(6285),o=r(3934),a=r(5894),c=r(7447),u=s?s.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,s,u,p,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(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 m=a;case"[object Set]":var f=1&s;if(m||(m=c),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;s|=2,h.set(e,t);var _=o(m(e),m(t),s,u,p,h);return h.delete(e),_;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},1182:(e,t,r)=>{var s=r(393),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,u=s(e),l=u.length;if(l!=s(t).length&&!c)return!1;for(var p=l;p--;){var h=u[p];if(!(c?h in t:n.call(t,h)))return!1}var m=a.get(e),f=a.get(t);if(m&&f)return m==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var _=c;++p<l;){var y=e[h=u[p]],g=t[h];if(i)var v=c?i(g,y,h,t,e,a):i(y,g,h,e,t,a);if(!(void 0===v?y===g||o(y,g,r,i,a):v)){d=!1;break}_||(_="constructor"==h)}if(d&&!_){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||(d=!1)}return a.delete(e),a.delete(t),d}},4967:(e,t,r)=>{var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},393:(e,t,r)=>{var s=r(8244),n=r(7979),i=r(1211);e.exports=function(e){return s(e,i,n)}},4700:(e,t,r)=>{var s=r(9067);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},4715:(e,t,r)=>{var s=r(9624),n=r(155);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},8870:(e,t,r)=>{var s=r(5650),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var s=!0}catch(e){}var n=o.call(e);return s&&(t?e[a]=r:delete e[a]),n}},7979:(e,t,r)=>{var s=r(9847),n=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),s(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},8486:(e,t,r)=>{var s=r(3103),n=r(9770),i=r(9413),o=r(4512),a=r(9270),c=r(7379),u=r(4066),l="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=u(s),_=u(n),y=u(i),g=u(o),v=u(a),b=c;(s&&b(new s(new ArrayBuffer(1)))!=f||n&&b(new n)!=l||i&&b(i.resolve())!=p||o&&b(new o)!=h||a&&b(new a)!=m)&&(b=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,s=r?u(r):"";if(s)switch(s){case d:return f;case _:return l;case y:return p;case g:return h;case v:return m}return t}),e.exports=b},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,r)=>{var s=r(4497);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,r)=>{var s=r(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},5276:(e,t,r)=>{var s=r(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},5071:(e,t,r)=>{var s=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var s=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<r}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,r)=>{var s,n=r(1950),i=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,r)=>{var s=r(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},7144:(e,t,r)=>{var s=r(7034);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},7452:(e,t,r)=>{var s=r(7034);e.exports=function(e){return s(this.__data__,e)>-1}},3964:(e,t,r)=>{var s=r(7034);e.exports=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},9753:(e,t,r)=>{var s=r(5098),n=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||n),string:new s}}},5681:(e,t,r)=>{var s=r(4700);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var s=r(4700);e.exports=function(e){return s(this,e).get(e)}},4732:(e,t,r)=>{var s=r(4700);e.exports=function(e){return s(this,e).has(e)}},9068:(e,t,r)=>{var s=r(4700);e.exports=function(e,t){var r=s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}},4497:(e,t,r)=>{var s=r(4715)(Object,"create");e.exports=s},8121:(e,t,r)=>{var s=r(3766)(Object.keys,Object);e.exports=s},2306:(e,t,r)=>{e=r.nmd(e);var s=r(4967),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&s.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},8942:(e,t,r)=>{var s=r(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=s||n||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},7447:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},4103:(e,t,r)=>{var s=r(1386);e.exports=function(){this.__data__=new s,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,r)=>{var s=r(1386),n=r(9770),i=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof s){var o=r.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,r)=>{var s=r(6027),n=r(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,r)=>{var s=r(3655),n=r(5387);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},2563:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},5853:(e,t,r)=>{e=r.nmd(e);var s=r(8942),n=r(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},6343:(e,t,r)=>{var s=r(4687);e.exports=function(e,t){return s(e,t)}},3655:(e,t,r)=>{var s=r(7379),n=r(1580);e.exports=function(e){if(!n(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,r)=>{var s=r(7379),n=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==s(e)}},8666:(e,t,r)=>{var s=r(674),n=r(9460),i=r(2306),o=i&&i.isTypedArray,a=o?n(o):s;e.exports=a},1211:(e,t,r)=>{var s=r(358),n=r(195),i=r(6529);e.exports=function(e){return i(e)?s(e):n(e)}},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,r)=>{const s=r(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 r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}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(s(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},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5735:(e,t,r)=>{const s=r(9310),n=r(8138),i=r(986),o=r(2563),a=r(1580),c=r(394),u=r(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(s,u.NullElement,!1).detect(n,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},3311:(e,t,r)=>{const s=r(1517),n=r(4123);class i extends n{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(s(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,s)=>{e.bind(t)(r.value,r.key,r,s)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,r)=>{const s=r(8631),n=r(3004),i=r(8712),o=r(2536),a=r(2555),c=r(9796),u=r(7309),l=r(5642),p=r(9620),h=r(593),m=r(4123),f=r(3311),d=r(2322);function _(e){if(e instanceof s)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new n;if(Array.isArray(e))return new c(e.map(_));if("object"==typeof e){return new l(e)}return e}s.prototype.ObjectElement=l,s.prototype.RefElement=h,s.prototype.MemberElement=u,s.prototype.refract=_,m.prototype.refract=_,e.exports={Element:s,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:h,refract:_,ArraySlice:m,ObjectSlice:f,KeyValuePair:d}},9620:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},593:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},8326:(e,t,r)=>{const s=r(5735),n=r(7547);t.g$=s,t.KeyValuePair=r(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,r(394),r(3148)},9796:(e,t,r)=>{const s=r(1517),n=r(8631),i=r(4123);class o extends n{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach(((r,s)=>{e.bind(t)(r,this.refract(s))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,i)&&n.push(t)})),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,r)=>{const s=r(6343),n=r(2322),i=r(4123);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof 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 r=new i;const s=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(s,e),r.content instanceof n&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0}))),r}set(e){return this.content=e,this}equals(e){return s(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof 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},7309:(e,t,r)=>{const s=r(2322),n=r(8631);e.exports=class extends n{constructor(e,t,r,n){super(new s,r,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)}}},3004:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},5642:(e,t,r)=>{const s=r(1517),n=r(1580),i=r(9796),o=r(7309),a=r(3311);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,s=this.getMember(r);return s?s.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((s,n,i)=>{const o=e.bind(t)(s,n,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},8712:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,r)=>{const s=r(394);e.exports=class extends s{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach((s=>{s.forEach((s=>{const n=new t(s);n.element=r.element,e.push(n)}))}));const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},3833:(e,t,r)=>{var s=void 0!==s?s:{},n=function(){var t,n="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(s=Object.assign({},s,o),t=new Promise((t=>{var o,a={};for(o in s)s.hasOwnProperty(o)&&(a[o]=s[o]);var c,u,l,p,h=[],m="./this.program",f=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var d,_,y,g,v,b="";c?(b=p?r(4142).dirname(b)+"/":"//",d=function(e,t){return g||(g=r(3078)),v||(v=r(4142)),e=v.normalize(e),g.readFileSync(e,t?null:"utf8")},y=function(e){var t=d(e,!0);return t.buffer||(t=new Uint8Array(t)),N(t.buffer),t},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),h=process.argv.slice(2),e.exports=s,f=function(e){process.exit(e)},s.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=function(e){return read(e)}),y=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(N("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?h=scriptArgs:void 0!==arguments&&(h=arguments),"function"==typeof quit&&(f=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||p)&&(p?b=self.location.href:void 0!==n&&n.currentScript&&(b=n.currentScript.src),b=0!==b.indexOf("blob:")?b.substr(0,b.lastIndexOf("/")+1):"",d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(y=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=function(e,t,r){var s=new XMLHttpRequest;s.open("GET",e,!0),s.responseType="arraybuffer",s.onload=function(){200==s.status||0==s.status&&s.response?t(s.response):r()},s.onerror=r,s.send(null)}),s.print||console.log.bind(console);var w=s.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(s[o]=a[o]);a=null,s.arguments&&(h=s.arguments),s.thisProgram&&(m=s.thisProgram),s.quit&&(f=s.quit);var E,x=16,S=[];function j(e,t){if(!E){E=new WeakMap;for(var r=0;r<Z.length;r++){var s=Z.get(r);s&&E.set(s,r)}}if(E.has(e))return E.get(e);var n=function(){if(S.length)return S.pop();try{Z.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Z.length-1}();try{Z.set(n,e)}catch(r){if(!(r instanceof TypeError))throw r;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},s={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},n=1;n<t.length;++n)s.parameters.push(r[t[n]]);return new WebAssembly.Function(s,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),n=0;n<a.length;++n)i.push(c[a[n]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);Z.set(n,i)}return E.set(e,n),n}var P,O=s.dynamicLibraries||[];s.wasmBinary&&(P=s.wasmBinary);var A,k=s.noExitRuntime||!0;function M(e,t,r,s){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":C[e>>0]=t;break;case"i16":F[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":le=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],q[e>>2]=le[0],q[e+4>>2]=le[1];break;case"float":B[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ae("invalid type for setValue: "+r)}}function $(e,t,r){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return C[e>>0];case"i16":return F[e>>1];case"i32":case"i64":return q[e>>2];case"float":return B[e>>2];case"double":return L[e>>3];default:ae("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ae("no native wasm support detected");var I=!1;function N(e,t){e||ae("Assertion failed: "+t)}var R,C,T,F,q,B,L,D="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,r){for(var s=t+r,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.subarray&&D)return D.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 u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function z(e,t){return e?V(T,e,t):""}function U(e,t,r,s){if(!(s>0))return 0;for(var n=r,i=r+s-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)),a<=127){if(r>=i)break;t[r++]=a}else if(a<=2047){if(r+1>=i)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=i)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-n}function G(e,t,r){return U(e,T,t,r)}function W(e){for(var t=0,r=0;r<e.length;++r){var s=e.charCodeAt(r);s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++r)),s<=127?++t:t+=s<=2047?2:s<=65535?3:4}return t}function J(e){var t=W(e)+1,r=ze(t);return U(e,C,r,t),r}function K(e){R=e,s.HEAP8=C=new Int8Array(e),s.HEAP16=F=new Int16Array(e),s.HEAP32=q=new Int32Array(e),s.HEAPU8=T=new Uint8Array(e),s.HEAPU16=new Uint16Array(e),s.HEAPU32=new Uint32Array(e),s.HEAPF32=B=new Float32Array(e),s.HEAPF64=L=new Float64Array(e)}var H=s.INITIAL_MEMORY||33554432;(A=s.wasmMemory?s.wasmMemory:new WebAssembly.Memory({initial:H/65536,maximum:32768}))&&(R=A.buffer),H=R.byteLength,K(R);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),X=[],Y=[],Q=[],ee=[],te=!1,re=0,se=null,ne=null;function ie(e){re++,s.monitorRunDependencies&&s.monitorRunDependencies(re)}function oe(e){if(re--,s.monitorRunDependencies&&s.monitorRunDependencies(re),0==re&&(null!==se&&(clearInterval(se),se=null),ne)){var t=ne;ne=null,t()}}function ae(e){throw s.onAbort&&s.onAbort(e),w(e+=""),I=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}s.preloadedImages={},s.preloadedAudios={},s.preloadedWasm={};var ce,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function he(e){return e.startsWith("file://")}function me(e){try{if(e==ce&&P)return new Uint8Array(P);if(y)return y(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return s.locateFile?s.locateFile(e,b):b+e}(ce));var fe={},de={get:function(e,t){return fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),fe[t]}};function _e(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?Z.get(r)():Z.get(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(s)}}function ye(e){var t=0;function r(){for(var r=0,s=1;;){var n=e[t++];if(r+=(127&n)*s,s*=128,!(128&n))break}return r}if(e instanceof WebAssembly.Module){var s=WebAssembly.Module.customSections(e,"dylink");N(0!=s.length,"need dylink section"),e=new Int8Array(s[0])}else N(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),N(0===e[8],"need the dylink section to be first"),t=9,r(),N(6===e[t]),N(e[++t]==="d".charCodeAt(0)),N(e[++t]==="y".charCodeAt(0)),N(e[++t]==="l".charCodeAt(0)),N(e[++t]==="i".charCodeAt(0)),N(e[++t]==="n".charCodeAt(0)),N(e[++t]==="k".charCodeAt(0)),t++;var n={};n.memorySize=r(),n.memoryAlign=r(),n.tableSize=r(),n.tableAlign=r();var i=r();n.neededDynlibs=[];for(var o=0;o<i;++o){var a=r(),c=e.subarray(t,t+a);t+=a;var u=V(c,0);n.neededDynlibs.push(u)}return n}var ge=0;function ve(){return k||ge>0}function be(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function we(e,t){for(var r in e)if(e.hasOwnProperty(r)){qe.hasOwnProperty(r)||(qe[r]=e[r]);var n=be(r);s.hasOwnProperty(n)||(s[n]=e[r])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xe=5250880;function Se(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function je(e,t){var r={};for(var s in e){var n=e[s];"object"==typeof n&&(n=n.value),"number"==typeof n&&(n+=t),r[s]=n}return function(e){for(var t in e)if(!Se(t)){var r=!1,s=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],r=!0),fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==fe[t].value)&&("function"==typeof s?fe[t].value=j(s):"number"==typeof s?fe[t].value=s:w("unhandled export type for `"+t+"`: "+typeof s))}}(r),r}function Pe(e,t){var r,n;return t&&(r=qe["orig$"+e]),r||(r=qe[e]),r||(r=s[be(e)]),!r&&e.startsWith("invoke_")&&(n=e.split("_")[1],r=function(){var e=De();try{return function(e,t,r){return e.includes("j")?function(e,t,r){var n=s["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)}(e,t,r):Z.get(t).apply(null,r)}(n,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Ve(e),t!==t+0&&"longjmp"!==t)throw t;Ue(1,0)}}),r}function Oe(e,t){var r=ye(e);function s(){var s=Math.pow(2,r.memoryAlign);s=Math.max(s,x);var n,i,o,a=(n=function(e){if(te)return Be(e);var t=xe,r=t+e+15&-16;return xe=r,fe.__heap_base.value=r,t}(r.memorySize+s),(i=s)||(i=x),Math.ceil(n/i)*i),c=Z.length;Z.grow(r.tableSize);for(var u=a;u<a+r.memorySize;u++)C[u]=0;for(u=c;u<c+r.tableSize;u++)Z.set(u,null);var l=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return a;case"__table_base":return c}return t in qe?qe[t]:(t in e||(e[t]=function(){return r||(r=function(e){var t=Pe(e,!1);return t||(t=o[e]),t}(t)),r.apply(null,arguments)}),e[t]);var r}}),p={"GOT.mem":new Proxy({},de),"GOT.func":new Proxy({},de),env:l,wasi_snapshot_preview1:l};function h(e){for(var s=0;s<r.tableSize;s++){var n=Z.get(c+s);n&&E.set(n,c+s)}o=je(e.exports,a),t.allowUndefined||ke();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():Y.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var m=new WebAssembly.Instance(e,p);return Promise.resolve(h(m))}return WebAssembly.instantiate(e,p).then((function(e){return h(e.instance)}))}var f=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return h(m=new WebAssembly.Instance(f,p))}return t.loadAsync?r.neededDynlibs.reduce((function(e,r){return e.then((function(){return Ae(r,t)}))}),Promise.resolve()).then((function(){return s()})):(r.neededDynlibs.forEach((function(e){Ae(e,t)})),s())}function Ae(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:s.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var r,n=Ee.loadedLibNames[e];if(n)return r=Ee.loadedLibs[n],t.global&&!r.global&&(r.global=!0,"loading"!==r.module&&we(r.module)),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,t.loadAsync?Promise.resolve(n):n;function i(e){if(t.fs){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}return t.loadAsync?(s=e,fetch(s,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+s+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):y(e);var s}function o(){if(void 0!==s.preloadedWasm&&void 0!==s.preloadedWasm[e]){var r=s.preloadedWasm[e];return t.loadAsync?Promise.resolve(r):r}return t.loadAsync?i(e).then((function(e){return Oe(e,t)})):Oe(i(e),t)}function a(e){r.global&&we(e),r.module=e}return n=Ee.nextHandle++,r={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=n,Ee.loadedLibs[n]=r,t.loadAsync?o().then((function(e){return a(e),n})):(a(o()),n)}function ke(){for(var e in fe)if(0==fe[e].value){var t=Pe(e,!0);"function"==typeof t?fe[e].value=j(t,t.sig):"number"==typeof t?fe[e].value=t:N(!1,"bad export type for `"+e+"`: "+typeof t)}}s.___heap_base=xe;var Me,$e=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Ie(){ae()}s._abort=Ie,Ie.sig="v",Me=c?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Ne(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e)return 28,q[Le()>>2]=28,-1;r=Me()}return q[t>>2]=r/1e3|0,q[t+4>>2]=r%1e3*1e3*1e3|0,0}function Re(e){try{return A.grow(e-R.byteLength+65535>>>16),K(A.buffer),1}catch(e){}}function Ce(e){Ke(e)}function Te(e){}Ne.sig="iii",Ce.sig="vi",Te.sig="vi";var Fe,qe={__heap_base:xe,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:$e,__table_base:1,abort:Ie,clock_gettime:Ne,emscripten_memcpy_big:function(e,t,r){T.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t,r=T.length;if((e>>>=0)>2147483648)return!1;for(var s=1;s<=4;s*=2){var n=r*(1+.2/s);if(n=Math.min(n,e+100663296),Re(Math.min(2147483648,((t=Math.max(e,n))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Ce,memory:A,setTempRet0:Te,tree_sitter_log_callback:function(e,t){if(ut){const r=z(t);ut(r,0!==e)}},tree_sitter_parse_callback:function(e,t,r,s,n){var i=ct(t,{row:r,column:s});"string"==typeof i?(M(n,i.length,"i32"),function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var s=(r-=2)<2*e.length?r/2:e.length,n=0;n<s;++n){var i=e.charCodeAt(n);F[t>>1]=i,t+=2}F[t>>1]=0}(i,e,10240)):M(n,0,"i32")}},Be=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,de),"GOT.func":new Proxy(qe,de)};function t(e,t){var r=e.exports;r=je(r,1024),s.asm=r;var n,i=ye(t);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),we(r),n=s.asm.__wasm_call_ctors,Y.unshift(n),oe()}function r(e){t(e.instance,e.module)}function n(t){return function(){if(!P&&(l||p)){if("function"==typeof fetch&&!he(ce))return fetch(ce,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ce+"'";return e.arrayBuffer()})).catch((function(){return me(ce)}));if(_)return new Promise((function(e,t){_(ce,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return me(ce)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){w("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),s.instantiateWasm)try{return s.instantiateWasm(e,t)}catch(e){return w("Module.instantiateWasm callback failed with error: "+e),!1}P||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||he(ce)||"function"!=typeof fetch?n(r):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return w("wasm streaming compile failed: "+e),w("falling back to ArrayBuffer instantiation"),n(r)}))}))}(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.__wasm_call_ctors).apply(null,arguments)},s._malloc=function(){return(Be=s._malloc=s.asm.malloc).apply(null,arguments)}),Le=(s._calloc=function(){return(s._calloc=s.asm.calloc).apply(null,arguments)},s._realloc=function(){return(s._realloc=s.asm.realloc).apply(null,arguments)},s._free=function(){return(s._free=s.asm.free).apply(null,arguments)},s._ts_language_symbol_count=function(){return(s._ts_language_symbol_count=s.asm.ts_language_symbol_count).apply(null,arguments)},s._ts_language_version=function(){return(s._ts_language_version=s.asm.ts_language_version).apply(null,arguments)},s._ts_language_field_count=function(){return(s._ts_language_field_count=s.asm.ts_language_field_count).apply(null,arguments)},s._ts_language_symbol_name=function(){return(s._ts_language_symbol_name=s.asm.ts_language_symbol_name).apply(null,arguments)},s._ts_language_symbol_for_name=function(){return(s._ts_language_symbol_for_name=s.asm.ts_language_symbol_for_name).apply(null,arguments)},s._ts_language_symbol_type=function(){return(s._ts_language_symbol_type=s.asm.ts_language_symbol_type).apply(null,arguments)},s._ts_language_field_name_for_id=function(){return(s._ts_language_field_name_for_id=s.asm.ts_language_field_name_for_id).apply(null,arguments)},s._memcpy=function(){return(s._memcpy=s.asm.memcpy).apply(null,arguments)},s._ts_parser_delete=function(){return(s._ts_parser_delete=s.asm.ts_parser_delete).apply(null,arguments)},s._ts_parser_reset=function(){return(s._ts_parser_reset=s.asm.ts_parser_reset).apply(null,arguments)},s._ts_parser_set_language=function(){return(s._ts_parser_set_language=s.asm.ts_parser_set_language).apply(null,arguments)},s._ts_parser_timeout_micros=function(){return(s._ts_parser_timeout_micros=s.asm.ts_parser_timeout_micros).apply(null,arguments)},s._ts_parser_set_timeout_micros=function(){return(s._ts_parser_set_timeout_micros=s.asm.ts_parser_set_timeout_micros).apply(null,arguments)},s._memmove=function(){return(s._memmove=s.asm.memmove).apply(null,arguments)},s._memcmp=function(){return(s._memcmp=s.asm.memcmp).apply(null,arguments)},s._ts_query_new=function(){return(s._ts_query_new=s.asm.ts_query_new).apply(null,arguments)},s._ts_query_delete=function(){return(s._ts_query_delete=s.asm.ts_query_delete).apply(null,arguments)},s._iswspace=function(){return(s._iswspace=s.asm.iswspace).apply(null,arguments)},s._iswalnum=function(){return(s._iswalnum=s.asm.iswalnum).apply(null,arguments)},s._ts_query_pattern_count=function(){return(s._ts_query_pattern_count=s.asm.ts_query_pattern_count).apply(null,arguments)},s._ts_query_capture_count=function(){return(s._ts_query_capture_count=s.asm.ts_query_capture_count).apply(null,arguments)},s._ts_query_string_count=function(){return(s._ts_query_string_count=s.asm.ts_query_string_count).apply(null,arguments)},s._ts_query_capture_name_for_id=function(){return(s._ts_query_capture_name_for_id=s.asm.ts_query_capture_name_for_id).apply(null,arguments)},s._ts_query_string_value_for_id=function(){return(s._ts_query_string_value_for_id=s.asm.ts_query_string_value_for_id).apply(null,arguments)},s._ts_query_predicates_for_pattern=function(){return(s._ts_query_predicates_for_pattern=s.asm.ts_query_predicates_for_pattern).apply(null,arguments)},s._ts_tree_copy=function(){return(s._ts_tree_copy=s.asm.ts_tree_copy).apply(null,arguments)},s._ts_tree_delete=function(){return(s._ts_tree_delete=s.asm.ts_tree_delete).apply(null,arguments)},s._ts_init=function(){return(s._ts_init=s.asm.ts_init).apply(null,arguments)},s._ts_parser_new_wasm=function(){return(s._ts_parser_new_wasm=s.asm.ts_parser_new_wasm).apply(null,arguments)},s._ts_parser_enable_logger_wasm=function(){return(s._ts_parser_enable_logger_wasm=s.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},s._ts_parser_parse_wasm=function(){return(s._ts_parser_parse_wasm=s.asm.ts_parser_parse_wasm).apply(null,arguments)},s._ts_language_type_is_named_wasm=function(){return(s._ts_language_type_is_named_wasm=s.asm.ts_language_type_is_named_wasm).apply(null,arguments)},s._ts_language_type_is_visible_wasm=function(){return(s._ts_language_type_is_visible_wasm=s.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},s._ts_tree_root_node_wasm=function(){return(s._ts_tree_root_node_wasm=s.asm.ts_tree_root_node_wasm).apply(null,arguments)},s._ts_tree_edit_wasm=function(){return(s._ts_tree_edit_wasm=s.asm.ts_tree_edit_wasm).apply(null,arguments)},s._ts_tree_get_changed_ranges_wasm=function(){return(s._ts_tree_get_changed_ranges_wasm=s.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},s._ts_tree_cursor_new_wasm=function(){return(s._ts_tree_cursor_new_wasm=s.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},s._ts_tree_cursor_delete_wasm=function(){return(s._ts_tree_cursor_delete_wasm=s.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},s._ts_tree_cursor_reset_wasm=function(){return(s._ts_tree_cursor_reset_wasm=s.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},s._ts_tree_cursor_goto_first_child_wasm=function(){return(s._ts_tree_cursor_goto_first_child_wasm=s.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},s._ts_tree_cursor_goto_next_sibling_wasm=function(){return(s._ts_tree_cursor_goto_next_sibling_wasm=s.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},s._ts_tree_cursor_goto_parent_wasm=function(){return(s._ts_tree_cursor_goto_parent_wasm=s.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_type_id_wasm=function(){return(s._ts_tree_cursor_current_node_type_id_wasm=s.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_is_named_wasm=function(){return(s._ts_tree_cursor_current_node_is_named_wasm=s.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_is_missing_wasm=function(){return(s._ts_tree_cursor_current_node_is_missing_wasm=s.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_id_wasm=function(){return(s._ts_tree_cursor_current_node_id_wasm=s.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},s._ts_tree_cursor_start_position_wasm=function(){return(s._ts_tree_cursor_start_position_wasm=s.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},s._ts_tree_cursor_end_position_wasm=function(){return(s._ts_tree_cursor_end_position_wasm=s.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},s._ts_tree_cursor_start_index_wasm=function(){return(s._ts_tree_cursor_start_index_wasm=s.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},s._ts_tree_cursor_end_index_wasm=function(){return(s._ts_tree_cursor_end_index_wasm=s.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},s._ts_tree_cursor_current_field_id_wasm=function(){return(s._ts_tree_cursor_current_field_id_wasm=s.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_wasm=function(){return(s._ts_tree_cursor_current_node_wasm=s.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},s._ts_node_symbol_wasm=function(){return(s._ts_node_symbol_wasm=s.asm.ts_node_symbol_wasm).apply(null,arguments)},s._ts_node_child_count_wasm=function(){return(s._ts_node_child_count_wasm=s.asm.ts_node_child_count_wasm).apply(null,arguments)},s._ts_node_named_child_count_wasm=function(){return(s._ts_node_named_child_count_wasm=s.asm.ts_node_named_child_count_wasm).apply(null,arguments)},s._ts_node_child_wasm=function(){return(s._ts_node_child_wasm=s.asm.ts_node_child_wasm).apply(null,arguments)},s._ts_node_named_child_wasm=function(){return(s._ts_node_named_child_wasm=s.asm.ts_node_named_child_wasm).apply(null,arguments)},s._ts_node_child_by_field_id_wasm=function(){return(s._ts_node_child_by_field_id_wasm=s.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},s._ts_node_next_sibling_wasm=function(){return(s._ts_node_next_sibling_wasm=s.asm.ts_node_next_sibling_wasm).apply(null,arguments)},s._ts_node_prev_sibling_wasm=function(){return(s._ts_node_prev_sibling_wasm=s.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},s._ts_node_next_named_sibling_wasm=function(){return(s._ts_node_next_named_sibling_wasm=s.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},s._ts_node_prev_named_sibling_wasm=function(){return(s._ts_node_prev_named_sibling_wasm=s.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},s._ts_node_parent_wasm=function(){return(s._ts_node_parent_wasm=s.asm.ts_node_parent_wasm).apply(null,arguments)},s._ts_node_descendant_for_index_wasm=function(){return(s._ts_node_descendant_for_index_wasm=s.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},s._ts_node_named_descendant_for_index_wasm=function(){return(s._ts_node_named_descendant_for_index_wasm=s.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},s._ts_node_descendant_for_position_wasm=function(){return(s._ts_node_descendant_for_position_wasm=s.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},s._ts_node_named_descendant_for_position_wasm=function(){return(s._ts_node_named_descendant_for_position_wasm=s.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},s._ts_node_start_point_wasm=function(){return(s._ts_node_start_point_wasm=s.asm.ts_node_start_point_wasm).apply(null,arguments)},s._ts_node_end_point_wasm=function(){return(s._ts_node_end_point_wasm=s.asm.ts_node_end_point_wasm).apply(null,arguments)},s._ts_node_start_index_wasm=function(){return(s._ts_node_start_index_wasm=s.asm.ts_node_start_index_wasm).apply(null,arguments)},s._ts_node_end_index_wasm=function(){return(s._ts_node_end_index_wasm=s.asm.ts_node_end_index_wasm).apply(null,arguments)},s._ts_node_to_string_wasm=function(){return(s._ts_node_to_string_wasm=s.asm.ts_node_to_string_wasm).apply(null,arguments)},s._ts_node_children_wasm=function(){return(s._ts_node_children_wasm=s.asm.ts_node_children_wasm).apply(null,arguments)},s._ts_node_named_children_wasm=function(){return(s._ts_node_named_children_wasm=s.asm.ts_node_named_children_wasm).apply(null,arguments)},s._ts_node_descendants_of_type_wasm=function(){return(s._ts_node_descendants_of_type_wasm=s.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},s._ts_node_is_named_wasm=function(){return(s._ts_node_is_named_wasm=s.asm.ts_node_is_named_wasm).apply(null,arguments)},s._ts_node_has_changes_wasm=function(){return(s._ts_node_has_changes_wasm=s.asm.ts_node_has_changes_wasm).apply(null,arguments)},s._ts_node_has_error_wasm=function(){return(s._ts_node_has_error_wasm=s.asm.ts_node_has_error_wasm).apply(null,arguments)},s._ts_node_is_missing_wasm=function(){return(s._ts_node_is_missing_wasm=s.asm.ts_node_is_missing_wasm).apply(null,arguments)},s._ts_query_matches_wasm=function(){return(s._ts_query_matches_wasm=s.asm.ts_query_matches_wasm).apply(null,arguments)},s._ts_query_captures_wasm=function(){return(s._ts_query_captures_wasm=s.asm.ts_query_captures_wasm).apply(null,arguments)},s._iswdigit=function(){return(s._iswdigit=s.asm.iswdigit).apply(null,arguments)},s._iswalpha=function(){return(s._iswalpha=s.asm.iswalpha).apply(null,arguments)},s._iswlower=function(){return(s._iswlower=s.asm.iswlower).apply(null,arguments)},s._towupper=function(){return(s._towupper=s.asm.towupper).apply(null,arguments)},s.___errno_location=function(){return(Le=s.___errno_location=s.asm.__errno_location).apply(null,arguments)}),De=(s._memchr=function(){return(s._memchr=s.asm.memchr).apply(null,arguments)},s._strlen=function(){return(s._strlen=s.asm.strlen).apply(null,arguments)},s.stackSave=function(){return(De=s.stackSave=s.asm.stackSave).apply(null,arguments)}),Ve=s.stackRestore=function(){return(Ve=s.stackRestore=s.asm.stackRestore).apply(null,arguments)},ze=s.stackAlloc=function(){return(ze=s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},Ue=s._setThrew=function(){return(Ue=s._setThrew=s.asm.setThrew).apply(null,arguments)};function Ge(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},s.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(s.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=s.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=s.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=s.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},s.__Znwm=function(){return(s.__Znwm=s.asm._Znwm).apply(null,arguments)},s.__ZdlPv=function(){return(s.__ZdlPv=s.asm._ZdlPv).apply(null,arguments)},s.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(s.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=s.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},s._orig$ts_parser_timeout_micros=function(){return(s._orig$ts_parser_timeout_micros=s.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},s._orig$ts_parser_set_timeout_micros=function(){return(s._orig$ts_parser_set_timeout_micros=s.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},s.allocate=function(e,t){var r;return r=1==t?ze(e.length):Be(e.length),e.subarray||e.slice?T.set(e,r):T.set(new Uint8Array(e),r),r},ne=function e(){Fe||Je(),Fe||(ne=e)};var We=!1;function Je(e){function t(){Fe||(Fe=!0,s.calledRun=!0,I||(te=!0,_e(Y),_e(Q),s.onRuntimeInitialized&&s.onRuntimeInitialized(),He&&function(e){var t=s._main;if(t){var r=(e=e||[]).length+1,n=ze(4*(r+1));q[n>>2]=J(m);for(var i=1;i<r;i++)q[(n>>2)+i]=J(e[i-1]);q[(n>>2)+r]=0;try{Ke(t(r,n),!0)}catch(e){if(e instanceof Ge)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),w("exception thrown: "+o),f(1,e)}}}(e),function(){if(s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)e=s.postRun.shift(),ee.unshift(e);var e;_e(ee)}()))}e=e||h,re>0||!We&&(function(){if(O.length){if(!y)return ie(),void O.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),ke()}));O.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),ke()}else ke()}(),We=!0,re>0)||(function(){if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)e=s.preRun.shift(),X.unshift(e);var e;_e(X)}(),re>0||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),t()}),1)):t()))}function Ke(e,t){t&&ve()&&0===e||(ve()||(s.onExit&&s.onExit(e),I=!0),f(e,new Ge(e)))}if(s.run=Je,s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();var He=!0;s.noInitialRun&&(He=!1),Je();const Ze=s,Xe={},Ye=4,Qe=5*Ye,et=2*Ye,tt=2*Ye+2*et,rt={row:0,column:0},st=/[\w-.]*/g,nt=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=Ze._ts_init(),it=$(at,"i32"),ot=$(at+Ye,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=$(at,"i32"),this[1]=$(at+Ye,"i32")}delete(){Ze._ts_parser_delete(this[0]),Ze._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==ft)throw new Error("Argument must be a Language");{t=e[0];const r=Ze._ts_language_version(t);if(r<ot||it<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ze._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)ct=(t,r,s)=>e.slice(t,s);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=e}this.logCallback?(ut=this.logCallback,Ze._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,Ze._ts_parser_enable_logger_wasm(this[0],0));let s=0,n=0;if(r&&r.includedRanges){s=r.includedRanges.length;let e=n=Ze._calloc(s,tt);for(let t=0;t<s;t++)Pt(e,r.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,s);if(!i)throw ct=null,ut=null,new Error("Parsing failed");const o=new pt(Xe,i,this.language,ct);return ct=null,ut=null,o}reset(){Ze._ts_parser_reset(this[0])}setTimeoutMicros(e){Ze._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ze._ts_parser_timeout_micros(this[0])}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 pt{constructor(e,t,r,s){gt(e),this[0]=t,this.language=r,this.textCallback=s}copy(){const e=Ze._ts_tree_copy(this[0]);return new pt(Xe,e,this.language,this.textCallback)}delete(){Ze._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=at;St(t,e.startPosition),St(t+=et,e.oldEndPosition),St(t+=et,e.newEndPosition),M(t+=et,e.startIndex,"i32"),M(t+=Ye,e.oldEndIndex,"i32"),M(t+=Ye,e.newEndIndex,"i32"),t+=Ye}(e),Ze._ts_tree_edit_wasm(this[0])}get rootNode(){return Ze._ts_tree_root_node_wasm(this[0]),wt(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ze._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=$(at,"i32"),r=$(at+Ye,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=Ot(e),e+=tt;Ze._free(r)}return s}}class ht{constructor(e,t){gt(e),this.tree=t}get typeId(){return bt(this),Ze._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return bt(this),Ze._ts_node_end_point_wasm(this.tree[0]),jt(at)}get endIndex(){return bt(this),Ze._ts_node_end_index_wasm(this.tree[0])}get text(){return _t(this.tree,this.startIndex,this.endIndex)}isNamed(){return bt(this),1===Ze._ts_node_is_named_wasm(this.tree[0])}hasError(){return bt(this),1===Ze._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return bt(this),1===Ze._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return bt(this),1===Ze._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return bt(this),Ze._ts_node_child_wasm(this.tree[0],e),wt(this.tree)}namedChild(e){return bt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),wt(this.tree)}childForFieldId(e){return bt(this),Ze._ts_node_child_by_field_id_wasm(this.tree[0],e),wt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return bt(this),Ze._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return bt(this),Ze._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){bt(this),Ze._ts_node_children_wasm(this.tree[0]);const e=$(at,"i32"),t=$(at+Ye,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=wt(this.tree,r),r+=Qe;Ze._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){bt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=$(at,"i32"),t=$(at+Ye,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=wt(this.tree,r),r+=Qe;Ze._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=rt),r||(r=rt);const s=[],n=this.tree.language.types;for(let t=0,r=n.length;t<r;t++)e.includes(n[t])&&s.push(t);const i=Ze._malloc(Ye*s.length);for(let e=0,t=s.length;e<t;e++)M(i+e*Ye,s[e],"i32");bt(this),Ze._ts_node_descendants_of_type_wasm(this.tree[0],i,s.length,t.row,t.column,r.row,r.column);const o=$(at,"i32"),a=$(at+Ye,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=wt(this.tree,e),e+=Qe}return Ze._free(a),Ze._free(i),c}get nextSibling(){return bt(this),Ze._ts_node_next_sibling_wasm(this.tree[0]),wt(this.tree)}get previousSibling(){return bt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),wt(this.tree)}get nextNamedSibling(){return bt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),wt(this.tree)}get previousNamedSibling(){return bt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),wt(this.tree)}get parent(){return bt(this),Ze._ts_node_parent_wasm(this.tree[0]),wt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let r=at+Qe;return M(r,e,"i32"),M(r+Ye,t,"i32"),Ze._ts_node_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let r=at+Qe;return M(r,e,"i32"),M(r+Ye,t,"i32"),Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}descendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let r=at+Qe;return St(r,e),St(r+et,t),Ze._ts_node_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}namedDescendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let r=at+Qe;return St(r,e),St(r+et,t),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}walk(){return bt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new mt(Xe,this.tree)}toString(){bt(this);const e=Ze._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var r=T[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}(e);return Ze._free(e),t}}class mt{constructor(e,t){gt(e),this.tree=t,xt(this)}delete(){Et(this),Ze._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){bt(e),Et(this,at+Qe),Ze._ts_tree_cursor_reset_wasm(this.tree[0]),xt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Et(this),Ze._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Et(this),Ze._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Et(this),1===Ze._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Et(this),1===Ze._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Et(this);const e=Ze._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ze._ts_tree_cursor_end_index_wasm(this.tree[0]);return _t(this.tree,e,t)}get startPosition(){return Et(this),Ze._ts_tree_cursor_start_position_wasm(this.tree[0]),jt(at)}get endPosition(){return Et(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),jt(at)}get startIndex(){return Et(this),Ze._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Et(this),Ze._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Et(this),Ze._ts_tree_cursor_current_node_wasm(this.tree[0]),wt(this.tree)}currentFieldId(){return Et(this),Ze._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Et(this);const e=Ze._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xt(this),1===e}gotoNextSibling(){Et(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xt(this),1===e}gotoParent(){Et(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xt(this),1===e}}class ft{constructor(e,t){gt(e),this[0]=t,this.types=new Array(Ze._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ze._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=z(Ze._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ze._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ze._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?z(t):null}}get version(){return Ze._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=W(e),s=Ze._malloc(r+1);G(e,s,r+1);const n=Ze._ts_language_symbol_for_name(this[0],s,r,t);return Ze._free(s),n||null}get nodeTypeCount(){return Ze._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ze._ts_language_symbol_name(this[0],e);return t?z(t):null}nodeTypeIsNamed(e){return!!Ze._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ze._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=W(e),r=Ze._malloc(t+1);G(e,r,t+1);const s=Ze._ts_query_new(this[0],r,t,at,at+Ye);if(!s){const t=$(at+Ye,"i32"),s=z(r,$(at,"i32")).length,n=e.substr(s,100).split("\n")[0];let i,o=n.match(st)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${s}: '${n}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${s}: '${n}'...`),o=""}throw i.index=s,i.length=o.length,Ze._free(r),i}const n=Ze._ts_query_string_count(s),i=Ze._ts_query_capture_count(s),o=Ze._ts_query_pattern_count(s),a=new Array(i),c=new Array(n);for(let e=0;e<i;e++){const t=Ze._ts_query_capture_name_for_id(s,e,at),r=$(at,"i32");a[e]=z(t,r)}for(let e=0;e<n;e++){const t=Ze._ts_query_string_value_for_id(s,e,at),r=$(at,"i32");c[e]=z(t,r)}const u=new Array(o),l=new Array(o),p=new Array(o),h=new Array(o),m=new Array(o);for(let e=0;e<o;e++){const t=Ze._ts_query_predicates_for_pattern(s,e,at),r=$(at,"i32");h[e]=[],m[e]=[];const n=[];let i=t;for(let t=0;t<r;t++){const t=$(i,"i32"),r=$(i+=Ye,"i32");if(i+=Ye,1===t)n.push({type:"capture",name:a[r]});else if(2===t)n.push({type:"string",value:c[r]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let r=!0;switch(t){case"not-eq?":r=!1;case"eq?":if(3!==n.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(n.length-1));if("capture"!==n[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${n[1].value}"`);if("capture"===n[2].type){const t=n[1].name,s=n[2].name;m[e].push((function(e){let n,i;for(const r of e)r.name===t&&(n=r.node),r.name===s&&(i=r.node);return void 0===n||void 0===i||n.text===i.text===r}))}else{const t=n[1].name,s=n[2].value;m[e].push((function(e){for(const n of e)if(n.name===t)return n.node.text===s===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${n[2].value}.`);const s=n[1].name,i=new RegExp(n[2].value);m[e].push((function(e){for(const t of e)if(t.name===s)return i.test(t.node.text)===r;return!0}));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.".');u[e]||(u[e]={}),u[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:p;o[e]||(o[e]={}),o[e][n[1].value]=n[2]?n[2].value:null;break;default:h[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ze._free(r),new dt(Xe,s,a,m,h,Object.freeze(u),Object.freeze(l),Object.freeze(p))}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=r(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 r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}const s="function"==typeof loadSideModule?loadSideModule:Oe;return t.then((e=>s(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>nt.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const s=e[r]();return new ft(Xe,s)}))}}class dt{constructor(e,t,r,s,n,i,o,a){gt(e),this[0]=t,this.captureNames=r,this.textPredicates=s,this.predicates=n,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ze._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,s){t||(t=rt),r||(r=rt),s||(s={});let n=s.matchLimit;if(void 0===n)n=0;else if("number"!=typeof n)throw new Error("Arguments must be numbers");bt(e),Ze._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n);const i=$(at,"i32"),o=$(at+Ye,"i32"),a=$(at+2*Ye,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let t=0;t<i;t++){const r=$(l,"i32"),s=$(l+=Ye,"i32");l+=Ye;const n=new Array(s);if(l=yt(this,e.tree,l,n),this.textPredicates[r].every((e=>e(n)))){c[u++]={pattern:r,captures:n};const e=this.setProperties[r];e&&(c[t].setProperties=e);const s=this.assertedProperties[r];s&&(c[t].assertedProperties=s);const i=this.refutedProperties[r];i&&(c[t].refutedProperties=i)}}return c.length=u,Ze._free(o),c}captures(e,t,r,s){t||(t=rt),r||(r=rt),s||(s={});let n=s.matchLimit;if(void 0===n)n=0;else if("number"!=typeof n)throw new Error("Arguments must be numbers");bt(e),Ze._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n);const i=$(at,"i32"),o=$(at+Ye,"i32"),a=$(at+2*Ye,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=$(l,"i32"),r=$(l+=Ye,"i32"),s=$(l+=Ye,"i32");if(l+=Ye,u.length=r,l=yt(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[s],r=this.setProperties[t];r&&(e.setProperties=r);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ze._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function _t(e,t,r){const s=r-t;let n=e.textCallback(t,null,r);for(t+=n.length;t<r;){const s=e.textCallback(t,null,r);if(!(s&&s.length>0))break;t+=s.length,n+=s}return t>r&&(n=n.slice(0,s)),n}function yt(e,t,r,s){for(let n=0,i=s.length;n<i;n++){const i=$(r,"i32"),o=wt(t,r+=Ye);r+=Qe,s[n]={name:e.captureNames[i],node:o}}return r}function gt(e){if(e!==Xe)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function bt(e){let t=at;M(t,e.id,"i32"),M(t+=Ye,e.startIndex,"i32"),M(t+=Ye,e.startPosition.row,"i32"),M(t+=Ye,e.startPosition.column,"i32"),M(t+=Ye,e[0],"i32")}function wt(e,t=at){const r=$(t,"i32");if(0===r)return null;const s=$(t+=Ye,"i32"),n=$(t+=Ye,"i32"),i=$(t+=Ye,"i32"),o=$(t+=Ye,"i32"),a=new ht(Xe,e);return a.id=r,a.startIndex=s,a.startPosition={row:n,column:i},a[0]=o,a}function Et(e,t=at){M(t+0*Ye,e[0],"i32"),M(t+1*Ye,e[1],"i32"),M(t+2*Ye,e[2],"i32")}function xt(e){e[0]=$(at+0*Ye,"i32"),e[1]=$(at+1*Ye,"i32"),e[2]=$(at+2*Ye,"i32")}function St(e,t){M(e,t.row,"i32"),M(e+Ye,t.column,"i32")}function jt(e){return{row:$(e,"i32"),column:$(e+Ye,"i32")}}function Pt(e,t){St(e,t.startPosition),St(e+=et,t.endPosition),M(e+=et,t.startIndex,"i32"),M(e+=Ye,t.endIndex,"i32"),e+=Ye}function Ot(e){const t={};return t.startPosition=jt(e),e+=et,t.endPosition=jt(e),e+=et,t.startIndex=$(e,"i32"),e+=Ye,t.endIndex=$(e,"i32"),t}for(const e of Object.getOwnPropertyNames(lt.prototype))Object.defineProperty(i.prototype,e,{value:lt.prototype[e],enumerable:!1,writable:!1});i.Language=ft,s.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=n},3078:()=>{},4142:()=>{},1212:(e,t,r)=>{e.exports=r(8411)},7202:(e,t,r)=>{"use strict";var s=r(239);e.exports=s},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var s=r(8099);e.exports=s.AggregateError},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8337:(e,t,r)=>{"use strict";r(5442);var s=r(7202);e.exports=s},814:(e,t,r)=>{"use strict";var s=r(2769),n=r(459),i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not a function")}},1966:(e,t,r)=>{"use strict";var s=r(2937),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,r)=>{"use strict";var s=r(262),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not an object")}},1005:(e,t,r)=>{"use strict";var s=r(3273),n=r(4574),i=r(8130),o=function(e){return function(t,r,o){var a,c=s(t),u=i(c),l=n(o,u);if(e&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,r)=>{"use strict";var s=r(6100),n=s({}.toString),i=s("".slice);e.exports=function(e){return i(n(e),8,-1)}},8407:(e,t,r)=>{"use strict";var s=r(4904),n=r(2769),i=r(9932),o=r(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=s?i:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"===(s=i(t))&&n(t.callee)?"Arguments":s}},7464:(e,t,r)=>{"use strict";var s=r(701),n=r(5691),i=r(4543),o=r(9989);e.exports=function(e,t,r){for(var a=n(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];s(e,p)||r&&s(r,p)||c(e,p,u(t,p))}}},2871:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,r)=>{"use strict";var s=r(5024),n=r(9989),i=r(480);e.exports=s?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,r)=>{"use strict";var s=r(3999);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},7525:(e,t,r)=>{"use strict";var s=r(1063),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}},5024:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,r)=>{"use strict";var s=r(1063),n=r(262),i=s.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7868:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(e,t,r)=>{"use strict";var s,n,i=r(1063),o=r(7868),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(n=(s=l.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&o&&(!(s=o.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=o.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(e,t,r)=>{"use strict";var s=r(6100),n=Error,i=s("".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}},4279:(e,t,r)=>{"use strict";var s=r(3999),n=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):s(e,"stack",n(r,a)))}},5791:(e,t,r)=>{"use strict";var s=r(1203),n=r(480);e.exports=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},9098:(e,t,r)=>{"use strict";var s=r(1063),n=r(7013),i=r(9344),o=r(2769),a=r(4543).f,c=r(8696),u=r(8099),l=r(4572),p=r(3999),h=r(701),m=function(e){var t=function(r,s,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,s)}return new e(r,s,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,n,f,d,_,y,g,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,j=E?s:x?s[w]:s[w]&&s[w].prototype,P=E?u:u[w]||p(u,w,{})[w],O=P.prototype;for(d in t)n=!(r=c(E?d:w+(x?".":"#")+d,e.forced))&&j&&h(j,d),y=P[d],n&&(g=e.dontCallGetSet?(b=a(j,d))&&b.value:j[d]),_=n&&g?g:t[d],(r||S||typeof y!=typeof _)&&(v=e.bind&&n?l(_,s):e.wrap&&n?m(_):S&&o(_)?i(_):_,(e.sham||_&&_.sham||y&&y.sham)&&p(v,"sham",!0),p(P,d,v),S&&(h(u,f=w+"Prototype")||p(u,f,{}),p(u[f],d,_),e.real&&O&&(r||!O[d])&&p(O,d,_)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,r)=>{"use strict";var s=r(9344),n=r(814),i=r(1780),o=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},3410:(e,t,r)=>{"use strict";var s=r(5024),n=r(701),i=Function.prototype,o=s&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!s||s&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3574:(e,t,r)=>{"use strict";var s=r(6100),n=r(814);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9344:(e,t,r)=>{"use strict";var s=r(9932),n=r(6100);e.exports=function(e){if("Function"===s(e))return n(e)}},6100:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype,i=n.call,o=s&&n.bind.bind(i,i);e.exports=s?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,r)=>{"use strict";var s=r(8099),n=r(1063),i=r(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(s[e])||o(n[e]):s[e]&&s[e][t]||n[e]&&n[e][t]}},967:(e,t,r)=>{"use strict";var s=r(8407),n=r(4674),i=r(3057),o=r(6625),a=r(8655)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[s(e)]}},1613:(e,t,r)=>{"use strict";var s=r(4713),n=r(814),i=r(7235),o=r(459),a=r(967),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(n(r))return i(s(r,e));throw new c(o(e)+" is not iterable")}},4674:(e,t,r)=>{"use strict";var s=r(814),n=r(3057);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},1063:function(e,t,r){"use strict";var s=function(e){return e&&e.Math===Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,r)=>{"use strict";var s=r(6100),n=r(2137),i=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,r)=>{"use strict";var s=r(1003);e.exports=s("document","documentElement")},9665:(e,t,r)=>{"use strict";var s=r(5024),n=r(1203),i=r(9619);e.exports=!s&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,r)=>{"use strict";var s=r(6100),n=r(1203),i=r(9932),o=Object,a=s("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},3507:(e,t,r)=>{"use strict";var s=r(2769),n=r(262),i=r(3491);e.exports=function(e,t,r){var o,a;return i&&s(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},8148:(e,t,r)=>{"use strict";var s=r(262),n=r(3999);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},8417:(e,t,r)=>{"use strict";var s,n,i,o=r(1314),a=r(1063),c=r(262),u=r(3999),l=r(701),p=r(3753),h=r(4275),m=r(5241),f="Object already initialized",d=a.TypeError,_=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new _);y.get=y.get,y.has=y.has,y.set=y.set,s=function(e,t){if(y.has(e))throw new d(f);return t.facade=e,y.set(e,t),t},n=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=h("state");m[g]=!0,s=function(e,t){if(l(e,g))throw new d(f);return t.facade=e,u(e,g,t),t},n=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:s,get:n,has:i,enforce:function(e){return i(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=n(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}},2877:(e,t,r)=>{"use strict";var s=r(8655),n=r(6625),i=s("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696:(e,t,r)=>{"use strict";var s=r(1203),n=r(2769),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===l||r!==u&&(n(t)?s(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,r)=>{"use strict";var s=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},2937:(e,t,r)=>{"use strict";var s=r(262);e.exports=function(e){return s(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,r)=>{"use strict";var s=r(1003),n=r(2769),i=r(4317),o=r(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&i(t.prototype,a(e))}},208:(e,t,r)=>{"use strict";var s=r(4572),n=r(4713),i=r(7235),o=r(459),a=r(2877),c=r(8130),u=r(4317),l=r(1613),p=r(967),h=r(1743),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},d=f.prototype;e.exports=function(e,t,r){var _,y,g,v,b,w,E,x=r&&r.that,S=!(!r||!r.AS_ENTRIES),j=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),A=s(t,x),k=function(e){return _&&h(_,"normal",e),new f(!0,e)},M=function(e){return S?(i(e),O?A(e[0],e[1],k):A(e[0],e[1])):O?A(e,k):A(e)};if(j)_=e.iterator;else if(P)_=e;else{if(!(y=p(e)))throw new m(o(e)+" is not iterable");if(a(y)){for(g=0,v=c(e);v>g;g++)if((b=M(e[g]))&&u(d,b))return b;return new f(!1)}_=l(e,y)}for(w=j?e.next:_.next;!(E=n(w,_)).done;){try{b=M(E.value)}catch(e){h(_,"throw",e)}if("object"==typeof b&&b&&u(d,b))return b}return new f(!1)}},1743:(e,t,r)=>{"use strict";var s=r(4713),n=r(7235),i=r(4674);e.exports=function(e,t,r){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=s(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return n(o),r}},1926:(e,t,r)=>{"use strict";var s=r(2621).IteratorPrototype,n=r(5780),i=r(480),o=r(1811),a=r(6625),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=n(s,{next:i(+!u,r)}),o(e,l,!1,!0),a[l]=c,e}},164:(e,t,r)=>{"use strict";var s=r(9098),n=r(4713),i=r(4871),o=r(3410),a=r(2769),c=r(1926),u=r(3671),l=r(3491),p=r(1811),h=r(3999),m=r(3508),f=r(8655),d=r(6625),_=r(2621),y=o.PROPER,g=o.CONFIGURABLE,v=_.IteratorPrototype,b=_.BUGGY_SAFARI_ITERATORS,w=f("iterator"),E="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,r,o,f,_,P){c(r,t,o);var O,A,k,M=function(e){if(e===f&&C)return C;if(!b&&e&&e in N)return N[e];switch(e){case E:case x:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},$=t+" Iterator",I=!1,N=e.prototype,R=N[w]||N["@@iterator"]||f&&N[f],C=!b&&R||M(f),T="Array"===t&&N.entries||R;if(T&&(O=u(T.call(new e)))!==Object.prototype&&O.next&&(i||u(O)===v||(l?l(O,v):a(O[w])||m(O,w,j)),p(O,$,!0,!0),i&&(d[$]=j)),y&&f===x&&R&&R.name!==x&&(!i&&g?h(N,"name",x):(I=!0,C=function(){return n(R,this)})),f)if(A={values:M(x),keys:_?C:M(E),entries:M(S)},P)for(k in A)(b||I||!(k in N))&&m(N,k,A[k]);else s({target:t,proto:!0,forced:b||I},A);return i&&!P||N[w]===C||m(N,w,C,{name:f}),d[t]=C,A}},2621:(e,t,r)=>{"use strict";var s,n,i,o=r(1203),a=r(2769),c=r(262),u=r(5780),l=r(3671),p=r(3508),h=r(8655),m=r(4871),f=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(n=l(l(i)))!==Object.prototype&&(s=n):d=!0),!c(s)||o((function(){var e={};return s[f].call(e)!==e}))?s={}:m&&(s=u(s)),a(s[f])||p(s,f,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:d}},6625:e=>{"use strict";e.exports={}},8130:(e,t,r)=>{"use strict";var s=r(8146);e.exports=function(e){return s(e.length)}},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?r:t)(s)}},4879:(e,t,r)=>{"use strict";var s=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},5780:(e,t,r)=>{"use strict";var s,n=r(7235),i=r(7389),o=r(9683),a=r(5241),c=r(3489),u=r(9619),l=r(4275),p="prototype",h="script",m=l("IE_PROTO"),f=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},_=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&s?_(s):(t=u("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):_(s);for(var n=o.length;n--;)delete y[p][o[n]];return y()};a[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f[p]=n(e),r=new f,f[p]=null,r[m]=e):r=y(),void 0===t?r:i.f(r,t)}},7389:(e,t,r)=>{"use strict";var s=r(5024),n=r(1330),i=r(9989),o=r(7235),a=r(3273),c=r(8364);t.f=s&&!n?Object.defineProperties:function(e,t){o(e);for(var r,s=a(t),n=c(t),u=n.length,l=0;u>l;)i.f(e,r=n[l++],s[r]);return e}},9989:(e,t,r)=>{"use strict";var s=r(5024),n=r(9665),i=r(1330),o=r(7235),a=r(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",m="writable";t.f=s?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&m in r&&!r[m]){var s=l(e,t);s&&s[m]&&(e[t]=r.value,r={configurable:h in r?r[h]:s[h],enumerable:p in r?r[p]:s[p],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=a(t),o(r),n)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},4543:(e,t,r)=>{"use strict";var s=r(5024),n=r(4713),i=r(7161),o=r(480),a=r(3273),c=r(5341),u=r(701),l=r(9665),p=Object.getOwnPropertyDescriptor;t.f=s?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!n(i.f,e,t),e[t])}},5116:(e,t,r)=>{"use strict";var s=r(8600),n=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,r)=>{"use strict";var s=r(701),n=r(2769),i=r(2137),o=r(4275),a=r(2871),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(s(t,c))return t[c];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},4317:(e,t,r)=>{"use strict";var s=r(6100);e.exports=s({}.isPrototypeOf)},8600:(e,t,r)=>{"use strict";var s=r(6100),n=r(701),i=r(3273),o=r(1005).indexOf,a=r(5241),c=s([].push);e.exports=function(e,t){var r,s=i(e),u=0,l=[];for(r in s)!n(a,r)&&n(s,r)&&c(l,r);for(;t.length>u;)n(s,r=t[u++])&&(~o(l,r)||c(l,r));return l}},8364:(e,t,r)=>{"use strict";var s=r(8600),n=r(9683);e.exports=Object.keys||function(e){return s(e,n)}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!r.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:r},3491:(e,t,r)=>{"use strict";var s=r(3574),n=r(7235),i=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=s(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return n(r),i(s),t?e(r,s):r.__proto__=s,r}}():void 0)},9559:(e,t,r)=>{"use strict";var s=r(4904),n=r(8407);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},9258:(e,t,r)=>{"use strict";var s=r(4713),n=r(2769),i=r(262),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&n(r=e.toString)&&!i(a=s(r,e)))return a;if(n(r=e.valueOf)&&!i(a=s(r,e)))return a;if("string"!==t&&n(r=e.toString)&&!i(a=s(r,e)))return a;throw new o("Can't convert object to primitive value")}},5691:(e,t,r)=>{"use strict";var s=r(1003),n=r(6100),i=r(5116),o=r(7313),a=r(7235),c=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,r)=>{"use strict";var s=r(9989).f;e.exports=function(e,t,r){r in e||s(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5426:(e,t,r)=>{"use strict";var s=r(3057),n=TypeError;e.exports=function(e){if(s(e))throw new n("Can't call method on "+e);return e}},1811:(e,t,r)=>{"use strict";var s=r(4904),n=r(9989).f,i=r(3999),o=r(701),a=r(9559),c=r(8655)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(o(l,c)||n(l,c,{configurable:!0,value:t}),u&&!s&&i(l,"toString",a))}},4275:(e,t,r)=>{"use strict";var s=r(8141),n=r(1268),i=s("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},3753:(e,t,r)=>{"use strict";var s=r(1063),n=r(7525),i="__core-js_shared__",o=s[i]||n(i,{});e.exports=o},8141:(e,t,r)=>{"use strict";var s=r(4871),n=r(3753);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:s?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5571:(e,t,r)=>{"use strict";var s=r(6100),n=r(9903),i=r(1139),o=r(5426),a=s("".charAt),c=s("".charCodeAt),u=s("".slice),l=function(e){return function(t,r){var s,l,p=i(o(t)),h=n(r),m=p.length;return h<0||h>=m?e?"":void 0:(s=c(p,h))<55296||s>56319||h+1===m||(l=c(p,h+1))<56320||l>57343?e?a(p,h):s:e?u(p,h,h+2):l-56320+(s-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4603:(e,t,r)=>{"use strict";var s=r(4432),n=r(1203),i=r(1063).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},4574:(e,t,r)=>{"use strict";var s=r(9903),n=Math.max,i=Math.min;e.exports=function(e,t){var r=s(e);return r<0?n(r+t,0):i(r,t)}},3273:(e,t,r)=>{"use strict";var s=r(1395),n=r(5426);e.exports=function(e){return s(n(e))}},9903:(e,t,r)=>{"use strict";var s=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},8146:(e,t,r)=>{"use strict";var s=r(9903),n=Math.min;e.exports=function(e){var t=s(e);return t>0?n(t,9007199254740991):0}},2137:(e,t,r)=>{"use strict";var s=r(5426),n=Object;e.exports=function(e){return n(s(e))}},493:(e,t,r)=>{"use strict";var s=r(4713),n=r(262),i=r(6281),o=r(4674),a=r(9258),c=r(8655),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,c=o(e,l);if(c){if(void 0===t&&(t="default"),r=s(c,e,t),!n(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5341:(e,t,r)=>{"use strict";var s=r(493),n=r(6281);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},4904:(e,t,r)=>{"use strict";var s={};s[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(s)},1139:(e,t,r)=>{"use strict";var s=r(8407),n=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,r)=>{"use strict";var s=r(6100),n=0,i=Math.random(),o=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},7460:(e,t,r)=>{"use strict";var s=r(4603);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,r)=>{"use strict";var s=r(5024),n=r(1203);e.exports=s&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,r)=>{"use strict";var s=r(1063),n=r(2769),i=s.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},8655:(e,t,r)=>{"use strict";var s=r(1063),n=r(8141),i=r(701),o=r(1268),a=r(4603),c=r(7460),u=s.Symbol,l=n("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},6453:(e,t,r)=>{"use strict";var s=r(1003),n=r(701),i=r(3999),o=r(4317),a=r(3491),c=r(7464),u=r(5516),l=r(3507),p=r(4879),h=r(8148),m=r(4279),f=r(5024),d=r(4871);e.exports=function(e,t,r,_){var y="stackTraceLimit",g=_?2:1,v=e.split("."),b=v[v.length-1],w=s.apply(null,v);if(w){var E=w.prototype;if(!d&&n(E,"cause")&&delete E.cause,!r)return w;var x=s("Error"),S=t((function(e,t){var r=p(_?t:e,void 0),s=_?new w(e):new w;return void 0!==r&&i(s,"message",r),m(s,S,s.stack,2),this&&o(E,this)&&l(s,this,S),arguments.length>g&&h(s,arguments[g]),s}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):f&&y in w&&(u(S,w,y),u(S,w,"prepareStackTrace")),c(S,w),!d)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},6138:(e,t,r)=>{"use strict";var s=r(9098),n=r(1003),i=r(7013),o=r(1203),a=r(6453),c="AggregateError",u=n(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));s({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},3085:(e,t,r)=>{"use strict";var s=r(9098),n=r(4317),i=r(3671),o=r(3491),a=r(7464),c=r(5780),u=r(3999),l=r(480),p=r(8148),h=r(4279),m=r(208),f=r(4879),d=r(8655)("toStringTag"),_=Error,y=[].push,g=function(e,t){var r,s=n(v,this);o?r=o(new _,s?i(this):v):(r=s?this:c(v),u(r,d,"Error")),void 0!==t&&u(r,"message",f(t)),h(r,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return m(e,y,{that:a}),u(r,"errors",a),r};o?o(g,_):a(g,_,{name:!0});var v=g.prototype=c(_.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});s({global:!0,constructor:!0,arity:2},{AggregateError:g})},5695:(e,t,r)=>{"use strict";r(3085)},9828:(e,t,r)=>{"use strict";var s=r(3273),n=r(8137),i=r(6625),o=r(8417),a=r(9989).f,c=r(164),u=r(877),l=r(4871),p=r(5024),h="Array Iterator",m=o.set,f=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){m(this,{type:h,target:s(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var d=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!l&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},484:(e,t,r)=>{"use strict";var s=r(9098),n=r(1063),i=r(7013),o=r(6453),a="WebAssembly",c=n[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),s({global:!0,constructor:!0,arity:1,forced:u},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,u),s({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},3832:(e,t,r)=>{"use strict";var s=r(5571).charAt,n=r(1139),i=r(8417),o=r(164),a=r(877),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:n(e),index:0})}),(function(){var e,t=l(this),r=t.string,n=t.index;return n>=r.length?a(void 0,!0):(e=s(r,n),t.index+=e.length,a(e,!1))}))},5442:(e,t,r)=>{"use strict";r(5695)},85:(e,t,r)=>{"use strict";r(9828);var s=r(1100),n=r(1063),i=r(1811),o=r(6625);for(var a in s)i(n[a],a),o[a]=o.Array},239:(e,t,r)=>{"use strict";r(5442);var s=r(6656);r(85),e.exports=s}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var s=t.getElementsByTagName("script");if(s.length)for(var n=s.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=s[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var s={};return(()=>{"use strict";r.r(s),r.d(s,{detect:()=>Eh,detectionRegExp:()=>wh,mediaTypes:()=>bh,namespace:()=>Sh,parse:()=>xh});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>rr,includesClasses:()=>nr,includesSymbols:()=>sr,isAnnotationElement:()=>Xt,isArrayElement:()=>Jt,isBooleanElement:()=>Gt,isCommentElement:()=>Yt,isElement:()=>Dt,isLinkElement:()=>Ht,isMemberElement:()=>Kt,isNullElement:()=>Ut,isNumberElement:()=>zt,isObjectElement:()=>Wt,isParseResultElement:()=>Qt,isPrimitiveElement:()=>tr,isRefElement:()=>Zt,isSourceMapElement:()=>er,isStringElement:()=>Vt});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>Bo,isJSONSchemaElement:()=>qo,isLinkDescriptionElement:()=>Do,isMediaElement:()=>Lo});var n={};r.r(n),r.d(n,{isBooleanJsonSchemaElement:()=>wc,isCallbackElement:()=>tc,isComponentsElement:()=>rc,isContactElement:()=>sc,isExampleElement:()=>nc,isExternalDocumentationElement:()=>ic,isHeaderElement:()=>oc,isInfoElement:()=>ac,isLicenseElement:()=>cc,isLinkElement:()=>uc,isMediaTypeElement:()=>Pc,isOpenApi3_0Element:()=>pc,isOpenapiElement:()=>lc,isOperationElement:()=>hc,isParameterElement:()=>mc,isPathItemElement:()=>fc,isPathsElement:()=>dc,isReferenceElement:()=>_c,isRequestBodyElement:()=>yc,isResponseElement:()=>gc,isResponsesElement:()=>vc,isSchemaElement:()=>bc,isSecurityRequirementElement:()=>Ec,isSecuritySchemeElement:()=>xc,isServerElement:()=>Sc,isServerVariableElement:()=>jc,isServersElement:()=>Oc});const i={"@@functional/placeholder":!0};function o(e){return e===i}function a(e){return function t(r){return 0===arguments.length||o(r)?t:e.apply(this,arguments)}}function c(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return o(r)?t:a((function(t){return e(r,t)}));default:return o(r)&&o(s)?t:o(r)?a((function(t){return e(t,s)})):o(s)?a((function(t){return e(r,t)})):e(r,s)}}}function u(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return o(r)?t:c((function(t,s){return e(r,t,s)}));case 2:return o(r)&&o(s)?t:o(r)?c((function(t,r){return e(t,s,r)})):o(s)?c((function(t,s){return e(r,t,s)})):a((function(t){return e(r,s,t)}));default:return o(r)&&o(s)&&o(n)?t:o(r)&&o(s)?c((function(t,r){return e(t,r,n)})):o(r)&&o(n)?c((function(t,r){return e(t,s,r)})):o(s)&&o(n)?c((function(t,s){return e(r,t,s)})):o(r)?a((function(t){return e(t,s,n)})):o(s)?a((function(t){return e(r,t,n)})):o(n)?a((function(t){return e(r,s,t)})):e(r,s,n)}}}const l=c((function(e,t){return null==t||t!=t?e:t})),p=Number.isInteger||function(e){return e<<0===e};function h(e){return"[object String]"===Object.prototype.toString.call(e)}function m(e,t){var r=e<0?t.length+e:e;return h(t)?t.charAt(r):t[r]}const f=c((function(e,t){if(null!=t)return p(e)?m(e,t):t[e]}));const d=u((function(e,t,r){return l(e,f(t,r))}));var _=c((function(e,t){for(var r={},s={},n=0,i=e.length;n<i;)s[e[n]]=1,n+=1;for(var o in t)s.hasOwnProperty(o)||(r[o]=t[o]);return r}));const y=_;function g(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}const v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const b=a((function(e){return!!v(e)||!!e&&("object"==typeof e&&(!h(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var w="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function E(e,t,r){return function(s,n,i){if(b(i))return e(s,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(s,n,i,"fantasy-land/reduce");if(null!=i[w])return r(s,n,i[w]());if("function"==typeof i.next)return r(s,n,i);if("function"==typeof i.reduce)return t(s,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function x(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function S(e,t,r,s){return r[s](e,t)}const j=E(g,S,x);function P(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!v(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function O(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}const A=function(){return this.xf["@@transducer/init"]()},k=function(e){return this.xf["@@transducer/result"](e)};var M=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const $=function(e){return function(t){return new M(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,r){return t.apply(this,arguments)};case 3:return function(e,r,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,i){return t.apply(this,arguments)};case 6:return function(e,r,s,n,i,o){return t.apply(this,arguments)};case 7:return function(e,r,s,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,r,s,n,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function N(e,t,r){return function(){for(var s=[],n=0,i=e,a=0,c=!1;a<t.length||n<arguments.length;){var u;a<t.length&&(!o(t[a])||n>=arguments.length)?u=t[a]:(u=arguments[n],n+=1),s[a]=u,o(u)?c=!0:i-=1,a+=1}return!c&&i<=0?r.apply(this,s):I(Math.max(0,i),N(e,s,r))}}const R=c((function(e,t){return 1===e?a(t):I(e,N(e,[],t))}));function C(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var T=Object.prototype.toString;const F=function(){return"[object Arguments]"===T.call(arguments)?function(e){return"[object Arguments]"===T.call(e)}:function(e){return C("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),B=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(){return arguments.propertyIsEnumerable("length")}(),D=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},V="function"!=typeof Object.keys||L?a((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=L&&F(e);for(t in e)!C(t,e)||n&&"length"===t||(s[s.length]=t);if(q)for(r=B.length-1;r>=0;)C(t=B[r],e)&&!D(s,t)&&(s[s.length]=t),r-=1;return s})):a((function(e){return Object(e)!==e?[]:Object.keys(e)}));const z=V;const U=c(P(["fantasy-land/map","map"],$,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return R(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return g((function(r,s){return r[s]=e(t[s]),r}),{},z(t));default:return O(e,t)}})));const G=c((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:j((function(e,r){return function(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,i=[];for(r=0;r<s;)i[i.length]=e[r],r+=1;for(r=0;r<n;)i[i.length]=t[r],r+=1;return i}(e,U(r,t))}),[],e)}));const W=c((function(e,t){var r=R(e,t);return R(e,(function(){return g(G,U(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const J=a((function(e){return W(e.length,e)}));const K=J(a((function(e){return!e})));function H(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Z(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}const X="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const Y=a((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Q(e,t,r,s){var n=H(e);function i(e,t){return ee(e,t,r.slice(),s.slice())}return!Z((function(e,t){return!Z(i,t,e)}),H(t),n)}function ee(e,t,r,s){if(X(e,t))return!0;var n,i,o=Y(e);if(o!==Y(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||!X(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!X(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=r.length-1;a>=0;){if(r[a]===e)return s[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Q(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&Q(e.values(),t.values(),r.concat([e]),s.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=z(e);if(c.length!==z(t).length)return!1;var u=r.concat([e]),l=s.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!C(p,t)||!ee(t[p],e[p],u,l))return!1;a-=1}return!0}const te=c((function(e,t){return ee(e,t,[],[])}));const re=a((function(e){return function(){return e}}));const se=re(void 0);const ne=te(se());const ie=K(ne);var oe=r(8326);function ae(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ce(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}const ue=c((function(e,t){return I(e.length,(function(){return e.apply(t,arguments)}))}));function le(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)}function pe(e,t,r,s){return e["@@transducer/result"](r[s](ue(e["@@transducer/step"],e),t))}const he=E(ce,pe,le);var me=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const fe=u((function(e,t,r){return he("function"==typeof e?new me(e):e,t,r)}));function de(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return v(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const _e=u(de("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const ye=a(de("tail",_e(1,1/0)));function ge(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return I(arguments[0].length,fe(ae,arguments[0],ye(arguments)))}var ve=function(e,t){switch(arguments.length){case 0:return ve;case 1:return function t(r){return 0===arguments.length?t:X(e,r)};default:return X(e,t)}};const be=ve;function we(e,t){return function(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(te(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function Ee(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 xe=function(e){return(e<10?"0":"")+e};const Se="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+xe(e.getUTCMonth()+1)+"-"+xe(e.getUTCDate())+"T"+xe(e.getUTCHours())+":"+xe(e.getUTCMinutes())+":"+xe(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function je(e){return"[object Object]"===Object.prototype.toString.call(e)}var Pe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Oe(e){return function(t){return new Pe(e,t)}}const Ae=c(P(["fantasy-land/filter","filter"],Oe,(function(e,t){return je(t)?g((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},z(t)):function(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}(e,t)})));const ke=c((function(e,t){return Ae((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function Me(e,t){var r=function(r){var s=t.concat([e]);return we(r,s)?"<Circular>":Me(r,s)},s=function(e,t){return O((function(t){return Ee(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+O(r,e).join(", ")+"))";case"[object Array]":return"["+O(r,e).concat(s(e,ke((function(e){return/^\d+$/.test(e)}),z(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):Ee(Se(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":Ee(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,z(e)).join(", ")+"}"}}const $e=a((function(e){return Me(e,[])}));function Ie(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=p(n)?m(n,r):r[n]}return r}const Ne=u((function(e,t,r){return e(Ie(t,r))}));function Re(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ce=c((function(e,t){return e&&t}));const Te=c((function(e,t){return Re(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:J(Ce)(e,t)}));const Fe=te(null);const qe=K(Fe);function Be(e){return Be="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},Be(e)}const Le=function(e){return"object"===Be(e)};const De=R(1,Te(qe,Le));const Ve=c((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=$e(e),o=r(i,$e(t));return void 0!==o&&o===i?e:t}));const ze=c((function(e,t){return U(f(e),t)}));const Ue=a((function(e){return R(fe(Ve,0,ze("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const Ge=R(1,ge(Y,be("GeneratorFunction")));const We=R(1,ge(Y,be("AsyncFunction")));const Je=Ue([ge(Y,be("Function")),Ge,We]);var Ke=ge(Y,be("Object")),He=ge($e,te($e(Object))),Ze=Ne(Te(Je,He),["constructor"]);const Xe=R(1,(function(e){if(!De(e)||!Ke(e))return!1;var t=Object.getPrototypeOf(e);return!!Fe(t)||Ze(t)}));class Ye extends oe.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Qe=Ye;class et extends oe.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const tt=et;class rt extends oe.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(ne(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const st=rt;class nt extends oe.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new oe.wE([e.start.row,e.start.column,e.start.char]),r=new oe.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const it=nt;class ot extends oe.g${constructor(){super(),this.register("annotation",Qe),this.register("comment",tt),this.register("parseResult",st),this.register("sourceMap",it)}}const at=new ot,ct=e=>{const t=new ot;return Xe(e)&&t.use(e),t},ut=at;const lt=R(1,ge(Y,be("String"))),pt=r.p+"23aac571c96605dc25219087ad291441.wasm",ht=globalThis.fetch;Je(ht)&&(globalThis.fetch=(...e)=>lt(e[0])&&e[0].endsWith("tree-sitter.wasm")?ht.apply(globalThis,[pt,ye(e)]):ht.apply(globalThis,e));var mt=r(3833),ft=r(1212);const dt=class extends ft{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class _t extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(dt,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=_t,gt=r.p+"64a30dfa8a51b6a090ebd363beeaad5d.wasm";let vt=null,bt=null;const wt=async e=>{if(null===vt&&null===bt)bt=mt.init().then((()=>mt.Language.load(gt))).then((e=>{const t=new mt;return t.setLanguage(e),t})).finally((()=>{bt=null})),vt=await bt;else if(null===vt&&null!==bt)vt=await bt;else if(null===vt)throw new yt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return vt.parse(e)};const Et=class extends yt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},xt=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},St={},jt=e=>null==e?void 0:e.type,Pt=e=>"string"==typeof jt(e),Ot=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),At=(e,{visitFnGetter:t=xt,nodeTypeGetter:r=jt,breakSymbol:s=St,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,l,p,h,m,f){let d=u,_=!1;const y={...f,replaceWith(e,t){f.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(d),!1);if("function"==typeof a){const t=a.call(e[u],d,l,p,h,m,y);if("function"==typeof(null==t?void 0:t.then))throw new Et("Async visitor not supported in sync mode",{visitor:e[u],visitFn:a});if(t===i)c[u]=d;else if(t===s)c[u]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;d=t,_=!0}}}}return _?d:void 0},leave(n,o,u,l,p,h){let m=n;const f={...h,replaceWith(e,t){h.replaceWith(e,t),m=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(m),!0);if("function"==typeof a){const t=a.call(e[n],m,o,u,l,p,f);if("function"==typeof(null==t?void 0:t.then))throw new Et("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===m&&(c[n]=a)}}};At[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=xt,nodeTypeGetter:r=jt,breakSymbol:s=St,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(u,l,p,h,m,f){let d=u,_=!1;const y={...f,replaceWith(e,t){f.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(d),!1);if("function"==typeof a){const t=await a.call(e[u],d,l,p,h,m,y);if(t===i)c[u]=d;else if(t===s)c[u]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;d=t,_=!0}}}}return _?d:void 0},async leave(n,o,u,l,p,h){let m=n;const f={...h,replaceWith(e,t){h.replaceWith(e,t),m=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(m),!0);if("function"==typeof a){const t=await a.call(e[n],m,o,u,l,p,f);if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===m&&(c[n]=a)}}};const kt=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=St,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=xt,nodeTypeGetter:c=jt,nodePredicate:u=Pt,nodeCloneFn:l=Ot,detectCycles:p=!0}={})=>{const h=r||{};let m,f,d=Array.isArray(e),_=[e],y=-1,g=[],v=e;const b=[],w=[];do{y+=1;const e=y===_.length;let r;const S=e&&0!==g.length;if(e){if(r=0===w.length?void 0:b.pop(),v=f,f=w.pop(),S)if(d){v=v.slice();let e=0;for(const[t,r]of g){const s=t-e;r===i?(v.splice(s,1),e+=1):v[s]=r}}else{v=l(v);for(const[e,t]of g)v[e]=t}y=m.index,_=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(r=d?y:_[y],v=f[r],v===i||void 0===v)continue;b.push(r)}let j;if(!Array.isArray(v)){var E;if(!u(v))throw new Et(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,v,r,f,b,w):f&&(f[r]=t),e||(v=t)}};j=i.call(t,v,r,f,b,w,n)}if("function"==typeof(null===(E=j)||void 0===E?void 0:E.then))throw new Et("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(j===n)break;if(j===o){if(!e){b.pop();continue}}else if(void 0!==j&&(g.push([r,j]),!e)){if(!u(j)){b.pop();continue}v=j}}var x;if(void 0===j&&S&&g.push([r,v]),!e)m={inArray:d,index:y,keys:_,edits:g,prev:m},d=Array.isArray(v),_=d?v:null!==(x=h[c(v)])&&void 0!==x?x:[],y=-1,g=[],f!==i&&void 0!==f&&w.push(f),f=v}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};function Mt(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}kt[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=St,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=xt,nodeTypeGetter:c=jt,nodePredicate:u=Pt,nodeCloneFn:l=Ot,detectCycles:p=!0}={})=>{const h=r||{};let m,f,d=Array.isArray(e),_=[e],y=-1,g=[],v=e;const b=[],w=[];do{y+=1;const e=y===_.length;let r;const x=e&&0!==g.length;if(e){if(r=0===w.length?void 0:b.pop(),v=f,f=w.pop(),x)if(d){v=v.slice();let e=0;for(const[t,r]of g){const s=t-e;r===i?(v.splice(s,1),e+=1):v[s]=r}}else{v=l(v);for(const[e,t]of g)v[e]=t}y=m.index,_=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(r=d?y:_[y],v=f[r],v===i||void 0===v)continue;b.push(r)}let S;if(!Array.isArray(v)){if(!u(v))throw new Et(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,v,r,f,b,w):f&&(f[r]=t),e||(v=t)}};S=await i.call(t,v,r,f,b,w,n)}if(S===n)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&g.push([r,v]),!e)m={inArray:d,index:y,keys:_,edits:g,prev:m},d=Array.isArray(v),_=d?v:null!==(E=h[c(v)])&&void 0!==E?E:[],y=-1,g=[],f!==i&&void 0!==f&&w.push(f),f=v}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};var $t=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=A,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=Mt(this.xf["@@transducer/step"](e,!1))),e},e}();function It(e){return function(t){return new $t(e,t)}}const Nt=c(P(["all"],It,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));const Rt=a((function(e){return R(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}))(c(we)),Ct=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Tt=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Ft=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),qt=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof oe.wE)&&t.classes.includes(e),Bt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Lt=e=>e({hasMethod:Ct,hasBasicElementProps:Tt,primitiveEq:Ft,isElementType:Bt,hasClass:qt}),Dt=Lt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.Hg||e(r)&&t(void 0,r))),Vt=Lt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.Om||e(r)&&t("string",r))),zt=Lt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.kT||e(r)&&t("number",r))),Ut=Lt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.Os||e(r)&&t("null",r))),Gt=Lt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.bd||e(r)&&t("boolean",r))),Wt=Lt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof oe.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),Jt=Lt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof oe.wE&&!(s instanceof oe.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),Kt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof oe.Pr||e(s)&&t("member",s)&&r(void 0,s))),Ht=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof oe.Ft||e(s)&&t("link",s)&&r(void 0,s))),Zt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof oe.sI||e(s)&&t("ref",s)&&r(void 0,s))),Xt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qe||e(s)&&t("annotation",s)&&r("array",s))),Yt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tt||e(s)&&t("comment",s)&&r("string",s))),Qt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof st||e(s)&&t("parseResult",s)&&r("array",s))),er=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof it||e(s)&&t("sourceMap",s)&&r("array",s))),tr=e=>Bt("object",e)||Bt("array",e)||Bt("boolean",e)||Bt("number",e)||Bt("string",e)||Bt("null",e)||Bt("member",e),rr=e=>er(e.meta.get("sourceMap")),sr=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Jt(r)&&Nt(Rt(r.toValue()),e)},nr=(e,t)=>0===e.length||Nt(Rt(t.classes.toValue()),e);const ir=class extends Et{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const or=class extends ir{};const ar=class extends ir{},cr=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof oe.KeyValuePair){const{key:t,value:n}=e,i=Dt(t)?cr(t,s):t,o=Dt(n)?cr(n,s):n,a=new oe.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof oe.ot){const t=e=>cr(e,s),n=[...e].map(t),i=new oe.ot(n);return r.set(e,i),i}if(e instanceof oe.G6){const t=e=>cr(e,s),n=[...e].map(t),i=new oe.G6(n);return r.set(e,i),i}if(Dt(e)){const t=pr(e);if(r.set(e,t),e.content)if(Dt(e.content))t.content=cr(e.content,s);else if(e.content instanceof oe.KeyValuePair)t.content=cr(e.content,s);else if(Array.isArray(e.content)){const r=e=>cr(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new or("Value provided to cloneDeep function couldn't be cloned",{value:e})};cr.safe=e=>{try{return cr(e)}catch{return e}};const ur=e=>{const{key:t,value:r}=e;return new oe.KeyValuePair(t,r)},lr=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=cr(e.meta)),e.attributes.length>0&&(t._attributes=cr(e.attributes)),Dt(e.content)){const r=e.content;t.content=lr(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof oe.KeyValuePair?t.content=ur(e.content):t.content=e.content;return t},pr=e=>{if(e instanceof oe.KeyValuePair)return ur(e);if(e instanceof oe.ot)return(e=>{const t=[...e];return new oe.ot(t)})(e);if(e instanceof oe.G6)return(e=>{const t=[...e];return new oe.G6(t)})(e);if(Dt(e))return lr(e);throw new ar("Value provided to cloneShallow function couldn't be cloned",{value:e})};pr.safe=e=>{try{return pr(e)}catch{return e}};const hr=e=>Wt(e)?"ObjectElement":Jt(e)?"ArrayElement":Kt(e)?"MemberElement":Vt(e)?"StringElement":Gt(e)?"BooleanElement":zt(e)?"NumberElement":Ut(e)?"NullElement":Ht(e)?"LinkElement":Zt(e)?"RefElement":void 0,mr=e=>Dt(e)?pr(e):Ot(e),fr=ge(hr,lt),dr={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const _r=(e,t,{keyMap:r=dr,...s}={})=>kt(e,t,{keyMap:r,nodeTypeGetter:hr,nodePredicate:fr,nodeCloneFn:mr,...s});_r[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=dr,...s}={})=>kt[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:hr,nodePredicate:fr,nodeCloneFn:mr,...s});const yr=u((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})C(s,t)&&(n[s]=C(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)C(s,r)&&!C(s,n)&&(n[s]=r[s]);return n}));const gr=u((function e(t,r,s){return yr((function(r,s,n){return je(s)&&je(n)?e(t,s,n):t(r,s,n)}),r,s)}));const vr=c((function(e,t){return gr((function(e,t,r){return r}),e,t)}));const br=c(Ie);const wr=_e(0,-1);const Er=c((function(e,t){return e.apply(this,t)}));const xr=K(Je);var Sr=a((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():v(e)?[]:h(e)?"":je(e)?{}:F(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const jr=Sr;const Pr=a((function(e){return null!=e&&te(e,jr(e))}));const Or=R(1,Je(Array.isArray)?Array.isArray:ge(Y,be("Array")));const Ar=Te(Or,Pr);const kr=R(3,(function(e,t,r){var s=br(e,r),n=br(wr(e),r);if(!xr(s)&&!Ar(e)){var i=ue(s,n);return Er(i,t)}})),Mr=()=>({predicates:{...e},namespace:ut}),$r={toolboxCreator:Mr,visitorOptions:{nodeTypeGetter:hr,exposeEdits:!0}},Ir=(e,t,r={})=>{if(0===t.length)return e;const s=vr($r,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=At(a.map(d({},"visitor")),{...i});a.forEach(kr(["pre"],[]));const u=_r(e,c,i);return a.forEach(kr(["post"],[])),u};Ir[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=vr($r,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=At[Symbol.for("nodejs.util.promisify.custom")],u=_r[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(d({},"visitor")),{...i});await Promise.allSettled(a.map(kr(["pre"],[])));const p=await u(e,l,i);return await Promise.allSettled(a.map(kr(["post"],[]))),p};const Nr=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return Dt(e)&&(e.meta.length>0&&(s.meta=cr(e.meta)),e.attributes.length>0&&(s.attributes=cr(e.attributes))),Ir(s,r,{toolboxCreator:Mr,visitorOptions:{nodeTypeGetter:hr}})},Rr=e=>(t,r={})=>Nr(t,{...r,Type:e});oe.Sh.refract=Rr(oe.Sh),oe.wE.refract=Rr(oe.wE),oe.Om.refract=Rr(oe.Om),oe.bd.refract=Rr(oe.bd),oe.Os.refract=Rr(oe.Os),oe.kT.refract=Rr(oe.kT),oe.Ft.refract=Rr(oe.Ft),oe.sI.refract=Rr(oe.sI),Qe.refract=Rr(Qe),tt.refract=Rr(tt),st.refract=Rr(st),it.refract=Rr(it);const Cr=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}pushChildren(...e){this.children.push(...e)}};class Tr{static toPosition(e){const t=new oe.wE([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new oe.wE([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),r.classes.push("position"),[t,r]}sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(tr);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}enter(e){if(e instanceof Cr&&!e.isNamed&&e.isMissing){const t=e.type||e.text,r=new Qe(`(Missing ${t})`);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}document(e){const t=new st;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new oe.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new oe.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new oe.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new oe.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new oe.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new oe.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new oe.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new oe.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,r,s){const n=!e.hasError,i=e.text,o=new Qe(n?`(Unexpected ${i})`:`(Error ${i})`);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===s.length){const e=new st;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new it,s=Tr.toPosition(e);if(null!==s){const[e,t]=s;r.push(e),r.push(t)}r.astNode=e,t.meta.set("sourceMap",r)}}const Fr=Tr;class qr{cursor;constructor(e){this.cursor=e}document(){return new Cr(this.cursor)}object(){return new Cr(this.cursor).setFieldName(this.cursor)}array(){return new Cr(this.cursor).setFieldName(this.cursor)}pair(){return new Cr(this.cursor)}string(){return new Cr(this.cursor).setFieldName(this.cursor)}number(){return new Cr(this.cursor).setFieldName(this.cursor)}null(){return new Cr(this.cursor).setFieldName(this.cursor)}true(){return new Cr(this.cursor).setFieldName(this.cursor)}false(){return new Cr(this.cursor).setFieldName(this.cursor)}ERROR(){return new Cr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Cr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new qr(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new qr(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const Br=qr,Lr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...dr},Dr=e=>Qt(e)?"ParseResultElement":Dt(e)?hr(e):jt(e),Vr=e=>Dt(e)||Pt(e),zr=(e,{sourceMap:t=!1}={})=>{const r=new Fr,s=e.walk(),n=new Br(s),[i]=Array.from(n);return kt(i,r,{keyMap:Lr,nodeTypeGetter:Dr,nodePredicate:Vr,state:{sourceMap:t}})};class Ur{static type="point";type=Ur.type;row;column;char;constructor({row:e,column:t,char:r}){this.row=e,this.column=t,this.char=r}}class Gr{static type="position";type=Gr.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const Wr=Gr;const Jr=a((function(e){return m(0,e)}));const Kr=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:r=!1}={}){this.type=this.constructor.type,this.isMissing=r,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}};const Hr=class extends Kr{};const Zr=class extends Hr{static type="document";get child(){return Jr(this.children)}};const Xr=class extends Kr{static type="parseResult";get rootNode(){return Jr(this.children)}};const Yr=class extends Kr{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}},Qr=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,es=e=>Qr("string",e),ts=e=>Qr("false",e),rs=e=>Qr("true",e),ss=e=>Qr("null",e),ns=e=>Qr("number",e),is=e=>Qr("array",e),os=e=>Qr("object",e),as=e=>Qr("property",e),cs=e=>Qr("key",e);const us=class extends Hr{static type="object";get properties(){return this.children.filter(as)}};const ls=class extends Hr{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>Qr("stringContent",e))(e)||(e=>Qr("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}};const ps=class extends ls{static type="key"};const hs=class extends Hr{static type="property";get key(){return this.children.find(cs)}get value(){return this.children.find((e=>ts(e)||rs(e)||ss(e)||ns(e)||es(e)||is(e)||os(e)))}};const ms=class extends Hr{static type="array";get items(){return this.children.filter((e=>ts(e)||rs(e)||ss(e)||ns(e)||es(e)||is(e)||os))}};const fs=class extends Hr{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const ds=class extends fs{static type="stringContent"};const _s=class extends fs{static type="number"};const ys=class extends fs{static type="null"};const gs=class extends fs{static type="true"};const vs=class extends fs{static type="false"};const bs=class extends Kr{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}},ws={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class Es{static toPosition(e){const t=new Ur({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=new Ur({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new Wr({start:t,end:r})}document={enter:e=>{const t=Es.toPosition(e);return new Zr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Xr({children:[e]})};enter(e){if(e instanceof Cr&&!e.isNamed){const t=Es.toPosition(e),r=e.type||e.text,{isMissing:s}=e;return new Yr({value:r,position:t,isMissing:s})}}object(e){const t=Es.toPosition(e);return new us({children:e.children,position:t,isMissing:e.isMissing})}pair(e){const t=Es.toPosition(e),r=e.children.slice(1),{keyNode:s}=e,n=new ps({children:(null==s?void 0:s.children)||[],position:null!=s?Es.toPosition(s):void 0,isMissing:null!=s&&s.isMissing});return new hs({children:[n,...r],position:t,isMissing:e.isMissing})}array(e){const t=Es.toPosition(e);return new ms({children:e.children,position:t,isMissing:e.isMissing})}string(e){const t=Es.toPosition(e),r=new ds({value:JSON.parse(e.text)});return new ls({children:[r],position:t,isMissing:e.isMissing})}number(e){const t=Es.toPosition(e),r=e.text;return new _s({value:r,position:t,isMissing:e.isMissing})}null(e){const t=Es.toPosition(e),r=e.text;return new ys({value:r,position:t,isMissing:e.isMissing})}true(e){const t=Es.toPosition(e),r=e.text;return new gs({value:r,position:t,isMissing:e.isMissing})}false(e){const t=Es.toPosition(e),r=e.text;return new vs({value:r,position:t,isMissing:e.isMissing})}ERROR(e,t,r,s){const n=Es.toPosition(e),i=new bs({children:e.children,position:n,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===s.length?new Xr({children:[i]}):i}}const xs=Es,Ss={[Xr.type]:["children"],[Zr.type]:["children"],[us.type]:["children"],[hs.type]:["children"],[ms.type]:["children"],[bs.type]:["children"],...dr},js=e=>Qt(e)?"ParseResultElement":Dt(e)?hr(e):jt(e),Ps=e=>Dt(e)||Pt(e);const Os=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(tr);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}document(e){const t=new st;return t._content=e.children,t}object(e){const t=new oe.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new oe.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new oe.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new oe.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new oe.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new oe.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new oe.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new oe.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new oe.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,r=new Qe(t);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}error(e,t,r,s){const n=e.isUnexpected?`(Unexpected ${e.value})`:`(Error ${e.value})`,i=new Qe(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===s.length){const e=new st;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new it;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)}},As=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),s=new Br(r),[n]=Array.from(s),i=new xs,o=new Os,a=kt(n,i,{keyMap:ws,state:{sourceMap:t}});return kt(a.rootNode,o,{keyMap:Ss,nodeTypeGetter:js,nodePredicate:Ps,state:{sourceMap:t}})},ks=(ct(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);class Ms extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const $s=Ms;class Is extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get 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 Ns=Is;class Rs extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Cs=Rs;class Ts extends oe.Sh{constructor(e,t,r){super(e,t,r),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 Fs=Ts;class qs extends oe.Sh{constructor(e,t,r){super(e,t,r),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 Bs=qs;class Ls extends oe.Sh{constructor(e,t,r){super(e,t,r),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 Ds=Ls;class Vs extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const zs=Vs;class Us extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new oe.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.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(Us.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Gs=Us;class Ws extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get 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 Js=Ws;class Ks extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Hs=Ks;class Zs extends oe.Sh{constructor(e,t,r){super(e,t,r),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 Vt(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Vt(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 Xs=Zs;class Ys extends oe.Sh{constructor(e,t,r){super(e,t,r),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 Qs=Ys;class en extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const tn=en;class rn extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const sn=rn;class nn extends oe.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const on=nn;class an extends oe.Sh{constructor(e,t,r){super(e,t,r),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 cn=an;class un extends oe.Sh{constructor(e,t,r){super(e,t,r),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 oe.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 ln=un;class pn extends oe.Sh{constructor(e,t,r){super(e,t,r),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 oe.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.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(pn.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const hn=pn;class mn extends oe.Sh{constructor(e,t,r){super(e,t,r),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 fn=mn;class dn extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const _n=dn;class yn extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const gn=yn;class vn extends oe.Sh{constructor(e,t,r){super(e,t,r),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 oe.bd(!1)}set required(e){this.set("required",e)}}const bn=vn;class wn extends oe.Sh{constructor(e,t,r){super(e,t,r),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 En=wn;class xn extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Sn=xn;const jn=class extends yt{};class Pn extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const On=Pn;class An extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const kn=An;class Mn extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const $n=Mn;class In extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Nn=In;const Rn=c((function(e,t){return g((function(r,s){return r[s]=e(t[s],s,t),r}),{},z(t))}));const Cn=a((function(e){return null==e}));var Tn=c((function(e,t){if(0===e.length||Cn(t))return!1;for(var r=t,s=0;s<e.length;){if(Cn(r)||!C(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));const Fn=Tn;var qn=c((function(e,t){return Fn([e],t)}));const Bn=qn;const Ln=u((function(e,t,r){return e(f(t,r))}));const Dn=a((function(e){return R(e.length,e)}));const Vn=c((function(e,t){return R(e+1,(function(){var r=arguments[e];if(null!=r&&Re(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError($e(r)+' does not have a method named "'+t+'"')}))}));const zn=Vn(1,"split");var Un=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,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 Gn(e){return function(t){return new Un(e,t)}}const Wn=c(P(["dropWhile"],Gn,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return _e(r,1/0,t)})));const Jn=Vn(1,"join");const Kn=Dn((function(e,t){return ge(zn(""),Wn(Rt(e)),Jn(""))(t)})),Hn=(e,t)=>{const r=l(e,t);return Rn((e=>{if(Xe(e)&&Bn("$ref",e)&&Ln(lt,"$ref",e)){const t=br(["$ref"],e),s=Kn("#/",t);return br(s.split("/"),r)}return Xe(e)?Hn(e,r):e}),e)};const Zn=function(){return!0},Xn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:hr(e),Yn={EphemeralObject:["content"],EphemeralArray:["content"],...dr},Qn=(e,t,{keyMap:r=Yn,...s}={})=>_r(e,t,{keyMap:r,nodeTypeGetter:Xn,nodePredicate:Zn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});Qn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Yn,...r}={})=>_r[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Xn,nodePredicate:Zn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const ei=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 ti=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 ri{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new ti(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 ei(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Vt(e.href)?e.href.toValue():""}}const si=e=>Dt(e)?Vt(e)||zt(e)||Gt(e)||Ut(e)?e.toValue():Qn(e,new ri):e,ni=e=>{const t=e.meta.length>0?cr(e.meta):void 0,r=e.attributes.length>0?cr(e.attributes):void 0;return new e.constructor(void 0,t,r)},ii=(e,t)=>t.clone&&t.isMergeableElement(e)?ui(ni(e),e,t):e,oi=e=>"function"!=typeof e.customMetaMerge?e=>cr(e):e.customMetaMerge,ai=e=>"function"!=typeof e.customAttributesMerge?e=>cr(e):e.customAttributesMerge,ci={clone:!0,isMergeableElement:e=>Wt(e)||Jt(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>ii(e,r))),objectElementMerge:(e,t,r)=>{const s=Wt(e)?ni(e):ni(t);return Wt(e)&&e.forEach(((e,t,n)=>{const i=pr(n);i.value=ii(e,r),s.content.push(i)})),t.forEach(((t,n,i)=>{const o=si(n);let a;if(Wt(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);a=pr(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return ui;const r=t.customMerge(e,t);return"function"==typeof r?r:ui})(n,r)(s,t)}else a=pr(i),a.value=ii(t,r);s.remove(o),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function ui(e,t,r){var s,n,i;const o={...ci,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:ci.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:ci.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:ci.objectElementMerge;const a=Jt(t);if(!(a===Jt(e)))return ii(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=oi(o)(e.meta,t.meta),c.attributes=ai(o)(e.attributes,t.attributes),c}ui.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new oe.Sh:e.reduce(((e,r)=>ui(e,r,t)),ni(e[0]))};const li=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ui(t.meta,e.meta),rr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ui(t.attributes,e.attributes))}};const pi=class extends li{enter(e){return this.element=cr(e),St}},hi=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},mi=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:mi(r,[...t,r])},fi=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>mi(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),s=e[0];if(!e.every((e=>e===s)))break;t=s}return t})(...e))&&void 0!==s?s:Object.prototype,i=Object.create(n),o=mi(n);for(let t of e){let e=mi(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(hi(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},di=e=>e.filter(((t,r)=>e.indexOf(t)==r)),_i=(e,t)=>{const r=t.map((e=>mi(e)));let s=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][s];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}s++}},yi=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(_i(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==_i(s,e)||void 0!==t[s],get:(r,s)=>(_i(s,e)||t)[s],set(t,r,s){const n=_i(r,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[r]=s,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),gi=null,vi="copy",bi="copy",wi="deep",Ei=new WeakMap,xi=e=>Ei.get(e),Si=(e,t)=>{var r,s;const n=di([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=di([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(s=null==t?void 0:t[o])&&void 0!==s?s:[]]);return i},ji=(e,t)=>{var r,s,n,i;return{property:Si(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:Si(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Pi=(e,t)=>{var r,s,n,i,o,a;return{class:di([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:ji(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:ji(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Oi=new Map,Ai=(...e)=>{const t=((...e)=>{var t;const r=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const n=[...mi(e.prototype).map((e=>e.constructor)),...null!==(t=xi(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of n)s.add(e);r.add(e),s.delete(e)}return[...r]})(...e).map((e=>Oi.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Pi(e,t)))},ki=e=>{let t=Oi.get(e);return t||(t={},Oi.set(e,t)),t};function Mi(...e){var t,r,s;const n=e.map((e=>e.prototype)),i=gi;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t={[i]:function(...t){for(let r of e)r.apply(this,t)}};n.push(t)}function o(...t){for(const r of e)hi(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===bi?fi(n,o):(a=n,c=o,yi([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===vi?fi(e,null,["prototype"]):yi(e,Function.prototype));let u=o;if("none"!==wi){const n="deep"===wi?Ai(...e):((...e)=>{const t=e.map((e=>ki(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Pi(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}$i(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},u),$i(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},u.prototype)}var l,p;return l=u,p=e,Ei.set(l,p),u}const $i=(e,t)=>{const r=e.property,s=e.method;if(r)for(let e in r)for(let s of r[e])s(t,e);if(s)for(let e in s)for(let r of s[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const Ii=c((function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r}));const Ni=class extends li{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Ii(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=br(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ne(Je,["visitors",...e],this.specObj)?br(["visitors",...e],this.specObj):br(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof pi&&(null==s?void 0:s.constructor)===pi?cr(t):(_r(t,s,r),s.element)}};const Ri=class extends Ni{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(Vt(s)&&r.includes(si(s))&&!this.ignoredFields.includes(si(s))){const r=this.toRefractedElement([...t,"fixedFields",si(s)],e),i=new oe.Pr(cr(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(si(s))||this.element.content.push(cr(n))})),this.copyMetaAndAttributes(e,this.element),St}};class Ci extends(Mi(Ri,pi)){constructor(e){super(e),this.element=new On,this.specPath=re(["document","objects","JSONSchema"])}}const Ti=Ci;const Fi=class{parent;constructor({parent:e}){this.parent=e}},qi=e=>Wt(e)&&e.hasKey("$ref");class Bi extends(Mi(Ni,Fi,pi)){ObjectElement(e){const t=qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),St}ArrayElement(e){return this.element=new oe.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const Li=Bi;const Di=class extends pi{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Vi=a((function(e){return R(fe(Ve,0,ze("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const zi=a((function(e){return!Pr(e)}));const Ui=c((function(e,t){return e||t}));var Gi=K(R(1,Te(qe,c((function(e,t){return Re(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:J(Ui)(e,t)}))(Le,Je))));const Wi=Vi([lt,Gi,zi]);const Ji=function(){return!1};const Ki=class extends Ni{specPath;ignoredFields;fieldPatternPredicate=Ji;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(si(t))&&this.fieldPatternPredicate(si(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new oe.Pr(cr(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(si(t))||this.element.content.push(cr(r))})),this.copyMetaAndAttributes(e,this.element),St}};const Hi=class extends Ki{constructor(e){super(e),this.fieldPatternPredicate=Wi}};class Zi extends(Mi(Hi,Fi,pi)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Xi=Zi;class Yi extends(Mi(Hi,Fi,pi)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Qi=Yi;class eo extends(Mi(Hi,Fi,pi)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const to=eo;const ro=class extends pi{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const so=class extends pi{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 no extends(Mi(Ni,Fi,pi)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const io=no;class oo extends(Mi(Ni,Fi,pi)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const ao=oo;class co extends(Mi(Ni,Fi,pi)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const uo=co;class lo extends(Mi(Hi,Fi,pi)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const po=lo;class ho extends(Mi(Ni,Fi,pi)){constructor(e){super(e),this.element=new oe.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),St}}const mo=ho;class fo extends(Mi(Ri,pi)){constructor(e){super(e),this.element=new kn,this.specPath=re(["document","objects","JSONReference"])}ObjectElement(e){const t=Ri.prototype.ObjectElement.call(this,e);return Vt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const _o=fo;const yo=class extends pi{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const go=u((function(e,t,r){return R(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const vo=a((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var bo=c((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const wo=bo;const Eo=a(Mt);const xo=K(Cn);const So=Te(Or,zi);function jo(e){return function(e){if(Array.isArray(e))return Po(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)return;if("string"==typeof e)return Po(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Po(e,t)}(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 Po(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=new Array(t);r<t;r++)s[r]=e[r];return s}var Oo=ge(wo(vo((function(e,t){return e.length>t.length}))),Jr,f("length")),Ao=Dn((function(e,t,r){var s=r.apply(void 0,jo(e));return xo(s)?Eo(s):t}));const ko=go(So,(function(e){var t=Oo(e);return R(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return fe(Ao(r),void 0,e)}))}),se);const Mo=class extends Ni{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>go(e,re(t),se))),r=ko(t)(e);return this.element=this.toRefractedElement(r,e),St}};const $o=class extends Mo{constructor(e){super(e),this.alternator=[{predicate:qi,specPath:["document","objects","JSONReference"]},{predicate:Zn,specPath:["document","objects","JSONSchema"]}]}};class Io extends(Mi(Ri,pi)){constructor(e){super(e),this.element=new $n,this.specPath=re(["document","objects","Media"])}}const No=Io;class Ro extends(Mi(Ri,pi)){constructor(e){super(e),this.element=new Nn,this.specPath=re(["document","objects","LinkDescription"])}}const Co={visitors:{value:pi,JSONSchemaOrJSONReferenceVisitor:$o,document:{objects:{JSONSchema:{$visitor:Ti,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:$o,items:Li,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Di,properties:Xi,additionalProperties:$o,patternProperties:Qi,dependencies:to,enum:ro,type:so,allOf:io,anyOf:ao,oneOf:uo,not:$o,definitions:po,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:mo,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:_o,fixedFields:{$ref:yo}},Media:{$visitor:No,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Ro,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:$o,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:$o}}}}}},To=e=>{if(Dt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Fo={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...dr},qo=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof On||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),Bo=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kn||e(s)&&t("JSONReference",s)&&r("object",s))),Lo=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $n||e(s)&&t("media",s)&&r("object",s))),Do=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Nn||e(s)&&t("linkDescription",s)&&r("object",s))),Vo={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",On),t.register("jSONReference",kn),t.register("media",$n),t.register("linkDescription",Nn),t}},zo=()=>{const e=ct(Vo);return{predicates:{...t,isStringElement:Vt},namespace:e}},Uo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Co}={})=>{const n=(0,oe.e)(e),i=Hn(s),o=new(br(t,i))({specObj:i});return _r(n,o),Ir(o.element,r,{toolboxCreator:zo,visitorOptions:{keyMap:Fo,nodeTypeGetter:To}})},Go=e=>(t,r={})=>Uo(t,{specPath:e,...r});On.refract=Go(["visitors","document","objects","JSONSchema","$visitor"]),kn.refract=Go(["visitors","document","objects","JSONReference","$visitor"]),$n.refract=Go(["visitors","document","objects","Media","$visitor"]),Nn.refract=Go(["visitors","document","objects","LinkDescription","$visitor"]);const Wo=class extends On{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new jn("idProp getter in Schema class is not not supported.")}set idProp(e){throw new jn("idProp setter in Schema class is not not supported.")}get $schema(){throw new jn("$schema getter in Schema class is not not supported.")}set $schema(e){throw new jn("$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 jn("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new jn("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new jn("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new jn("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 jn("definitions getter in Schema class is not not supported.")}set definitions(e){throw new jn("definitions setter in Schema class is not not supported.")}get base(){throw new jn("base getter in Schema class is not not supported.")}set base(e){throw new jn("base setter in Schema class is not not supported.")}get links(){throw new jn("links getter in Schema class is not not supported.")}set links(e){throw new jn("links setter in Schema class is not not supported.")}get media(){throw new jn("media getter in Schema class is not not supported.")}set media(e){throw new jn("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 Jo extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Ko=Jo;class Ho extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Zo=Ho;class Xo extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get 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 Yo=Xo;class Qo extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const ea=Qo;class ta extends oe.Sh{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const ra=ta;class sa extends oe.Sh{constructor(e,t,r){super(e,t,r),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 na=sa;const ia=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ui(t.meta,e.meta),rr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ui(t.attributes,e.attributes))}};const oa=class extends ia{enter(e){return this.element=cr(e),St}};const aa=class extends ia{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:r,openApiSemanticElement:s,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=r,this.openApiSemanticElement=s,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Ii(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=br(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ne(Je,["visitors",...e],this.specObj)?br(["visitors",...e],this.specObj):br(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof oa&&(null==s?void 0:s.constructor)===oa?cr(t):(_r(t,s,r),s.element)}};var ca=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Mt(r):r},e}();function ua(e){return function(t){return new ca(e,t)}}const la=c(P(["take"],ua,(function(e,t){return _e(0,e<0?1/0:e,t)})));const pa=c((function(e,t){return te(la(e.length,t),e)})),ha=e=>Wt(e)&&e.hasKey("$ref"),ma=Wt,fa=Wt,da=e=>Vt(e.key)&&pa("x-",si(e.key));const _a=class extends aa{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=da;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(Vt(s)&&r.includes(si(s))&&!this.ignoredFields.includes(si(s))){const r=this.toRefractedElement([...t,"fixedFields",si(s)],e),i=new oe.Pr(cr(s),r);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(si(s))||this.element.content.push(cr(n))})),this.copyMetaAndAttributes(e,this.element),St}};class ya extends(Mi(_a,oa)){constructor(e){super(e),this.element=new cn,this.specPath=re(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return _a.prototype.ObjectElement.call(this,e)}}const ga=ya;class va extends(Mi(aa,oa)){StringElement(e){const t=new on(si(e));return this.copyMetaAndAttributes(e,t),this.element=t,St}}const ba=va;const wa=class extends aa{MemberElement(e){return this.element=cr(e),this.element.classes.push("specification-extension"),St}};class Ea extends(Mi(_a,oa)){constructor(e){super(e),this.element=new Js,this.specPath=re(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const xa=Ea;const Sa=class extends oa{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class ja extends(Mi(_a,oa)){constructor(e){super(e),this.element=new Cs,this.specPath=re(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Pa=ja;class Oa extends(Mi(_a,oa)){constructor(e){super(e),this.element=new Hs,this.specPath=re(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Aa=Oa;class ka extends(Mi(_a,oa)){constructor(e){super(e),this.element=new Xs,this.specPath=re(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=_a.prototype.ObjectElement.call(this,e);return(Vt(this.element.operationId)||Vt(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Ma=ka;const $a=class extends oa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Ia=class extends oa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Na=class extends aa{specPath;ignoredFields;fieldPatternPredicate=Ji;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=da;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(si(t))&&this.fieldPatternPredicate(si(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new oe.Pr(cr(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(si(t))||this.element.content.push(cr(r))})),this.copyMetaAndAttributes(e,this.element),St}};const Ra=class extends Na{constructor(e){super(e),this.fieldPatternPredicate=Wi}};class Ca extends oe.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Ca.primaryClass)}}const Ta=Ca;class Fa extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new Ta,this.specPath=re(["value"])}}const qa=Fa;class Ba extends(Mi(_a,oa)){constructor(e){super(e),this.element=new Yo,this.specPath=re(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const La=Ba;const Da=class extends oa{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Va extends oe.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(Va.primaryClass)}}const za=Va;class Ua extends(Mi(aa,oa)){constructor(e){super(e),this.element=new za}ArrayElement(e){return e.forEach((e=>{const t=ma(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const Ga=Ua;class Wa extends(Mi(_a,oa)){constructor(e){super(e),this.element=new ea,this.specPath=re(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Ja=Wa;class Ka extends oe.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(Ka.primaryClass)}}const Ha=Ka;class Za extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new Ha,this.specPath=re(["document","objects","ServerVariable"])}}const Xa=Za;class Ya extends(Mi(_a,oa)){constructor(e){super(e),this.element=new Qs,this.specPath=re(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const Qa=Ya;const ec=class extends aa{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>go(e,re(t),se))),r=ko(t)(e);return this.element=this.toRefractedElement(r,e),St}},tc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $s||e(s)&&t("callback",s)&&r("object",s))),rc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ns||e(s)&&t("components",s)&&r("object",s))),sc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Cs||e(s)&&t("contact",s)&&r("object",s))),nc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ds||e(s)&&t("example",s)&&r("object",s))),ic=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zs||e(s)&&t("externalDocumentation",s)&&r("object",s))),oc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gs||e(s)&&t("header",s)&&r("object",s))),ac=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Js||e(s)&&t("info",s)&&r("object",s))),cc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hs||e(s)&&t("license",s)&&r("object",s))),uc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xs||e(s)&&t("link",s)&&r("object",s))),lc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof on||e(s)&&t("openapi",s)&&r("string",s))),pc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof cn||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n))),hc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ln||e(s)&&t("operation",s)&&r("object",s))),mc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hn||e(s)&&t("parameter",s)&&r("object",s))),fc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fn||e(s)&&t("pathItem",s)&&r("object",s))),dc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _n||e(s)&&t("paths",s)&&r("object",s))),_c=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gn||e(s)&&t("reference",s)&&r("object",s))),yc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bn||e(s)&&t("requestBody",s)&&r("object",s))),gc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof En||e(s)&&t("response",s)&&r("object",s))),vc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Sn||e(s)&&t("responses",s)&&r("object",s))),bc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wo||e(s)&&t("schema",s)&&r("object",s))),wc=e=>Gt(e)&&e.classes.includes("boolean-json-schema"),Ec=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ko||e(s)&&t("securityRequirement",s)&&r("object",s))),xc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zo||e(s)&&t("securityScheme",s)&&r("object",s))),Sc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yo||e(s)&&t("server",s)&&r("object",s))),jc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ea||e(s)&&t("serverVariable",s)&&r("object",s))),Pc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qs||e(s)&&t("mediaType",s)&&r("object",s))),Oc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof za||e(n)&&t("array",n)&&r("array",n)&&s("servers",n)));class Ac extends(Mi(ec,oa)){constructor(e){super(e),this.alternator=[{predicate:ha,specPath:["document","objects","Reference"]},{predicate:Zn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ec.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const kc=Ac;class Mc extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("examples"),this.specPath=e=>ha(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const $c=Mc;class Ic extends oe.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Ic.primaryClass),this.classes.push("examples")}}const Nc=Ic;const Rc=class extends $c{constructor(e){super(e),this.element=new Nc}};class Cc extends oe.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(Cc.primaryClass)}}const Tc=Cc;class Fc extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new Tc,this.specPath=re(["document","objects","Encoding"])}}const qc=Fc;class Bc extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new Ko,this.specPath=re(["value"])}}const Lc=Bc;class Dc extends oe.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Dc.primaryClass)}}const Vc=Dc;class zc extends(Mi(aa,oa)){constructor(e){super(e),this.element=new Vc}ArrayElement(e){return e.forEach((e=>{if(Wt(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(cr(e))})),this.copyMetaAndAttributes(e,this.element),St}}const Uc=zc;class Gc extends(Mi(_a,oa)){constructor(e){super(e),this.element=new Ns,this.specPath=re(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Wc=Gc;class Jc extends(Mi(_a,oa)){constructor(e){super(e),this.element=new ra,this.specPath=re(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Kc=Jc;class Hc extends(Mi(_a,oa)){constructor(e){super(e),this.element=new gn,this.specPath=re(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=_a.prototype.ObjectElement.call(this,e);return Vt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Zc=Hc;const Xc=class extends oa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Yc extends(Mi(_a,oa)){constructor(e){super(e),this.element=new hn,this.specPath=re(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=_a.prototype.ObjectElement.call(this,e);return Wt(this.element.contentProp)&&this.element.contentProp.filter(Pc).forEach(((e,t)=>{e.setMetaProperty("media-type",si(t))})),t}}const Qc=Yc;class eu extends(Mi(ec,oa)){constructor(e){super(e),this.alternator=[{predicate:ha,specPath:["document","objects","Reference"]},{predicate:Zn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ec.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const tu=eu;class ru extends(Mi(_a,oa)){constructor(e){super(e),this.element=new Gs,this.specPath=re(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const su=ru;class nu extends(Mi(ec,oa)){constructor(e){super(e),this.alternator=[{predicate:ha,specPath:["document","objects","Reference"]},{predicate:Zn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ec.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const iu=nu;class ou extends oe.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(ou.primaryClass),this.classes.push("examples")}}const au=ou;const cu=class extends $c{constructor(e){super(e),this.element=new au}};class uu extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("content"),this.specPath=re(["document","objects","MediaType"])}}const lu=uu;class pu extends oe.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(pu.primaryClass),this.classes.push("content")}}const hu=pu;const mu=class extends lu{constructor(e){super(e),this.element=new hu}};class fu extends(Mi(_a,oa)){constructor(e){super(e),this.element=new Wo,this.specPath=re(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const du=fu,{allOf:_u}=Co.visitors.document.objects.JSONSchema.fixedFields;const yu=class extends _u{ArrayElement(e){const t=_u.prototype.ArrayElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{anyOf:gu}=Co.visitors.document.objects.JSONSchema.fixedFields;const vu=class extends gu{ArrayElement(e){const t=gu.prototype.ArrayElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{oneOf:bu}=Co.visitors.document.objects.JSONSchema.fixedFields;const wu=class extends bu{ArrayElement(e){const t=bu.prototype.ArrayElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{items:Eu}=Co.visitors.document.objects.JSONSchema.fixedFields;const xu=class extends Eu{ObjectElement(e){const t=Eu.prototype.ObjectElement.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},{properties:Su}=Co.visitors.document.objects.JSONSchema.fixedFields;const ju=class extends Su{ObjectElement(e){const t=Su.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{type:Pu}=Co.visitors.document.objects.JSONSchema.fixedFields;const Ou=class extends Pu{ArrayElement(e){return this.enter(e)}},{JSONSchemaOrJSONReferenceVisitor:Au}=Co.visitors;const ku=class extends Au{ObjectElement(e){const t=Au.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Mu extends(Mi(_a,oa)){constructor(e){super(e),this.element=new Fs,this.specPath=re(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const $u=Mu;class Iu extends oe.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(Iu.primaryClass)}}const Nu=Iu;class Ru extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new Nu,this.specPath=re(["value"])}}const Cu=Ru;class Tu extends(Mi(_a,oa)){constructor(e){super(e),this.element=new na,this.specPath=re(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Fu=Tu;class qu extends oe.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(qu.primaryClass),this.classes.push("examples")}}const Bu=qu;const Lu=class extends $c{constructor(e){super(e),this.element=new Bu}};class Du extends oe.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Du.primaryClass),this.classes.push("content")}}const Vu=Du;const zu=class extends lu{constructor(e){super(e),this.element=new Vu}};class Uu extends oe.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(Uu.primaryClass)}}const Gu=Uu;class Wu extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new Gu,this.specPath=e=>ha(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Ju=Wu;class Ku extends oe.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(Ku.primaryClass)}}const Hu=Ku;class Zu extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new Hu,this.specPath=e=>ha(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(gc).forEach(((e,t)=>{e.setMetaProperty("http-status-code",si(t))})),t}}const Xu=Zu;class Yu extends oe.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Yu.primaryClass),this.classes.push("parameters")}}const Qu=Yu;class el extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new Qu,this.specPath=e=>ha(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const tl=el;class rl extends oe.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(rl.primaryClass),this.classes.push("examples")}}const sl=rl;class nl extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new sl,this.specPath=e=>ha(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const il=nl;class ol extends oe.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(ol.primaryClass)}}const al=ol;class cl extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new al,this.specPath=e=>ha(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const ul=cl;class ll extends oe.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(ll.primaryClass)}}const pl=ll;class hl extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new pl,this.specPath=e=>ha(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(oc).forEach(((e,t)=>{e.setMetaProperty("header-name",si(t))})),t}}const ml=hl;class fl extends oe.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(fl.primaryClass)}}const dl=fl;class _l extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new dl,this.specPath=e=>ha(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const yl=_l;class gl extends oe.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(gl.primaryClass)}}const vl=gl;class bl extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new vl,this.specPath=e=>ha(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const wl=bl;class El extends oe.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(El.primaryClass)}}const xl=El;class Sl extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new xl,this.specPath=e=>ha(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const jl=Sl;class Pl extends(Mi(_a,oa)){constructor(e){super(e),this.element=new Ds,this.specPath=re(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=_a.prototype.ObjectElement.call(this,e);return Vt(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Ol=Pl;const Al=class extends oa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class kl extends(Mi(_a,oa)){constructor(e){super(e),this.element=new zs,this.specPath=re(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Ml=kl;class $l extends(Mi(_a,oa)){constructor(e){super(e),this.element=new Bs,this.specPath=re(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=_a.prototype.ObjectElement.call(this,e);return Wt(this.element.headers)&&this.element.headers.filter(oc).forEach(((e,t)=>{e.setMetaProperty("header-name",si(t))})),t}}const Il=$l;class Nl extends oe.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Nl.primaryClass)}}const Rl=Nl;class Cl extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new Rl,this.specPath=e=>ha(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!oc(e))return;const r=si(t);e.setMetaProperty("headerName",r)})),t}}const Tl=Cl;class Fl extends(Mi(Na,oa)){constructor(e){super(e),this.element=new _n,this.specPath=re(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Zn}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(fc).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",cr(t))})),t}}const ql=Fl;class Bl extends(Mi(_a,oa)){constructor(e){super(e),this.element=new bn,this.specPath=re(["document","objects","RequestBody"])}ObjectElement(e){const t=_a.prototype.ObjectElement.call(this,e);return Wt(this.element.contentProp)&&this.element.contentProp.filter(Pc).forEach(((e,t)=>{e.setMetaProperty("media-type",si(t))})),t}}const Ll=Bl;class Dl extends oe.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(Dl.primaryClass),this.classes.push("content")}}const Vl=Dl;const zl=class extends lu{constructor(e){super(e),this.element=new Vl}};class Ul extends(Mi(Na,oa)){constructor(e){super(e),this.element=new $s,this.specPath=re(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(fc).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",si(t))})),t}}const Gl=Ul;class Wl extends(Mi(_a,oa)){constructor(e){super(e),this.element=new En,this.specPath=re(["document","objects","Response"])}ObjectElement(e){const t=_a.prototype.ObjectElement.call(this,e);return Wt(this.element.contentProp)&&this.element.contentProp.filter(Pc).forEach(((e,t)=>{e.setMetaProperty("media-type",si(t))})),Wt(this.element.headers)&&this.element.headers.filter(oc).forEach(((e,t)=>{e.setMetaProperty("header-name",si(t))})),t}}const Jl=Wl;class Kl extends oe.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Kl.primaryClass)}}const Hl=Kl;class Zl extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new Hl,this.specPath=e=>ha(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!oc(e))return;const r=si(t);e.setMetaProperty("header-name",r)})),t}}const Xl=Zl;class Yl extends oe.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(Yl.primaryClass),this.classes.push("content")}}const Ql=Yl;const ep=class extends lu{constructor(e){super(e),this.element=new Ql}};class tp extends oe.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(tp.primaryClass)}}const rp=tp;class sp extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new rp,this.specPath=e=>ha(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const np=sp;function ip(e){return"[object Number]"===Object.prototype.toString.call(e)}const op=c((function(e,t){if(!ip(e)||!ip(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),s=e<0?t+Math.abs(e):t-e,n=0;n<s;)r[n]=n+e,n+=1;return r}));function ap(e,t,r){var s,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var i=e?1:0;return!!r._items[n][i]||(t&&(r._items[n][i]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?!!we(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!we(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const cp=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!ap(e,!0,this)},e.prototype.has=function(e){return ap(e,!1,this)},e}();const up=c((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new cp,a=0;a<i;a+=1)o.add(t[a]);for(;s<n;)o.add(e[s])&&(r[r.length]=e[s]),s+=1;return r}));class lp extends(Mi(_a,Na)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...r}){super({...r}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...up(e.keys(),t)],_a.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Na.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return St}}const pp=lp;class hp extends(Mi(pp,oa)){constructor(e){super(e),this.element=new Sn,this.specPathFixedFields=re(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>ha(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${op(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=pp.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(gc).forEach(((e,t)=>{const r=cr(t);this.fieldPatternPredicate(si(r))&&e.setMetaProperty("http-status-code",r)})),t}}const mp=hp;class fp extends(Mi(ec,oa)){constructor(e){super(e),this.alternator=[{predicate:ha,specPath:["document","objects","Reference"]},{predicate:Zn,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=ec.prototype.enter.call(this,e);return _c(this.element)?this.element.setMetaProperty("referenced-element","response"):gc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const dp=fp;class _p extends(Mi(_a,oa)){constructor(e){super(e),this.element=new ln,this.specPath=re(["document","objects","Operation"])}}const yp=_p;class gp extends oe.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(gp.primaryClass)}}const vp=gp;const bp=class extends oa{constructor(e){super(e),this.element=new vp}ArrayElement(e){return this.element=this.element.concat(cr(e)),St}};class wp extends oe.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(wp.primaryClass),this.classes.push("parameters")}}const Ep=wp;class xp extends(Mi(aa,oa)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=ha(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);_c(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const Sp=xp;const jp=class extends Sp{constructor(e){super(e),this.element=new Ep}};const Pp=class extends ec{constructor(e){super(e),this.alternator=[{predicate:ha,specPath:["document","objects","Reference"]},{predicate:Zn,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=ec.prototype.enter.call(this,e);return _c(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Op extends oe.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Op.primaryClass)}}const Ap=Op;class kp extends(Mi(Ra,oa)){specPath;constructor(e){super(e),this.element=new Ap,this.specPath=e=>ha(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(_c).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Mp=kp;class $p extends oe.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push($p.primaryClass),this.classes.push("security")}}const Ip=$p;class Np extends(Mi(aa,oa)){constructor(e){super(e),this.element=new Ip}ArrayElement(e){return e.forEach((e=>{const t=Wt(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const Rp=Np;class Cp extends oe.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Cp.primaryClass),this.classes.push("servers")}}const Tp=Cp;const Fp=class extends Ga{constructor(e){super(e),this.element=new Tp}};class qp extends(Mi(_a,oa)){constructor(e){super(e),this.element=new fn,this.specPath=re(["document","objects","PathItem"])}ObjectElement(e){const t=_a.prototype.ObjectElement.call(this,e);return this.element.filter(hc).forEach(((e,t)=>{const r=cr(t);r.content=si(r).toUpperCase(),e.setMetaProperty("http-method",r)})),Vt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Bp=qp;const Lp=class extends oa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Dp extends oe.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Dp.primaryClass),this.classes.push("servers")}}const Vp=Dp;const zp=class extends Ga{constructor(e){super(e),this.element=new Vp}};class Up extends oe.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Up.primaryClass),this.classes.push("parameters")}}const Gp=Up;const Wp=class extends Sp{constructor(e){super(e),this.element=new Gp}};class Jp extends(Mi(_a,oa)){constructor(e){super(e),this.element=new Zo,this.specPath=re(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Kp=Jp;class Hp extends(Mi(_a,oa)){constructor(e){super(e),this.element=new sn,this.specPath=re(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Zp=Hp;class Xp extends(Mi(_a,oa)){constructor(e){super(e),this.element=new tn,this.specPath=re(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const Yp=Xp;class Qp extends oe.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(Qp.primaryClass)}}const eh=Qp;class th extends(Mi(Ra,oa)){constructor(e){super(e),this.element=new eh,this.specPath=re(["value"])}}const rh=th;class sh extends oe.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(sh.primaryClass)}}const nh=sh;class ih extends(Mi(aa,oa)){constructor(e){super(e),this.element=new nh}ArrayElement(e){return e.forEach((e=>{const t=fa(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const oh=ih,{fixedFields:ah}=Co.visitors.document.objects.JSONSchema,ch={visitors:{value:oa,document:{objects:{OpenApi:{$visitor:ga,fixedFields:{openapi:ba,info:{$ref:"#/visitors/document/objects/Info"},servers:Ga,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Uc,tags:oh,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:xa,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:Sa}},Contact:{$visitor:Pa,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Aa,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:La,fixedFields:{url:Da,description:{$ref:"#/visitors/value"},variables:Xa}},ServerVariable:{$visitor:Ja,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Wc,fixedFields:{schemas:Ju,responses:Xu,parameters:tl,examples:il,requestBodies:ul,headers:ml,securitySchemes:yl,links:wl,callbacks:jl}},Paths:{$visitor:ql},PathItem:{$visitor:Bp,fixedFields:{$ref:Lp,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:zp,parameters:Wp}},Operation:{$visitor:yp,fixedFields:{tags:bp,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:jp,requestBody:Pp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Mp,deprecated:{$ref:"#/visitors/value"},security:Rp,servers:Fp}},ExternalDocumentation:{$visitor:Ml,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Qc,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:tu,example:{$ref:"#/visitors/value"},examples:Lu,content:zu}},RequestBody:{$visitor:Ll,fixedFields:{description:{$ref:"#/visitors/value"},content:zl,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Qa,fixedFields:{schema:kc,example:{$ref:"#/visitors/value"},examples:Rc,encoding:qc}},Encoding:{$visitor:Il,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Tl,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:mp,fixedFields:{default:dp}},Response:{$visitor:Jl,fixedFields:{description:{$ref:"#/visitors/value"},headers:Xl,content:ep,links:np}},Callback:{$visitor:Gl},Example:{$visitor:Ol,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Al}},Link:{$visitor:Ma,fixedFields:{operationRef:$a,operationId:Ia,parameters:qa,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:su,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:iu,example:{$ref:"#/visitors/value"},examples:cu,content:mu}},Tag:{$visitor:Kc,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Zc,fixedFields:{$ref:Xc}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:du,fixedFields:{title:ah.title,multipleOf:ah.multipleOf,maximum:ah.maximum,exclusiveMaximum:ah.exclusiveMaximum,minimum:ah.minimum,exclusiveMinimum:ah.exclusiveMinimum,maxLength:ah.maxLength,minLength:ah.minLength,pattern:ah.pattern,maxItems:ah.maxItems,minItems:ah.minItems,uniqueItems:ah.uniqueItems,maxProperties:ah.maxProperties,minProperties:ah.minProperties,required:ah.required,enum:ah.enum,type:Ou,allOf:yu,anyOf:vu,oneOf:wu,not:ku,items:xu,properties:ju,additionalProperties:ku,description:ah.description,format:ah.format,default:ah.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:$u,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Cu}},XML:{$visitor:Fu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Kp,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:Zp,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:Yp,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:rh}},SecurityRequirement:{$visitor:Lc}},extension:{$visitor:wa}}}},uh=e=>{if(Dt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},lh={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"],...dr},ph={namespace:e=>{const{base:t}=e;return t.register("callback",$s),t.register("components",Ns),t.register("contact",Cs),t.register("discriminator",Fs),t.register("encoding",Bs),t.register("example",Ds),t.register("externalDocumentation",zs),t.register("header",Gs),t.register("info",Js),t.register("license",Hs),t.register("link",Xs),t.register("mediaType",Qs),t.register("oAuthFlow",tn),t.register("oAuthFlows",sn),t.register("openapi",on),t.register("openApi3_0",cn),t.register("operation",ln),t.register("parameter",hn),t.register("pathItem",fn),t.register("paths",_n),t.register("reference",gn),t.register("requestBody",bn),t.register("response",En),t.register("responses",Sn),t.register("schema",Wo),t.register("securityRequirement",Ko),t.register("securityScheme",Zo),t.register("server",Yo),t.register("serverVariable",ea),t.register("tag",ra),t.register("xml",na),t}},hh=()=>{const e=ct(ph);return{predicates:{...n,isElement:Dt,isStringElement:Vt,isArrayElement:Jt,isObjectElement:Wt,isMemberElement:Kt,includesClasses:nr,hasElementSourceMap:rr},namespace:e}},mh=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,oe.e)(e),n=Hn(ch),i=new(br(t,n))({specObj:n});return _r(s,i),Ir(i.element,r,{toolboxCreator:hh,visitorOptions:{keyMap:lh,nodeTypeGetter:uh}})},fh=e=>(t,r={})=>mh(t,{specPath:e,...r});$s.refract=fh(["visitors","document","objects","Callback","$visitor"]),Ns.refract=fh(["visitors","document","objects","Components","$visitor"]),Cs.refract=fh(["visitors","document","objects","Contact","$visitor"]),Ds.refract=fh(["visitors","document","objects","Example","$visitor"]),Fs.refract=fh(["visitors","document","objects","Discriminator","$visitor"]),Bs.refract=fh(["visitors","document","objects","Encoding","$visitor"]),zs.refract=fh(["visitors","document","objects","ExternalDocumentation","$visitor"]),Gs.refract=fh(["visitors","document","objects","Header","$visitor"]),Js.refract=fh(["visitors","document","objects","Info","$visitor"]),Hs.refract=fh(["visitors","document","objects","License","$visitor"]),Xs.refract=fh(["visitors","document","objects","Link","$visitor"]),Qs.refract=fh(["visitors","document","objects","MediaType","$visitor"]),tn.refract=fh(["visitors","document","objects","OAuthFlow","$visitor"]),sn.refract=fh(["visitors","document","objects","OAuthFlows","$visitor"]),on.refract=fh(["visitors","document","objects","OpenApi","fixedFields","openapi"]),cn.refract=fh(["visitors","document","objects","OpenApi","$visitor"]),ln.refract=fh(["visitors","document","objects","Operation","$visitor"]),hn.refract=fh(["visitors","document","objects","Parameter","$visitor"]),fn.refract=fh(["visitors","document","objects","PathItem","$visitor"]),_n.refract=fh(["visitors","document","objects","Paths","$visitor"]),gn.refract=fh(["visitors","document","objects","Reference","$visitor"]),bn.refract=fh(["visitors","document","objects","RequestBody","$visitor"]),En.refract=fh(["visitors","document","objects","Response","$visitor"]),Sn.refract=fh(["visitors","document","objects","Responses","$visitor"]),Wo.refract=fh(["visitors","document","objects","Schema","$visitor"]),Ko.refract=fh(["visitors","document","objects","SecurityRequirement","$visitor"]),Zo.refract=fh(["visitors","document","objects","SecurityScheme","$visitor"]),Yo.refract=fh(["visitors","document","objects","Server","$visitor"]),ea.refract=fh(["visitors","document","objects","ServerVariable","$visitor"]),ra.refract=fh(["visitors","document","objects","Tag","$visitor"]),na.refract=fh(["visitors","document","objects","XML","$visitor"]);const dh=a((function(e){return m(-1,e)}));const _h=class extends jn{};const yh=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new _h("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new _h("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new _h("latest method in MediaTypes class is not yet implemented.")}};class gh extends yh{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.0.3",t="generic"){const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return dh(this.filterByFormat(e))}}const vh=new gh("application/vnd.oai.openapi;version=3.0.0","application/vnd.oai.openapi+json;version=3.0.0","application/vnd.oai.openapi+yaml;version=3.0.0","application/vnd.oai.openapi;version=3.0.1","application/vnd.oai.openapi+json;version=3.0.1","application/vnd.oai.openapi+yaml;version=3.0.1","application/vnd.oai.openapi;version=3.0.2","application/vnd.oai.openapi+json;version=3.0.2","application/vnd.oai.openapi+yaml;version=3.0.2","application/vnd.oai.openapi;version=3.0.3","application/vnd.oai.openapi+json;version=3.0.3","application/vnd.oai.openapi+yaml;version=3.0.3"),bh=new gh(...vh.filterByFormat("generic"),...vh.filterByFormat("json")),wh=/"openapi"\s*:\s*"(?<version_json>3\.0\.([0123])(?:-rc[012])?)"/,Eh=async e=>wh.test(e)&&await(async e=>{if(!ks.test(e))return!1;try{return"ERROR"!==(await wt(e)).rootNode.type}catch{return!1}})(e),xh=async(e,t={})=>{const r=d({},"refractorOpts",t),s=y(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const s=await wt(e);let n;return n="indirect"===r?As(s,{sourceMap:t}):zr(s,{sourceMap:t}),n})(e,s),{result:i}=n;if(ie(i)){const e=cn.refract(i,r);e.classes.push("result"),n.replaceResult(e)}return n},Sh=ct(ph)})(),s})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiJson3_0=t():e.apidomParserAdapterOpenApiJson3_0=t()}(self,(()=>(()=>{var e={3103:(e,t,r)=>{var s=r(4715)(r(8942),"DataView");e.exports=s},5098:(e,t,r)=>{var s=r(3305),n=r(9361),i=r(1112),o=r(5276),a=r(5071);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1386:(e,t,r)=>{var s=r(2393),n=r(2049),i=r(7144),o=r(7452),a=r(3964);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9770:(e,t,r)=>{var s=r(4715)(r(8942),"Map");e.exports=s},8250:(e,t,r)=>{var s=r(9753),n=r(5681),i=r(88),o=r(4732),a=r(9068);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9413:(e,t,r)=>{var s=r(4715)(r(8942),"Promise");e.exports=s},4512:(e,t,r)=>{var s=r(4715)(r(8942),"Set");e.exports=s},3212:(e,t,r)=>{var s=r(8250),n=r(1877),i=r(8006);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new s;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},1340:(e,t,r)=>{var s=r(1386),n=r(4103),i=r(1779),o=r(4162),a=r(7462),c=r(6638);function u(e){var t=this.__data__=new s(e);this.size=t.size}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},5650:(e,t,r)=>{var s=r(8942).Symbol;e.exports=s},1623:(e,t,r)=>{var s=r(8942).Uint8Array;e.exports=s},9270:(e,t,r)=>{var s=r(4715)(r(8942),"WeakMap");e.exports=s},9847:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,i=[];++r<s;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}},358:(e,t,r)=>{var s=r(6137),n=r(3283),i=r(3142),o=r(5853),a=r(9632),c=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&n(e),p=!r&&!l&&o(e),h=!r&&!l&&!p&&c(e),m=r||l||p||h,f=m?s(e.length,String):[],d=f.length;for(var _ in e)!t&&!u.call(e,_)||m&&("length"==_||p&&("offset"==_||"parent"==_)||h&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||a(_,d))||f.push(_);return f}},1129:e=>{e.exports=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}},6465:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}},7034:(e,t,r)=>{var s=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},8244:(e,t,r)=>{var s=r(1129),n=r(3142);e.exports=function(e,t,r){var i=t(e);return n(e)?i:s(i,r(e))}},7379:(e,t,r)=>{var s=r(5650),n=r(8870),i=r(9005),o=s?s.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},6027:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},4687:(e,t,r)=>{var s=r(353),n=r(547);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,i,o,e,a))}},353:(e,t,r)=>{var s=r(1340),n=r(3934),i=r(8861),o=r(1182),a=r(8486),c=r(3142),u=r(5853),l=r(8666),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,_,y){var g=c(e),v=c(t),b=g?h:a(e),w=v?h:a(t),E=(b=b==p?m:b)==m,x=(w=w==p?m:w)==m,S=b==w;if(S&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(S&&!E)return y||(y=new s),g||l(e)?n(e,t,r,d,_,y):i(e,t,b,r,d,_,y);if(!(1&r)){var j=E&&f.call(e,"__wrapped__"),P=x&&f.call(t,"__wrapped__");if(j||P){var O=j?e.value():e,A=P?t.value():t;return y||(y=new s),_(O,A,r,d,y)}}return!!S&&(y||(y=new s),o(e,t,r,d,_,y))}},9624:(e,t,r)=>{var s=r(3655),n=r(4759),i=r(1580),o=r(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,h=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(s(e)?h:a).test(o(e))}},674:(e,t,r)=>{var s=r(7379),n=r(5387),i=r(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[s(e)]}},195:(e,t,r)=>{var s=r(4882),n=r(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6137:e=>{e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,r)=>{var s=r(8942)["__core-js_shared__"];e.exports=s},3934:(e,t,r)=>{var s=r(3212),n=r(6465),i=r(5568);e.exports=function(e,t,r,o,a,c){var u=1&r,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var f=-1,d=!0,_=2&r?new s:void 0;for(c.set(e,t),c.set(t,e);++f<l;){var y=e[f],g=t[f];if(o)var v=u?o(g,y,f,t,e,c):o(y,g,f,e,t,c);if(void 0!==v){if(v)continue;d=!1;break}if(_){if(!n(t,(function(e,t){if(!i(_,t)&&(y===e||a(y,e,r,o,c)))return _.push(t)}))){d=!1;break}}else if(y!==g&&!a(y,g,r,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},8861:(e,t,r)=>{var s=r(5650),n=r(1623),i=r(6285),o=r(3934),a=r(5894),c=r(7447),u=s?s.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,s,u,p,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(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 m=a;case"[object Set]":var f=1&s;if(m||(m=c),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;s|=2,h.set(e,t);var _=o(m(e),m(t),s,u,p,h);return h.delete(e),_;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},1182:(e,t,r)=>{var s=r(393),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,u=s(e),l=u.length;if(l!=s(t).length&&!c)return!1;for(var p=l;p--;){var h=u[p];if(!(c?h in t:n.call(t,h)))return!1}var m=a.get(e),f=a.get(t);if(m&&f)return m==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var _=c;++p<l;){var y=e[h=u[p]],g=t[h];if(i)var v=c?i(g,y,h,t,e,a):i(y,g,h,e,t,a);if(!(void 0===v?y===g||o(y,g,r,i,a):v)){d=!1;break}_||(_="constructor"==h)}if(d&&!_){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||(d=!1)}return a.delete(e),a.delete(t),d}},4967:(e,t,r)=>{var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},393:(e,t,r)=>{var s=r(8244),n=r(7979),i=r(1211);e.exports=function(e){return s(e,i,n)}},4700:(e,t,r)=>{var s=r(9067);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},4715:(e,t,r)=>{var s=r(9624),n=r(155);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},8870:(e,t,r)=>{var s=r(5650),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var s=!0}catch(e){}var n=o.call(e);return s&&(t?e[a]=r:delete e[a]),n}},7979:(e,t,r)=>{var s=r(9847),n=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),s(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},8486:(e,t,r)=>{var s=r(3103),n=r(9770),i=r(9413),o=r(4512),a=r(9270),c=r(7379),u=r(4066),l="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=u(s),_=u(n),y=u(i),g=u(o),v=u(a),b=c;(s&&b(new s(new ArrayBuffer(1)))!=f||n&&b(new n)!=l||i&&b(i.resolve())!=p||o&&b(new o)!=h||a&&b(new a)!=m)&&(b=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,s=r?u(r):"";if(s)switch(s){case d:return f;case _:return l;case y:return p;case g:return h;case v:return m}return t}),e.exports=b},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,r)=>{var s=r(4497);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,r)=>{var s=r(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},5276:(e,t,r)=>{var s=r(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},5071:(e,t,r)=>{var s=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var s=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<r}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,r)=>{var s,n=r(1950),i=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,r)=>{var s=r(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},7144:(e,t,r)=>{var s=r(7034);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},7452:(e,t,r)=>{var s=r(7034);e.exports=function(e){return s(this.__data__,e)>-1}},3964:(e,t,r)=>{var s=r(7034);e.exports=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},9753:(e,t,r)=>{var s=r(5098),n=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||n),string:new s}}},5681:(e,t,r)=>{var s=r(4700);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var s=r(4700);e.exports=function(e){return s(this,e).get(e)}},4732:(e,t,r)=>{var s=r(4700);e.exports=function(e){return s(this,e).has(e)}},9068:(e,t,r)=>{var s=r(4700);e.exports=function(e,t){var r=s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}},4497:(e,t,r)=>{var s=r(4715)(Object,"create");e.exports=s},8121:(e,t,r)=>{var s=r(3766)(Object.keys,Object);e.exports=s},2306:(e,t,r)=>{e=r.nmd(e);var s=r(4967),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&s.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},8942:(e,t,r)=>{var s=r(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=s||n||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},7447:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},4103:(e,t,r)=>{var s=r(1386);e.exports=function(){this.__data__=new s,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,r)=>{var s=r(1386),n=r(9770),i=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof s){var o=r.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,r)=>{var s=r(6027),n=r(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,r)=>{var s=r(3655),n=r(5387);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},2563:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},5853:(e,t,r)=>{e=r.nmd(e);var s=r(8942),n=r(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},6343:(e,t,r)=>{var s=r(4687);e.exports=function(e,t){return s(e,t)}},3655:(e,t,r)=>{var s=r(7379),n=r(1580);e.exports=function(e){if(!n(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,r)=>{var s=r(7379),n=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==s(e)}},8666:(e,t,r)=>{var s=r(674),n=r(9460),i=r(2306),o=i&&i.isTypedArray,a=o?n(o):s;e.exports=a},1211:(e,t,r)=>{var s=r(358),n=r(195),i=r(6529);e.exports=function(e){return i(e)?s(e):n(e)}},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,r)=>{const s=r(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 r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}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(s(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},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5735:(e,t,r)=>{const s=r(9310),n=r(8138),i=r(986),o=r(2563),a=r(1580),c=r(394),u=r(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(s,u.NullElement,!1).detect(n,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},3311:(e,t,r)=>{const s=r(1517),n=r(4123);class i extends n{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(s(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,s)=>{e.bind(t)(r.value,r.key,r,s)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,r)=>{const s=r(8631),n=r(3004),i=r(8712),o=r(2536),a=r(2555),c=r(9796),u=r(7309),l=r(5642),p=r(9620),h=r(593),m=r(4123),f=r(3311),d=r(2322);function _(e){if(e instanceof s)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new n;if(Array.isArray(e))return new c(e.map(_));if("object"==typeof e){return new l(e)}return e}s.prototype.ObjectElement=l,s.prototype.RefElement=h,s.prototype.MemberElement=u,s.prototype.refract=_,m.prototype.refract=_,e.exports={Element:s,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:h,refract:_,ArraySlice:m,ObjectSlice:f,KeyValuePair:d}},9620:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},593:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},8326:(e,t,r)=>{const s=r(5735),n=r(7547);t.g$=s,t.KeyValuePair=r(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,r(394),r(3148)},9796:(e,t,r)=>{const s=r(1517),n=r(8631),i=r(4123);class o extends n{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach(((r,s)=>{e.bind(t)(r,this.refract(s))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,i)&&n.push(t)})),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,r)=>{const s=r(6343),n=r(2322),i=r(4123);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof 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 r=new i;const s=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(s,e),r.content instanceof n&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0}))),r}set(e){return this.content=e,this}equals(e){return s(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof 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},7309:(e,t,r)=>{const s=r(2322),n=r(8631);e.exports=class extends n{constructor(e,t,r,n){super(new s,r,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)}}},3004:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},5642:(e,t,r)=>{const s=r(1517),n=r(1580),i=r(9796),o=r(7309),a=r(3311);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,s=this.getMember(r);return s?s.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((s,n,i)=>{const o=e.bind(t)(s,n,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},8712:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,r)=>{const s=r(394);e.exports=class extends s{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach((s=>{s.forEach((s=>{const n=new t(s);n.element=r.element,e.push(n)}))}));const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},3833:(e,t,r)=>{var s=void 0!==s?s:{},n=function(){var t,n="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(s=Object.assign({},s,o),t=new Promise((t=>{var o,a={};for(o in s)s.hasOwnProperty(o)&&(a[o]=s[o]);var c,u,l,p,h=[],m="./this.program",f=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var d,_,y,g,v,b="";c?(b=p?r(4142).dirname(b)+"/":"//",d=function(e,t){return g||(g=r(3078)),v||(v=r(4142)),e=v.normalize(e),g.readFileSync(e,t?null:"utf8")},y=function(e){var t=d(e,!0);return t.buffer||(t=new Uint8Array(t)),N(t.buffer),t},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),h=process.argv.slice(2),e.exports=s,f=function(e){process.exit(e)},s.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=function(e){return read(e)}),y=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(N("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?h=scriptArgs:void 0!==arguments&&(h=arguments),"function"==typeof quit&&(f=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||p)&&(p?b=self.location.href:void 0!==n&&n.currentScript&&(b=n.currentScript.src),b=0!==b.indexOf("blob:")?b.substr(0,b.lastIndexOf("/")+1):"",d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(y=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=function(e,t,r){var s=new XMLHttpRequest;s.open("GET",e,!0),s.responseType="arraybuffer",s.onload=function(){200==s.status||0==s.status&&s.response?t(s.response):r()},s.onerror=r,s.send(null)}),s.print||console.log.bind(console);var w=s.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(s[o]=a[o]);a=null,s.arguments&&(h=s.arguments),s.thisProgram&&(m=s.thisProgram),s.quit&&(f=s.quit);var E,x=16,S=[];function j(e,t){if(!E){E=new WeakMap;for(var r=0;r<Z.length;r++){var s=Z.get(r);s&&E.set(s,r)}}if(E.has(e))return E.get(e);var n=function(){if(S.length)return S.pop();try{Z.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Z.length-1}();try{Z.set(n,e)}catch(r){if(!(r instanceof TypeError))throw r;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},s={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},n=1;n<t.length;++n)s.parameters.push(r[t[n]]);return new WebAssembly.Function(s,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),n=0;n<a.length;++n)i.push(c[a[n]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);Z.set(n,i)}return E.set(e,n),n}var P,O=s.dynamicLibraries||[];s.wasmBinary&&(P=s.wasmBinary);var A,k=s.noExitRuntime||!0;function M(e,t,r,s){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":C[e>>0]=t;break;case"i16":F[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":le=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],q[e>>2]=le[0],q[e+4>>2]=le[1];break;case"float":B[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ae("invalid type for setValue: "+r)}}function $(e,t,r){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return C[e>>0];case"i16":return F[e>>1];case"i32":case"i64":return q[e>>2];case"float":return B[e>>2];case"double":return L[e>>3];default:ae("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ae("no native wasm support detected");var I=!1;function N(e,t){e||ae("Assertion failed: "+t)}var R,C,T,F,q,B,L,D="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,r){for(var s=t+r,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.subarray&&D)return D.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 u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function z(e,t){return e?V(T,e,t):""}function U(e,t,r,s){if(!(s>0))return 0;for(var n=r,i=r+s-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)),a<=127){if(r>=i)break;t[r++]=a}else if(a<=2047){if(r+1>=i)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=i)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-n}function G(e,t,r){return U(e,T,t,r)}function W(e){for(var t=0,r=0;r<e.length;++r){var s=e.charCodeAt(r);s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++r)),s<=127?++t:t+=s<=2047?2:s<=65535?3:4}return t}function J(e){var t=W(e)+1,r=ze(t);return U(e,C,r,t),r}function K(e){R=e,s.HEAP8=C=new Int8Array(e),s.HEAP16=F=new Int16Array(e),s.HEAP32=q=new Int32Array(e),s.HEAPU8=T=new Uint8Array(e),s.HEAPU16=new Uint16Array(e),s.HEAPU32=new Uint32Array(e),s.HEAPF32=B=new Float32Array(e),s.HEAPF64=L=new Float64Array(e)}var H=s.INITIAL_MEMORY||33554432;(A=s.wasmMemory?s.wasmMemory:new WebAssembly.Memory({initial:H/65536,maximum:32768}))&&(R=A.buffer),H=R.byteLength,K(R);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),X=[],Y=[],Q=[],ee=[],te=!1,re=0,se=null,ne=null;function ie(e){re++,s.monitorRunDependencies&&s.monitorRunDependencies(re)}function oe(e){if(re--,s.monitorRunDependencies&&s.monitorRunDependencies(re),0==re&&(null!==se&&(clearInterval(se),se=null),ne)){var t=ne;ne=null,t()}}function ae(e){throw s.onAbort&&s.onAbort(e),w(e+=""),I=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}s.preloadedImages={},s.preloadedAudios={},s.preloadedWasm={};var ce,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function he(e){return e.startsWith("file://")}function me(e){try{if(e==ce&&P)return new Uint8Array(P);if(y)return y(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return s.locateFile?s.locateFile(e,b):b+e}(ce));var fe={},de={get:function(e,t){return fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),fe[t]}};function _e(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?Z.get(r)():Z.get(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(s)}}function ye(e){var t=0;function r(){for(var r=0,s=1;;){var n=e[t++];if(r+=(127&n)*s,s*=128,!(128&n))break}return r}if(e instanceof WebAssembly.Module){var s=WebAssembly.Module.customSections(e,"dylink");N(0!=s.length,"need dylink section"),e=new Int8Array(s[0])}else N(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),N(0===e[8],"need the dylink section to be first"),t=9,r(),N(6===e[t]),N(e[++t]==="d".charCodeAt(0)),N(e[++t]==="y".charCodeAt(0)),N(e[++t]==="l".charCodeAt(0)),N(e[++t]==="i".charCodeAt(0)),N(e[++t]==="n".charCodeAt(0)),N(e[++t]==="k".charCodeAt(0)),t++;var n={};n.memorySize=r(),n.memoryAlign=r(),n.tableSize=r(),n.tableAlign=r();var i=r();n.neededDynlibs=[];for(var o=0;o<i;++o){var a=r(),c=e.subarray(t,t+a);t+=a;var u=V(c,0);n.neededDynlibs.push(u)}return n}var ge=0;function ve(){return k||ge>0}function be(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function we(e,t){for(var r in e)if(e.hasOwnProperty(r)){qe.hasOwnProperty(r)||(qe[r]=e[r]);var n=be(r);s.hasOwnProperty(n)||(s[n]=e[r])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xe=5250880;function Se(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function je(e,t){var r={};for(var s in e){var n=e[s];"object"==typeof n&&(n=n.value),"number"==typeof n&&(n+=t),r[s]=n}return function(e){for(var t in e)if(!Se(t)){var r=!1,s=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],r=!0),fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==fe[t].value)&&("function"==typeof s?fe[t].value=j(s):"number"==typeof s?fe[t].value=s:w("unhandled export type for `"+t+"`: "+typeof s))}}(r),r}function Pe(e,t){var r,n;return t&&(r=qe["orig$"+e]),r||(r=qe[e]),r||(r=s[be(e)]),!r&&e.startsWith("invoke_")&&(n=e.split("_")[1],r=function(){var e=De();try{return function(e,t,r){return e.includes("j")?function(e,t,r){var n=s["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)}(e,t,r):Z.get(t).apply(null,r)}(n,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Ve(e),t!==t+0&&"longjmp"!==t)throw t;Ue(1,0)}}),r}function Oe(e,t){var r=ye(e);function s(){var s=Math.pow(2,r.memoryAlign);s=Math.max(s,x);var n,i,o,a=(n=function(e){if(te)return Be(e);var t=xe,r=t+e+15&-16;return xe=r,fe.__heap_base.value=r,t}(r.memorySize+s),(i=s)||(i=x),Math.ceil(n/i)*i),c=Z.length;Z.grow(r.tableSize);for(var u=a;u<a+r.memorySize;u++)C[u]=0;for(u=c;u<c+r.tableSize;u++)Z.set(u,null);var l=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return a;case"__table_base":return c}return t in qe?qe[t]:(t in e||(e[t]=function(){return r||(r=function(e){var t=Pe(e,!1);return t||(t=o[e]),t}(t)),r.apply(null,arguments)}),e[t]);var r}}),p={"GOT.mem":new Proxy({},de),"GOT.func":new Proxy({},de),env:l,wasi_snapshot_preview1:l};function h(e){for(var s=0;s<r.tableSize;s++){var n=Z.get(c+s);n&&E.set(n,c+s)}o=je(e.exports,a),t.allowUndefined||ke();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():Y.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var m=new WebAssembly.Instance(e,p);return Promise.resolve(h(m))}return WebAssembly.instantiate(e,p).then((function(e){return h(e.instance)}))}var f=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return h(m=new WebAssembly.Instance(f,p))}return t.loadAsync?r.neededDynlibs.reduce((function(e,r){return e.then((function(){return Ae(r,t)}))}),Promise.resolve()).then((function(){return s()})):(r.neededDynlibs.forEach((function(e){Ae(e,t)})),s())}function Ae(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:s.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var r,n=Ee.loadedLibNames[e];if(n)return r=Ee.loadedLibs[n],t.global&&!r.global&&(r.global=!0,"loading"!==r.module&&we(r.module)),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,t.loadAsync?Promise.resolve(n):n;function i(e){if(t.fs){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}return t.loadAsync?(s=e,fetch(s,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+s+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):y(e);var s}function o(){if(void 0!==s.preloadedWasm&&void 0!==s.preloadedWasm[e]){var r=s.preloadedWasm[e];return t.loadAsync?Promise.resolve(r):r}return t.loadAsync?i(e).then((function(e){return Oe(e,t)})):Oe(i(e),t)}function a(e){r.global&&we(e),r.module=e}return n=Ee.nextHandle++,r={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=n,Ee.loadedLibs[n]=r,t.loadAsync?o().then((function(e){return a(e),n})):(a(o()),n)}function ke(){for(var e in fe)if(0==fe[e].value){var t=Pe(e,!0);"function"==typeof t?fe[e].value=j(t,t.sig):"number"==typeof t?fe[e].value=t:N(!1,"bad export type for `"+e+"`: "+typeof t)}}s.___heap_base=xe;var Me,$e=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Ie(){ae()}s._abort=Ie,Ie.sig="v",Me=c?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Ne(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e)return 28,q[Le()>>2]=28,-1;r=Me()}return q[t>>2]=r/1e3|0,q[t+4>>2]=r%1e3*1e3*1e3|0,0}function Re(e){try{return A.grow(e-R.byteLength+65535>>>16),K(A.buffer),1}catch(e){}}function Ce(e){Ke(e)}function Te(e){}Ne.sig="iii",Ce.sig="vi",Te.sig="vi";var Fe,qe={__heap_base:xe,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:$e,__table_base:1,abort:Ie,clock_gettime:Ne,emscripten_memcpy_big:function(e,t,r){T.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t,r=T.length;if((e>>>=0)>2147483648)return!1;for(var s=1;s<=4;s*=2){var n=r*(1+.2/s);if(n=Math.min(n,e+100663296),Re(Math.min(2147483648,((t=Math.max(e,n))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Ce,memory:A,setTempRet0:Te,tree_sitter_log_callback:function(e,t){if(ut){const r=z(t);ut(r,0!==e)}},tree_sitter_parse_callback:function(e,t,r,s,n){var i=ct(t,{row:r,column:s});"string"==typeof i?(M(n,i.length,"i32"),function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var s=(r-=2)<2*e.length?r/2:e.length,n=0;n<s;++n){var i=e.charCodeAt(n);F[t>>1]=i,t+=2}F[t>>1]=0}(i,e,10240)):M(n,0,"i32")}},Be=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,de),"GOT.func":new Proxy(qe,de)};function t(e,t){var r=e.exports;r=je(r,1024),s.asm=r;var n,i=ye(t);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),we(r),n=s.asm.__wasm_call_ctors,Y.unshift(n),oe()}function r(e){t(e.instance,e.module)}function n(t){return function(){if(!P&&(l||p)){if("function"==typeof fetch&&!he(ce))return fetch(ce,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ce+"'";return e.arrayBuffer()})).catch((function(){return me(ce)}));if(_)return new Promise((function(e,t){_(ce,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return me(ce)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){w("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),s.instantiateWasm)try{return s.instantiateWasm(e,t)}catch(e){return w("Module.instantiateWasm callback failed with error: "+e),!1}P||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||he(ce)||"function"!=typeof fetch?n(r):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return w("wasm streaming compile failed: "+e),w("falling back to ArrayBuffer instantiation"),n(r)}))}))}(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.__wasm_call_ctors).apply(null,arguments)},s._malloc=function(){return(Be=s._malloc=s.asm.malloc).apply(null,arguments)}),Le=(s._calloc=function(){return(s._calloc=s.asm.calloc).apply(null,arguments)},s._realloc=function(){return(s._realloc=s.asm.realloc).apply(null,arguments)},s._free=function(){return(s._free=s.asm.free).apply(null,arguments)},s._ts_language_symbol_count=function(){return(s._ts_language_symbol_count=s.asm.ts_language_symbol_count).apply(null,arguments)},s._ts_language_version=function(){return(s._ts_language_version=s.asm.ts_language_version).apply(null,arguments)},s._ts_language_field_count=function(){return(s._ts_language_field_count=s.asm.ts_language_field_count).apply(null,arguments)},s._ts_language_symbol_name=function(){return(s._ts_language_symbol_name=s.asm.ts_language_symbol_name).apply(null,arguments)},s._ts_language_symbol_for_name=function(){return(s._ts_language_symbol_for_name=s.asm.ts_language_symbol_for_name).apply(null,arguments)},s._ts_language_symbol_type=function(){return(s._ts_language_symbol_type=s.asm.ts_language_symbol_type).apply(null,arguments)},s._ts_language_field_name_for_id=function(){return(s._ts_language_field_name_for_id=s.asm.ts_language_field_name_for_id).apply(null,arguments)},s._memcpy=function(){return(s._memcpy=s.asm.memcpy).apply(null,arguments)},s._ts_parser_delete=function(){return(s._ts_parser_delete=s.asm.ts_parser_delete).apply(null,arguments)},s._ts_parser_reset=function(){return(s._ts_parser_reset=s.asm.ts_parser_reset).apply(null,arguments)},s._ts_parser_set_language=function(){return(s._ts_parser_set_language=s.asm.ts_parser_set_language).apply(null,arguments)},s._ts_parser_timeout_micros=function(){return(s._ts_parser_timeout_micros=s.asm.ts_parser_timeout_micros).apply(null,arguments)},s._ts_parser_set_timeout_micros=function(){return(s._ts_parser_set_timeout_micros=s.asm.ts_parser_set_timeout_micros).apply(null,arguments)},s._memmove=function(){return(s._memmove=s.asm.memmove).apply(null,arguments)},s._memcmp=function(){return(s._memcmp=s.asm.memcmp).apply(null,arguments)},s._ts_query_new=function(){return(s._ts_query_new=s.asm.ts_query_new).apply(null,arguments)},s._ts_query_delete=function(){return(s._ts_query_delete=s.asm.ts_query_delete).apply(null,arguments)},s._iswspace=function(){return(s._iswspace=s.asm.iswspace).apply(null,arguments)},s._iswalnum=function(){return(s._iswalnum=s.asm.iswalnum).apply(null,arguments)},s._ts_query_pattern_count=function(){return(s._ts_query_pattern_count=s.asm.ts_query_pattern_count).apply(null,arguments)},s._ts_query_capture_count=function(){return(s._ts_query_capture_count=s.asm.ts_query_capture_count).apply(null,arguments)},s._ts_query_string_count=function(){return(s._ts_query_string_count=s.asm.ts_query_string_count).apply(null,arguments)},s._ts_query_capture_name_for_id=function(){return(s._ts_query_capture_name_for_id=s.asm.ts_query_capture_name_for_id).apply(null,arguments)},s._ts_query_string_value_for_id=function(){return(s._ts_query_string_value_for_id=s.asm.ts_query_string_value_for_id).apply(null,arguments)},s._ts_query_predicates_for_pattern=function(){return(s._ts_query_predicates_for_pattern=s.asm.ts_query_predicates_for_pattern).apply(null,arguments)},s._ts_tree_copy=function(){return(s._ts_tree_copy=s.asm.ts_tree_copy).apply(null,arguments)},s._ts_tree_delete=function(){return(s._ts_tree_delete=s.asm.ts_tree_delete).apply(null,arguments)},s._ts_init=function(){return(s._ts_init=s.asm.ts_init).apply(null,arguments)},s._ts_parser_new_wasm=function(){return(s._ts_parser_new_wasm=s.asm.ts_parser_new_wasm).apply(null,arguments)},s._ts_parser_enable_logger_wasm=function(){return(s._ts_parser_enable_logger_wasm=s.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},s._ts_parser_parse_wasm=function(){return(s._ts_parser_parse_wasm=s.asm.ts_parser_parse_wasm).apply(null,arguments)},s._ts_language_type_is_named_wasm=function(){return(s._ts_language_type_is_named_wasm=s.asm.ts_language_type_is_named_wasm).apply(null,arguments)},s._ts_language_type_is_visible_wasm=function(){return(s._ts_language_type_is_visible_wasm=s.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},s._ts_tree_root_node_wasm=function(){return(s._ts_tree_root_node_wasm=s.asm.ts_tree_root_node_wasm).apply(null,arguments)},s._ts_tree_edit_wasm=function(){return(s._ts_tree_edit_wasm=s.asm.ts_tree_edit_wasm).apply(null,arguments)},s._ts_tree_get_changed_ranges_wasm=function(){return(s._ts_tree_get_changed_ranges_wasm=s.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},s._ts_tree_cursor_new_wasm=function(){return(s._ts_tree_cursor_new_wasm=s.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},s._ts_tree_cursor_delete_wasm=function(){return(s._ts_tree_cursor_delete_wasm=s.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},s._ts_tree_cursor_reset_wasm=function(){return(s._ts_tree_cursor_reset_wasm=s.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},s._ts_tree_cursor_goto_first_child_wasm=function(){return(s._ts_tree_cursor_goto_first_child_wasm=s.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},s._ts_tree_cursor_goto_next_sibling_wasm=function(){return(s._ts_tree_cursor_goto_next_sibling_wasm=s.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},s._ts_tree_cursor_goto_parent_wasm=function(){return(s._ts_tree_cursor_goto_parent_wasm=s.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_type_id_wasm=function(){return(s._ts_tree_cursor_current_node_type_id_wasm=s.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_is_named_wasm=function(){return(s._ts_tree_cursor_current_node_is_named_wasm=s.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_is_missing_wasm=function(){return(s._ts_tree_cursor_current_node_is_missing_wasm=s.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_id_wasm=function(){return(s._ts_tree_cursor_current_node_id_wasm=s.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},s._ts_tree_cursor_start_position_wasm=function(){return(s._ts_tree_cursor_start_position_wasm=s.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},s._ts_tree_cursor_end_position_wasm=function(){return(s._ts_tree_cursor_end_position_wasm=s.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},s._ts_tree_cursor_start_index_wasm=function(){return(s._ts_tree_cursor_start_index_wasm=s.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},s._ts_tree_cursor_end_index_wasm=function(){return(s._ts_tree_cursor_end_index_wasm=s.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},s._ts_tree_cursor_current_field_id_wasm=function(){return(s._ts_tree_cursor_current_field_id_wasm=s.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_wasm=function(){return(s._ts_tree_cursor_current_node_wasm=s.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},s._ts_node_symbol_wasm=function(){return(s._ts_node_symbol_wasm=s.asm.ts_node_symbol_wasm).apply(null,arguments)},s._ts_node_child_count_wasm=function(){return(s._ts_node_child_count_wasm=s.asm.ts_node_child_count_wasm).apply(null,arguments)},s._ts_node_named_child_count_wasm=function(){return(s._ts_node_named_child_count_wasm=s.asm.ts_node_named_child_count_wasm).apply(null,arguments)},s._ts_node_child_wasm=function(){return(s._ts_node_child_wasm=s.asm.ts_node_child_wasm).apply(null,arguments)},s._ts_node_named_child_wasm=function(){return(s._ts_node_named_child_wasm=s.asm.ts_node_named_child_wasm).apply(null,arguments)},s._ts_node_child_by_field_id_wasm=function(){return(s._ts_node_child_by_field_id_wasm=s.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},s._ts_node_next_sibling_wasm=function(){return(s._ts_node_next_sibling_wasm=s.asm.ts_node_next_sibling_wasm).apply(null,arguments)},s._ts_node_prev_sibling_wasm=function(){return(s._ts_node_prev_sibling_wasm=s.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},s._ts_node_next_named_sibling_wasm=function(){return(s._ts_node_next_named_sibling_wasm=s.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},s._ts_node_prev_named_sibling_wasm=function(){return(s._ts_node_prev_named_sibling_wasm=s.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},s._ts_node_parent_wasm=function(){return(s._ts_node_parent_wasm=s.asm.ts_node_parent_wasm).apply(null,arguments)},s._ts_node_descendant_for_index_wasm=function(){return(s._ts_node_descendant_for_index_wasm=s.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},s._ts_node_named_descendant_for_index_wasm=function(){return(s._ts_node_named_descendant_for_index_wasm=s.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},s._ts_node_descendant_for_position_wasm=function(){return(s._ts_node_descendant_for_position_wasm=s.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},s._ts_node_named_descendant_for_position_wasm=function(){return(s._ts_node_named_descendant_for_position_wasm=s.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},s._ts_node_start_point_wasm=function(){return(s._ts_node_start_point_wasm=s.asm.ts_node_start_point_wasm).apply(null,arguments)},s._ts_node_end_point_wasm=function(){return(s._ts_node_end_point_wasm=s.asm.ts_node_end_point_wasm).apply(null,arguments)},s._ts_node_start_index_wasm=function(){return(s._ts_node_start_index_wasm=s.asm.ts_node_start_index_wasm).apply(null,arguments)},s._ts_node_end_index_wasm=function(){return(s._ts_node_end_index_wasm=s.asm.ts_node_end_index_wasm).apply(null,arguments)},s._ts_node_to_string_wasm=function(){return(s._ts_node_to_string_wasm=s.asm.ts_node_to_string_wasm).apply(null,arguments)},s._ts_node_children_wasm=function(){return(s._ts_node_children_wasm=s.asm.ts_node_children_wasm).apply(null,arguments)},s._ts_node_named_children_wasm=function(){return(s._ts_node_named_children_wasm=s.asm.ts_node_named_children_wasm).apply(null,arguments)},s._ts_node_descendants_of_type_wasm=function(){return(s._ts_node_descendants_of_type_wasm=s.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},s._ts_node_is_named_wasm=function(){return(s._ts_node_is_named_wasm=s.asm.ts_node_is_named_wasm).apply(null,arguments)},s._ts_node_has_changes_wasm=function(){return(s._ts_node_has_changes_wasm=s.asm.ts_node_has_changes_wasm).apply(null,arguments)},s._ts_node_has_error_wasm=function(){return(s._ts_node_has_error_wasm=s.asm.ts_node_has_error_wasm).apply(null,arguments)},s._ts_node_is_missing_wasm=function(){return(s._ts_node_is_missing_wasm=s.asm.ts_node_is_missing_wasm).apply(null,arguments)},s._ts_query_matches_wasm=function(){return(s._ts_query_matches_wasm=s.asm.ts_query_matches_wasm).apply(null,arguments)},s._ts_query_captures_wasm=function(){return(s._ts_query_captures_wasm=s.asm.ts_query_captures_wasm).apply(null,arguments)},s._iswdigit=function(){return(s._iswdigit=s.asm.iswdigit).apply(null,arguments)},s._iswalpha=function(){return(s._iswalpha=s.asm.iswalpha).apply(null,arguments)},s._iswlower=function(){return(s._iswlower=s.asm.iswlower).apply(null,arguments)},s._towupper=function(){return(s._towupper=s.asm.towupper).apply(null,arguments)},s.___errno_location=function(){return(Le=s.___errno_location=s.asm.__errno_location).apply(null,arguments)}),De=(s._memchr=function(){return(s._memchr=s.asm.memchr).apply(null,arguments)},s._strlen=function(){return(s._strlen=s.asm.strlen).apply(null,arguments)},s.stackSave=function(){return(De=s.stackSave=s.asm.stackSave).apply(null,arguments)}),Ve=s.stackRestore=function(){return(Ve=s.stackRestore=s.asm.stackRestore).apply(null,arguments)},ze=s.stackAlloc=function(){return(ze=s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},Ue=s._setThrew=function(){return(Ue=s._setThrew=s.asm.setThrew).apply(null,arguments)};function Ge(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},s.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(s.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=s.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=s.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=s.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},s.__Znwm=function(){return(s.__Znwm=s.asm._Znwm).apply(null,arguments)},s.__ZdlPv=function(){return(s.__ZdlPv=s.asm._ZdlPv).apply(null,arguments)},s.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(s.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=s.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},s._orig$ts_parser_timeout_micros=function(){return(s._orig$ts_parser_timeout_micros=s.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},s._orig$ts_parser_set_timeout_micros=function(){return(s._orig$ts_parser_set_timeout_micros=s.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},s.allocate=function(e,t){var r;return r=1==t?ze(e.length):Be(e.length),e.subarray||e.slice?T.set(e,r):T.set(new Uint8Array(e),r),r},ne=function e(){Fe||Je(),Fe||(ne=e)};var We=!1;function Je(e){function t(){Fe||(Fe=!0,s.calledRun=!0,I||(te=!0,_e(Y),_e(Q),s.onRuntimeInitialized&&s.onRuntimeInitialized(),He&&function(e){var t=s._main;if(t){var r=(e=e||[]).length+1,n=ze(4*(r+1));q[n>>2]=J(m);for(var i=1;i<r;i++)q[(n>>2)+i]=J(e[i-1]);q[(n>>2)+r]=0;try{Ke(t(r,n),!0)}catch(e){if(e instanceof Ge)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),w("exception thrown: "+o),f(1,e)}}}(e),function(){if(s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)e=s.postRun.shift(),ee.unshift(e);var e;_e(ee)}()))}e=e||h,re>0||!We&&(function(){if(O.length){if(!y)return ie(),void O.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),ke()}));O.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),ke()}else ke()}(),We=!0,re>0)||(function(){if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)e=s.preRun.shift(),X.unshift(e);var e;_e(X)}(),re>0||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),t()}),1)):t()))}function Ke(e,t){t&&ve()&&0===e||(ve()||(s.onExit&&s.onExit(e),I=!0),f(e,new Ge(e)))}if(s.run=Je,s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();var He=!0;s.noInitialRun&&(He=!1),Je();const Ze=s,Xe={},Ye=4,Qe=5*Ye,et=2*Ye,tt=2*Ye+2*et,rt={row:0,column:0},st=/[\w-.]*/g,nt=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=Ze._ts_init(),it=$(at,"i32"),ot=$(at+Ye,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=$(at,"i32"),this[1]=$(at+Ye,"i32")}delete(){Ze._ts_parser_delete(this[0]),Ze._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==ft)throw new Error("Argument must be a Language");{t=e[0];const r=Ze._ts_language_version(t);if(r<ot||it<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ze._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)ct=(t,r,s)=>e.slice(t,s);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=e}this.logCallback?(ut=this.logCallback,Ze._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,Ze._ts_parser_enable_logger_wasm(this[0],0));let s=0,n=0;if(r&&r.includedRanges){s=r.includedRanges.length;let e=n=Ze._calloc(s,tt);for(let t=0;t<s;t++)Pt(e,r.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,s);if(!i)throw ct=null,ut=null,new Error("Parsing failed");const o=new pt(Xe,i,this.language,ct);return ct=null,ut=null,o}reset(){Ze._ts_parser_reset(this[0])}setTimeoutMicros(e){Ze._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ze._ts_parser_timeout_micros(this[0])}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 pt{constructor(e,t,r,s){gt(e),this[0]=t,this.language=r,this.textCallback=s}copy(){const e=Ze._ts_tree_copy(this[0]);return new pt(Xe,e,this.language,this.textCallback)}delete(){Ze._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=at;St(t,e.startPosition),St(t+=et,e.oldEndPosition),St(t+=et,e.newEndPosition),M(t+=et,e.startIndex,"i32"),M(t+=Ye,e.oldEndIndex,"i32"),M(t+=Ye,e.newEndIndex,"i32"),t+=Ye}(e),Ze._ts_tree_edit_wasm(this[0])}get rootNode(){return Ze._ts_tree_root_node_wasm(this[0]),wt(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ze._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=$(at,"i32"),r=$(at+Ye,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=Ot(e),e+=tt;Ze._free(r)}return s}}class ht{constructor(e,t){gt(e),this.tree=t}get typeId(){return bt(this),Ze._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return bt(this),Ze._ts_node_end_point_wasm(this.tree[0]),jt(at)}get endIndex(){return bt(this),Ze._ts_node_end_index_wasm(this.tree[0])}get text(){return _t(this.tree,this.startIndex,this.endIndex)}isNamed(){return bt(this),1===Ze._ts_node_is_named_wasm(this.tree[0])}hasError(){return bt(this),1===Ze._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return bt(this),1===Ze._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return bt(this),1===Ze._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return bt(this),Ze._ts_node_child_wasm(this.tree[0],e),wt(this.tree)}namedChild(e){return bt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),wt(this.tree)}childForFieldId(e){return bt(this),Ze._ts_node_child_by_field_id_wasm(this.tree[0],e),wt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return bt(this),Ze._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return bt(this),Ze._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){bt(this),Ze._ts_node_children_wasm(this.tree[0]);const e=$(at,"i32"),t=$(at+Ye,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=wt(this.tree,r),r+=Qe;Ze._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){bt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=$(at,"i32"),t=$(at+Ye,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=wt(this.tree,r),r+=Qe;Ze._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=rt),r||(r=rt);const s=[],n=this.tree.language.types;for(let t=0,r=n.length;t<r;t++)e.includes(n[t])&&s.push(t);const i=Ze._malloc(Ye*s.length);for(let e=0,t=s.length;e<t;e++)M(i+e*Ye,s[e],"i32");bt(this),Ze._ts_node_descendants_of_type_wasm(this.tree[0],i,s.length,t.row,t.column,r.row,r.column);const o=$(at,"i32"),a=$(at+Ye,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=wt(this.tree,e),e+=Qe}return Ze._free(a),Ze._free(i),c}get nextSibling(){return bt(this),Ze._ts_node_next_sibling_wasm(this.tree[0]),wt(this.tree)}get previousSibling(){return bt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),wt(this.tree)}get nextNamedSibling(){return bt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),wt(this.tree)}get previousNamedSibling(){return bt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),wt(this.tree)}get parent(){return bt(this),Ze._ts_node_parent_wasm(this.tree[0]),wt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let r=at+Qe;return M(r,e,"i32"),M(r+Ye,t,"i32"),Ze._ts_node_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let r=at+Qe;return M(r,e,"i32"),M(r+Ye,t,"i32"),Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}descendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let r=at+Qe;return St(r,e),St(r+et,t),Ze._ts_node_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}namedDescendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let r=at+Qe;return St(r,e),St(r+et,t),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}walk(){return bt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new mt(Xe,this.tree)}toString(){bt(this);const e=Ze._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var r=T[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}(e);return Ze._free(e),t}}class mt{constructor(e,t){gt(e),this.tree=t,xt(this)}delete(){Et(this),Ze._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){bt(e),Et(this,at+Qe),Ze._ts_tree_cursor_reset_wasm(this.tree[0]),xt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Et(this),Ze._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Et(this),Ze._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Et(this),1===Ze._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Et(this),1===Ze._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Et(this);const e=Ze._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ze._ts_tree_cursor_end_index_wasm(this.tree[0]);return _t(this.tree,e,t)}get startPosition(){return Et(this),Ze._ts_tree_cursor_start_position_wasm(this.tree[0]),jt(at)}get endPosition(){return Et(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),jt(at)}get startIndex(){return Et(this),Ze._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Et(this),Ze._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Et(this),Ze._ts_tree_cursor_current_node_wasm(this.tree[0]),wt(this.tree)}currentFieldId(){return Et(this),Ze._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Et(this);const e=Ze._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xt(this),1===e}gotoNextSibling(){Et(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xt(this),1===e}gotoParent(){Et(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xt(this),1===e}}class ft{constructor(e,t){gt(e),this[0]=t,this.types=new Array(Ze._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ze._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=z(Ze._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ze._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ze._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?z(t):null}}get version(){return Ze._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=W(e),s=Ze._malloc(r+1);G(e,s,r+1);const n=Ze._ts_language_symbol_for_name(this[0],s,r,t);return Ze._free(s),n||null}get nodeTypeCount(){return Ze._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ze._ts_language_symbol_name(this[0],e);return t?z(t):null}nodeTypeIsNamed(e){return!!Ze._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ze._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=W(e),r=Ze._malloc(t+1);G(e,r,t+1);const s=Ze._ts_query_new(this[0],r,t,at,at+Ye);if(!s){const t=$(at+Ye,"i32"),s=z(r,$(at,"i32")).length,n=e.substr(s,100).split("\n")[0];let i,o=n.match(st)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${s}: '${n}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${s}: '${n}'...`),o=""}throw i.index=s,i.length=o.length,Ze._free(r),i}const n=Ze._ts_query_string_count(s),i=Ze._ts_query_capture_count(s),o=Ze._ts_query_pattern_count(s),a=new Array(i),c=new Array(n);for(let e=0;e<i;e++){const t=Ze._ts_query_capture_name_for_id(s,e,at),r=$(at,"i32");a[e]=z(t,r)}for(let e=0;e<n;e++){const t=Ze._ts_query_string_value_for_id(s,e,at),r=$(at,"i32");c[e]=z(t,r)}const u=new Array(o),l=new Array(o),p=new Array(o),h=new Array(o),m=new Array(o);for(let e=0;e<o;e++){const t=Ze._ts_query_predicates_for_pattern(s,e,at),r=$(at,"i32");h[e]=[],m[e]=[];const n=[];let i=t;for(let t=0;t<r;t++){const t=$(i,"i32"),r=$(i+=Ye,"i32");if(i+=Ye,1===t)n.push({type:"capture",name:a[r]});else if(2===t)n.push({type:"string",value:c[r]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let r=!0;switch(t){case"not-eq?":r=!1;case"eq?":if(3!==n.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(n.length-1));if("capture"!==n[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${n[1].value}"`);if("capture"===n[2].type){const t=n[1].name,s=n[2].name;m[e].push((function(e){let n,i;for(const r of e)r.name===t&&(n=r.node),r.name===s&&(i=r.node);return void 0===n||void 0===i||n.text===i.text===r}))}else{const t=n[1].name,s=n[2].value;m[e].push((function(e){for(const n of e)if(n.name===t)return n.node.text===s===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${n[2].value}.`);const s=n[1].name,i=new RegExp(n[2].value);m[e].push((function(e){for(const t of e)if(t.name===s)return i.test(t.node.text)===r;return!0}));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.".');u[e]||(u[e]={}),u[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:p;o[e]||(o[e]={}),o[e][n[1].value]=n[2]?n[2].value:null;break;default:h[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ze._free(r),new dt(Xe,s,a,m,h,Object.freeze(u),Object.freeze(l),Object.freeze(p))}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=r(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 r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}const s="function"==typeof loadSideModule?loadSideModule:Oe;return t.then((e=>s(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>nt.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const s=e[r]();return new ft(Xe,s)}))}}class dt{constructor(e,t,r,s,n,i,o,a){gt(e),this[0]=t,this.captureNames=r,this.textPredicates=s,this.predicates=n,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ze._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,s){t||(t=rt),r||(r=rt),s||(s={});let n=s.matchLimit;if(void 0===n)n=0;else if("number"!=typeof n)throw new Error("Arguments must be numbers");bt(e),Ze._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n);const i=$(at,"i32"),o=$(at+Ye,"i32"),a=$(at+2*Ye,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let t=0;t<i;t++){const r=$(l,"i32"),s=$(l+=Ye,"i32");l+=Ye;const n=new Array(s);if(l=yt(this,e.tree,l,n),this.textPredicates[r].every((e=>e(n)))){c[u++]={pattern:r,captures:n};const e=this.setProperties[r];e&&(c[t].setProperties=e);const s=this.assertedProperties[r];s&&(c[t].assertedProperties=s);const i=this.refutedProperties[r];i&&(c[t].refutedProperties=i)}}return c.length=u,Ze._free(o),c}captures(e,t,r,s){t||(t=rt),r||(r=rt),s||(s={});let n=s.matchLimit;if(void 0===n)n=0;else if("number"!=typeof n)throw new Error("Arguments must be numbers");bt(e),Ze._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n);const i=$(at,"i32"),o=$(at+Ye,"i32"),a=$(at+2*Ye,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=$(l,"i32"),r=$(l+=Ye,"i32"),s=$(l+=Ye,"i32");if(l+=Ye,u.length=r,l=yt(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[s],r=this.setProperties[t];r&&(e.setProperties=r);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ze._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function _t(e,t,r){const s=r-t;let n=e.textCallback(t,null,r);for(t+=n.length;t<r;){const s=e.textCallback(t,null,r);if(!(s&&s.length>0))break;t+=s.length,n+=s}return t>r&&(n=n.slice(0,s)),n}function yt(e,t,r,s){for(let n=0,i=s.length;n<i;n++){const i=$(r,"i32"),o=wt(t,r+=Ye);r+=Qe,s[n]={name:e.captureNames[i],node:o}}return r}function gt(e){if(e!==Xe)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function bt(e){let t=at;M(t,e.id,"i32"),M(t+=Ye,e.startIndex,"i32"),M(t+=Ye,e.startPosition.row,"i32"),M(t+=Ye,e.startPosition.column,"i32"),M(t+=Ye,e[0],"i32")}function wt(e,t=at){const r=$(t,"i32");if(0===r)return null;const s=$(t+=Ye,"i32"),n=$(t+=Ye,"i32"),i=$(t+=Ye,"i32"),o=$(t+=Ye,"i32"),a=new ht(Xe,e);return a.id=r,a.startIndex=s,a.startPosition={row:n,column:i},a[0]=o,a}function Et(e,t=at){M(t+0*Ye,e[0],"i32"),M(t+1*Ye,e[1],"i32"),M(t+2*Ye,e[2],"i32")}function xt(e){e[0]=$(at+0*Ye,"i32"),e[1]=$(at+1*Ye,"i32"),e[2]=$(at+2*Ye,"i32")}function St(e,t){M(e,t.row,"i32"),M(e+Ye,t.column,"i32")}function jt(e){return{row:$(e,"i32"),column:$(e+Ye,"i32")}}function Pt(e,t){St(e,t.startPosition),St(e+=et,t.endPosition),M(e+=et,t.startIndex,"i32"),M(e+=Ye,t.endIndex,"i32"),e+=Ye}function Ot(e){const t={};return t.startPosition=jt(e),e+=et,t.endPosition=jt(e),e+=et,t.startIndex=$(e,"i32"),e+=Ye,t.endIndex=$(e,"i32"),t}for(const e of Object.getOwnPropertyNames(lt.prototype))Object.defineProperty(i.prototype,e,{value:lt.prototype[e],enumerable:!1,writable:!1});i.Language=ft,s.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=n},3078:()=>{},4142:()=>{},1212:(e,t,r)=>{e.exports=r(8411)},7202:(e,t,r)=>{"use strict";var s=r(239);e.exports=s},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var s=r(8099);e.exports=s.AggregateError},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8337:(e,t,r)=>{"use strict";r(5442);var s=r(7202);e.exports=s},814:(e,t,r)=>{"use strict";var s=r(2769),n=r(459),i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not a function")}},1966:(e,t,r)=>{"use strict";var s=r(2937),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,r)=>{"use strict";var s=r(262),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not an object")}},1005:(e,t,r)=>{"use strict";var s=r(3273),n=r(4574),i=r(8130),o=function(e){return function(t,r,o){var a,c=s(t),u=i(c),l=n(o,u);if(e&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,r)=>{"use strict";var s=r(6100),n=s({}.toString),i=s("".slice);e.exports=function(e){return i(n(e),8,-1)}},8407:(e,t,r)=>{"use strict";var s=r(4904),n=r(2769),i=r(9932),o=r(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=s?i:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"===(s=i(t))&&n(t.callee)?"Arguments":s}},7464:(e,t,r)=>{"use strict";var s=r(701),n=r(5691),i=r(4543),o=r(9989);e.exports=function(e,t,r){for(var a=n(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];s(e,p)||r&&s(r,p)||c(e,p,u(t,p))}}},2871:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,r)=>{"use strict";var s=r(5024),n=r(9989),i=r(480);e.exports=s?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,r)=>{"use strict";var s=r(3999);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},7525:(e,t,r)=>{"use strict";var s=r(1063),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}},5024:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,r)=>{"use strict";var s=r(1063),n=r(262),i=s.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7868:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(e,t,r)=>{"use strict";var s,n,i=r(1063),o=r(7868),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(n=(s=l.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&o&&(!(s=o.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=o.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(e,t,r)=>{"use strict";var s=r(6100),n=Error,i=s("".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}},4279:(e,t,r)=>{"use strict";var s=r(3999),n=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):s(e,"stack",n(r,a)))}},5791:(e,t,r)=>{"use strict";var s=r(1203),n=r(480);e.exports=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},9098:(e,t,r)=>{"use strict";var s=r(1063),n=r(7013),i=r(9344),o=r(2769),a=r(4543).f,c=r(8696),u=r(8099),l=r(4572),p=r(3999),h=r(701),m=function(e){var t=function(r,s,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,s)}return new e(r,s,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,n,f,d,_,y,g,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,j=E?s:x?s[w]:s[w]&&s[w].prototype,P=E?u:u[w]||p(u,w,{})[w],O=P.prototype;for(d in t)n=!(r=c(E?d:w+(x?".":"#")+d,e.forced))&&j&&h(j,d),y=P[d],n&&(g=e.dontCallGetSet?(b=a(j,d))&&b.value:j[d]),_=n&&g?g:t[d],(r||S||typeof y!=typeof _)&&(v=e.bind&&n?l(_,s):e.wrap&&n?m(_):S&&o(_)?i(_):_,(e.sham||_&&_.sham||y&&y.sham)&&p(v,"sham",!0),p(P,d,v),S&&(h(u,f=w+"Prototype")||p(u,f,{}),p(u[f],d,_),e.real&&O&&(r||!O[d])&&p(O,d,_)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,r)=>{"use strict";var s=r(9344),n=r(814),i=r(1780),o=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},3410:(e,t,r)=>{"use strict";var s=r(5024),n=r(701),i=Function.prototype,o=s&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!s||s&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3574:(e,t,r)=>{"use strict";var s=r(6100),n=r(814);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9344:(e,t,r)=>{"use strict";var s=r(9932),n=r(6100);e.exports=function(e){if("Function"===s(e))return n(e)}},6100:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype,i=n.call,o=s&&n.bind.bind(i,i);e.exports=s?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,r)=>{"use strict";var s=r(8099),n=r(1063),i=r(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(s[e])||o(n[e]):s[e]&&s[e][t]||n[e]&&n[e][t]}},967:(e,t,r)=>{"use strict";var s=r(8407),n=r(4674),i=r(3057),o=r(6625),a=r(8655)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[s(e)]}},1613:(e,t,r)=>{"use strict";var s=r(4713),n=r(814),i=r(7235),o=r(459),a=r(967),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(n(r))return i(s(r,e));throw new c(o(e)+" is not iterable")}},4674:(e,t,r)=>{"use strict";var s=r(814),n=r(3057);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},1063:function(e,t,r){"use strict";var s=function(e){return e&&e.Math===Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,r)=>{"use strict";var s=r(6100),n=r(2137),i=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,r)=>{"use strict";var s=r(1003);e.exports=s("document","documentElement")},9665:(e,t,r)=>{"use strict";var s=r(5024),n=r(1203),i=r(9619);e.exports=!s&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,r)=>{"use strict";var s=r(6100),n=r(1203),i=r(9932),o=Object,a=s("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},3507:(e,t,r)=>{"use strict";var s=r(2769),n=r(262),i=r(3491);e.exports=function(e,t,r){var o,a;return i&&s(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},8148:(e,t,r)=>{"use strict";var s=r(262),n=r(3999);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},8417:(e,t,r)=>{"use strict";var s,n,i,o=r(1314),a=r(1063),c=r(262),u=r(3999),l=r(701),p=r(3753),h=r(4275),m=r(5241),f="Object already initialized",d=a.TypeError,_=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new _);y.get=y.get,y.has=y.has,y.set=y.set,s=function(e,t){if(y.has(e))throw new d(f);return t.facade=e,y.set(e,t),t},n=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=h("state");m[g]=!0,s=function(e,t){if(l(e,g))throw new d(f);return t.facade=e,u(e,g,t),t},n=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:s,get:n,has:i,enforce:function(e){return i(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=n(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}},2877:(e,t,r)=>{"use strict";var s=r(8655),n=r(6625),i=s("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696:(e,t,r)=>{"use strict";var s=r(1203),n=r(2769),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===l||r!==u&&(n(t)?s(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,r)=>{"use strict";var s=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},2937:(e,t,r)=>{"use strict";var s=r(262);e.exports=function(e){return s(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,r)=>{"use strict";var s=r(1003),n=r(2769),i=r(4317),o=r(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&i(t.prototype,a(e))}},208:(e,t,r)=>{"use strict";var s=r(4572),n=r(4713),i=r(7235),o=r(459),a=r(2877),c=r(8130),u=r(4317),l=r(1613),p=r(967),h=r(1743),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},d=f.prototype;e.exports=function(e,t,r){var _,y,g,v,b,w,E,x=r&&r.that,S=!(!r||!r.AS_ENTRIES),j=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),A=s(t,x),k=function(e){return _&&h(_,"normal",e),new f(!0,e)},M=function(e){return S?(i(e),O?A(e[0],e[1],k):A(e[0],e[1])):O?A(e,k):A(e)};if(j)_=e.iterator;else if(P)_=e;else{if(!(y=p(e)))throw new m(o(e)+" is not iterable");if(a(y)){for(g=0,v=c(e);v>g;g++)if((b=M(e[g]))&&u(d,b))return b;return new f(!1)}_=l(e,y)}for(w=j?e.next:_.next;!(E=n(w,_)).done;){try{b=M(E.value)}catch(e){h(_,"throw",e)}if("object"==typeof b&&b&&u(d,b))return b}return new f(!1)}},1743:(e,t,r)=>{"use strict";var s=r(4713),n=r(7235),i=r(4674);e.exports=function(e,t,r){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=s(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return n(o),r}},1926:(e,t,r)=>{"use strict";var s=r(2621).IteratorPrototype,n=r(5780),i=r(480),o=r(1811),a=r(6625),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=n(s,{next:i(+!u,r)}),o(e,l,!1,!0),a[l]=c,e}},164:(e,t,r)=>{"use strict";var s=r(9098),n=r(4713),i=r(4871),o=r(3410),a=r(2769),c=r(1926),u=r(3671),l=r(3491),p=r(1811),h=r(3999),m=r(3508),f=r(8655),d=r(6625),_=r(2621),y=o.PROPER,g=o.CONFIGURABLE,v=_.IteratorPrototype,b=_.BUGGY_SAFARI_ITERATORS,w=f("iterator"),E="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,r,o,f,_,P){c(r,t,o);var O,A,k,M=function(e){if(e===f&&C)return C;if(!b&&e&&e in N)return N[e];switch(e){case E:case x:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},$=t+" Iterator",I=!1,N=e.prototype,R=N[w]||N["@@iterator"]||f&&N[f],C=!b&&R||M(f),T="Array"===t&&N.entries||R;if(T&&(O=u(T.call(new e)))!==Object.prototype&&O.next&&(i||u(O)===v||(l?l(O,v):a(O[w])||m(O,w,j)),p(O,$,!0,!0),i&&(d[$]=j)),y&&f===x&&R&&R.name!==x&&(!i&&g?h(N,"name",x):(I=!0,C=function(){return n(R,this)})),f)if(A={values:M(x),keys:_?C:M(E),entries:M(S)},P)for(k in A)(b||I||!(k in N))&&m(N,k,A[k]);else s({target:t,proto:!0,forced:b||I},A);return i&&!P||N[w]===C||m(N,w,C,{name:f}),d[t]=C,A}},2621:(e,t,r)=>{"use strict";var s,n,i,o=r(1203),a=r(2769),c=r(262),u=r(5780),l=r(3671),p=r(3508),h=r(8655),m=r(4871),f=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(n=l(l(i)))!==Object.prototype&&(s=n):d=!0),!c(s)||o((function(){var e={};return s[f].call(e)!==e}))?s={}:m&&(s=u(s)),a(s[f])||p(s,f,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:d}},6625:e=>{"use strict";e.exports={}},8130:(e,t,r)=>{"use strict";var s=r(8146);e.exports=function(e){return s(e.length)}},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?r:t)(s)}},4879:(e,t,r)=>{"use strict";var s=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},5780:(e,t,r)=>{"use strict";var s,n=r(7235),i=r(7389),o=r(9683),a=r(5241),c=r(3489),u=r(9619),l=r(4275),p="prototype",h="script",m=l("IE_PROTO"),f=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},_=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&s?_(s):(t=u("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):_(s);for(var n=o.length;n--;)delete y[p][o[n]];return y()};a[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f[p]=n(e),r=new f,f[p]=null,r[m]=e):r=y(),void 0===t?r:i.f(r,t)}},7389:(e,t,r)=>{"use strict";var s=r(5024),n=r(1330),i=r(9989),o=r(7235),a=r(3273),c=r(8364);t.f=s&&!n?Object.defineProperties:function(e,t){o(e);for(var r,s=a(t),n=c(t),u=n.length,l=0;u>l;)i.f(e,r=n[l++],s[r]);return e}},9989:(e,t,r)=>{"use strict";var s=r(5024),n=r(9665),i=r(1330),o=r(7235),a=r(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",m="writable";t.f=s?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&m in r&&!r[m]){var s=l(e,t);s&&s[m]&&(e[t]=r.value,r={configurable:h in r?r[h]:s[h],enumerable:p in r?r[p]:s[p],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=a(t),o(r),n)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},4543:(e,t,r)=>{"use strict";var s=r(5024),n=r(4713),i=r(7161),o=r(480),a=r(3273),c=r(5341),u=r(701),l=r(9665),p=Object.getOwnPropertyDescriptor;t.f=s?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!n(i.f,e,t),e[t])}},5116:(e,t,r)=>{"use strict";var s=r(8600),n=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,r)=>{"use strict";var s=r(701),n=r(2769),i=r(2137),o=r(4275),a=r(2871),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(s(t,c))return t[c];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},4317:(e,t,r)=>{"use strict";var s=r(6100);e.exports=s({}.isPrototypeOf)},8600:(e,t,r)=>{"use strict";var s=r(6100),n=r(701),i=r(3273),o=r(1005).indexOf,a=r(5241),c=s([].push);e.exports=function(e,t){var r,s=i(e),u=0,l=[];for(r in s)!n(a,r)&&n(s,r)&&c(l,r);for(;t.length>u;)n(s,r=t[u++])&&(~o(l,r)||c(l,r));return l}},8364:(e,t,r)=>{"use strict";var s=r(8600),n=r(9683);e.exports=Object.keys||function(e){return s(e,n)}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!r.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:r},3491:(e,t,r)=>{"use strict";var s=r(3574),n=r(7235),i=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=s(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return n(r),i(s),t?e(r,s):r.__proto__=s,r}}():void 0)},9559:(e,t,r)=>{"use strict";var s=r(4904),n=r(8407);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},9258:(e,t,r)=>{"use strict";var s=r(4713),n=r(2769),i=r(262),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&n(r=e.toString)&&!i(a=s(r,e)))return a;if(n(r=e.valueOf)&&!i(a=s(r,e)))return a;if("string"!==t&&n(r=e.toString)&&!i(a=s(r,e)))return a;throw new o("Can't convert object to primitive value")}},5691:(e,t,r)=>{"use strict";var s=r(1003),n=r(6100),i=r(5116),o=r(7313),a=r(7235),c=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,r)=>{"use strict";var s=r(9989).f;e.exports=function(e,t,r){r in e||s(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5426:(e,t,r)=>{"use strict";var s=r(3057),n=TypeError;e.exports=function(e){if(s(e))throw new n("Can't call method on "+e);return e}},1811:(e,t,r)=>{"use strict";var s=r(4904),n=r(9989).f,i=r(3999),o=r(701),a=r(9559),c=r(8655)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(o(l,c)||n(l,c,{configurable:!0,value:t}),u&&!s&&i(l,"toString",a))}},4275:(e,t,r)=>{"use strict";var s=r(8141),n=r(1268),i=s("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},3753:(e,t,r)=>{"use strict";var s=r(1063),n=r(7525),i="__core-js_shared__",o=s[i]||n(i,{});e.exports=o},8141:(e,t,r)=>{"use strict";var s=r(4871),n=r(3753);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:s?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5571:(e,t,r)=>{"use strict";var s=r(6100),n=r(9903),i=r(1139),o=r(5426),a=s("".charAt),c=s("".charCodeAt),u=s("".slice),l=function(e){return function(t,r){var s,l,p=i(o(t)),h=n(r),m=p.length;return h<0||h>=m?e?"":void 0:(s=c(p,h))<55296||s>56319||h+1===m||(l=c(p,h+1))<56320||l>57343?e?a(p,h):s:e?u(p,h,h+2):l-56320+(s-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4603:(e,t,r)=>{"use strict";var s=r(4432),n=r(1203),i=r(1063).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},4574:(e,t,r)=>{"use strict";var s=r(9903),n=Math.max,i=Math.min;e.exports=function(e,t){var r=s(e);return r<0?n(r+t,0):i(r,t)}},3273:(e,t,r)=>{"use strict";var s=r(1395),n=r(5426);e.exports=function(e){return s(n(e))}},9903:(e,t,r)=>{"use strict";var s=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},8146:(e,t,r)=>{"use strict";var s=r(9903),n=Math.min;e.exports=function(e){var t=s(e);return t>0?n(t,9007199254740991):0}},2137:(e,t,r)=>{"use strict";var s=r(5426),n=Object;e.exports=function(e){return n(s(e))}},493:(e,t,r)=>{"use strict";var s=r(4713),n=r(262),i=r(6281),o=r(4674),a=r(9258),c=r(8655),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,c=o(e,l);if(c){if(void 0===t&&(t="default"),r=s(c,e,t),!n(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5341:(e,t,r)=>{"use strict";var s=r(493),n=r(6281);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},4904:(e,t,r)=>{"use strict";var s={};s[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(s)},1139:(e,t,r)=>{"use strict";var s=r(8407),n=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,r)=>{"use strict";var s=r(6100),n=0,i=Math.random(),o=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},7460:(e,t,r)=>{"use strict";var s=r(4603);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,r)=>{"use strict";var s=r(5024),n=r(1203);e.exports=s&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,r)=>{"use strict";var s=r(1063),n=r(2769),i=s.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},8655:(e,t,r)=>{"use strict";var s=r(1063),n=r(8141),i=r(701),o=r(1268),a=r(4603),c=r(7460),u=s.Symbol,l=n("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},6453:(e,t,r)=>{"use strict";var s=r(1003),n=r(701),i=r(3999),o=r(4317),a=r(3491),c=r(7464),u=r(5516),l=r(3507),p=r(4879),h=r(8148),m=r(4279),f=r(5024),d=r(4871);e.exports=function(e,t,r,_){var y="stackTraceLimit",g=_?2:1,v=e.split("."),b=v[v.length-1],w=s.apply(null,v);if(w){var E=w.prototype;if(!d&&n(E,"cause")&&delete E.cause,!r)return w;var x=s("Error"),S=t((function(e,t){var r=p(_?t:e,void 0),s=_?new w(e):new w;return void 0!==r&&i(s,"message",r),m(s,S,s.stack,2),this&&o(E,this)&&l(s,this,S),arguments.length>g&&h(s,arguments[g]),s}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):f&&y in w&&(u(S,w,y),u(S,w,"prepareStackTrace")),c(S,w),!d)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},6138:(e,t,r)=>{"use strict";var s=r(9098),n=r(1003),i=r(7013),o=r(1203),a=r(6453),c="AggregateError",u=n(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));s({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},3085:(e,t,r)=>{"use strict";var s=r(9098),n=r(4317),i=r(3671),o=r(3491),a=r(7464),c=r(5780),u=r(3999),l=r(480),p=r(8148),h=r(4279),m=r(208),f=r(4879),d=r(8655)("toStringTag"),_=Error,y=[].push,g=function(e,t){var r,s=n(v,this);o?r=o(new _,s?i(this):v):(r=s?this:c(v),u(r,d,"Error")),void 0!==t&&u(r,"message",f(t)),h(r,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return m(e,y,{that:a}),u(r,"errors",a),r};o?o(g,_):a(g,_,{name:!0});var v=g.prototype=c(_.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});s({global:!0,constructor:!0,arity:2},{AggregateError:g})},5695:(e,t,r)=>{"use strict";r(3085)},9828:(e,t,r)=>{"use strict";var s=r(3273),n=r(8137),i=r(6625),o=r(8417),a=r(9989).f,c=r(164),u=r(877),l=r(4871),p=r(5024),h="Array Iterator",m=o.set,f=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){m(this,{type:h,target:s(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var d=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!l&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},484:(e,t,r)=>{"use strict";var s=r(9098),n=r(1063),i=r(7013),o=r(6453),a="WebAssembly",c=n[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),s({global:!0,constructor:!0,arity:1,forced:u},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,u),s({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},3832:(e,t,r)=>{"use strict";var s=r(5571).charAt,n=r(1139),i=r(8417),o=r(164),a=r(877),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:n(e),index:0})}),(function(){var e,t=l(this),r=t.string,n=t.index;return n>=r.length?a(void 0,!0):(e=s(r,n),t.index+=e.length,a(e,!1))}))},5442:(e,t,r)=>{"use strict";r(5695)},85:(e,t,r)=>{"use strict";r(9828);var s=r(1100),n=r(1063),i=r(1811),o=r(6625);for(var a in s)i(n[a],a),o[a]=o.Array},239:(e,t,r)=>{"use strict";r(5442);var s=r(6656);r(85),e.exports=s}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var s=t.getElementsByTagName("script");if(s.length)for(var n=s.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=s[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var s={};return(()=>{"use strict";r.r(s),r.d(s,{detect:()=>wh,detectionRegExp:()=>bh,mediaTypes:()=>vh,namespace:()=>xh,parse:()=>Eh});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>tr,includesClasses:()=>sr,includesSymbols:()=>rr,isAnnotationElement:()=>Zt,isArrayElement:()=>Wt,isBooleanElement:()=>Ut,isCommentElement:()=>Xt,isElement:()=>Lt,isLinkElement:()=>Kt,isMemberElement:()=>Jt,isNullElement:()=>zt,isNumberElement:()=>Vt,isObjectElement:()=>Gt,isParseResultElement:()=>Yt,isPrimitiveElement:()=>er,isRefElement:()=>Ht,isSourceMapElement:()=>Qt,isStringElement:()=>Dt});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>qo,isJSONSchemaElement:()=>Fo,isLinkDescriptionElement:()=>Lo,isMediaElement:()=>Bo});var n={};function i(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function o(e){return function t(r){return 0===arguments.length||i(r)?t:e.apply(this,arguments)}}function a(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return i(r)?t:o((function(t){return e(r,t)}));default:return i(r)&&i(s)?t:i(r)?o((function(t){return e(t,s)})):i(s)?o((function(t){return e(r,t)})):e(r,s)}}}function c(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return i(r)?t:a((function(t,s){return e(r,t,s)}));case 2:return i(r)&&i(s)?t:i(r)?a((function(t,r){return e(t,s,r)})):i(s)?a((function(t,s){return e(r,t,s)})):o((function(t){return e(r,s,t)}));default:return i(r)&&i(s)&&i(n)?t:i(r)&&i(s)?a((function(t,r){return e(t,r,n)})):i(r)&&i(n)?a((function(t,r){return e(t,s,r)})):i(s)&&i(n)?a((function(t,s){return e(r,t,s)})):i(r)?o((function(t){return e(t,s,n)})):i(s)?o((function(t){return e(r,t,n)})):i(n)?o((function(t){return e(r,s,t)})):e(r,s,n)}}}r.r(n),r.d(n,{isBooleanJsonSchemaElement:()=>bc,isCallbackElement:()=>ec,isComponentsElement:()=>tc,isContactElement:()=>rc,isExampleElement:()=>sc,isExternalDocumentationElement:()=>nc,isHeaderElement:()=>ic,isInfoElement:()=>oc,isLicenseElement:()=>ac,isLinkElement:()=>cc,isMediaTypeElement:()=>jc,isOpenApi3_0Element:()=>lc,isOpenapiElement:()=>uc,isOperationElement:()=>pc,isParameterElement:()=>hc,isPathItemElement:()=>mc,isPathsElement:()=>fc,isReferenceElement:()=>dc,isRequestBodyElement:()=>_c,isResponseElement:()=>yc,isResponsesElement:()=>gc,isSchemaElement:()=>vc,isSecurityRequirementElement:()=>wc,isSecuritySchemeElement:()=>Ec,isServerElement:()=>xc,isServerVariableElement:()=>Sc,isServersElement:()=>Pc});const u=a((function(e,t){return null==t||t!=t?e:t})),l=Number.isInteger||function(e){return e<<0===e};function p(e){return"[object String]"===Object.prototype.toString.call(e)}function h(e,t){var r=e<0?t.length+e:e;return p(t)?t.charAt(r):t[r]}const m=a((function(e,t){if(null!=t)return l(e)?h(e,t):t[e]}));const f=c((function(e,t,r){return u(e,m(t,r))}));var d=a((function(e,t){for(var r={},s={},n=0,i=e.length;n<i;)s[e[n]]=1,n+=1;for(var o in t)s.hasOwnProperty(o)||(r[o]=t[o]);return r}));const _=d;function y(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}const g=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const v=o((function(e){return!!g(e)||!!e&&("object"==typeof e&&(!p(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var b="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function w(e,t,r){return function(s,n,i){if(v(i))return e(s,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(s,n,i,"fantasy-land/reduce");if(null!=i[b])return r(s,n,i[b]());if("function"==typeof i.next)return r(s,n,i);if("function"==typeof i.reduce)return t(s,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function E(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function x(e,t,r,s){return r[s](e,t)}const S=w(y,x,E);function j(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!g(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function P(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}const O=function(){return this.xf["@@transducer/init"]()},A=function(e){return this.xf["@@transducer/result"](e)};var k=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=A,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const M=function(e){return function(t){return new k(e,t)}};function $(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,i){return t.apply(this,arguments)};case 6:return function(e,r,s,n,i,o){return t.apply(this,arguments)};case 7:return function(e,r,s,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,r,s,n,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function I(e,t,r){return function(){for(var s=[],n=0,o=e,a=0,c=!1;a<t.length||n<arguments.length;){var u;a<t.length&&(!i(t[a])||n>=arguments.length)?u=t[a]:(u=arguments[n],n+=1),s[a]=u,i(u)?c=!0:o-=1,a+=1}return!c&&o<=0?r.apply(this,s):$(Math.max(0,o),I(e,s,r))}}const N=a((function(e,t){return 1===e?o(t):$(e,I(e,[],t))}));function R(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var C=Object.prototype.toString;const T=function(){return"[object Arguments]"===C.call(arguments)?function(e){return"[object Arguments]"===C.call(e)}:function(e){return R("callee",e)}}();var F=!{toString:null}.propertyIsEnumerable("toString"),q=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(){return arguments.propertyIsEnumerable("length")}(),L=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},D="function"!=typeof Object.keys||B?o((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=B&&T(e);for(t in e)!R(t,e)||n&&"length"===t||(s[s.length]=t);if(F)for(r=q.length-1;r>=0;)R(t=q[r],e)&&!L(s,t)&&(s[s.length]=t),r-=1;return s})):o((function(e){return Object(e)!==e?[]:Object.keys(e)}));const V=D;const z=a(j(["fantasy-land/map","map"],M,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return N(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return y((function(r,s){return r[s]=e(t[s]),r}),{},V(t));default:return P(e,t)}})));const U=a((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:S((function(e,r){return function(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,i=[];for(r=0;r<s;)i[i.length]=e[r],r+=1;for(r=0;r<n;)i[i.length]=t[r],r+=1;return i}(e,z(r,t))}),[],e)}));const G=a((function(e,t){var r=N(e,t);return N(e,(function(){return y(U,z(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const W=o((function(e){return G(e.length,e)}));const J=W(o((function(e){return!e})));function K(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function H(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}const Z="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const X=o((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Y(e,t,r,s){var n=K(e);function i(e,t){return Q(e,t,r.slice(),s.slice())}return!H((function(e,t){return!H(i,t,e)}),K(t),n)}function Q(e,t,r,s){if(Z(e,t))return!0;var n,i,o=X(e);if(o!==X(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(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||!Z(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Z(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=r.length-1;a>=0;){if(r[a]===e)return s[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Y(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&Y(e.values(),t.values(),r.concat([e]),s.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=V(e);if(c.length!==V(t).length)return!1;var u=r.concat([e]),l=s.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!R(p,t)||!Q(t[p],e[p],u,l))return!1;a-=1}return!0}const ee=a((function(e,t){return Q(e,t,[],[])}));const te=o((function(e){return function(){return e}}));const re=te(void 0);const se=ee(re());const ne=J(se);var ie=r(8326);function oe(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ae(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}const ce=a((function(e,t){return $(e.length,(function(){return e.apply(t,arguments)}))}));function ue(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)}function le(e,t,r,s){return e["@@transducer/result"](r[s](ce(e["@@transducer/step"],e),t))}const pe=w(ae,le,ue);var he=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const me=c((function(e,t,r){return pe("function"==typeof e?new he(e):e,t,r)}));function fe(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return g(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const de=c(fe("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const _e=o(fe("tail",de(1,1/0)));function ye(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return $(arguments[0].length,me(oe,arguments[0],_e(arguments)))}var ge=function(e,t){switch(arguments.length){case 0:return ge;case 1:return function t(r){return 0===arguments.length?t:Z(e,r)};default:return Z(e,t)}};const ve=ge;function be(e,t){return function(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(ee(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function we(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Ee=function(e){return(e<10?"0":"")+e};const xe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Ee(e.getUTCMonth()+1)+"-"+Ee(e.getUTCDate())+"T"+Ee(e.getUTCHours())+":"+Ee(e.getUTCMinutes())+":"+Ee(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Se(e){return"[object Object]"===Object.prototype.toString.call(e)}var je=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=A,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Pe(e){return function(t){return new je(e,t)}}const Oe=a(j(["fantasy-land/filter","filter"],Pe,(function(e,t){return Se(t)?y((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},V(t)):function(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}(e,t)})));const Ae=a((function(e,t){return Oe((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function ke(e,t){var r=function(r){var s=t.concat([e]);return be(r,s)?"<Circular>":ke(r,s)},s=function(e,t){return P((function(t){return we(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+P(r,e).join(", ")+"))";case"[object Array]":return"["+P(r,e).concat(s(e,Ae((function(e){return/^\d+$/.test(e)}),V(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):we(xe(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":we(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,V(e)).join(", ")+"}"}}const Me=o((function(e){return ke(e,[])}));function $e(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=l(n)?h(n,r):r[n]}return r}const Ie=c((function(e,t,r){return e($e(t,r))}));function Ne(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Re=a((function(e,t){return e&&t}));const Ce=a((function(e,t){return Ne(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:W(Re)(e,t)}));const Te=ee(null);const Fe=J(Te);function qe(e){return qe="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},qe(e)}const Be=function(e){return"object"===qe(e)};const Le=N(1,Ce(Fe,Be));const De=a((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Me(e),o=r(i,Me(t));return void 0!==o&&o===i?e:t}));const Ve=a((function(e,t){return z(m(e),t)}));const ze=o((function(e){return N(me(De,0,Ve("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const Ue=N(1,ye(X,ve("GeneratorFunction")));const Ge=N(1,ye(X,ve("AsyncFunction")));const We=ze([ye(X,ve("Function")),Ue,Ge]);var Je=ye(X,ve("Object")),Ke=ye(Me,ee(Me(Object))),He=Ie(Ce(We,Ke),["constructor"]);const Ze=N(1,(function(e){if(!Le(e)||!Je(e))return!1;var t=Object.getPrototypeOf(e);return!!Te(t)||He(t)}));class Xe extends ie.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Ye=Xe;class Qe extends ie.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const et=Qe;class tt extends ie.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(se(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const rt=tt;class st extends ie.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new ie.wE([e.start.row,e.start.column,e.start.char]),r=new ie.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const nt=st;class it extends ie.g${constructor(){super(),this.register("annotation",Ye),this.register("comment",et),this.register("parseResult",rt),this.register("sourceMap",nt)}}const ot=new it,at=e=>{const t=new it;return Ze(e)&&t.use(e),t},ct=ot;const ut=N(1,ye(X,ve("String"))),lt=r.p+"23aac571c96605dc25219087ad291441.wasm",pt=globalThis.fetch;We(pt)&&(globalThis.fetch=(...e)=>ut(e[0])&&e[0].endsWith("tree-sitter.wasm")?pt.apply(globalThis,[lt,_e(e)]):pt.apply(globalThis,e));var ht=r(3833),mt=r(1212);const ft=class extends mt{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class dt 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 _t=dt,yt=r.p+"64a30dfa8a51b6a090ebd363beeaad5d.wasm";let gt=null,vt=null;const bt=async e=>{if(null===gt&&null===vt)vt=ht.init().then((()=>ht.Language.load(yt))).then((e=>{const t=new ht;return t.setLanguage(e),t})).finally((()=>{vt=null})),gt=await vt;else if(null===gt&&null!==vt)gt=await vt;else if(null===gt)throw new _t("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return gt.parse(e)};const wt=class extends _t{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},Et=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},xt={},St=e=>null==e?void 0:e.type,jt=e=>"string"==typeof St(e),Pt=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Ot=(e,{visitFnGetter:t=Et,nodeTypeGetter:r=St,breakSymbol:s=xt,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,l,p,h,m,f){let d=u,_=!1;const y={...f,replaceWith(e,t){f.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(d),!1);if("function"==typeof a){const t=a.call(e[u],d,l,p,h,m,y);if("function"==typeof(null==t?void 0:t.then))throw new wt("Async visitor not supported in sync mode",{visitor:e[u],visitFn:a});if(t===i)c[u]=d;else if(t===s)c[u]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;d=t,_=!0}}}}return _?d:void 0},leave(n,o,u,l,p,h){let m=n;const f={...h,replaceWith(e,t){h.replaceWith(e,t),m=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(m),!0);if("function"==typeof a){const t=a.call(e[n],m,o,u,l,p,f);if("function"==typeof(null==t?void 0:t.then))throw new wt("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===m&&(c[n]=a)}}};Ot[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Et,nodeTypeGetter:r=St,breakSymbol:s=xt,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(u,l,p,h,m,f){let d=u,_=!1;const y={...f,replaceWith(e,t){f.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(d),!1);if("function"==typeof a){const t=await a.call(e[u],d,l,p,h,m,y);if(t===i)c[u]=d;else if(t===s)c[u]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;d=t,_=!0}}}}return _?d:void 0},async leave(n,o,u,l,p,h){let m=n;const f={...h,replaceWith(e,t){h.replaceWith(e,t),m=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(m),!0);if("function"==typeof a){const t=await a.call(e[n],m,o,u,l,p,f);if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===m&&(c[n]=a)}}};const At=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=xt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Et,nodeTypeGetter:c=St,nodePredicate:u=jt,nodeCloneFn:l=Pt,detectCycles:p=!0}={})=>{const h=r||{};let m,f,d=Array.isArray(e),_=[e],y=-1,g=[],v=e;const b=[],w=[];do{y+=1;const e=y===_.length;let r;const S=e&&0!==g.length;if(e){if(r=0===w.length?void 0:b.pop(),v=f,f=w.pop(),S)if(d){v=v.slice();let e=0;for(const[t,r]of g){const s=t-e;r===i?(v.splice(s,1),e+=1):v[s]=r}}else{v=l(v);for(const[e,t]of g)v[e]=t}y=m.index,_=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(r=d?y:_[y],v=f[r],v===i||void 0===v)continue;b.push(r)}let j;if(!Array.isArray(v)){var E;if(!u(v))throw new wt(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,v,r,f,b,w):f&&(f[r]=t),e||(v=t)}};j=i.call(t,v,r,f,b,w,n)}if("function"==typeof(null===(E=j)||void 0===E?void 0:E.then))throw new wt("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(j===n)break;if(j===o){if(!e){b.pop();continue}}else if(void 0!==j&&(g.push([r,j]),!e)){if(!u(j)){b.pop();continue}v=j}}var x;if(void 0===j&&S&&g.push([r,v]),!e)m={inArray:d,index:y,keys:_,edits:g,prev:m},d=Array.isArray(v),_=d?v:null!==(x=h[c(v)])&&void 0!==x?x:[],y=-1,g=[],f!==i&&void 0!==f&&w.push(f),f=v}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};function kt(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}At[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=xt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Et,nodeTypeGetter:c=St,nodePredicate:u=jt,nodeCloneFn:l=Pt,detectCycles:p=!0}={})=>{const h=r||{};let m,f,d=Array.isArray(e),_=[e],y=-1,g=[],v=e;const b=[],w=[];do{y+=1;const e=y===_.length;let r;const x=e&&0!==g.length;if(e){if(r=0===w.length?void 0:b.pop(),v=f,f=w.pop(),x)if(d){v=v.slice();let e=0;for(const[t,r]of g){const s=t-e;r===i?(v.splice(s,1),e+=1):v[s]=r}}else{v=l(v);for(const[e,t]of g)v[e]=t}y=m.index,_=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(r=d?y:_[y],v=f[r],v===i||void 0===v)continue;b.push(r)}let S;if(!Array.isArray(v)){if(!u(v))throw new wt(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,v,r,f,b,w):f&&(f[r]=t),e||(v=t)}};S=await i.call(t,v,r,f,b,w,n)}if(S===n)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&g.push([r,v]),!e)m={inArray:d,index:y,keys:_,edits:g,prev:m},d=Array.isArray(v),_=d?v:null!==(E=h[c(v)])&&void 0!==E?E:[],y=-1,g=[],f!==i&&void 0!==f&&w.push(f),f=v}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};var Mt=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=O,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=kt(this.xf["@@transducer/step"](e,!1))),e},e}();function $t(e){return function(t){return new Mt(e,t)}}const It=a(j(["all"],$t,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));const Nt=o((function(e){return N(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}))(a(be)),Rt=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ct=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Tt=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Ft=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ie.wE)&&t.classes.includes(e),qt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Bt=e=>e({hasMethod:Rt,hasBasicElementProps:Ct,primitiveEq:Tt,isElementType:qt,hasClass:Ft}),Lt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.Hg||e(r)&&t(void 0,r))),Dt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.Om||e(r)&&t("string",r))),Vt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.kT||e(r)&&t("number",r))),zt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.Os||e(r)&&t("null",r))),Ut=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.bd||e(r)&&t("boolean",r))),Gt=Bt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof ie.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),Wt=Bt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof ie.wE&&!(s instanceof ie.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),Jt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ie.Pr||e(s)&&t("member",s)&&r(void 0,s))),Kt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ie.Ft||e(s)&&t("link",s)&&r(void 0,s))),Ht=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ie.sI||e(s)&&t("ref",s)&&r(void 0,s))),Zt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ye||e(s)&&t("annotation",s)&&r("array",s))),Xt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof et||e(s)&&t("comment",s)&&r("string",s))),Yt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rt||e(s)&&t("parseResult",s)&&r("array",s))),Qt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nt||e(s)&&t("sourceMap",s)&&r("array",s))),er=e=>qt("object",e)||qt("array",e)||qt("boolean",e)||qt("number",e)||qt("string",e)||qt("null",e)||qt("member",e),tr=e=>Qt(e.meta.get("sourceMap")),rr=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Wt(r)&&It(Nt(r.toValue()),e)},sr=(e,t)=>0===e.length||It(Nt(t.classes.toValue()),e);const nr=class extends wt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const ir=class extends nr{};const or=class extends nr{},ar=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof ie.KeyValuePair){const{key:t,value:n}=e,i=Lt(t)?ar(t,s):t,o=Lt(n)?ar(n,s):n,a=new ie.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof ie.ot){const t=e=>ar(e,s),n=[...e].map(t),i=new ie.ot(n);return r.set(e,i),i}if(e instanceof ie.G6){const t=e=>ar(e,s),n=[...e].map(t),i=new ie.G6(n);return r.set(e,i),i}if(Lt(e)){const t=lr(e);if(r.set(e,t),e.content)if(Lt(e.content))t.content=ar(e.content,s);else if(e.content instanceof ie.KeyValuePair)t.content=ar(e.content,s);else if(Array.isArray(e.content)){const r=e=>ar(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new ir("Value provided to cloneDeep function couldn't be cloned",{value:e})};ar.safe=e=>{try{return ar(e)}catch{return e}};const cr=e=>{const{key:t,value:r}=e;return new ie.KeyValuePair(t,r)},ur=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=ar(e.meta)),e.attributes.length>0&&(t._attributes=ar(e.attributes)),Lt(e.content)){const r=e.content;t.content=ur(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ie.KeyValuePair?t.content=cr(e.content):t.content=e.content;return t},lr=e=>{if(e instanceof ie.KeyValuePair)return cr(e);if(e instanceof ie.ot)return(e=>{const t=[...e];return new ie.ot(t)})(e);if(e instanceof ie.G6)return(e=>{const t=[...e];return new ie.G6(t)})(e);if(Lt(e))return ur(e);throw new or("Value provided to cloneShallow function couldn't be cloned",{value:e})};lr.safe=e=>{try{return lr(e)}catch{return e}};const pr=e=>Gt(e)?"ObjectElement":Wt(e)?"ArrayElement":Jt(e)?"MemberElement":Dt(e)?"StringElement":Ut(e)?"BooleanElement":Vt(e)?"NumberElement":zt(e)?"NullElement":Kt(e)?"LinkElement":Ht(e)?"RefElement":void 0,hr=e=>Lt(e)?lr(e):Pt(e),mr=ye(pr,ut),fr={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const dr=(e,t,{keyMap:r=fr,...s}={})=>At(e,t,{keyMap:r,nodeTypeGetter:pr,nodePredicate:mr,nodeCloneFn:hr,...s});dr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=fr,...s}={})=>At[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:pr,nodePredicate:mr,nodeCloneFn:hr,...s});const _r=c((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})R(s,t)&&(n[s]=R(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)R(s,r)&&!R(s,n)&&(n[s]=r[s]);return n}));const yr=c((function e(t,r,s){return _r((function(r,s,n){return Se(s)&&Se(n)?e(t,s,n):t(r,s,n)}),r,s)}));const gr=a((function(e,t){return yr((function(e,t,r){return r}),e,t)}));const vr=a($e);const br=de(0,-1);const wr=a((function(e,t){return e.apply(this,t)}));const Er=J(We);var xr=o((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():g(e)?[]:p(e)?"":Se(e)?{}:T(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 Sr=xr;const jr=o((function(e){return null!=e&&ee(e,Sr(e))}));const Pr=N(1,We(Array.isArray)?Array.isArray:ye(X,ve("Array")));const Or=Ce(Pr,jr);const Ar=N(3,(function(e,t,r){var s=vr(e,r),n=vr(br(e),r);if(!Er(s)&&!Or(e)){var i=ce(s,n);return wr(i,t)}})),kr=()=>({predicates:{...e},namespace:ct}),Mr={toolboxCreator:kr,visitorOptions:{nodeTypeGetter:pr,exposeEdits:!0}},$r=(e,t,r={})=>{if(0===t.length)return e;const s=gr(Mr,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=Ot(a.map(f({},"visitor")),{...i});a.forEach(Ar(["pre"],[]));const u=dr(e,c,i);return a.forEach(Ar(["post"],[])),u};$r[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=gr(Mr,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=Ot[Symbol.for("nodejs.util.promisify.custom")],u=dr[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(f({},"visitor")),{...i});await Promise.allSettled(a.map(Ar(["pre"],[])));const p=await u(e,l,i);return await Promise.allSettled(a.map(Ar(["post"],[]))),p};const Ir=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return Lt(e)&&(e.meta.length>0&&(s.meta=ar(e.meta)),e.attributes.length>0&&(s.attributes=ar(e.attributes))),$r(s,r,{toolboxCreator:kr,visitorOptions:{nodeTypeGetter:pr}})},Nr=e=>(t,r={})=>Ir(t,{...r,Type:e});ie.Sh.refract=Nr(ie.Sh),ie.wE.refract=Nr(ie.wE),ie.Om.refract=Nr(ie.Om),ie.bd.refract=Nr(ie.bd),ie.Os.refract=Nr(ie.Os),ie.kT.refract=Nr(ie.kT),ie.Ft.refract=Nr(ie.Ft),ie.sI.refract=Nr(ie.sI),Ye.refract=Nr(Ye),et.refract=Nr(et),rt.refract=Nr(rt),nt.refract=Nr(nt);const Rr=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}pushChildren(...e){this.children.push(...e)}};class Cr{static toPosition(e){const t=new ie.wE([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new ie.wE([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),r.classes.push("position"),[t,r]}sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(er);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}enter(e){if(e instanceof Rr&&!e.isNamed&&e.isMissing){const t=e.type||e.text,r=new Ye(`(Missing ${t})`);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}document(e){const t=new rt;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new ie.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new ie.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new ie.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new ie.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new ie.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ie.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ie.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ie.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,r,s){const n=!e.hasError,i=e.text,o=new Ye(n?`(Unexpected ${i})`:`(Error ${i})`);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===s.length){const e=new rt;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new nt,s=Cr.toPosition(e);if(null!==s){const[e,t]=s;r.push(e),r.push(t)}r.astNode=e,t.meta.set("sourceMap",r)}}const Tr=Cr;class Fr{cursor;constructor(e){this.cursor=e}document(){return new Rr(this.cursor)}object(){return new Rr(this.cursor).setFieldName(this.cursor)}array(){return new Rr(this.cursor).setFieldName(this.cursor)}pair(){return new Rr(this.cursor)}string(){return new Rr(this.cursor).setFieldName(this.cursor)}number(){return new Rr(this.cursor).setFieldName(this.cursor)}null(){return new Rr(this.cursor).setFieldName(this.cursor)}true(){return new Rr(this.cursor).setFieldName(this.cursor)}false(){return new Rr(this.cursor).setFieldName(this.cursor)}ERROR(){return new Rr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Rr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Fr(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Fr(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const qr=Fr,Br={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...fr},Lr=e=>Yt(e)?"ParseResultElement":Lt(e)?pr(e):St(e),Dr=e=>Lt(e)||jt(e),Vr=(e,{sourceMap:t=!1}={})=>{const r=new Tr,s=e.walk(),n=new qr(s),[i]=Array.from(n);return At(i,r,{keyMap:Br,nodeTypeGetter:Lr,nodePredicate:Dr,state:{sourceMap:t}})};class zr{static type="point";type=zr.type;row;column;char;constructor({row:e,column:t,char:r}){this.row=e,this.column=t,this.char=r}}class Ur{static type="position";type=Ur.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const Gr=Ur;const Wr=o((function(e){return h(0,e)}));const Jr=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:r=!1}={}){this.type=this.constructor.type,this.isMissing=r,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}};const Kr=class extends Jr{};const Hr=class extends Kr{static type="document";get child(){return Wr(this.children)}};const Zr=class extends Jr{static type="parseResult";get rootNode(){return Wr(this.children)}};const Xr=class extends Jr{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}},Yr=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Qr=e=>Yr("string",e),es=e=>Yr("false",e),ts=e=>Yr("true",e),rs=e=>Yr("null",e),ss=e=>Yr("number",e),ns=e=>Yr("array",e),is=e=>Yr("object",e),os=e=>Yr("property",e),as=e=>Yr("key",e);const cs=class extends Kr{static type="object";get properties(){return this.children.filter(os)}};const us=class extends Kr{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>Yr("stringContent",e))(e)||(e=>Yr("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}};const ls=class extends us{static type="key"};const ps=class extends Kr{static type="property";get key(){return this.children.find(as)}get value(){return this.children.find((e=>es(e)||ts(e)||rs(e)||ss(e)||Qr(e)||ns(e)||is(e)))}};const hs=class extends Kr{static type="array";get items(){return this.children.filter((e=>es(e)||ts(e)||rs(e)||ss(e)||Qr(e)||ns(e)||is))}};const ms=class extends Kr{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const fs=class extends ms{static type="stringContent"};const ds=class extends ms{static type="number"};const _s=class extends ms{static type="null"};const ys=class extends ms{static type="true"};const gs=class extends ms{static type="false"};const vs=class extends Jr{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}},bs={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class ws{static toPosition(e){const t=new zr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=new zr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new Gr({start:t,end:r})}document={enter:e=>{const t=ws.toPosition(e);return new Hr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Zr({children:[e]})};enter(e){if(e instanceof Rr&&!e.isNamed){const t=ws.toPosition(e),r=e.type||e.text,{isMissing:s}=e;return new Xr({value:r,position:t,isMissing:s})}}object(e){const t=ws.toPosition(e);return new cs({children:e.children,position:t,isMissing:e.isMissing})}pair(e){const t=ws.toPosition(e),r=e.children.slice(1),{keyNode:s}=e,n=new ls({children:(null==s?void 0:s.children)||[],position:null!=s?ws.toPosition(s):void 0,isMissing:null!=s&&s.isMissing});return new ps({children:[n,...r],position:t,isMissing:e.isMissing})}array(e){const t=ws.toPosition(e);return new hs({children:e.children,position:t,isMissing:e.isMissing})}string(e){const t=ws.toPosition(e),r=new fs({value:JSON.parse(e.text)});return new us({children:[r],position:t,isMissing:e.isMissing})}number(e){const t=ws.toPosition(e),r=e.text;return new ds({value:r,position:t,isMissing:e.isMissing})}null(e){const t=ws.toPosition(e),r=e.text;return new _s({value:r,position:t,isMissing:e.isMissing})}true(e){const t=ws.toPosition(e),r=e.text;return new ys({value:r,position:t,isMissing:e.isMissing})}false(e){const t=ws.toPosition(e),r=e.text;return new gs({value:r,position:t,isMissing:e.isMissing})}ERROR(e,t,r,s){const n=ws.toPosition(e),i=new vs({children:e.children,position:n,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===s.length?new Zr({children:[i]}):i}}const Es=ws,xs={[Zr.type]:["children"],[Hr.type]:["children"],[cs.type]:["children"],[ps.type]:["children"],[hs.type]:["children"],[vs.type]:["children"],...fr},Ss=e=>Yt(e)?"ParseResultElement":Lt(e)?pr(e):St(e),js=e=>Lt(e)||jt(e);const Ps=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(er);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}document(e){const t=new rt;return t._content=e.children,t}object(e){const t=new ie.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new ie.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new ie.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new ie.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new ie.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new ie.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ie.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ie.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ie.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,r=new Ye(t);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}error(e,t,r,s){const n=e.isUnexpected?`(Unexpected ${e.value})`:`(Error ${e.value})`,i=new Ye(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===s.length){const e=new rt;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new nt;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)}},Os=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),s=new qr(r),[n]=Array.from(s),i=new Es,o=new Ps,a=At(n,i,{keyMap:bs,state:{sourceMap:t}});return At(a.rootNode,o,{keyMap:xs,nodeTypeGetter:Ss,nodePredicate:js,state:{sourceMap:t}})},As=(at(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);class ks extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Ms=ks;class $s extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get 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 Is=$s;class Ns extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Rs=Ns;class Cs extends ie.Sh{constructor(e,t,r){super(e,t,r),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 Ts=Cs;class Fs extends ie.Sh{constructor(e,t,r){super(e,t,r),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 qs=Fs;class Bs extends ie.Sh{constructor(e,t,r){super(e,t,r),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 Ls=Bs;class Ds extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Vs=Ds;class zs extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ie.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ie.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(zs.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Us=zs;class Gs extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get 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 Ws=Gs;class Js extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Ks=Js;class Hs extends ie.Sh{constructor(e,t,r){super(e,t,r),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 Dt(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Dt(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 Zs=Hs;class Xs extends ie.Sh{constructor(e,t,r){super(e,t,r),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 Ys=Xs;class Qs extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const en=Qs;class tn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const rn=tn;class sn extends ie.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const nn=sn;class on extends ie.Sh{constructor(e,t,r){super(e,t,r),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 an=on;class cn extends ie.Sh{constructor(e,t,r){super(e,t,r),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 ie.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 un=cn;class ln extends ie.Sh{constructor(e,t,r){super(e,t,r),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 ie.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ie.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(ln.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const pn=ln;class hn extends ie.Sh{constructor(e,t,r){super(e,t,r),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 mn=hn;class fn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const dn=fn;class _n extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const yn=_n;class gn extends ie.Sh{constructor(e,t,r){super(e,t,r),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 ie.bd(!1)}set required(e){this.set("required",e)}}const vn=gn;class bn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const wn=bn;class En extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const xn=En;const Sn=class extends _t{};class jn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Pn=jn;class On extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const An=On;class kn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Mn=kn;class $n extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const In=$n;const Nn=a((function(e,t){return y((function(r,s){return r[s]=e(t[s],s,t),r}),{},V(t))}));const Rn=o((function(e){return null==e}));var Cn=a((function(e,t){if(0===e.length||Rn(t))return!1;for(var r=t,s=0;s<e.length;){if(Rn(r)||!R(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));const Tn=Cn;var Fn=a((function(e,t){return Tn([e],t)}));const qn=Fn;const Bn=c((function(e,t,r){return e(m(t,r))}));const Ln=o((function(e){return N(e.length,e)}));const Dn=a((function(e,t){return N(e+1,(function(){var r=arguments[e];if(null!=r&&Ne(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Me(r)+' does not have a method named "'+t+'"')}))}));const Vn=Dn(1,"split");var zn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=A,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 Un(e){return function(t){return new zn(e,t)}}const Gn=a(j(["dropWhile"],Un,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return de(r,1/0,t)})));const Wn=Dn(1,"join");const Jn=Ln((function(e,t){return ye(Vn(""),Gn(Nt(e)),Wn(""))(t)})),Kn=(e,t)=>{const r=u(e,t);return Nn((e=>{if(Ze(e)&&qn("$ref",e)&&Bn(ut,"$ref",e)){const t=vr(["$ref"],e),s=Jn("#/",t);return vr(s.split("/"),r)}return Ze(e)?Kn(e,r):e}),e)};const Hn=function(){return!0},Zn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:pr(e),Xn={EphemeralObject:["content"],EphemeralArray:["content"],...fr},Yn=(e,t,{keyMap:r=Xn,...s}={})=>dr(e,t,{keyMap:r,nodeTypeGetter:Zn,nodePredicate:Hn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});Yn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Xn,...r}={})=>dr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Zn,nodePredicate:Hn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Qn=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 ei=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 ti{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new ei(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 Qn(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Dt(e.href)?e.href.toValue():""}}const ri=e=>Lt(e)?Dt(e)||Vt(e)||Ut(e)||zt(e)?e.toValue():Yn(e,new ti):e,si=e=>{const t=e.meta.length>0?ar(e.meta):void 0,r=e.attributes.length>0?ar(e.attributes):void 0;return new e.constructor(void 0,t,r)},ni=(e,t)=>t.clone&&t.isMergeableElement(e)?ci(si(e),e,t):e,ii=e=>"function"!=typeof e.customMetaMerge?e=>ar(e):e.customMetaMerge,oi=e=>"function"!=typeof e.customAttributesMerge?e=>ar(e):e.customAttributesMerge,ai={clone:!0,isMergeableElement:e=>Gt(e)||Wt(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>ni(e,r))),objectElementMerge:(e,t,r)=>{const s=Gt(e)?si(e):si(t);return Gt(e)&&e.forEach(((e,t,n)=>{const i=lr(n);i.value=ni(e,r),s.content.push(i)})),t.forEach(((t,n,i)=>{const o=ri(n);let a;if(Gt(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);a=lr(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return ci;const r=t.customMerge(e,t);return"function"==typeof r?r:ci})(n,r)(s,t)}else a=lr(i),a.value=ni(t,r);s.remove(o),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function ci(e,t,r){var s,n,i;const o={...ai,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:ai.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:ai.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:ai.objectElementMerge;const a=Wt(t);if(!(a===Wt(e)))return ni(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=ii(o)(e.meta,t.meta),c.attributes=oi(o)(e.attributes,t.attributes),c}ci.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ie.Sh:e.reduce(((e,r)=>ci(e,r,t)),si(e[0]))};const ui=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ci(t.meta,e.meta),tr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ci(t.attributes,e.attributes))}};const li=class extends ui{enter(e){return this.element=ar(e),xt}},pi=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},hi=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:hi(r,[...t,r])},mi=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>hi(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),s=e[0];if(!e.every((e=>e===s)))break;t=s}return t})(...e))&&void 0!==s?s:Object.prototype,i=Object.create(n),o=hi(n);for(let t of e){let e=hi(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(pi(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},fi=e=>e.filter(((t,r)=>e.indexOf(t)==r)),di=(e,t)=>{const r=t.map((e=>hi(e)));let s=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][s];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}s++}},_i=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(di(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==di(s,e)||void 0!==t[s],get:(r,s)=>(di(s,e)||t)[s],set(t,r,s){const n=di(r,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[r]=s,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),yi=null,gi="copy",vi="copy",bi="deep",wi=new WeakMap,Ei=e=>wi.get(e),xi=(e,t)=>{var r,s;const n=fi([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=fi([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(s=null==t?void 0:t[o])&&void 0!==s?s:[]]);return i},Si=(e,t)=>{var r,s,n,i;return{property:xi(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:xi(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},ji=(e,t)=>{var r,s,n,i,o,a;return{class:fi([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:Si(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:Si(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Pi=new Map,Oi=(...e)=>{const t=((...e)=>{var t;const r=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const n=[...hi(e.prototype).map((e=>e.constructor)),...null!==(t=Ei(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of n)s.add(e);r.add(e),s.delete(e)}return[...r]})(...e).map((e=>Pi.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>ji(e,t)))},Ai=e=>{let t=Pi.get(e);return t||(t={},Pi.set(e,t)),t};function ki(...e){var t,r,s;const n=e.map((e=>e.prototype)),i=yi;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t={[i]:function(...t){for(let r of e)r.apply(this,t)}};n.push(t)}function o(...t){for(const r of e)pi(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===vi?mi(n,o):(a=n,c=o,_i([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===gi?mi(e,null,["prototype"]):_i(e,Function.prototype));let u=o;if("none"!==bi){const n="deep"===bi?Oi(...e):((...e)=>{const t=e.map((e=>Ai(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>ji(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}Mi(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},u),Mi(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},u.prototype)}var l,p;return l=u,p=e,wi.set(l,p),u}const Mi=(e,t)=>{const r=e.property,s=e.method;if(r)for(let e in r)for(let s of r[e])s(t,e);if(s)for(let e in s)for(let r of s[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const $i=a((function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r}));const Ii=class extends ui{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return $i(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=vr(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ie(We,["visitors",...e],this.specObj)?vr(["visitors",...e],this.specObj):vr(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof li&&(null==s?void 0:s.constructor)===li?ar(t):(dr(t,s,r),s.element)}};const Ni=class extends Ii{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(Dt(s)&&r.includes(ri(s))&&!this.ignoredFields.includes(ri(s))){const r=this.toRefractedElement([...t,"fixedFields",ri(s)],e),i=new ie.Pr(ar(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(ri(s))||this.element.content.push(ar(n))})),this.copyMetaAndAttributes(e,this.element),xt}};class Ri extends(ki(Ni,li)){constructor(e){super(e),this.element=new Pn,this.specPath=te(["document","objects","JSONSchema"])}}const Ci=Ri;const Ti=class{parent;constructor({parent:e}){this.parent=e}},Fi=e=>Gt(e)&&e.hasKey("$ref");class qi extends(ki(Ii,Ti,li)){ObjectElement(e){const t=Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),xt}ArrayElement(e){return this.element=new ie.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xt}}const Bi=qi;const Li=class extends li{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Di=o((function(e){return N(me(De,0,Ve("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Vi=o((function(e){return!jr(e)}));const zi=a((function(e,t){return e||t}));var Ui=J(N(1,Ce(Fe,a((function(e,t){return Ne(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:W(zi)(e,t)}))(Be,We))));const Gi=Di([ut,Ui,Vi]);const Wi=function(){return!1};const Ji=class extends Ii{specPath;ignoredFields;fieldPatternPredicate=Wi;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(ri(t))&&this.fieldPatternPredicate(ri(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new ie.Pr(ar(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ri(t))||this.element.content.push(ar(r))})),this.copyMetaAndAttributes(e,this.element),xt}};const Ki=class extends Ji{constructor(e){super(e),this.fieldPatternPredicate=Gi}};class Hi extends(ki(Ki,Ti,li)){constructor(e){super(e),this.element=new ie.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Zi=Hi;class Xi extends(ki(Ki,Ti,li)){constructor(e){super(e),this.element=new ie.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Yi=Xi;class Qi extends(ki(Ki,Ti,li)){constructor(e){super(e),this.element=new ie.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const eo=Qi;const to=class extends li{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const ro=class extends li{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 so extends(ki(Ii,Ti,li)){constructor(e){super(e),this.element=new ie.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xt}}const no=so;class io extends(ki(Ii,Ti,li)){constructor(e){super(e),this.element=new ie.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xt}}const oo=io;class ao extends(ki(Ii,Ti,li)){constructor(e){super(e),this.element=new ie.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xt}}const co=ao;class uo extends(ki(Ki,Ti,li)){constructor(e){super(e),this.element=new ie.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const lo=uo;class po extends(ki(Ii,Ti,li)){constructor(e){super(e),this.element=new ie.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),xt}}const ho=po;class mo extends(ki(Ni,li)){constructor(e){super(e),this.element=new An,this.specPath=te(["document","objects","JSONReference"])}ObjectElement(e){const t=Ni.prototype.ObjectElement.call(this,e);return Dt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const fo=mo;const _o=class extends li{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const yo=c((function(e,t,r){return N(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const go=o((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var vo=a((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const bo=vo;const wo=o(kt);const Eo=J(Rn);const xo=Ce(Pr,Vi);function So(e){return function(e){if(Array.isArray(e))return jo(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 jo(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jo(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 jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}var Po=ye(bo(go((function(e,t){return e.length>t.length}))),Wr,m("length")),Oo=Ln((function(e,t,r){var s=r.apply(void 0,So(e));return Eo(s)?wo(s):t}));const Ao=yo(xo,(function(e){var t=Po(e);return N(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return me(Oo(r),void 0,e)}))}),re);const ko=class extends Ii{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>yo(e,te(t),re))),r=Ao(t)(e);return this.element=this.toRefractedElement(r,e),xt}};const Mo=class extends ko{constructor(e){super(e),this.alternator=[{predicate:Fi,specPath:["document","objects","JSONReference"]},{predicate:Hn,specPath:["document","objects","JSONSchema"]}]}};class $o extends(ki(Ni,li)){constructor(e){super(e),this.element=new Mn,this.specPath=te(["document","objects","Media"])}}const Io=$o;class No extends(ki(Ni,li)){constructor(e){super(e),this.element=new In,this.specPath=te(["document","objects","LinkDescription"])}}const Ro={visitors:{value:li,JSONSchemaOrJSONReferenceVisitor:Mo,document:{objects:{JSONSchema:{$visitor:Ci,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:Mo,items:Bi,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Li,properties:Zi,additionalProperties:Mo,patternProperties:Yi,dependencies:eo,enum:to,type:ro,allOf:no,anyOf:oo,oneOf:co,not:Mo,definitions:lo,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:ho,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:fo,fixedFields:{$ref:_o}},Media:{$visitor:Io,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:No,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Mo,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Mo}}}}}},Co=e=>{if(Lt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},To={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...fr},Fo=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pn||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),qo=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof An||e(s)&&t("JSONReference",s)&&r("object",s))),Bo=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Mn||e(s)&&t("media",s)&&r("object",s))),Lo=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof In||e(s)&&t("linkDescription",s)&&r("object",s))),Do={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Pn),t.register("jSONReference",An),t.register("media",Mn),t.register("linkDescription",In),t}},Vo=()=>{const e=at(Do);return{predicates:{...t,isStringElement:Dt},namespace:e}},zo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Ro}={})=>{const n=(0,ie.e)(e),i=Kn(s),o=new(vr(t,i))({specObj:i});return dr(n,o),$r(o.element,r,{toolboxCreator:Vo,visitorOptions:{keyMap:To,nodeTypeGetter:Co}})},Uo=e=>(t,r={})=>zo(t,{specPath:e,...r});Pn.refract=Uo(["visitors","document","objects","JSONSchema","$visitor"]),An.refract=Uo(["visitors","document","objects","JSONReference","$visitor"]),Mn.refract=Uo(["visitors","document","objects","Media","$visitor"]),In.refract=Uo(["visitors","document","objects","LinkDescription","$visitor"]);const Go=class extends Pn{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Sn("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Sn("idProp setter in Schema class is not not supported.")}get $schema(){throw new Sn("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Sn("$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 Sn("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Sn("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Sn("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Sn("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 Sn("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Sn("definitions setter in Schema class is not not supported.")}get base(){throw new Sn("base getter in Schema class is not not supported.")}set base(e){throw new Sn("base setter in Schema class is not not supported.")}get links(){throw new Sn("links getter in Schema class is not not supported.")}set links(e){throw new Sn("links setter in Schema class is not not supported.")}get media(){throw new Sn("media getter in Schema class is not not supported.")}set media(e){throw new Sn("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 Wo extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Jo=Wo;class Ko extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Ho=Ko;class Zo extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get 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 Xo=Zo;class Yo extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Qo=Yo;class ea extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const ta=ea;class ra extends ie.Sh{constructor(e,t,r){super(e,t,r),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 sa=ra;const na=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ci(t.meta,e.meta),tr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ci(t.attributes,e.attributes))}};const ia=class extends na{enter(e){return this.element=ar(e),xt}};const oa=class extends na{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:r,openApiSemanticElement:s,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=r,this.openApiSemanticElement=s,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return $i(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=vr(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ie(We,["visitors",...e],this.specObj)?vr(["visitors",...e],this.specObj):vr(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof ia&&(null==s?void 0:s.constructor)===ia?ar(t):(dr(t,s,r),s.element)}};var aa=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=A,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?kt(r):r},e}();function ca(e){return function(t){return new aa(e,t)}}const ua=a(j(["take"],ca,(function(e,t){return de(0,e<0?1/0:e,t)})));const la=a((function(e,t){return ee(ua(e.length,t),e)})),pa=e=>Gt(e)&&e.hasKey("$ref"),ha=Gt,ma=Gt,fa=e=>Dt(e.key)&&la("x-",ri(e.key));const da=class extends oa{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=fa;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(Dt(s)&&r.includes(ri(s))&&!this.ignoredFields.includes(ri(s))){const r=this.toRefractedElement([...t,"fixedFields",ri(s)],e),i=new ie.Pr(ar(s),r);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(ri(s))||this.element.content.push(ar(n))})),this.copyMetaAndAttributes(e,this.element),xt}};class _a extends(ki(da,ia)){constructor(e){super(e),this.element=new an,this.specPath=te(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return da.prototype.ObjectElement.call(this,e)}}const ya=_a;class ga extends(ki(oa,ia)){StringElement(e){const t=new nn(ri(e));return this.copyMetaAndAttributes(e,t),this.element=t,xt}}const va=ga;const ba=class extends oa{MemberElement(e){return this.element=ar(e),this.element.classes.push("specification-extension"),xt}};class wa extends(ki(da,ia)){constructor(e){super(e),this.element=new Ws,this.specPath=te(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Ea=wa;const xa=class extends ia{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Sa extends(ki(da,ia)){constructor(e){super(e),this.element=new Rs,this.specPath=te(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const ja=Sa;class Pa extends(ki(da,ia)){constructor(e){super(e),this.element=new Ks,this.specPath=te(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Oa=Pa;class Aa extends(ki(da,ia)){constructor(e){super(e),this.element=new Zs,this.specPath=te(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return(Dt(this.element.operationId)||Dt(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const ka=Aa;const Ma=class extends ia{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const $a=class extends ia{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Ia=class extends oa{specPath;ignoredFields;fieldPatternPredicate=Wi;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=fa;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(ri(t))&&this.fieldPatternPredicate(ri(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new ie.Pr(ar(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ri(t))||this.element.content.push(ar(r))})),this.copyMetaAndAttributes(e,this.element),xt}};const Na=class extends Ia{constructor(e){super(e),this.fieldPatternPredicate=Gi}};class Ra extends ie.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Ra.primaryClass)}}const Ca=Ra;class Ta extends(ki(Na,ia)){constructor(e){super(e),this.element=new Ca,this.specPath=te(["value"])}}const Fa=Ta;class qa extends(ki(da,ia)){constructor(e){super(e),this.element=new Xo,this.specPath=te(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Ba=qa;const La=class extends ia{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Da extends ie.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(Da.primaryClass)}}const Va=Da;class za extends(ki(oa,ia)){constructor(e){super(e),this.element=new Va}ArrayElement(e){return e.forEach((e=>{const t=ha(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xt}}const Ua=za;class Ga extends(ki(da,ia)){constructor(e){super(e),this.element=new Qo,this.specPath=te(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Wa=Ga;class Ja extends ie.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(Ja.primaryClass)}}const Ka=Ja;class Ha extends(ki(Na,ia)){constructor(e){super(e),this.element=new Ka,this.specPath=te(["document","objects","ServerVariable"])}}const Za=Ha;class Xa extends(ki(da,ia)){constructor(e){super(e),this.element=new Ys,this.specPath=te(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const Ya=Xa;const Qa=class extends oa{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>yo(e,te(t),re))),r=Ao(t)(e);return this.element=this.toRefractedElement(r,e),xt}},ec=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ms||e(s)&&t("callback",s)&&r("object",s))),tc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Is||e(s)&&t("components",s)&&r("object",s))),rc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Rs||e(s)&&t("contact",s)&&r("object",s))),sc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ls||e(s)&&t("example",s)&&r("object",s))),nc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vs||e(s)&&t("externalDocumentation",s)&&r("object",s))),ic=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Us||e(s)&&t("header",s)&&r("object",s))),oc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ws||e(s)&&t("info",s)&&r("object",s))),ac=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ks||e(s)&&t("license",s)&&r("object",s))),cc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zs||e(s)&&t("link",s)&&r("object",s))),uc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nn||e(s)&&t("openapi",s)&&r("string",s))),lc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof an||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n))),pc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof un||e(s)&&t("operation",s)&&r("object",s))),hc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pn||e(s)&&t("parameter",s)&&r("object",s))),mc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mn||e(s)&&t("pathItem",s)&&r("object",s))),fc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof dn||e(s)&&t("paths",s)&&r("object",s))),dc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yn||e(s)&&t("reference",s)&&r("object",s))),_c=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vn||e(s)&&t("requestBody",s)&&r("object",s))),yc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wn||e(s)&&t("response",s)&&r("object",s))),gc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xn||e(s)&&t("responses",s)&&r("object",s))),vc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Go||e(s)&&t("schema",s)&&r("object",s))),bc=e=>Ut(e)&&e.classes.includes("boolean-json-schema"),wc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jo||e(s)&&t("securityRequirement",s)&&r("object",s))),Ec=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ho||e(s)&&t("securityScheme",s)&&r("object",s))),xc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xo||e(s)&&t("server",s)&&r("object",s))),Sc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qo||e(s)&&t("serverVariable",s)&&r("object",s))),jc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ys||e(s)&&t("mediaType",s)&&r("object",s))),Pc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Va||e(n)&&t("array",n)&&r("array",n)&&s("servers",n)));class Oc extends(ki(Qa,ia)){constructor(e){super(e),this.alternator=[{predicate:pa,specPath:["document","objects","Reference"]},{predicate:Hn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Qa.prototype.enter.call(this,e);return dc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Ac=Oc;class kc extends(ki(Na,ia)){constructor(e){super(e),this.element=new ie.Sh,this.element.classes.push("examples"),this.specPath=e=>pa(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Mc=kc;class $c extends ie.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push($c.primaryClass),this.classes.push("examples")}}const Ic=$c;const Nc=class extends Mc{constructor(e){super(e),this.element=new Ic}};class Rc extends ie.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(Rc.primaryClass)}}const Cc=Rc;class Tc extends(ki(Na,ia)){constructor(e){super(e),this.element=new Cc,this.specPath=te(["document","objects","Encoding"])}}const Fc=Tc;class qc extends(ki(Na,ia)){constructor(e){super(e),this.element=new Jo,this.specPath=te(["value"])}}const Bc=qc;class Lc extends ie.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Lc.primaryClass)}}const Dc=Lc;class Vc extends(ki(oa,ia)){constructor(e){super(e),this.element=new Dc}ArrayElement(e){return e.forEach((e=>{if(Gt(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(ar(e))})),this.copyMetaAndAttributes(e,this.element),xt}}const zc=Vc;class Uc extends(ki(da,ia)){constructor(e){super(e),this.element=new Is,this.specPath=te(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Gc=Uc;class Wc extends(ki(da,ia)){constructor(e){super(e),this.element=new ta,this.specPath=te(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Jc=Wc;class Kc extends(ki(da,ia)){constructor(e){super(e),this.element=new yn,this.specPath=te(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return Dt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Hc=Kc;const Zc=class extends ia{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Xc extends(ki(da,ia)){constructor(e){super(e),this.element=new pn,this.specPath=te(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter(jc).forEach(((e,t)=>{e.setMetaProperty("media-type",ri(t))})),t}}const Yc=Xc;class Qc extends(ki(Qa,ia)){constructor(e){super(e),this.alternator=[{predicate:pa,specPath:["document","objects","Reference"]},{predicate:Hn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Qa.prototype.enter.call(this,e);return dc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const eu=Qc;class tu extends(ki(da,ia)){constructor(e){super(e),this.element=new Us,this.specPath=te(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const ru=tu;class su extends(ki(Qa,ia)){constructor(e){super(e),this.alternator=[{predicate:pa,specPath:["document","objects","Reference"]},{predicate:Hn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Qa.prototype.enter.call(this,e);return dc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const nu=su;class iu extends ie.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(iu.primaryClass),this.classes.push("examples")}}const ou=iu;const au=class extends Mc{constructor(e){super(e),this.element=new ou}};class cu extends(ki(Na,ia)){constructor(e){super(e),this.element=new ie.Sh,this.element.classes.push("content"),this.specPath=te(["document","objects","MediaType"])}}const uu=cu;class lu extends ie.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(lu.primaryClass),this.classes.push("content")}}const pu=lu;const hu=class extends uu{constructor(e){super(e),this.element=new pu}};class mu extends(ki(da,ia)){constructor(e){super(e),this.element=new Go,this.specPath=te(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const fu=mu,{allOf:du}=Ro.visitors.document.objects.JSONSchema.fixedFields;const _u=class extends du{ArrayElement(e){const t=du.prototype.ArrayElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{anyOf:yu}=Ro.visitors.document.objects.JSONSchema.fixedFields;const gu=class extends yu{ArrayElement(e){const t=yu.prototype.ArrayElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{oneOf:vu}=Ro.visitors.document.objects.JSONSchema.fixedFields;const bu=class extends vu{ArrayElement(e){const t=vu.prototype.ArrayElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{items:wu}=Ro.visitors.document.objects.JSONSchema.fixedFields;const Eu=class extends wu{ObjectElement(e){const t=wu.prototype.ObjectElement.call(this,e);return dc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},{properties:xu}=Ro.visitors.document.objects.JSONSchema.fixedFields;const Su=class extends xu{ObjectElement(e){const t=xu.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{type:ju}=Ro.visitors.document.objects.JSONSchema.fixedFields;const Pu=class extends ju{ArrayElement(e){return this.enter(e)}},{JSONSchemaOrJSONReferenceVisitor:Ou}=Ro.visitors;const Au=class extends Ou{ObjectElement(e){const t=Ou.prototype.enter.call(this,e);return dc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class ku extends(ki(da,ia)){constructor(e){super(e),this.element=new Ts,this.specPath=te(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Mu=ku;class $u extends ie.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push($u.primaryClass)}}const Iu=$u;class Nu extends(ki(Na,ia)){constructor(e){super(e),this.element=new Iu,this.specPath=te(["value"])}}const Ru=Nu;class Cu extends(ki(da,ia)){constructor(e){super(e),this.element=new sa,this.specPath=te(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Tu=Cu;class Fu extends ie.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Fu.primaryClass),this.classes.push("examples")}}const qu=Fu;const Bu=class extends Mc{constructor(e){super(e),this.element=new qu}};class Lu extends ie.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Lu.primaryClass),this.classes.push("content")}}const Du=Lu;const Vu=class extends uu{constructor(e){super(e),this.element=new Du}};class zu extends ie.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(zu.primaryClass)}}const Uu=zu;class Gu extends(ki(Na,ia)){constructor(e){super(e),this.element=new Uu,this.specPath=e=>pa(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Wu=Gu;class Ju extends ie.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(Ju.primaryClass)}}const Ku=Ju;class Hu extends(ki(Na,ia)){constructor(e){super(e),this.element=new Ku,this.specPath=e=>pa(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(yc).forEach(((e,t)=>{e.setMetaProperty("http-status-code",ri(t))})),t}}const Zu=Hu;class Xu extends ie.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Xu.primaryClass),this.classes.push("parameters")}}const Yu=Xu;class Qu extends(ki(Na,ia)){constructor(e){super(e),this.element=new Yu,this.specPath=e=>pa(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const el=Qu;class tl extends ie.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(tl.primaryClass),this.classes.push("examples")}}const rl=tl;class sl extends(ki(Na,ia)){constructor(e){super(e),this.element=new rl,this.specPath=e=>pa(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const nl=sl;class il extends ie.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(il.primaryClass)}}const ol=il;class al extends(ki(Na,ia)){constructor(e){super(e),this.element=new ol,this.specPath=e=>pa(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const cl=al;class ul extends ie.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(ul.primaryClass)}}const ll=ul;class pl extends(ki(Na,ia)){constructor(e){super(e),this.element=new ll,this.specPath=e=>pa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(ic).forEach(((e,t)=>{e.setMetaProperty("header-name",ri(t))})),t}}const hl=pl;class ml extends ie.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(ml.primaryClass)}}const fl=ml;class dl extends(ki(Na,ia)){constructor(e){super(e),this.element=new fl,this.specPath=e=>pa(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const _l=dl;class yl extends ie.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(yl.primaryClass)}}const gl=yl;class vl extends(ki(Na,ia)){constructor(e){super(e),this.element=new gl,this.specPath=e=>pa(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const bl=vl;class wl extends ie.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(wl.primaryClass)}}const El=wl;class xl extends(ki(Na,ia)){constructor(e){super(e),this.element=new El,this.specPath=e=>pa(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Sl=xl;class jl extends(ki(da,ia)){constructor(e){super(e),this.element=new Ls,this.specPath=te(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return Dt(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Pl=jl;const Ol=class extends ia{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Al extends(ki(da,ia)){constructor(e){super(e),this.element=new Vs,this.specPath=te(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const kl=Al;class Ml extends(ki(da,ia)){constructor(e){super(e),this.element=new qs,this.specPath=te(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return Gt(this.element.headers)&&this.element.headers.filter(ic).forEach(((e,t)=>{e.setMetaProperty("header-name",ri(t))})),t}}const $l=Ml;class Il extends ie.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Il.primaryClass)}}const Nl=Il;class Rl extends(ki(Na,ia)){constructor(e){super(e),this.element=new Nl,this.specPath=e=>pa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!ic(e))return;const r=ri(t);e.setMetaProperty("headerName",r)})),t}}const Cl=Rl;class Tl extends(ki(Ia,ia)){constructor(e){super(e),this.element=new dn,this.specPath=te(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Hn}ObjectElement(e){const t=Ia.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",ar(t))})),t}}const Fl=Tl;class ql extends(ki(da,ia)){constructor(e){super(e),this.element=new vn,this.specPath=te(["document","objects","RequestBody"])}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter(jc).forEach(((e,t)=>{e.setMetaProperty("media-type",ri(t))})),t}}const Bl=ql;class Ll extends ie.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(Ll.primaryClass),this.classes.push("content")}}const Dl=Ll;const Vl=class extends uu{constructor(e){super(e),this.element=new Dl}};class zl extends(ki(Ia,ia)){constructor(e){super(e),this.element=new Ms,this.specPath=te(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",ri(t))})),t}}const Ul=zl;class Gl extends(ki(da,ia)){constructor(e){super(e),this.element=new wn,this.specPath=te(["document","objects","Response"])}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter(jc).forEach(((e,t)=>{e.setMetaProperty("media-type",ri(t))})),Gt(this.element.headers)&&this.element.headers.filter(ic).forEach(((e,t)=>{e.setMetaProperty("header-name",ri(t))})),t}}const Wl=Gl;class Jl extends ie.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Jl.primaryClass)}}const Kl=Jl;class Hl extends(ki(Na,ia)){constructor(e){super(e),this.element=new Kl,this.specPath=e=>pa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!ic(e))return;const r=ri(t);e.setMetaProperty("header-name",r)})),t}}const Zl=Hl;class Xl extends ie.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(Xl.primaryClass),this.classes.push("content")}}const Yl=Xl;const Ql=class extends uu{constructor(e){super(e),this.element=new Yl}};class ep extends ie.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(ep.primaryClass)}}const tp=ep;class rp extends(ki(Na,ia)){constructor(e){super(e),this.element=new tp,this.specPath=e=>pa(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const sp=rp;function np(e){return"[object Number]"===Object.prototype.toString.call(e)}const ip=a((function(e,t){if(!np(e)||!np(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),s=e<0?t+Math.abs(e):t-e,n=0;n<s;)r[n]=n+e,n+=1;return r}));function op(e,t,r){var s,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var i=e?1:0;return!!r._items[n][i]||(t&&(r._items[n][i]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?!!be(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!be(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const ap=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!op(e,!0,this)},e.prototype.has=function(e){return op(e,!1,this)},e}();const cp=a((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new ap,a=0;a<i;a+=1)o.add(t[a]);for(;s<n;)o.add(e[s])&&(r[r.length]=e[s]),s+=1;return r}));class up extends(ki(da,Ia)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...r}){super({...r}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...cp(e.keys(),t)],da.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Ia.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return xt}}const lp=up;class pp extends(ki(lp,ia)){constructor(e){super(e),this.element=new xn,this.specPathFixedFields=te(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>pa(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${ip(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=lp.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(yc).forEach(((e,t)=>{const r=ar(t);this.fieldPatternPredicate(ri(r))&&e.setMetaProperty("http-status-code",r)})),t}}const hp=pp;class mp extends(ki(Qa,ia)){constructor(e){super(e),this.alternator=[{predicate:pa,specPath:["document","objects","Reference"]},{predicate:Hn,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Qa.prototype.enter.call(this,e);return dc(this.element)?this.element.setMetaProperty("referenced-element","response"):yc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const fp=mp;class dp extends(ki(da,ia)){constructor(e){super(e),this.element=new un,this.specPath=te(["document","objects","Operation"])}}const _p=dp;class yp extends ie.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(yp.primaryClass)}}const gp=yp;const vp=class extends ia{constructor(e){super(e),this.element=new gp}ArrayElement(e){return this.element=this.element.concat(ar(e)),xt}};class bp extends ie.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(bp.primaryClass),this.classes.push("parameters")}}const wp=bp;class Ep extends(ki(oa,ia)){constructor(e){super(e),this.element=new ie.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=pa(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);dc(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xt}}const xp=Ep;const Sp=class extends xp{constructor(e){super(e),this.element=new wp}};const jp=class extends Qa{constructor(e){super(e),this.alternator=[{predicate:pa,specPath:["document","objects","Reference"]},{predicate:Hn,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=Qa.prototype.enter.call(this,e);return dc(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Pp extends ie.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Pp.primaryClass)}}const Op=Pp;class Ap extends(ki(Na,ia)){specPath;constructor(e){super(e),this.element=new Op,this.specPath=e=>pa(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Na.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const kp=Ap;class Mp extends ie.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(Mp.primaryClass),this.classes.push("security")}}const $p=Mp;class Ip extends(ki(oa,ia)){constructor(e){super(e),this.element=new $p}ArrayElement(e){return e.forEach((e=>{const t=Gt(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xt}}const Np=Ip;class Rp extends ie.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Rp.primaryClass),this.classes.push("servers")}}const Cp=Rp;const Tp=class extends Ua{constructor(e){super(e),this.element=new Cp}};class Fp extends(ki(da,ia)){constructor(e){super(e),this.element=new mn,this.specPath=te(["document","objects","PathItem"])}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return this.element.filter(pc).forEach(((e,t)=>{const r=ar(t);r.content=ri(r).toUpperCase(),e.setMetaProperty("http-method",r)})),Dt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const qp=Fp;const Bp=class extends ia{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Lp extends ie.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Lp.primaryClass),this.classes.push("servers")}}const Dp=Lp;const Vp=class extends Ua{constructor(e){super(e),this.element=new Dp}};class zp extends ie.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(zp.primaryClass),this.classes.push("parameters")}}const Up=zp;const Gp=class extends xp{constructor(e){super(e),this.element=new Up}};class Wp extends(ki(da,ia)){constructor(e){super(e),this.element=new Ho,this.specPath=te(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Jp=Wp;class Kp extends(ki(da,ia)){constructor(e){super(e),this.element=new rn,this.specPath=te(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Hp=Kp;class Zp extends(ki(da,ia)){constructor(e){super(e),this.element=new en,this.specPath=te(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const Xp=Zp;class Yp extends ie.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(Yp.primaryClass)}}const Qp=Yp;class eh extends(ki(Na,ia)){constructor(e){super(e),this.element=new Qp,this.specPath=te(["value"])}}const th=eh;class rh extends ie.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(rh.primaryClass)}}const sh=rh;class nh extends(ki(oa,ia)){constructor(e){super(e),this.element=new sh}ArrayElement(e){return e.forEach((e=>{const t=ma(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xt}}const ih=nh,{fixedFields:oh}=Ro.visitors.document.objects.JSONSchema,ah={visitors:{value:ia,document:{objects:{OpenApi:{$visitor:ya,fixedFields:{openapi:va,info:{$ref:"#/visitors/document/objects/Info"},servers:Ua,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:zc,tags:ih,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Ea,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:xa}},Contact:{$visitor:ja,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Oa,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Ba,fixedFields:{url:La,description:{$ref:"#/visitors/value"},variables:Za}},ServerVariable:{$visitor:Wa,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Gc,fixedFields:{schemas:Wu,responses:Zu,parameters:el,examples:nl,requestBodies:cl,headers:hl,securitySchemes:_l,links:bl,callbacks:Sl}},Paths:{$visitor:Fl},PathItem:{$visitor:qp,fixedFields:{$ref:Bp,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:Vp,parameters:Gp}},Operation:{$visitor:_p,fixedFields:{tags:vp,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Sp,requestBody:jp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:kp,deprecated:{$ref:"#/visitors/value"},security:Np,servers:Tp}},ExternalDocumentation:{$visitor:kl,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Yc,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:eu,example:{$ref:"#/visitors/value"},examples:Bu,content:Vu}},RequestBody:{$visitor:Bl,fixedFields:{description:{$ref:"#/visitors/value"},content:Vl,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Ya,fixedFields:{schema:Ac,example:{$ref:"#/visitors/value"},examples:Nc,encoding:Fc}},Encoding:{$visitor:$l,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Cl,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:hp,fixedFields:{default:fp}},Response:{$visitor:Wl,fixedFields:{description:{$ref:"#/visitors/value"},headers:Zl,content:Ql,links:sp}},Callback:{$visitor:Ul},Example:{$visitor:Pl,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Ol}},Link:{$visitor:ka,fixedFields:{operationRef:Ma,operationId:$a,parameters:Fa,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:ru,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:nu,example:{$ref:"#/visitors/value"},examples:au,content:hu}},Tag:{$visitor:Jc,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Hc,fixedFields:{$ref:Zc}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:fu,fixedFields:{title:oh.title,multipleOf:oh.multipleOf,maximum:oh.maximum,exclusiveMaximum:oh.exclusiveMaximum,minimum:oh.minimum,exclusiveMinimum:oh.exclusiveMinimum,maxLength:oh.maxLength,minLength:oh.minLength,pattern:oh.pattern,maxItems:oh.maxItems,minItems:oh.minItems,uniqueItems:oh.uniqueItems,maxProperties:oh.maxProperties,minProperties:oh.minProperties,required:oh.required,enum:oh.enum,type:Pu,allOf:_u,anyOf:gu,oneOf:bu,not:Au,items:Eu,properties:Su,additionalProperties:Au,description:oh.description,format:oh.format,default:oh.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:Mu,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Ru}},XML:{$visitor:Tu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Jp,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:Hp,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:Xp,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:th}},SecurityRequirement:{$visitor:Bc}},extension:{$visitor:ba}}}},ch=e=>{if(Lt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},uh={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"],...fr},lh={namespace:e=>{const{base:t}=e;return t.register("callback",Ms),t.register("components",Is),t.register("contact",Rs),t.register("discriminator",Ts),t.register("encoding",qs),t.register("example",Ls),t.register("externalDocumentation",Vs),t.register("header",Us),t.register("info",Ws),t.register("license",Ks),t.register("link",Zs),t.register("mediaType",Ys),t.register("oAuthFlow",en),t.register("oAuthFlows",rn),t.register("openapi",nn),t.register("openApi3_0",an),t.register("operation",un),t.register("parameter",pn),t.register("pathItem",mn),t.register("paths",dn),t.register("reference",yn),t.register("requestBody",vn),t.register("response",wn),t.register("responses",xn),t.register("schema",Go),t.register("securityRequirement",Jo),t.register("securityScheme",Ho),t.register("server",Xo),t.register("serverVariable",Qo),t.register("tag",ta),t.register("xml",sa),t}},ph=()=>{const e=at(lh);return{predicates:{...n,isElement:Lt,isStringElement:Dt,isArrayElement:Wt,isObjectElement:Gt,isMemberElement:Jt,includesClasses:sr,hasElementSourceMap:tr},namespace:e}},hh=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,ie.e)(e),n=Kn(ah),i=new(vr(t,n))({specObj:n});return dr(s,i),$r(i.element,r,{toolboxCreator:ph,visitorOptions:{keyMap:uh,nodeTypeGetter:ch}})},mh=e=>(t,r={})=>hh(t,{specPath:e,...r});Ms.refract=mh(["visitors","document","objects","Callback","$visitor"]),Is.refract=mh(["visitors","document","objects","Components","$visitor"]),Rs.refract=mh(["visitors","document","objects","Contact","$visitor"]),Ls.refract=mh(["visitors","document","objects","Example","$visitor"]),Ts.refract=mh(["visitors","document","objects","Discriminator","$visitor"]),qs.refract=mh(["visitors","document","objects","Encoding","$visitor"]),Vs.refract=mh(["visitors","document","objects","ExternalDocumentation","$visitor"]),Us.refract=mh(["visitors","document","objects","Header","$visitor"]),Ws.refract=mh(["visitors","document","objects","Info","$visitor"]),Ks.refract=mh(["visitors","document","objects","License","$visitor"]),Zs.refract=mh(["visitors","document","objects","Link","$visitor"]),Ys.refract=mh(["visitors","document","objects","MediaType","$visitor"]),en.refract=mh(["visitors","document","objects","OAuthFlow","$visitor"]),rn.refract=mh(["visitors","document","objects","OAuthFlows","$visitor"]),nn.refract=mh(["visitors","document","objects","OpenApi","fixedFields","openapi"]),an.refract=mh(["visitors","document","objects","OpenApi","$visitor"]),un.refract=mh(["visitors","document","objects","Operation","$visitor"]),pn.refract=mh(["visitors","document","objects","Parameter","$visitor"]),mn.refract=mh(["visitors","document","objects","PathItem","$visitor"]),dn.refract=mh(["visitors","document","objects","Paths","$visitor"]),yn.refract=mh(["visitors","document","objects","Reference","$visitor"]),vn.refract=mh(["visitors","document","objects","RequestBody","$visitor"]),wn.refract=mh(["visitors","document","objects","Response","$visitor"]),xn.refract=mh(["visitors","document","objects","Responses","$visitor"]),Go.refract=mh(["visitors","document","objects","Schema","$visitor"]),Jo.refract=mh(["visitors","document","objects","SecurityRequirement","$visitor"]),Ho.refract=mh(["visitors","document","objects","SecurityScheme","$visitor"]),Xo.refract=mh(["visitors","document","objects","Server","$visitor"]),Qo.refract=mh(["visitors","document","objects","ServerVariable","$visitor"]),ta.refract=mh(["visitors","document","objects","Tag","$visitor"]),sa.refract=mh(["visitors","document","objects","XML","$visitor"]);const fh=o((function(e){return h(-1,e)}));const dh=class extends Sn{};const _h=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new dh("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new dh("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new dh("latest method in MediaTypes class is not yet implemented.")}};class yh extends _h{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.0.3",t="generic"){const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return fh(this.filterByFormat(e))}}const gh=new yh("application/vnd.oai.openapi;version=3.0.0","application/vnd.oai.openapi+json;version=3.0.0","application/vnd.oai.openapi+yaml;version=3.0.0","application/vnd.oai.openapi;version=3.0.1","application/vnd.oai.openapi+json;version=3.0.1","application/vnd.oai.openapi+yaml;version=3.0.1","application/vnd.oai.openapi;version=3.0.2","application/vnd.oai.openapi+json;version=3.0.2","application/vnd.oai.openapi+yaml;version=3.0.2","application/vnd.oai.openapi;version=3.0.3","application/vnd.oai.openapi+json;version=3.0.3","application/vnd.oai.openapi+yaml;version=3.0.3"),vh=new yh(...gh.filterByFormat("generic"),...gh.filterByFormat("json")),bh=/"openapi"\s*:\s*"(?<version_json>3\.0\.([0123])(?:-rc[012])?)"/,wh=async e=>bh.test(e)&&await(async e=>{if(!As.test(e))return!1;try{return"ERROR"!==(await bt(e)).rootNode.type}catch{return!1}})(e),Eh=async(e,t={})=>{const r=f({},"refractorOpts",t),s=_(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const s=await bt(e);let n;return n="indirect"===r?Os(s,{sourceMap:t}):Vr(s,{sourceMap:t}),n})(e,s),{result:i}=n;if(ne(i)){const e=an.refract(i,r);e.classes.push("result"),n.replaceResult(e)}return n},xh=at(lh)})(),s})()));