@swagger-api/apidom-parser-adapter-openapi-yaml-3-1 1.0.0-beta.3 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/{fcc2efc64ace4e98eaa856cf3b3edf1f.wasm → 083dd6647843baf16cbefd09aae31f27.wasm} +0 -0
- package/dist/{20cf92ce276cf3be872fb26fd7985dd3.wasm → 2f9d346f3bc0cf9ba30b2a61e889fb78.wasm} +0 -0
- package/dist/apidom-parser-adapter-openapi-yaml-3-1.browser.js +2 -2
- package/dist/apidom-parser-adapter-openapi-yaml-3-1.browser.min.js +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiYaml3_1=t():e.apidomParserAdapterOpenApiYaml3_1=t()}(self,(()=>(()=>{var __webpack_modules__={3103:(e,t,s)=>{var r=s(4715)(s(8942),"DataView");e.exports=r},5098:(e,t,s)=>{var r=s(3305),n=s(9361),i=s(1112),o=s(5276),a=s(5071);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1386:(e,t,s)=>{var r=s(2393),n=s(2049),i=s(7144),o=s(7452),a=s(3964);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9770:(e,t,s)=>{var r=s(4715)(s(8942),"Map");e.exports=r},8250:(e,t,s)=>{var r=s(9753),n=s(5681),i=s(88),o=s(4732),a=s(9068);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9413:(e,t,s)=>{var r=s(4715)(s(8942),"Promise");e.exports=r},4512:(e,t,s)=>{var r=s(4715)(s(8942),"Set");e.exports=r},3212:(e,t,s)=>{var r=s(8250),n=s(1877),i=s(8006);function o(e){var t=-1,s=null==e?0:e.length;for(this.__data__=new r;++t<s;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},1340:(e,t,s)=>{var r=s(1386),n=s(4103),i=s(1779),o=s(4162),a=s(7462),c=s(6638);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},5650:(e,t,s)=>{var r=s(8942).Symbol;e.exports=r},1623:(e,t,s)=>{var r=s(8942).Uint8Array;e.exports=r},9270:(e,t,s)=>{var r=s(4715)(s(8942),"WeakMap");e.exports=r},9847:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length,n=0,i=[];++s<r;){var o=e[s];t(o,s,e)&&(i[n++]=o)}return i}},358:(e,t,s)=>{var r=s(6137),n=s(3283),i=s(3142),o=s(5853),a=s(9632),c=s(8666),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),u=!s&&n(e),m=!s&&!u&&o(e),d=!s&&!u&&!m&&c(e),p=s||u||m||d,h=p?r(e.length,String):[],_=h.length;for(var f in e)!t&&!l.call(e,f)||p&&("length"==f||m&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,_))||h.push(f);return h}},1129:e=>{e.exports=function(e,t){for(var s=-1,r=t.length,n=e.length;++s<r;)e[n+s]=t[s];return e}},6465:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length;++s<r;)if(t(e[s],s,e))return!0;return!1}},7034:(e,t,s)=>{var r=s(6285);e.exports=function(e,t){for(var s=e.length;s--;)if(r(e[s][0],t))return s;return-1}},8244:(e,t,s)=>{var r=s(1129),n=s(3142);e.exports=function(e,t,s){var i=t(e);return n(e)?i:r(i,s(e))}},7379:(e,t,s)=>{var r=s(5650),n=s(8870),i=s(9005),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},6027:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},4687:(e,t,s)=>{var r=s(353),n=s(547);e.exports=function e(t,s,i,o,a){return t===s||(null==t||null==s||!n(t)&&!n(s)?t!=t&&s!=s:r(t,s,i,o,e,a))}},353:(e,t,s)=>{var r=s(1340),n=s(3934),i=s(8861),o=s(1182),a=s(8486),c=s(3142),l=s(5853),u=s(8666),m="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,_,f,g){var y=c(e),v=c(t),b=y?d:a(e),w=v?d:a(t),E=(b=b==m?p:b)==p,x=(w=w==m?p:w)==p,S=b==w;if(S&&l(e)){if(!l(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||u(e)?n(e,t,s,_,f,g):i(e,t,b,s,_,f,g);if(!(1&s)){var j=E&&h.call(e,"__wrapped__"),O=x&&h.call(t,"__wrapped__");if(j||O){var P=j?e.value():e,A=O?t.value():t;return g||(g=new r),f(P,A,s,_,g)}}return!!S&&(g||(g=new r),o(e,t,s,_,f,g))}},9624:(e,t,s)=>{var r=s(3655),n=s(4759),i=s(1580),o=s(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,m=l.hasOwnProperty,d=RegExp("^"+u.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?d:a).test(o(e))}},674:(e,t,s)=>{var r=s(7379),n=s(5387),i=s(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[r(e)]}},195:(e,t,s)=>{var r=s(4882),n=s(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(e);var t=[];for(var s in Object(e))i.call(e,s)&&"constructor"!=s&&t.push(s);return t}},6137:e=>{e.exports=function(e,t){for(var s=-1,r=Array(e);++s<e;)r[s]=t(s);return r}},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,s)=>{var r=s(8942)["__core-js_shared__"];e.exports=r},3934:(e,t,s)=>{var r=s(3212),n=s(6465),i=s(5568);e.exports=function(e,t,s,o,a,c){var l=1&s,u=e.length,m=t.length;if(u!=m&&!(l&&m>u))return!1;var d=c.get(e),p=c.get(t);if(d&&p)return d==t&&p==e;var h=-1,_=!0,f=2&s?new r:void 0;for(c.set(e,t),c.set(t,e);++h<u;){var g=e[h],y=t[h];if(o)var v=l?o(y,g,h,t,e,c):o(g,y,h,e,t,c);if(void 0!==v){if(v)continue;_=!1;break}if(f){if(!n(t,(function(e,t){if(!i(f,t)&&(g===e||a(g,e,s,o,c)))return f.push(t)}))){_=!1;break}}else if(g!==y&&!a(g,y,s,o,c)){_=!1;break}}return c.delete(e),c.delete(t),_}},8861:(e,t,s)=>{var r=s(5650),n=s(1623),i=s(6285),o=s(3934),a=s(5894),c=s(7447),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,s,r,l,m,d){switch(s){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!m(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 p=a;case"[object Set]":var h=1&r;if(p||(p=c),e.size!=t.size&&!h)return!1;var _=d.get(e);if(_)return _==t;r|=2,d.set(e,t);var f=o(p(e),p(t),r,l,m,d);return d.delete(e),f;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},1182:(e,t,s)=>{var r=s(393),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,i,o,a){var c=1&s,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var m=u;m--;){var d=l[m];if(!(c?d in t:n.call(t,d)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var _=!0;a.set(e,t),a.set(t,e);for(var f=c;++m<u;){var g=e[d=l[m]],y=t[d];if(i)var v=c?i(y,g,d,t,e,a):i(g,y,d,e,t,a);if(!(void 0===v?g===y||o(g,y,s,i,a):v)){_=!1;break}f||(f="constructor"==d)}if(_&&!f){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(_=!1)}return a.delete(e),a.delete(t),_}},4967:(e,t,s)=>{var r="object"==typeof s.g&&s.g&&s.g.Object===Object&&s.g;e.exports=r},393:(e,t,s)=>{var r=s(8244),n=s(7979),i=s(1211);e.exports=function(e){return r(e,i,n)}},4700:(e,t,s)=>{var r=s(9067);e.exports=function(e,t){var s=e.__data__;return r(t)?s["string"==typeof t?"string":"hash"]:s.map}},4715:(e,t,s)=>{var r=s(9624),n=s(155);e.exports=function(e,t){var s=n(e,t);return r(s)?s:void 0}},8870:(e,t,s)=>{var r=s(5650),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),s=e[a];try{e[a]=void 0;var r=!0}catch(e){}var n=o.call(e);return r&&(t?e[a]=s:delete e[a]),n}},7979:(e,t,s)=>{var r=s(9847),n=s(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},8486:(e,t,s)=>{var r=s(3103),n=s(9770),i=s(9413),o=s(4512),a=s(9270),c=s(7379),l=s(4066),u="[object Map]",m="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",_=l(r),f=l(n),g=l(i),y=l(o),v=l(a),b=c;(r&&b(new r(new ArrayBuffer(1)))!=h||n&&b(new n)!=u||i&&b(i.resolve())!=m||o&&b(new o)!=d||a&&b(new a)!=p)&&(b=function(e){var t=c(e),s="[object Object]"==t?e.constructor:void 0,r=s?l(s):"";if(r)switch(r){case _:return h;case f:return u;case g:return m;case y:return d;case v:return p}return t}),e.exports=b},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,s)=>{var r=s(4497);e.exports=function(){this.__data__=r?r(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,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var s=t[e];return"__lodash_hash_undefined__"===s?void 0:s}return n.call(t,e)?t[e]:void 0}},5276:(e,t,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},5071:(e,t,s)=>{var r=s(4497);e.exports=function(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var r=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<s}},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,s)=>{var r,n=s(1950),i=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var s=e&&e.constructor;return e===("function"==typeof s&&s.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,s)=>{var r=s(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,s=r(t,e);return!(s<0)&&(s==t.length-1?t.pop():n.call(t,s,1),--this.size,!0)}},7144:(e,t,s)=>{var r=s(7034);e.exports=function(e){var t=this.__data__,s=r(t,e);return s<0?void 0:t[s][1]}},7452:(e,t,s)=>{var r=s(7034);e.exports=function(e){return r(this.__data__,e)>-1}},3964:(e,t,s)=>{var r=s(7034);e.exports=function(e,t){var s=this.__data__,n=r(s,e);return n<0?(++this.size,s.push([e,t])):s[n][1]=t,this}},9753:(e,t,s)=>{var r=s(5098),n=s(1386),i=s(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}},5681:(e,t,s)=>{var r=s(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).get(e)}},4732:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).has(e)}},9068:(e,t,s)=>{var r=s(4700);e.exports=function(e,t){var s=r(this,e),n=s.size;return s.set(e,t),this.size+=s.size==n?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e,r){s[++t]=[r,e]})),s}},4497:(e,t,s)=>{var r=s(4715)(Object,"create");e.exports=r},8121:(e,t,s)=>{var r=s(3766)(Object.keys,Object);e.exports=r},2306:(e,t,s)=>{e=s.nmd(e);var r=s(4967),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(s){return e(t(s))}}},8942:(e,t,s)=>{var r=s(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")();e.exports=i},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,s=Array(e.size);return e.forEach((function(e){s[++t]=e})),s}},4103:(e,t,s)=>{var r=s(1386);e.exports=function(){this.__data__=new r,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}},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,s)=>{var r=s(1386),n=s(9770),i=s(8250);e.exports=function(e,t){var s=this.__data__;if(s instanceof r){var o=s.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new i(o)}return s.set(e,t),this.size=s.size,this}},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,s)=>{var r=s(6027),n=s(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,s)=>{var r=s(3655),n=s(5387);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},2563:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==r(e)}},5853:(e,t,s)=>{e=s.nmd(e);var r=s(8942),n=s(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},6343:(e,t,s)=>{var r=s(4687);e.exports=function(e,t){return r(e,t)}},3655:(e,t,s)=>{var r=s(7379),n=s(1580);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},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,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==r(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,s)=>{var r=s(7379),n=s(3142),i=s(547);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==r(e)}},8666:(e,t,s)=>{var r=s(674),n=s(9460),i=s(2306),o=i&&i.isTypedArray,a=o?n(o):r;e.exports=a},1211:(e,t,s)=>{var r=s(358),n=s(195),i=s(6529);e.exports=function(e){return i(e)?r(e):n(e)}},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,s)=>{const r=s(1517);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=n(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},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,s)=>{const r=s(9310),n=s(8138),i=s(986),o=s(2563),a=s(1580),c=s(394),l=s(7547);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(r,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let s=0;s<this.elementDetection.length;s+=1){const r=this.elementDetection[s][0],n=this.elementDetection[s][1];if(r(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=u,e.exports=u},3311:(e,t,s)=>{const r=s(1517),n=s(4123);class i extends n{map(e,t){return this.elements.map((s=>e.bind(t)(s.value,s.key,s)))}filter(e,t){return new i(this.elements.filter((s=>e.bind(t)(s.value,s.key,s))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((s,r)=>{e.bind(t)(s.value,s.key,s,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,s)=>{const r=s(8631),n=s(3004),i=s(8712),o=s(2536),a=s(2555),c=s(9796),l=s(7309),u=s(5642),m=s(9620),d=s(593),p=s(4123),h=s(3311),_=s(2322);function f(e){if(e instanceof r)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new n;if(Array.isArray(e))return new c(e.map(f));if("object"==typeof e){return new u(e)}return e}r.prototype.ObjectElement=u,r.prototype.RefElement=d,r.prototype.MemberElement=l,r.prototype.refract=f,p.prototype.refract=f,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:m,RefElement:d,refract:f,ArraySlice:p,ObjectSlice:h,KeyValuePair:_}},9620:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||[],t,s),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},593:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||[],t,s),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},8326:(e,t,s)=>{const r=s(5735),n=s(7547);t.g$=r,t.KeyValuePair=s(2322),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,s(394),s(3148)},9796:(e,t,s)=>{const r=s(1517),n=s(8631),i=s(4123);class o extends n{constructor(e,t,s){super(e||[],t,s),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let s,r;void 0!==t?(s=0,r=this.refract(t)):(s=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=s;t<this.length;t+=1){const s=this.content[t];r="object"===this.primitive()?this.refract(e(r,s.value,s.key,s,this)):this.refract(e(r,s,t,this))}return r}forEach(e,t){this.content.forEach(((s,r)=>{e.bind(t)(s,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const s=t||{},r=!!s.recursive,n=void 0===s.results?[]:s.results;return this.forEach(((t,s,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:r}),e(t,s,i)&&n.push(t)})),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,s)=>{const r=s(6343),n=s(2322),i=s(4123);class o{constructor(e,t,s){t&&(this.meta=t),s&&(this.attributes=s),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof n?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let s=new i;const r=(e,t)=>(e.push(t),e),o=(e,s)=>{s.element===t&&e.push(s);const i=s.findRecursive(t);return i&&i.reduce(r,e),s.content instanceof n&&(s.content.key&&o(e,s.content.key),s.content.value&&o(e,s.content.value)),e};return this.content&&(this.content.element&&o(s,this.content),Array.isArray(this.content)&&this.content.reduce(o,s)),e.isEmpty||(s=s.filter((t=>{let s=t.parents.map((e=>e.element));for(const t in e){const r=e[t],n=s.indexOf(r);if(-1===n)return!1;s=s.splice(0,n)}return!0}))),s}set(e){return this.content=e,this}equals(e){return r(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof n)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof n){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7309:(e,t,s)=>{const r=s(2322),n=s(8631);e.exports=class extends n{constructor(e,t,s,n){super(new r,s,n),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},3004:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||null,t,s),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}}},5642:(e,t,s)=>{const r=s(1517),n=s(1580),i=s(9796),o=s(7309),a=s(3311);e.exports=class extends i{constructor(e,t,s){super(e||[],t,s),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((s=>s.key.toValue()!==e||(t=s,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const s=e,r=this.getMember(s);return r?r.value=t:this.content.push(new o(s,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((s=>e.bind(t)(s.value,s.key,s)))}compactMap(e,t){const s=[];return this.forEach(((r,n,i)=>{const o=e.bind(t)(r,n,i);o&&s.push(o)})),s}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((s=>e.bind(t)(s.value,s.key,s)))}}},8712:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,s)=>{const r=s(394);e.exports=class extends r{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const s={element:e.element};e._meta&&e._meta.length>0&&(s.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(s.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(s.attributes=this.serialiseObject(r))}if(r)s.content=this.enumSerialiseContent(e,s);else if(this[`${e.element}SerialiseContent`])s.content=this[`${e.element}SerialiseContent`](e,s);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(s.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(s.content=[]);return s}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),s=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==s.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),s=new t;s.element!==e.element&&(s.element=e.element),e.meta&&this.deserialiseObject(e.meta,s.meta),e.attributes&&this.deserialiseObject(e.attributes,s.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==s.content||(s.content=r),"enum"===s.element){s.content&&s.attributes.set("enumerations",s.content);let e=s.attributes.get("samples");if(s.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const n=new t(r);n.element=s.element,e.push(n)}))}));const n=e.shift();s.content=n?n.content:void 0,s.attributes.set("samples",e)}else s.content=void 0;let r=s.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=s.element,s.attributes.set("default",e)}}else if("dataStructure"===s.element&&Array.isArray(s.content))[s.content]=s.content;else if("category"===s.element){const e=s.attributes.get("meta");e&&(s.attributes.set("metadata",e),s.attributes.remove("meta"))}else"member"===s.element&&s.key&&s.key._attributes&&s.key._attributes.getValue("variable")&&(s.attributes.set("variable",s.key.attributes.get("variable")),s.key.attributes.remove("variable"));return s}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,s)=>{if(e){const r=s.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const s=this.deserialiseContent(e.content);return void 0===s&&null!==t.content||(t.content=s),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,s)=>{e&&(t[s.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},8583:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(s=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[s.MalformedUnicode,"malformed Unicode character escape sequence"],[s.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[s.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[s.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[s.EndOfString,"malformed escape sequence at end of string"]])},6850:(e,t,s)=>{"use strict";t.MH=void 0;const r=s(8583);function n(e,t,s){const n=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(n)||void 0!==s&&s!==e.length)throw new SyntaxError(r.errorMessages.get(t));return n}function i(e,t){const s=n(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=n(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(s,e)}return String.fromCharCode(s)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,s,a,c,l,u,m,d,p){if(void 0!==s)return"\\";if(void 0!==a)return function(e){const t=n(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const s=n(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(s)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==l)return i(l,u);if(void 0!==m)return i(m);if("0"===d)return"\0";if(void 0!==d)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const s=parseInt(e,8);return String.fromCharCode(s)}(d,!t);if(void 0!==p)return h=p,o.get(h)||h;var h;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=c},3833:(module,__unused_webpack_exports,__webpack_require__)=>{var __dirname="/",Module=void 0!==Module?Module:{},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(3078),nodePath=__webpack_require__(4142);scriptDirectory=__dirname+"/",readBinary=e=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e)),readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise(((s,r)=>{fs.readFile(e,t?void 0:"utf8",((e,n)=>{e?r(e):s(t?n.buffer:n)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>isFileURI(e)?new Promise(((t,s)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{(200==r.status||0==r.status&&r.response)&&s(r.response),t(r.status)},r.onerror=t,r.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary,wasmMemory;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP_DATA_VIEW;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies?.(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function findWasmBinary(){var e="tree-sitter.wasm";return isDataURI(e)?e:locateFile(e)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary?Promise.resolve().then((()=>getBinarySync(e))):readAsync(e).then((e=>new Uint8Array(e)),(()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,s){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(s,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,s,r){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,s,r):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,s).then(r,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,s,r)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var s=getDylinkMetadata(t);return s.neededDynlibs&&(dynamicLibraries=s.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})),{}}var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var s=GOT[t];return s||(s=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(s.required=!0),s}},LE_HEAP_LOAD_F32=e=>HEAP_DATA_VIEW.getFloat32(e,!0),LE_HEAP_LOAD_F64=e=>HEAP_DATA_VIEW.getFloat64(e,!0),LE_HEAP_LOAD_I16=e=>HEAP_DATA_VIEW.getInt16(e,!0),LE_HEAP_LOAD_I32=e=>HEAP_DATA_VIEW.getInt32(e,!0),LE_HEAP_LOAD_U32=e=>HEAP_DATA_VIEW.getUint32(e,!0),LE_HEAP_STORE_F32=(e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),LE_HEAP_STORE_F64=(e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),LE_HEAP_STORE_I16=(e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),LE_HEAP_STORE_I32=(e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),LE_HEAP_STORE_U32=(e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t,s)=>{for(var r=t+s,n=t;e[n]&&!(n>=r);)++n;if(n-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,n));for(var i="";t<n;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i},getDylinkMetadata=e=>{var t=0,s=0;function r(){for(var s=0,r=1;;){var n=e[t++];if(s+=(127&n)*r,r*=128,!(128&n))break}return s}function n(){var s=r();return UTF8ArrayToString(e,(t+=s)-s,s)}function i(e,t){if(e)throw new Error(t)}var o="dylink.0";if(e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,o);0===a.length&&(o="dylink",a=WebAssembly.Module.customSections(e,o)),i(0===a.length,"need dylink section"),s=(e=new Uint8Array(a[0])).length}else{var c=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);i(!(1836278016==c[0]||6386541==c[0]),"need to see wasm magic number"),i(0!==e[8],"need the dylink section to be first"),t=9;var l=r();s=t+l,o=n()}var u={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==o){u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();for(var m=r(),d=0;d<m;++d){var p=n();u.neededDynlibs.push(p)}}else{i("dylink.0"!==o);for(;t<s;){var h=e[t++],_=r();if(1===h)u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();else if(2===h)for(m=r(),d=0;d<m;++d)p=n(),u.neededDynlibs.push(p);else if(3===h)for(var f=r();f--;){var g=n();256&r()&&u.tlsExports.add(g)}else if(4===h)for(f=r();f--;){n(),g=n();1==(3&r())&&u.weakImports.add(g)}else t+=_}}return u};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,s)=>{var r={refcount:1/0,name:e,exports:s,global:!0};return LDSO.loadedLibsByName[e]=r,null!=t&&(LDSO.loadedLibsByHandle[t]=r),r},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=(e,t)=>(HEAPU8.fill(0,e,e+t),e),alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,s=t+alignMemory(e,16);return ___heap_base=s,GOT.__heap_base.value=s,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},s={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},r=1;r<e.length;++r)s.parameters.push(t[e[r]]);return s},generateFuncType=(e,t)=>{var s=e.slice(0,1),r=e.slice(1),n={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(r.length,t);for(var i=0;i<r.length;++i)t.push(n[r[i]]);"v"==s?t.push(0):t.push(1,n[s])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var s=[1];generateFuncType(t,s);var r=[0,97,115,109,1,0,0,0,1];uleb128Encode(s.length,r),r.push(...s),r.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var n=new WebAssembly.Module(new Uint8Array(r));return new WebAssembly.Instance(n,{e:{f:e}}).exports.f},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var s=e;s<e+t;s++){var r=getWasmTableEntry(s);r&&functionsInTableMap.set(r,s)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var s=getFunctionAddress(e);if(s)return s;var r=getEmptyTableSlot();try{setWasmTableEntry(r,e)}catch(s){if(!(s instanceof TypeError))throw s;var n=convertJsFunctionToWasm(e,t);setWasmTableEntry(r,n)}return functionsInTableMap.set(e,r),r},updateGOT=(e,t)=>{for(var s in e)if(!isInternalSym(s)){var r=e[s];s.startsWith("orig$")&&(s=s.split("$")[1],t=!0),GOT[s]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[s].value)&&("function"==typeof r?GOT[s].value=addFunction(r):"number"==typeof r?GOT[s].value=r:err(`unhandled export type for '${s}': ${typeof r}`))}},relocateExports=(e,t,s)=>{var r={};for(var n in e){var i=e[n];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),r[n]=i}return updateGOT(r,s),r},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,s)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...s)),dynCall=(e,t,s=[])=>e.includes("j")?dynCallLegacy(e,t,s):getWasmTableEntry(t)(...s),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...s)=>{var r=stackSave();try{return dynCall(e,t,s)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var s;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?s=wasmImports[e]:e.startsWith("invoke_")&&(s=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:s,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+8];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32(4*(handle+12>>2),memoryBase),LE_HEAP_STORE_I32(4*(handle+16>>2),metadata.memorySize),LE_HEAP_STORE_U32(4*(handle+20>>2),tableBase),LE_HEAP_STORE_I32(4*(handle+24>>2),metadata.tableSize))}else memoryBase=LE_HEAP_LOAD_U32(4*(handle+12>>2)),tableBase=LE_HEAP_LOAD_U32(4*(handle+20>>2));var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];var s;t in e||(e[t]=(...e)=>(s||=resolveSymbol(t),s(...e)));return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(","),cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags,localScope)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[s,r]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=r)};e(s);const t="__main_argc_argv";"main"==s&&e(t),s==t&&e("main"),s.startsWith("dynCall_")&&!Module.hasOwnProperty(s)&&(Module[s]=r)}},asyncLoad=(e,t,s,r)=>{var n=r?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),n&&removeRunDependency(n)}),(t=>{if(!s)throw`Loading data file "${e}" failed.`;s()})),n&&addRunDependency(n)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},s,r){var n=LDSO.loadedLibsByName[e];if(n)return t.global?n.global||(n.global=!0,mergeLibSymbols(n.exports,e)):s&&Object.assign(s,n.exports),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,r&&(LDSO.loadedLibsByHandle[r]=n),!t.loadAsync||Promise.resolve(!0);function i(){if(r){var s=LE_HEAP_LOAD_U32(4*(r+28>>2)),n=LE_HEAP_LOAD_U32(4*(r+32>>2));if(s&&n){var i=HEAP8.slice(s,s+n);return t.loadAsync?Promise.resolve(i):i}}var o=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(o,e,t)}));if(!readBinary)throw new Error(`${o}: file not found, and synchronous loading of external files is not available`);return readBinary(o)}function o(){return t.loadAsync?i().then((n=>loadWebAssemblyModule(n,t,e,s,r))):loadWebAssemblyModule(i(),t,e,s,r)}function a(t){n.global?mergeLibSymbols(t,e):s&&Object.assign(s,t),n.exports=t}return(n=newDSO(e,r,"loading")).refcount=t.nodelete?1/0:1,n.global=t.global,t.loadAsync?o().then((e=>(a(e),!0))):(a(o()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var s=resolveGlobalSymbol(e,!0).sym;if(!s&&!t.required)continue;if("function"==typeof s)t.value=addFunction(s,s.sig);else{if("number"!=typeof s)throw new Error(`bad export type for '${e}': ${typeof s}`);t.value=s}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("loadDylibs"),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")}))):reportUndefinedSymbols()},noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,s="i8"){switch(s.endsWith("*")&&(s="*"),s){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${s}`)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=(e,t,s)=>HEAPU8.copyWithin(e,t,t+s);__emscripten_memcpy_js.sig="vppp";var _emscripten_date_now=()=>Date.now(),_emscripten_get_now;_emscripten_date_now.sig="d",_emscripten_get_now=()=>performance.now(),_emscripten_get_now.sig="d";var getHeapMax=()=>2147483648,growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var s=getHeapMax();if(e>s)return!1;for(var r,n,i=1;i<=4;i*=2){var o=t*(1+.2/i);o=Math.min(o,e+100663296);var a=Math.min(s,(r=Math.max(e,o))+((n=65536)-r%n)%n);if(growMemory(a))return!0}return!1};_emscripten_resize_heap.sig="ip";var _fd_close=e=>52;_fd_close.sig="ii";var convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function _fd_seek(e,t,s,r,n){convertI32PairToI53Checked(t,s);return 70}_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var s=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(s,0)),s.length=0):s.push(t)},_fd_write=(e,t,s,r)=>{for(var n=0,i=0;i<s;i++){var o=LE_HEAP_LOAD_U32(4*(t>>2)),a=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var c=0;c<a;c++)printChar(e,HEAPU8[o+c]);n+=a}return LE_HEAP_STORE_U32(4*(r>>2),n),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const s=UTF8ToString(t);currentLogCallback(s,0!==e)}}function _tree_sitter_parse_callback(e,t,s,r,n){const i=currentParseCallback(t,{row:s,column:r});"string"==typeof i?(setValue(n,i.length,"i32"),stringToUTF16(i,e,10240)):setValue(n,0,"i32")}_fd_write.sig="iippp";var runtimeKeepaliveCounter=0,keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0,_proc_exit=e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))};_proc_exit.sig="vi";var exitJS=(e,t)=>{EXITSTATUS=e,_proc_exit(e)},handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},lengthBytesUTF8=e=>{for(var t=0,s=0;s<e.length;++s){var r=e.charCodeAt(s);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++s):t+=3}return t},stringToUTF8Array=(e,t,s,r)=>{if(!(r>0))return 0;for(var n=s,i=s+r-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o);if(a<=127){if(s>=i)break;t[s++]=a}else if(a<=2047){if(s+1>=i)break;t[s++]=192|a>>6,t[s++]=128|63&a}else if(a<=65535){if(s+2>=i)break;t[s++]=224|a>>12,t[s++]=128|a>>6&63,t[s++]=128|63&a}else{if(s+3>=i)break;t[s++]=240|a>>18,t[s++]=128|a>>12&63,t[s++]=128|a>>6&63,t[s++]=128|63&a}}return t[s]=0,s-n},stringToUTF8=(e,t,s)=>stringToUTF8Array(e,HEAPU8,t,s),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,s=stackAlloc(t);return stringToUTF8(e,s,t),s},stringToUTF16=(e,t,s)=>{if(s??=2147483647,s<2)return 0;for(var r=t,n=(s-=2)<2*e.length?s/2:e.length,i=0;i<n;++i){var o=e.charCodeAt(i);LE_HEAP_STORE_I16(2*(t>>1),o),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-r},AsciiToString=e=>{for(var t="";;){var s=HEAPU8[e++];if(!s)return t;t+=String.fromCharCode(s)}},wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports.__wasm_call_ctors)(),___wasm_apply_data_relocs=()=>(___wasm_apply_data_relocs=wasmExports.__wasm_apply_data_relocs)(),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t),_realloc=Module._realloc=(e,t)=>(_realloc=Module._realloc=wasmExports.realloc)(e,t),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_ts_language_symbol_count=Module._ts_language_symbol_count=e=>(_ts_language_symbol_count=Module._ts_language_symbol_count=wasmExports.ts_language_symbol_count)(e),_ts_language_state_count=Module._ts_language_state_count=e=>(_ts_language_state_count=Module._ts_language_state_count=wasmExports.ts_language_state_count)(e),_ts_language_version=Module._ts_language_version=e=>(_ts_language_version=Module._ts_language_version=wasmExports.ts_language_version)(e),_ts_language_field_count=Module._ts_language_field_count=e=>(_ts_language_field_count=Module._ts_language_field_count=wasmExports.ts_language_field_count)(e),_ts_language_next_state=Module._ts_language_next_state=(e,t,s)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,s),_ts_language_symbol_name=Module._ts_language_symbol_name=(e,t)=>(_ts_language_symbol_name=Module._ts_language_symbol_name=wasmExports.ts_language_symbol_name)(e,t),_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=(e,t,s,r)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,s,r),_strncmp=Module._strncmp=(e,t,s)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,s),_ts_language_symbol_type=Module._ts_language_symbol_type=(e,t)=>(_ts_language_symbol_type=Module._ts_language_symbol_type=wasmExports.ts_language_symbol_type)(e,t),_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=(e,t)=>(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=wasmExports.ts_language_field_name_for_id)(e,t),_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=(e,t)=>(_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=wasmExports.ts_lookahead_iterator_new)(e,t),_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=e=>(_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=wasmExports.ts_lookahead_iterator_delete)(e),_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=(e,t)=>(_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=wasmExports.ts_lookahead_iterator_reset_state)(e,t),_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=(e,t,s)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,s),_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=e=>(_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=wasmExports.ts_lookahead_iterator_next)(e),_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=e=>(_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=wasmExports.ts_lookahead_iterator_current_symbol)(e),_memset=Module._memset=(e,t,s)=>(_memset=Module._memset=wasmExports.memset)(e,t,s),_memcpy=Module._memcpy=(e,t,s)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,s),_ts_parser_delete=Module._ts_parser_delete=e=>(_ts_parser_delete=Module._ts_parser_delete=wasmExports.ts_parser_delete)(e),_ts_parser_reset=Module._ts_parser_reset=e=>(_ts_parser_reset=Module._ts_parser_reset=wasmExports.ts_parser_reset)(e),_ts_parser_set_language=Module._ts_parser_set_language=(e,t)=>(_ts_parser_set_language=Module._ts_parser_set_language=wasmExports.ts_parser_set_language)(e,t),_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=e=>(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=wasmExports.ts_parser_timeout_micros)(e),_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=(e,t,s)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,s),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,s)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,s),_memmove=Module._memmove=(e,t,s)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,s),_memcmp=Module._memcmp=(e,t,s)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,s),_ts_query_new=Module._ts_query_new=(e,t,s,r,n)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,s,r,n),_ts_query_delete=Module._ts_query_delete=e=>(_ts_query_delete=Module._ts_query_delete=wasmExports.ts_query_delete)(e),_iswspace=Module._iswspace=e=>(_iswspace=Module._iswspace=wasmExports.iswspace)(e),_iswalnum=Module._iswalnum=e=>(_iswalnum=Module._iswalnum=wasmExports.iswalnum)(e),_ts_query_pattern_count=Module._ts_query_pattern_count=e=>(_ts_query_pattern_count=Module._ts_query_pattern_count=wasmExports.ts_query_pattern_count)(e),_ts_query_capture_count=Module._ts_query_capture_count=e=>(_ts_query_capture_count=Module._ts_query_capture_count=wasmExports.ts_query_capture_count)(e),_ts_query_string_count=Module._ts_query_string_count=e=>(_ts_query_string_count=Module._ts_query_string_count=wasmExports.ts_query_string_count)(e),_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=(e,t,s)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,s),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,s)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,s),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,s)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,s),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,s)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,s),_ts_tree_copy=Module._ts_tree_copy=e=>(_ts_tree_copy=Module._ts_tree_copy=wasmExports.ts_tree_copy)(e),_ts_tree_delete=Module._ts_tree_delete=e=>(_ts_tree_delete=Module._ts_tree_delete=wasmExports.ts_tree_delete)(e),_ts_init=Module._ts_init=()=>(_ts_init=Module._ts_init=wasmExports.ts_init)(),_ts_parser_new_wasm=Module._ts_parser_new_wasm=()=>(_ts_parser_new_wasm=Module._ts_parser_new_wasm=wasmExports.ts_parser_new_wasm)(),_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=(e,t)=>(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=wasmExports.ts_parser_enable_logger_wasm)(e,t),_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=(e,t,s,r,n)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,s,r,n),_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=e=>(_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=wasmExports.ts_parser_included_ranges_wasm)(e),_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=(e,t)=>(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=wasmExports.ts_language_type_is_named_wasm)(e,t),_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=(e,t)=>(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=wasmExports.ts_language_type_is_visible_wasm)(e,t),_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=e=>(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=wasmExports.ts_tree_root_node_wasm)(e),_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=e=>(_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=wasmExports.ts_tree_root_node_with_offset_wasm)(e),_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=e=>(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=wasmExports.ts_tree_edit_wasm)(e),_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=e=>(_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=wasmExports.ts_tree_included_ranges_wasm)(e),_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=(e,t)=>(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=wasmExports.ts_tree_get_changed_ranges_wasm)(e,t),_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=e=>(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=wasmExports.ts_tree_cursor_new_wasm)(e),_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=e=>(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=wasmExports.ts_tree_cursor_delete_wasm)(e),_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=e=>(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=wasmExports.ts_tree_cursor_reset_wasm)(e),_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=(e,t)=>(_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=wasmExports.ts_tree_cursor_reset_to_wasm)(e,t),_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=e=>(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=wasmExports.ts_tree_cursor_goto_first_child_wasm)(e),_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=e=>(_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=wasmExports.ts_tree_cursor_goto_last_child_wasm)(e),_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=e=>(_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_index_wasm)(e),_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=e=>(_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_position_wasm)(e),_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=e=>(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=wasmExports.ts_tree_cursor_goto_next_sibling_wasm)(e),_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=e=>(_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=wasmExports.ts_tree_cursor_goto_previous_sibling_wasm)(e),_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=(e,t)=>(_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=wasmExports.ts_tree_cursor_goto_descendant_wasm)(e,t),_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=e=>(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=wasmExports.ts_tree_cursor_goto_parent_wasm)(e),_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=e=>(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=wasmExports.ts_tree_cursor_current_node_type_id_wasm)(e),_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=e=>(_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=wasmExports.ts_tree_cursor_current_node_state_id_wasm)(e),_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=e=>(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=wasmExports.ts_tree_cursor_current_node_is_named_wasm)(e),_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=e=>(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=wasmExports.ts_tree_cursor_current_node_is_missing_wasm)(e),_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=e=>(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=wasmExports.ts_tree_cursor_current_node_id_wasm)(e),_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=e=>(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=wasmExports.ts_tree_cursor_start_position_wasm)(e),_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=e=>(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=wasmExports.ts_tree_cursor_end_position_wasm)(e),_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=e=>(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=wasmExports.ts_tree_cursor_start_index_wasm)(e),_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=e=>(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=wasmExports.ts_tree_cursor_end_index_wasm)(e),_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=e=>(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=wasmExports.ts_tree_cursor_current_field_id_wasm)(e),_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=e=>(_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=wasmExports.ts_tree_cursor_current_depth_wasm)(e),_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=e=>(_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=wasmExports.ts_tree_cursor_current_descendant_index_wasm)(e),_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=e=>(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=wasmExports.ts_tree_cursor_current_node_wasm)(e),_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=e=>(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=wasmExports.ts_node_symbol_wasm)(e),_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=(e,t)=>(_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=wasmExports.ts_node_field_name_for_child_wasm)(e,t),_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=(e,t)=>(_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=wasmExports.ts_node_children_by_field_id_wasm)(e,t),_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=e=>(_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=wasmExports.ts_node_first_child_for_byte_wasm)(e),_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=e=>(_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=wasmExports.ts_node_first_named_child_for_byte_wasm)(e),_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=e=>(_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=wasmExports.ts_node_grammar_symbol_wasm)(e),_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=e=>(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=wasmExports.ts_node_child_count_wasm)(e),_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=e=>(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=wasmExports.ts_node_named_child_count_wasm)(e),_ts_node_child_wasm=Module._ts_node_child_wasm=(e,t)=>(_ts_node_child_wasm=Module._ts_node_child_wasm=wasmExports.ts_node_child_wasm)(e,t),_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=(e,t)=>(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=wasmExports.ts_node_named_child_wasm)(e,t),_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=(e,t)=>(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=wasmExports.ts_node_child_by_field_id_wasm)(e,t),_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=e=>(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=wasmExports.ts_node_next_sibling_wasm)(e),_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=e=>(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=wasmExports.ts_node_prev_sibling_wasm)(e),_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=e=>(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=wasmExports.ts_node_next_named_sibling_wasm)(e),_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=e=>(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=wasmExports.ts_node_prev_named_sibling_wasm)(e),_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=e=>(_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=wasmExports.ts_node_descendant_count_wasm)(e),_ts_node_parent_wasm=Module._ts_node_parent_wasm=e=>(_ts_node_parent_wasm=Module._ts_node_parent_wasm=wasmExports.ts_node_parent_wasm)(e),_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=e=>(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=wasmExports.ts_node_descendant_for_index_wasm)(e),_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=e=>(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=wasmExports.ts_node_named_descendant_for_index_wasm)(e),_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=e=>(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=wasmExports.ts_node_descendant_for_position_wasm)(e),_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=e=>(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=wasmExports.ts_node_named_descendant_for_position_wasm)(e),_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=e=>(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=wasmExports.ts_node_start_point_wasm)(e),_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=e=>(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=wasmExports.ts_node_end_point_wasm)(e),_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=e=>(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=wasmExports.ts_node_start_index_wasm)(e),_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=e=>(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=wasmExports.ts_node_end_index_wasm)(e),_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=e=>(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=wasmExports.ts_node_to_string_wasm)(e),_ts_node_children_wasm=Module._ts_node_children_wasm=e=>(_ts_node_children_wasm=Module._ts_node_children_wasm=wasmExports.ts_node_children_wasm)(e),_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=e=>(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=wasmExports.ts_node_named_children_wasm)(e),_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=(e,t,s,r,n,i,o)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,s,r,n,i,o),_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=e=>(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=wasmExports.ts_node_is_named_wasm)(e),_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=e=>(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=wasmExports.ts_node_has_changes_wasm)(e),_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=e=>(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=wasmExports.ts_node_has_error_wasm)(e),_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=e=>(_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=wasmExports.ts_node_is_error_wasm)(e),_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=e=>(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=wasmExports.ts_node_is_missing_wasm)(e),_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=e=>(_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=wasmExports.ts_node_is_extra_wasm)(e),_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=e=>(_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=wasmExports.ts_node_parse_state_wasm)(e),_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=e=>(_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=wasmExports.ts_node_next_parse_state_wasm)(e),_ts_query_matches_wasm=Module._ts_query_matches_wasm=(e,t,s,r,n,i,o,a,c,l,u)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,s,r,n,i,o,a,c,l,u),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,s,r,n,i,o,a,c,l,u)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,s,r,n,i,o,a,c,l,u),_iswalpha=Module._iswalpha=e=>(_iswalpha=Module._iswalpha=wasmExports.iswalpha)(e),_iswblank=Module._iswblank=e=>(_iswblank=Module._iswblank=wasmExports.iswblank)(e),_iswdigit=Module._iswdigit=e=>(_iswdigit=Module._iswdigit=wasmExports.iswdigit)(e),_iswlower=Module._iswlower=e=>(_iswlower=Module._iswlower=wasmExports.iswlower)(e),_iswupper=Module._iswupper=e=>(_iswupper=Module._iswupper=wasmExports.iswupper)(e),_iswxdigit=Module._iswxdigit=e=>(_iswxdigit=Module._iswxdigit=wasmExports.iswxdigit)(e),_memchr=Module._memchr=(e,t,s)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,s),_strlen=Module._strlen=e=>(_strlen=Module._strlen=wasmExports.strlen)(e),_strcmp=Module._strcmp=(e,t)=>(_strcmp=Module._strcmp=wasmExports.strcmp)(e,t),_strncat=Module._strncat=(e,t,s)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,s),_strncpy=Module._strncpy=(e,t,s)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,s),_towlower=Module._towlower=e=>(_towlower=Module._towlower=wasmExports.towlower)(e),_towupper=Module._towupper=e=>(_towupper=Module._towupper=wasmExports.towupper)(e),_setThrew=(e,t)=>(_setThrew=wasmExports.setThrew)(e,t),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),dynCall_jiji=Module.dynCall_jiji=(e,t,s,r,n)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,s,r,n),_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=e=>(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=wasmExports.orig$ts_parser_timeout_micros)(e),_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=(e,t)=>(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=wasmExports.orig$ts_parser_set_timeout_micros)(e,t),calledRun;function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var s=e.length,r=stackAlloc(4*(s+1)),n=r;e.forEach((e=>{LE_HEAP_STORE_U32(4*(n>>2),stringToUTF8OnStack(e)),n+=4})),LE_HEAP_STORE_U32(4*(n>>2),0);try{var i=t(s,r);return exitJS(i,!0),i}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized?.(),shouldRunNow&&callMain(e),postRun()))}runDependencies>0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;let VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const s=C._ts_language_version(t);if(s<MIN_COMPATIBLE_VERSION||VERSION<s)throw new Error(`Incompatible language version ${s}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,s){if("string"==typeof e)currentParseCallback=(t,s)=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let r=0,n=0;if(s?.includedRanges){r=s.includedRanges.length,n=C._calloc(r,SIZE_OF_RANGE);let e=n;for(let t=0;t<r;t++)marshalRange(e,s.includedRanges[t]),e+=SIZE_OF_RANGE}const i=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,r);if(!i)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const o=new Tree(INTERNAL,i,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,o}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(e);if(e>0){let r=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(r),r+=SIZE_OF_RANGE;C._free(t)}return s}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,s,r){assertInternal(e),this[0]=t,this.language=s,this.textCallback=r}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),marshalPoint(s+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),s=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(s)}return r}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(e);if(e>0){let r=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(r),r+=SIZE_OF_RANGE;C._free(t)}return s}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);if(!t)return null;return AsciiToString(t)}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=getValue(TRANSFER_BUFFER,"i32"),s=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(s)}return r}firstChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,s),s+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,s),s+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,s){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),s||(s=ZERO_POINT);const r=[],n=this.tree.language.types;for(let t=0,s=n.length;t<s;t++)e.includes(n[t])&&r.push(t);const i=C._malloc(SIZE_OF_INT*r.length);for(let e=0,t=r.length;e<t;e++)setValue(i+e*SIZE_OF_INT,r[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,t.row,t.column,s.row,s.column);const o=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(a),C._free(i),c}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),setValue(s+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),setValue(s+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(s,e),marshalPoint(s+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(s,e),marshalPoint(s+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoFirstChildForIndex(e){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const s=lengthBytesUTF8(e),r=C._malloc(s+1);stringToUTF8(e,r,s+1);const n=C._ts_language_symbol_for_name(this[0],r,s,t);return C._free(r),n||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterable(INTERNAL,t,this):null}query(e){const t=lengthBytesUTF8(e),s=C._malloc(t+1);stringToUTF8(e,s,t+1);const r=C._ts_query_new(this[0],s,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!r){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=getValue(TRANSFER_BUFFER,"i32"),n=UTF8ToString(s,r).length,i=e.substr(n,100).split("\n")[0];let o,a=i.match(QUERY_WORD_REGEX)[0];switch(t){case 2:o=new RangeError(`Bad node name '${a}'`);break;case 3:o=new RangeError(`Bad field name '${a}'`);break;case 4:o=new RangeError(`Bad capture name @${a}`);break;case 5:o=new TypeError(`Bad pattern structure at offset ${n}: '${i}'...`),a="";break;default:o=new SyntaxError(`Bad syntax at offset ${n}: '${i}'...`),a=""}throw o.index=n,o.length=a.length,C._free(s),o}const n=C._ts_query_string_count(r),i=C._ts_query_capture_count(r),o=C._ts_query_pattern_count(r),a=new Array(i),c=new Array(n);for(let e=0;e<i;e++){const t=C._ts_query_capture_name_for_id(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,s)}for(let e=0;e<n;e++){const t=C._ts_query_string_value_for_id(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");c[e]=UTF8ToString(t,s)}const l=new Array(o),u=new Array(o),m=new Array(o),d=new Array(o),p=new Array(o);for(let e=0;e<o;e++){const t=C._ts_query_predicates_for_pattern(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");d[e]=[],p[e]=[];const n=[];let i=t;for(let t=0;t<s;t++){const t=getValue(i,"i32");i+=SIZE_OF_INT;const s=getValue(i,"i32");if(i+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)n.push({type:"capture",name:a[s]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:c[s]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let s,r=!0,i=!0;switch(t){case"any-not-eq?":case"not-eq?":r=!1;case"any-eq?":case"eq?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}"`);if(i=!t.startsWith("any-"),"capture"===n[2].type){const t=n[1].name,s=n[2].name;p[e].push((e=>{const n=[],o=[];for(const r of e)r.name===t&&n.push(r.node),r.name===s&&o.push(r.node);const a=(e,t,s)=>s?e.text===t.text:e.text!==t.text;return i?n.every((e=>o.some((t=>a(e,t,r))))):n.some((e=>o.some((t=>a(e,t,r)))))}))}else{s=n[1].name;const t=n[2].value,o=e=>e.text===t,a=e=>e.text!==t;p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node);const n=r?o:a;return i?t.every(n):t.some(n)}))}break;case"any-not-match?":case"not-match?":r=!1;case"any-match?":case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${n[2].value}.`);s=n[1].name;const o=new RegExp(n[2].value);i=!t.startsWith("any-"),p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);const n=(e,t)=>t?o.test(e):!o.test(e);return 0===t.length?!r:i?t.every((e=>n(e,r))):t.some((e=>n(e,r)))}));break;case"set!":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');l[e]||(l[e]={}),l[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const a="is?"===t?u:m;a[e]||(a[e]={}),a[e][n[1].value]=n[2]?n[2].value:null;break;case"not-any-of?":r=!1;case"any-of?":if(n.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);for(let e=2;e<n.length;e++)if("string"!==n[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);s=n[1].name;const c=n.slice(2).map((e=>e.value));p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);return 0===t.length?!r:t.every((e=>c.includes(e)))===r}));break;default:d[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(m[e])}return C._free(s),new Query(INTERNAL,r,a,p,d,Object.freeze(l),Object.freeze(u),Object.freeze(m))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const s=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(3078);t=Promise.resolve(e.readFileSync(s))}else t=fetch(s).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const s=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${s}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),s=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));s||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[s]();return new Language(INTERNAL,r)}))}}class LookaheadIterable{constructor(e,t,s){assertInternal(e),this[0]=t,this.language=s}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(e){return C._ts_lookahead_iterator_reset_state(this[0],e)}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}[Symbol.iterator](){const e=this;return{next:()=>C._ts_lookahead_iterator_next(e[0])?{done:!1,value:e.currentType}:{done:!0,value:""}}}}class Query{constructor(e,t,s,r,n,i,o,a){assertInternal(e),this[0]=t,this.captureNames=s,this.textPredicates=r,this.predicates=n,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:s=ZERO_POINT,startIndex:r=0,endIndex:n=0,matchLimit:i=4294967295,maxStartDepth:o=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,r,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),m=new Array(c);this.exceededMatchLimit=Boolean(u);let d=0,p=l;for(let t=0;t<c;t++){const t=getValue(p,"i32");p+=SIZE_OF_INT;const s=getValue(p,"i32");p+=SIZE_OF_INT;const r=new Array(s);if(p=unmarshalCaptures(this,e.tree,p,r),this.textPredicates[t].every((e=>e(r)))){m[d]={pattern:t,captures:r};const e=this.setProperties[t];e&&(m[d].setProperties=e);const s=this.assertedProperties[t];s&&(m[d].assertedProperties=s);const n=this.refutedProperties[t];n&&(m[d].refutedProperties=n),d++}}return m.length=d,C._free(l),m}captures(e,{startPosition:t=ZERO_POINT,endPosition:s=ZERO_POINT,startIndex:r=0,endIndex:n=0,matchLimit:i=4294967295,maxStartDepth:o=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,r,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),m=[];this.exceededMatchLimit=Boolean(u);const d=[];let p=l;for(let t=0;t<c;t++){const t=getValue(p,"i32");p+=SIZE_OF_INT;const s=getValue(p,"i32");p+=SIZE_OF_INT;const r=getValue(p,"i32");if(p+=SIZE_OF_INT,d.length=s,p=unmarshalCaptures(this,e.tree,p,d),this.textPredicates[t].every((e=>e(d)))){const e=d[r],s=this.setProperties[t];s&&(e.setProperties=s);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),m.push(e)}}return C._free(l),m}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),s=C._malloc(t+1);stringToUTF8(e,s,t+1),C._ts_query_disable_capture(this[0],s,t),C._free(s)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,s){const r=s-t;let n=e.textCallback(t,null,s);for(t+=n.length;t<s;){const r=e.textCallback(t,null,s);if(!(r&&r.length>0))break;t+=r.length,n+=r}return t>s&&(n=n.slice(0,r)),n}function unmarshalCaptures(e,t,s,r){for(let n=0,i=r.length;n<i;n++){const i=getValue(s,"i32"),o=unmarshalNode(t,s+=SIZE_OF_INT);s+=SIZE_OF_NODE,r[n]={name:e.captureNames[i],node:o}}return s}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const s=getValue(t,"i32");if(0===s)return null;const r=getValue(t+=SIZE_OF_INT,"i32"),n=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),a=new Node(INTERNAL,e);return a.id=s,a.startIndex=r,a.startPosition={row:n,column:i},a[0]=o,a}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32"),setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32")>>>0,column:getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32")>>>0,t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}();module.exports=TreeSitter},3078:()=>{},4142:()=>{},1212:(e,t,s)=>{e.exports=s(8411)},7202:(e,t,s)=>{"use strict";var r=s(239);e.exports=r},6656:(e,t,s)=>{"use strict";s(484),s(5695),s(6138),s(9828),s(3832);var r=s(8099);e.exports=r.AggregateError},8411:(e,t,s)=>{"use strict";e.exports=s(8337)},8337:(e,t,s)=>{"use strict";s(5442);var r=s(7202);e.exports=r},814:(e,t,s)=>{"use strict";var r=s(2769),n=s(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not a function")}},1966:(e,t,s)=>{"use strict";var r=s(2937),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,s)=>{"use strict";var r=s(262),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not an object")}},1005:(e,t,s)=>{"use strict";var r=s(3273),n=s(4574),i=s(8130),o=function(e){return function(t,s,o){var a=r(t),c=i(a);if(0===c)return!e&&-1;var l,u=n(o,c);if(e&&s!=s){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===s)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,s)=>{"use strict";var r=s(6100),n=r({}.toString),i=r("".slice);e.exports=function(e){return i(n(e),8,-1)}},8407:(e,t,s)=>{"use strict";var r=s(4904),n=s(2769),i=s(9932),o=s(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,s,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?s:c?i(t):"Object"===(r=i(t))&&n(t.callee)?"Arguments":r}},7464:(e,t,s)=>{"use strict";var r=s(701),n=s(5691),i=s(4543),o=s(9989);e.exports=function(e,t,s){for(var a=n(t),c=o.f,l=i.f,u=0;u<a.length;u++){var m=a[u];r(e,m)||s&&r(s,m)||c(e,m,l(t,m))}}},2871:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,s)=>{"use strict";var r=s(5024),n=s(9989),i=s(480);e.exports=r?function(e,t,s){return n.f(e,t,i(1,s))}:function(e,t,s){return e[t]=s,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,s)=>{"use strict";var r=s(3999);e.exports=function(e,t,s,n){return n&&n.enumerable?e[t]=s:r(e,t,s),e}},7525:(e,t,s)=>{"use strict";var r=s(8900),n=Object.defineProperty;e.exports=function(e,t){try{n(r,e,{value:t,configurable:!0,writable:!0})}catch(s){r[e]=t}return t}},5024:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,s)=>{"use strict";var r=s(8900),n=s(262),i=r.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3531:(e,t,s)=>{"use strict";var r=s(8900).navigator,n=r&&r.userAgent;e.exports=n?String(n):""},5547:(e,t,s)=>{"use strict";var r,n,i=s(8900),o=s(3531),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(n=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(n=+r[1]),e.exports=n},3885:(e,t,s)=>{"use strict";var r=s(6100),n=Error,i=r("".replace),o=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},4279:(e,t,s)=>{"use strict";var r=s(3999),n=s(3885),i=s(5791),o=Error.captureStackTrace;e.exports=function(e,t,s,a){i&&(o?o(e,t):r(e,"stack",n(s,a)))}},5791:(e,t,s)=>{"use strict";var r=s(1203),n=s(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},9098:(e,t,s)=>{"use strict";var r=s(8900),n=s(7013),i=s(9344),o=s(2769),a=s(4543).f,c=s(8696),l=s(8099),u=s(4572),m=s(3999),d=s(701);s(3753);var p=function(e){var t=function(s,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(s);case 2:return new e(s,r)}return new e(s,r,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,n,h,_,f,g,y,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,j=E?r:x?r[w]:r[w]&&r[w].prototype,O=E?l:l[w]||m(l,w,{})[w],P=O.prototype;for(_ in t)n=!(s=c(E?_:w+(x?".":"#")+_,e.forced))&&j&&d(j,_),g=O[_],n&&(y=e.dontCallGetSet?(b=a(j,_))&&b.value:j[_]),f=n&&y?y:t[_],(s||S||typeof g!=typeof f)&&(v=e.bind&&n?u(f,r):e.wrap&&n?p(f):S&&o(f)?i(f):f,(e.sham||f&&f.sham||g&&g.sham)&&m(v,"sham",!0),m(O,_,v),S&&(d(l,h=w+"Prototype")||m(l,h,{}),m(l[h],_,f),e.real&&P&&(s||!P[_])&&m(P,_,f)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,s)=>{"use strict";var r=s(9344),n=s(814),i=s(1780),o=r(r.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype.call;e.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},3410:(e,t,s)=>{"use strict";var r=s(5024),n=s(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},3574:(e,t,s)=>{"use strict";var r=s(6100),n=s(814);e.exports=function(e,t,s){try{return r(n(Object.getOwnPropertyDescriptor(e,t)[s]))}catch(e){}}},9344:(e,t,s)=>{"use strict";var r=s(9932),n=s(6100);e.exports=function(e){if("Function"===r(e))return n(e)}},6100:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.call,o=r&&n.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,s)=>{"use strict";var r=s(8099),n=s(8900),i=s(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(n[e]):r[e]&&r[e][t]||n[e]&&n[e][t]}},967:(e,t,s)=>{"use strict";var r=s(8407),n=s(4674),i=s(3057),o=s(6625),a=s(8655)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[r(e)]}},1613:(e,t,s)=>{"use strict";var r=s(4713),n=s(814),i=s(7235),o=s(459),a=s(967),c=TypeError;e.exports=function(e,t){var s=arguments.length<2?a(e):t;if(n(s))return i(r(s,e));throw new c(o(e)+" is not iterable")}},4674:(e,t,s)=>{"use strict";var r=s(814),n=s(3057);e.exports=function(e,t){var s=e[t];return n(s)?void 0:r(s)}},8900:function(e,t,s){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s.g&&s.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,s)=>{"use strict";var r=s(6100),n=s(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,s)=>{"use strict";var r=s(1003);e.exports=r("document","documentElement")},9665:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203),i=s(9619);e.exports=!r&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,s)=>{"use strict";var r=s(6100),n=s(1203),i=s(9932),o=Object,a=r("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},3507:(e,t,s)=>{"use strict";var r=s(2769),n=s(262),i=s(3491);e.exports=function(e,t,s){var o,a;return i&&r(o=t.constructor)&&o!==s&&n(a=o.prototype)&&a!==s.prototype&&i(e,a),e}},8148:(e,t,s)=>{"use strict";var r=s(262),n=s(3999);e.exports=function(e,t){r(t)&&"cause"in t&&n(e,"cause",t.cause)}},8417:(e,t,s)=>{"use strict";var r,n,i,o=s(1314),a=s(8900),c=s(262),l=s(3999),u=s(701),m=s(3753),d=s(4275),p=s(5241),h="Object already initialized",_=a.TypeError,f=a.WeakMap;if(o||m.state){var g=m.state||(m.state=new f);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new _(h);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=d("state");p[y]=!0,r=function(e,t){if(u(e,y))throw new _(h);return t.facade=e,l(e,y,t),t},n=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:r,get:n,has:i,enforce:function(e){return i(e)?n(e):r(e,{})},getterFor:function(e){return function(t){var s;if(!c(t)||(s=n(t)).type!==e)throw new _("Incompatible receiver, "+e+" required");return s}}}},2877:(e,t,s)=>{"use strict";var r=s(8655),n=s(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},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,s)=>{"use strict";var r=s(1203),n=s(2769),i=/#|\.prototype\./,o=function(e,t){var s=c[a(e)];return s===u||s!==l&&(n(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,s)=>{"use strict";var r=s(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},2937:(e,t,s)=>{"use strict";var r=s(262);e.exports=function(e){return r(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,s)=>{"use strict";var r=s(1003),n=s(2769),i=s(4317),o=s(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&i(t.prototype,a(e))}},208:(e,t,s)=>{"use strict";var r=s(4572),n=s(4713),i=s(7235),o=s(459),a=s(2877),c=s(8130),l=s(4317),u=s(1613),m=s(967),d=s(1743),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},_=h.prototype;e.exports=function(e,t,s){var f,g,y,v,b,w,E,x=s&&s.that,S=!(!s||!s.AS_ENTRIES),j=!(!s||!s.IS_RECORD),O=!(!s||!s.IS_ITERATOR),P=!(!s||!s.INTERRUPTED),A=r(t,x),M=function(e){return f&&d(f,"normal",e),new h(!0,e)},T=function(e){return S?(i(e),P?A(e[0],e[1],M):A(e[0],e[1])):P?A(e,M):A(e)};if(j)f=e.iterator;else if(O)f=e;else{if(!(g=m(e)))throw new p(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((b=T(e[y]))&&l(_,b))return b;return new h(!1)}f=u(e,g)}for(w=j?e.next:f.next;!(E=n(w,f)).done;){try{b=T(E.value)}catch(e){d(f,"throw",e)}if("object"==typeof b&&b&&l(_,b))return b}return new h(!1)}},1743:(e,t,s)=>{"use strict";var r=s(4713),n=s(7235),i=s(4674);e.exports=function(e,t,s){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw s;return s}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw s;if(a)throw o;return n(o),s}},1926:(e,t,s)=>{"use strict";var r=s(2621).IteratorPrototype,n=s(5780),i=s(480),o=s(1811),a=s(6625),c=function(){return this};e.exports=function(e,t,s,l){var u=t+" Iterator";return e.prototype=n(r,{next:i(+!l,s)}),o(e,u,!1,!0),a[u]=c,e}},164:(e,t,s)=>{"use strict";var r=s(9098),n=s(4713),i=s(4871),o=s(3410),a=s(2769),c=s(1926),l=s(3671),u=s(3491),m=s(1811),d=s(3999),p=s(3508),h=s(8655),_=s(6625),f=s(2621),g=o.PROPER,y=o.CONFIGURABLE,v=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,w=h("iterator"),E="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,s,o,h,f,O){c(s,t,o);var P,A,M,T=function(e){if(e===h&&C)return C;if(!b&&e&&e in I)return I[e];switch(e){case E:case x:case S:return function(){return new s(this,e)}}return function(){return new s(this)}},F=t+" Iterator",R=!1,I=e.prototype,N=I[w]||I["@@iterator"]||h&&I[h],C=!b&&N||T(h),$="Array"===t&&I.entries||N;if($&&(P=l($.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===v||(u?u(P,v):a(P[w])||p(P,w,j)),m(P,F,!0,!0),i&&(_[F]=j)),g&&h===x&&N&&N.name!==x&&(!i&&y?d(I,"name",x):(R=!0,C=function(){return n(N,this)})),h)if(A={values:T(x),keys:f?C:T(E),entries:T(S)},O)for(M in A)(b||R||!(M in I))&&p(I,M,A[M]);else r({target:t,proto:!0,forced:b||R},A);return i&&!O||I[w]===C||p(I,w,C,{name:h}),_[t]=C,A}},2621:(e,t,s)=>{"use strict";var r,n,i,o=s(1203),a=s(2769),c=s(262),l=s(5780),u=s(3671),m=s(3508),d=s(8655),p=s(4871),h=d("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(r=n):_=!0),!c(r)||o((function(){var e={};return r[h].call(e)!==e}))?r={}:p&&(r=l(r)),a(r[h])||m(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:_}},6625:e=>{"use strict";e.exports={}},8130:(e,t,s)=>{"use strict";var r=s(8146);e.exports=function(e){return r(e.length)}},5777:e=>{"use strict";var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?s:t)(r)}},4879:(e,t,s)=>{"use strict";var r=s(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},5780:(e,t,s)=>{"use strict";var r,n=s(7235),i=s(7389),o=s(9683),a=s(5241),c=s(3489),l=s(9619),u=s(4275),m="prototype",d="script",p=u("IE_PROTO"),h=function(){},_=function(e){return"<"+d+">"+e+"</"+d+">"},f=function(e){e.write(_("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,s;g="undefined"!=typeof document?document.domain&&r?f(r):(t=l("iframe"),s="java"+d+":",t.style.display="none",c.appendChild(t),t.src=String(s),(e=t.contentWindow.document).open(),e.write(_("document.F=Object")),e.close(),e.F):f(r);for(var n=o.length;n--;)delete g[m][o[n]];return g()};a[p]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(h[m]=n(e),s=new h,h[m]=null,s[p]=e):s=g(),void 0===t?s:i.f(s,t)}},7389:(e,t,s)=>{"use strict";var r=s(5024),n=s(1330),i=s(9989),o=s(7235),a=s(3273),c=s(8364);t.f=r&&!n?Object.defineProperties:function(e,t){o(e);for(var s,r=a(t),n=c(t),l=n.length,u=0;l>u;)i.f(e,s=n[u++],r[s]);return e}},9989:(e,t,s)=>{"use strict";var r=s(5024),n=s(9665),i=s(1330),o=s(7235),a=s(5341),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,m="enumerable",d="configurable",p="writable";t.f=r?i?function(e,t,s){if(o(e),t=a(t),o(s),"function"==typeof e&&"prototype"===t&&"value"in s&&p in s&&!s[p]){var r=u(e,t);r&&r[p]&&(e[t]=s.value,s={configurable:d in s?s[d]:r[d],enumerable:m in s?s[m]:r[m],writable:!1})}return l(e,t,s)}:l:function(e,t,s){if(o(e),t=a(t),o(s),n)try{return l(e,t,s)}catch(e){}if("get"in s||"set"in s)throw new c("Accessors not supported");return"value"in s&&(e[t]=s.value),e}},4543:(e,t,s)=>{"use strict";var r=s(5024),n=s(4713),i=s(7161),o=s(480),a=s(3273),c=s(5341),l=s(701),u=s(9665),m=Object.getOwnPropertyDescriptor;t.f=r?m:function(e,t){if(e=a(e),t=c(t),u)try{return m(e,t)}catch(e){}if(l(e,t))return o(!n(i.f,e,t),e[t])}},5116:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,n)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,s)=>{"use strict";var r=s(701),n=s(2769),i=s(2137),o=s(4275),a=s(2871),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var s=t.constructor;return n(s)&&t instanceof s?s.prototype:t instanceof l?u:null}},4317:(e,t,s)=>{"use strict";var r=s(6100);e.exports=r({}.isPrototypeOf)},8600:(e,t,s)=>{"use strict";var r=s(6100),n=s(701),i=s(3273),o=s(1005).indexOf,a=s(5241),c=r([].push);e.exports=function(e,t){var s,r=i(e),l=0,u=[];for(s in r)!n(a,s)&&n(r,s)&&c(u,s);for(;t.length>l;)n(r,s=t[l++])&&(~o(u,s)||c(u,s));return u}},8364:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683);e.exports=Object.keys||function(e){return r(e,n)}},7161:(e,t)=>{"use strict";var s={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!s.call({1:2},1);t.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:s},3491:(e,t,s)=>{"use strict";var r=s(3574),n=s(262),i=s(5426),o=s(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,s={};try{(e=r(Object.prototype,"__proto__","set"))(s,[]),t=s instanceof Array}catch(e){}return function(s,r){return i(s),o(r),n(s)?(t?e(s,r):s.__proto__=r,s):s}}():void 0)},9559:(e,t,s)=>{"use strict";var r=s(4904),n=s(8407);e.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},9258:(e,t,s)=>{"use strict";var r=s(4713),n=s(2769),i=s(262),o=TypeError;e.exports=function(e,t){var s,a;if("string"===t&&n(s=e.toString)&&!i(a=r(s,e)))return a;if(n(s=e.valueOf)&&!i(a=r(s,e)))return a;if("string"!==t&&n(s=e.toString)&&!i(a=r(s,e)))return a;throw new o("Can't convert object to primitive value")}},5691:(e,t,s)=>{"use strict";var r=s(1003),n=s(6100),i=s(5116),o=s(7313),a=s(7235),c=n([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),s=o.f;return s?c(t,s(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,s)=>{"use strict";var r=s(9989).f;e.exports=function(e,t,s){s in e||r(e,s,{configurable:!0,get:function(){return t[s]},set:function(e){t[s]=e}})}},5426:(e,t,s)=>{"use strict";var r=s(3057),n=TypeError;e.exports=function(e){if(r(e))throw new n("Can't call method on "+e);return e}},1811:(e,t,s)=>{"use strict";var r=s(4904),n=s(9989).f,i=s(3999),o=s(701),a=s(9559),c=s(8655)("toStringTag");e.exports=function(e,t,s,l){var u=s?e:e&&e.prototype;u&&(o(u,c)||n(u,c,{configurable:!0,value:t}),l&&!r&&i(u,"toString",a))}},4275:(e,t,s)=>{"use strict";var r=s(8141),n=s(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},3753:(e,t,s)=>{"use strict";var r=s(4871),n=s(8900),i=s(7525),o="__core-js_shared__",a=e.exports=n[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8141:(e,t,s)=>{"use strict";var r=s(3753);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},5571:(e,t,s)=>{"use strict";var r=s(6100),n=s(9903),i=s(1139),o=s(5426),a=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(e){return function(t,s){var r,u,m=i(o(t)),d=n(s),p=m.length;return d<0||d>=p?e?"":void 0:(r=c(m,d))<55296||r>56319||d+1===p||(u=c(m,d+1))<56320||u>57343?e?a(m,d):r:e?l(m,d,d+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},4603:(e,t,s)=>{"use strict";var r=s(5547),n=s(1203),i=s(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4574:(e,t,s)=>{"use strict";var r=s(9903),n=Math.max,i=Math.min;e.exports=function(e,t){var s=r(e);return s<0?n(s+t,0):i(s,t)}},3273:(e,t,s)=>{"use strict";var r=s(1395),n=s(5426);e.exports=function(e){return r(n(e))}},9903:(e,t,s)=>{"use strict";var r=s(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8146:(e,t,s)=>{"use strict";var r=s(9903),n=Math.min;e.exports=function(e){var t=r(e);return t>0?n(t,9007199254740991):0}},2137:(e,t,s)=>{"use strict";var r=s(5426),n=Object;e.exports=function(e){return n(r(e))}},493:(e,t,s)=>{"use strict";var r=s(4713),n=s(262),i=s(6281),o=s(4674),a=s(9258),c=s(8655),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var s,c=o(e,u);if(c){if(void 0===t&&(t="default"),s=r(c,e,t),!n(s)||i(s))return s;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5341:(e,t,s)=>{"use strict";var r=s(493),n=s(6281);e.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}},4904:(e,t,s)=>{"use strict";var r={};r[s(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},1139:(e,t,s)=>{"use strict";var r=s(8407),n=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,s)=>{"use strict";var r=s(6100),n=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},7460:(e,t,s)=>{"use strict";var r=s(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203);e.exports=r&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,s)=>{"use strict";var r=s(8900),n=s(2769),i=r.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},8655:(e,t,s)=>{"use strict";var r=s(8900),n=s(8141),i=s(701),o=s(1268),a=s(4603),c=s(7460),l=r.Symbol,u=n("wks"),m=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:m("Symbol."+e)),u[e]}},6453:(e,t,s)=>{"use strict";var r=s(1003),n=s(701),i=s(3999),o=s(4317),a=s(3491),c=s(7464),l=s(5516),u=s(3507),m=s(4879),d=s(8148),p=s(4279),h=s(5024),_=s(4871);e.exports=function(e,t,s,f){var g="stackTraceLimit",y=f?2:1,v=e.split("."),b=v[v.length-1],w=r.apply(null,v);if(w){var E=w.prototype;if(!_&&n(E,"cause")&&delete E.cause,!s)return w;var x=r("Error"),S=t((function(e,t){var s=m(f?t:e,void 0),r=f?new w(e):new w;return void 0!==s&&i(r,"message",s),p(r,S,r.stack,2),this&&o(E,this)&&u(r,this,S),arguments.length>y&&d(r,arguments[y]),r}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):h&&g in w&&(l(S,w,g),l(S,w,"prepareStackTrace")),c(S,w),!_)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},6138:(e,t,s)=>{"use strict";var r=s(9098),n=s(1003),i=s(7013),o=s(1203),a=s(6453),c="AggregateError",l=n(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,s){return i(e,this,arguments)}}),u,!0)})},3085:(e,t,s)=>{"use strict";var r=s(9098),n=s(4317),i=s(3671),o=s(3491),a=s(7464),c=s(5780),l=s(3999),u=s(480),m=s(8148),d=s(4279),p=s(208),h=s(4879),_=s(8655)("toStringTag"),f=Error,g=[].push,y=function(e,t){var s,r=n(v,this);o?s=o(new f,r?i(this):v):(s=r?this:c(v),l(s,_,"Error")),void 0!==t&&l(s,"message",h(t)),d(s,y,s.stack,1),arguments.length>2&&m(s,arguments[2]);var a=[];return p(e,g,{that:a}),l(s,"errors",a),s};o?o(y,f):a(y,f,{name:!0});var v=y.prototype=c(f.prototype,{constructor:u(1,y),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},5695:(e,t,s)=>{"use strict";s(3085)},9828:(e,t,s)=>{"use strict";var r=s(3273),n=s(8137),i=s(6625),o=s(8417),a=s(9989).f,c=s(164),l=s(877),u=s(4871),m=s(5024),d="Array Iterator",p=o.set,h=o.getterFor(d);e.exports=c(Array,"Array",(function(e,t){p(this,{type:d,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,s=e.index++;if(!t||s>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(s,!1);case"values":return l(t[s],!1)}return l([s,t[s]],!1)}),"values");var _=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&m&&"values"!==_.name)try{a(_,"name",{value:"values"})}catch(e){}},484:(e,t,s)=>{"use strict";var r=s(9098),n=s(8900),i=s(7013),o=s(6453),a="WebAssembly",c=n[a],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var s={};s[e]=o(e,t,l),r({global:!0,constructor:!0,arity:1,forced:l},s)},m=function(e,t){if(c&&c[e]){var s={};s[e]=o(a+"."+e,t,l),r({target:a,stat:!0,constructor:!0,arity:1,forced:l},s)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),m("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),m("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),m("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},3832:(e,t,s)=>{"use strict";var r=s(5571).charAt,n=s(1139),i=s(8417),o=s(164),a=s(877),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:n(e),index:0})}),(function(){var e,t=u(this),s=t.string,n=t.index;return n>=s.length?a(void 0,!0):(e=r(s,n),t.index+=e.length,a(e,!1))}))},5442:(e,t,s)=>{"use strict";s(5695)},85:(e,t,s)=>{"use strict";s(9828);var r=s(1100),n=s(8900),i=s(1811),o=s(6625);for(var a in r)i(n[a],a),o[a]=o.Array},239:(e,t,s)=>{"use strict";s(5442);var r=s(6656);s(85),e.exports=r}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var s=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(s.exports,s,s.exports,__webpack_require__),s.loaded=!0,s.exports}__webpack_require__.d=(e,t)=>{for(var s in t)__webpack_require__.o(t,s)&&!__webpack_require__.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var s=t.getElementsByTagName("script");if(s.length)for(var r=s.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=s[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})();var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{detect:()=>Rf,detectionRegExp:()=>Ff,mediaTypes:()=>Tf,namespace:()=>Nf,parse:()=>If});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>sn,includesClasses:()=>nn,includesSymbols:()=>rn,isAnnotationElement:()=>Yr,isArrayElement:()=>zr,isBooleanElement:()=>Gr,isCommentElement:()=>Xr,isElement:()=>Lr,isLinkElement:()=>Kr,isMemberElement:()=>Zr,isNullElement:()=>Hr,isNumberElement:()=>Vr,isObjectElement:()=>Wr,isParseResultElement:()=>Qr,isPrimitiveElement:()=>tn,isRefElement:()=>Jr,isSourceMapElement:()=>en,isStringElement:()=>Ur});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>qa,isJSONSchemaElement:()=>ka,isLinkDescriptionElement:()=>Ba,isMediaElement:()=>Da});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{isBooleanJsonSchemaElement:()=>bl,isCallbackElement:()=>el,isComponentsElement:()=>tl,isContactElement:()=>sl,isExampleElement:()=>rl,isExternalDocumentationElement:()=>nl,isHeaderElement:()=>il,isInfoElement:()=>ol,isLicenseElement:()=>al,isLinkElement:()=>cl,isMediaTypeElement:()=>jl,isOpenApi3_0Element:()=>ul,isOpenapiElement:()=>ll,isOperationElement:()=>ml,isParameterElement:()=>dl,isPathItemElement:()=>pl,isPathsElement:()=>hl,isReferenceElement:()=>_l,isRequestBodyElement:()=>fl,isResponseElement:()=>gl,isResponsesElement:()=>yl,isSchemaElement:()=>vl,isSecurityRequirementElement:()=>wl,isSecuritySchemeElement:()=>El,isServerElement:()=>xl,isServerVariableElement:()=>Sl,isServersElement:()=>Ol});var r={};function n(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function i(e){return function t(s){return 0===arguments.length||n(s)?t:e.apply(this,arguments)}}function o(e){return function t(s,r){switch(arguments.length){case 0:return t;case 1:return n(s)?t:i((function(t){return e(s,t)}));default:return n(s)&&n(r)?t:n(s)?i((function(t){return e(t,r)})):n(r)?i((function(t){return e(s,t)})):e(s,r)}}}function a(e){return function t(s,r,a){switch(arguments.length){case 0:return t;case 1:return n(s)?t:o((function(t,r){return e(s,t,r)}));case 2:return n(s)&&n(r)?t:n(s)?o((function(t,s){return e(t,r,s)})):n(r)?o((function(t,r){return e(s,t,r)})):i((function(t){return e(s,r,t)}));default:return n(s)&&n(r)&&n(a)?t:n(s)&&n(r)?o((function(t,s){return e(t,s,a)})):n(s)&&n(a)?o((function(t,s){return e(t,r,s)})):n(r)&&n(a)?o((function(t,r){return e(s,t,r)})):n(s)?i((function(t){return e(t,r,a)})):n(r)?i((function(t){return e(s,t,a)})):n(a)?i((function(t){return e(s,r,t)})):e(s,r,a)}}}__webpack_require__.r(r),__webpack_require__.d(r,{isBooleanJsonSchemaElement:()=>Kh,isCallbackElement:()=>Oh,isComponentsElement:()=>Ph,isContactElement:()=>Ah,isExampleElement:()=>Mh,isExternalDocumentationElement:()=>Th,isHeaderElement:()=>Fh,isInfoElement:()=>Rh,isJsonSchemaDialectElement:()=>Ih,isLicenseElement:()=>Nh,isLinkElement:()=>Ch,isMediaTypeElement:()=>e_,isOpenApi3_1Element:()=>kh,isOpenapiElement:()=>$h,isOperationElement:()=>qh,isParameterElement:()=>Dh,isPathItemElement:()=>Bh,isPathItemElementExternal:()=>Lh,isPathsElement:()=>Uh,isReferenceElement:()=>Vh,isReferenceElementExternal:()=>Hh,isRequestBodyElement:()=>Gh,isResponseElement:()=>Wh,isResponsesElement:()=>zh,isSchemaElement:()=>Zh,isSecurityRequirementElement:()=>Jh,isSecuritySchemeElement:()=>Yh,isServerElement:()=>Xh,isServerVariableElement:()=>Qh});const c=o((function(e,t){return null==t||t!=t?e:t})),l=Number.isInteger||function(e){return(e|0)===e};function u(e){return"[object String]"===Object.prototype.toString.call(e)}function m(e,t){var s=e<0?t.length+e:e;return u(t)?t.charAt(s):t[s]}const d=o((function(e,t){if(null!=t)return l(e)?m(e,t):t[e]}));const p=a((function(e,t,s){return c(e,d(t,s))}));const h=o((function(e,t){for(var s={},r={},n=0,i=e.length;n<i;)r[e[n]]=1,n+=1;for(var o in t)r.hasOwnProperty(o)||(s[o]=t[o]);return s}));function _(e,t,s){for(var r=0,n=s.length;r<n;)t=e(t,s[r]),r+=1;return t}const f=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const g=i((function(e){return!!f(e)||!!e&&("object"==typeof e&&(!u(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var y="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function v(e,t,s){return function(r,n,i){if(g(i))return e(r,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(r,n,i,"fantasy-land/reduce");if(null!=i[y])return s(r,n,i[y]());if("function"==typeof i.next)return s(r,n,i);if("function"==typeof i.reduce)return t(r,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function b(e,t,s){for(var r=s.next();!r.done;)t=e(t,r.value),r=s.next();return t}function w(e,t,s,r){return s[r](e,t)}const E=v(_,w,b);function x(e,t,s){return function(){if(0===arguments.length)return s();var r=arguments[arguments.length-1];if(!f(r)){for(var n=0;n<e.length;){if("function"==typeof r[e[n]])return r[e[n]].apply(r,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return s.apply(this,arguments)}}function S(e,t){for(var s=0,r=t.length,n=Array(r);s<r;)n[s]=e(t[s]),s+=1;return n}const j=function(){return this.xf["@@transducer/init"]()},O=function(e){return this.xf["@@transducer/result"](e)};var P=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=O,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const A=function(e){return function(t){return new P(e,t)}};function M(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,s){return t.apply(this,arguments)};case 3:return function(e,s,r){return t.apply(this,arguments)};case 4:return function(e,s,r,n){return t.apply(this,arguments)};case 5:return function(e,s,r,n,i){return t.apply(this,arguments)};case 6:return function(e,s,r,n,i,o){return t.apply(this,arguments)};case 7:return function(e,s,r,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,s,r,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,s,r,n,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,s,r,n,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function T(e,t,s){return function(){for(var r=[],i=0,o=e,a=0,c=!1;a<t.length||i<arguments.length;){var l;a<t.length&&(!n(t[a])||i>=arguments.length)?l=t[a]:(l=arguments[i],i+=1),r[a]=l,n(l)?c=!0:o-=1,a+=1}return!c&&o<=0?s.apply(this,r):M(Math.max(0,o),T(e,r,s))}}const F=o((function(e,t){return 1===e?i(t):M(e,T(e,[],t))}));function R(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var I=Object.prototype.toString;const N=function(){return"[object Arguments]"===I.call(arguments)?function(e){return"[object Arguments]"===I.call(e)}:function(e){return R("callee",e)}}();var C=!{toString:null}.propertyIsEnumerable("toString"),$=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=function(){return arguments.propertyIsEnumerable("length")}(),q=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1};const D="function"!=typeof Object.keys||k?i((function(e){if(Object(e)!==e)return[];var t,s,r=[],n=k&&N(e);for(t in e)!R(t,e)||n&&"length"===t||(r[r.length]=t);if(C)for(s=$.length-1;s>=0;)R(t=$[s],e)&&!q(r,t)&&(r[r.length]=t),s-=1;return r})):i((function(e){return Object(e)!==e?[]:Object.keys(e)}));const B=o(x(["fantasy-land/map","map"],A,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return F(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return _((function(s,r){return s[r]=e(t[r]),s}),{},D(t));default:return S(e,t)}})));const L=o((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(s){return e(s)(t(s))}:E((function(e,s){return function(e,t){var s;t=t||[];var r=(e=e||[]).length,n=t.length,i=[];for(s=0;s<r;)i[i.length]=e[s],s+=1;for(s=0;s<n;)i[i.length]=t[s],s+=1;return i}(e,B(s,t))}),[],e)}));const U=o((function(e,t){var s=F(e,t);return F(e,(function(){return _(L,B(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const V=i((function(e){return U(e.length,e)}));const H=V(i((function(e){return!e})));function G(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function W(e,t,s){for(var r=0,n=s.length;r<n;){if(e(t,s[r]))return!0;r+=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 Z=i((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function K(e,t,s,r){var n=G(e);function i(e,t){return J(e,t,s.slice(),r.slice())}return!W((function(e,t){return!W(i,t,e)}),G(t),n)}function J(e,t,s,r){if(z(e,t))return!0;var n,i,o=Z(e);if(o!==Z(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=s.length-1;a>=0;){if(s[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&K(e.entries(),t.entries(),s.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&K(e.values(),t.values(),s.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=D(e);if(c.length!==D(t).length)return!1;var l=s.concat([e]),u=r.concat([t]);for(a=c.length-1;a>=0;){var m=c[a];if(!R(m,t)||!J(t[m],e[m],l,u))return!1;a-=1}return!0}const Y=o((function(e,t){return J(e,t,[],[])}));const X=i((function(e){return function(){return e}}));const Q=X(void 0);const ee=Y(Q());const te=H(ee);var se=__webpack_require__(8326);function re(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ne(e,t,s){for(var r=0,n=s.length;r<n;){if((t=e["@@transducer/step"](t,s[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const ie=o((function(e,t){return M(e.length,(function(){return e.apply(t,arguments)}))}));function oe(e,t,s){for(var r=s.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=s.next()}return e["@@transducer/result"](t)}function ae(e,t,s,r){return e["@@transducer/result"](s[r](ie(e["@@transducer/step"],e),t))}const ce=v(ne,ae,oe);var le=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function ue(e){return new le(e)}const me=a((function(e,t,s){return ce("function"==typeof e?ue(e):e,t,s)}));function de(e,t){return function(){var s=arguments.length;if(0===s)return t();var r=arguments[s-1];return f(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,s-1))}}const pe=a(de("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const he=i(de("tail",pe(1,1/0)));function _e(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return M(arguments[0].length,me(re,arguments[0],he(arguments)))}var fe=function(e,t){switch(arguments.length){case 0:return fe;case 1:return function t(s){return 0===arguments.length?t:z(e,s)};default:return z(e,t)}};const ge=fe;function ye(e,t){return function(e,t,s){var r,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;s<e.length;){if(0===(n=e[s])&&1/n===r)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(n=e[s])&&n!=n)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(Y(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function ve(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 be=function(e){return(e<10?"0":"")+e};const we="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+be(e.getUTCMonth()+1)+"-"+be(e.getUTCDate())+"T"+be(e.getUTCHours())+":"+be(e.getUTCMinutes())+":"+be(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Ee(e){return"[object Object]"===Object.prototype.toString.call(e)}var xe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=O,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Se(e){return function(t){return new xe(e,t)}}const je=o(x(["fantasy-land/filter","filter"],Se,(function(e,t){return Ee(t)?_((function(s,r){return e(t[r])&&(s[r]=t[r]),s}),{},D(t)):function(e,t){for(var s=0,r=t.length,n=[];s<r;)e(t[s])&&(n[n.length]=t[s]),s+=1;return n}(e,t)})));const Oe=o((function(e,t){return je((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Pe(e,t){var s=function(s){var r=t.concat([e]);return ye(s,r)?"<Circular>":Pe(s,r)},r=function(e,t){return S((function(t){return ve(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+S(s,e).join(", ")+"))";case"[object Array]":return"["+S(s,e).concat(r(e,Oe((function(e){return/^\d+$/.test(e)}),D(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):ve(we(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":ve(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+r(e,D(e)).join(", ")+"}"}}const Ae=i((function(e){return Pe(e,[])}));function Me(e,t){for(var s=t,r=0;r<e.length;r+=1){if(null==s)return;var n=e[r];s=l(n)?m(n,s):s[n]}return s}const Te=a((function(e,t,s){return e(Me(t,s))}));function Fe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Re=o((function(e,t){return e&&t}));const Ie=o((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:V(Re)(e,t)}));const Ne=Y(null);const Ce=H(Ne);function $e(e){return $e="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},$e(e)}const ke=function(e){return"object"===$e(e)};const qe=F(1,Ie(Ce,ke));const De=o((function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var r=s(e,t);if(void 0!==r)return r;var n=s(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Ae(e),o=s(i,Ae(t));return void 0!==o&&o===i?e:t}));const Be=o((function(e,t){return B(d(e),t)}));const Le=i((function(e){return F(me(De,0,Be("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const Ue=F(1,_e(Z,ge("GeneratorFunction")));const Ve=F(1,_e(Z,ge("AsyncFunction")));const He=Le([_e(Z,ge("Function")),Ue,Ve]);var Ge=_e(Z,ge("Object")),We=_e(Ae,Y(Ae(Object))),ze=Te(Ie(He,We),["constructor"]);const Ze=F(1,(function(e){if(!qe(e)||!Ge(e))return!1;var t=Object.getPrototypeOf(e);return!!Ne(t)||ze(t)}));class Ke extends se.Om{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Je=Ke;class Ye extends se.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const Xe=Ye;class Qe extends se.wE{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(ee(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const et=Qe;class tt extends se.wE{constructor(e,t,s){super(e,t,s),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 se.wE([e.start.row,e.start.column,e.start.char]),s=new se.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),s.classes.push("position"),this.push(t).push(s)}}const st=tt;class rt extends se.g${constructor(){super(),this.register("annotation",Je),this.register("comment",Xe),this.register("parseResult",et),this.register("sourceMap",st)}}const nt=new rt,it=e=>{const t=new rt;return Ze(e)&&t.use(e),t},ot=nt;const at=F(1,_e(Z,ge("String"))),ct=__webpack_require__.p+"20cf92ce276cf3be872fb26fd7985dd3.wasm",lt=globalThis.fetch;He(lt)&&(globalThis.fetch=(...e)=>at(e[0])&&e[0].endsWith("tree-sitter.wasm")?lt.apply(globalThis,[ct,he(e)]):lt.apply(globalThis,e));var ut=__webpack_require__(3833),mt=__webpack_require__(1212);const dt=class extends mt{constructor(e,t,s){if(super(e,t,s),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=s&&"object"==typeof s&&Object.hasOwn(s,"cause")&&!("cause"in this)){const{cause:e}=s;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class pt 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 ht=pt,_t=__webpack_require__.p+"fcc2efc64ace4e98eaa856cf3b3edf1f.wasm";let ft=null,gt=null;const yt=async e=>{if(null===ft&&null===gt)gt=ut.init().then((()=>ut.Language.load(_t))).then((e=>{const t=new ut;return t.setLanguage(e),t})).finally((()=>{gt=null})),ft=await gt;else if(null===ft&&null!==gt)ft=await gt;else if(null===ft)throw new ht("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return ft.parse(e)};function vt(e,t,s){if(s||(s=new bt),n=typeof(r=e),null==r||"object"!=n&&"function"!=n)return e;var r,n,i,o=function(r){var n=s.get(e);if(n)return n;for(var i in s.set(e,r),e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t?vt(e[i],!0,s):e[i]);return r};switch(Z(e)){case"Object":return o(Object.create(Object.getPrototypeOf(e)));case"Array":return o(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return i=e,new RegExp(i.source,i.flags?i.flags:(i.global?"g":"")+(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.sticky?"y":"")+(i.unicode?"u":"")+(i.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var bt=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var s=this.hash(e),r=this.map[s];r||(this.map[s]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var s in e)t.push(Object.prototype.toString.call(e[s]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var s=this.map[t],r=0;r<s.length;r+=1){if((i=s[r])[0]===e)return i[1]}else{var n=this.hash(e);if(s=this.map[n])for(r=0;r<s.length;r+=1){var i;if((i=s[r])[0]===e)return i[1]}}},e}();const wt=i((function(e){return null!=e&&"function"==typeof e.clone?e.clone():vt(e,!0)}));const Et=class extends ht{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const xt=class extends Et{};const St=class extends xt{};const jt=class extends St{specificTagName;explicitTagName;tagKind;tagPosition;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const Ot=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:s=!1}={}){this.type=this.constructor.type,this.isMissing=s,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const s=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,s)})),e}};let Pt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const At=class extends Ot{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...s}){super({...s}),this.explicitName=e,this.kind=t}};const Mt=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Tt=class extends Mt{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Pt.Mapping}};const Ft=class extends Mt{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Pt.Sequence}};const Rt=class extends Mt{static uri="tag:yaml.org,2002:str"};const It=a((function(e,t,s){return c(e,Me(t,s))}));const Nt=i((function(e){return F(e.length,e)}));var Ct="\t\n\v\f\r \u2028\u2029\ufeff";const $t=i("function"==typeof String.prototype.trim&&!Ct.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Ct+"]["+Ct+"]*"),s=new RegExp("["+Ct+"]["+Ct+"]*$");return e.replace(t,"").replace(s,"")});const kt=o((function(e,t){return F(e+1,(function(){var s=arguments[e];if(null!=s&&Fe(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ae(s)+' does not have a method named "'+t+'"')}))}));const qt=kt(1,"split");const Dt=kt(1,"join");const Bt=i((function(e){return u(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Lt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return _e.apply(this,Bt(arguments))}const Ut=F(4,(function(e,t,s,r){return ce(e("function"==typeof t?ue(t):t),s,r)}));const Vt=o((function(e,t){if(f(e)){if(f(t))return e.concat(t);throw new TypeError(Ae(t)+" is not an array")}if(u(e)){if(u(t))return e+t;throw new TypeError(Ae(t)+" is not a string")}if(null!=e&&Fe(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&Fe(e.concat))return e.concat(t);throw new TypeError(Ae(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Ht=Y("");const Gt=o((function(e,t){return F(me(De,0,Be("length",t)),(function(){var s=arguments,r=this;return e.apply(r,S((function(e){return e.apply(r,s)}),t))}))}));function Wt(e){return e}const zt=i(Wt);const Zt=F(1,_e(Z,ge("Number")));var Kt=Ie(Zt,isFinite);var Jt=F(1,Kt);const Yt=He(Number.isFinite)?F(1,ie(Number.isFinite,Number)):Jt;var Xt=Ie(Yt,Gt(Y,[Math.floor,zt]));var Qt=F(1,Xt);const es=He(Number.isInteger)?F(1,ie(Number.isInteger,Number)):Qt;const ts=i((function(e){return F(e.length,(function(t,s){var r=Array.prototype.slice.call(arguments,0);return r[0]=s,r[1]=t,e.apply(this,r)}))}));const ss=H(Yt);const rs=F(1,Ie(Zt,o((function(e,t){return e>t}))(0)));var ns=Nt((function(e,t){var s=Number(t);if(s!==t&&(s=0),rs(s))throw new RangeError("repeat count must be non-negative");if(ss(s))throw new RangeError("repeat count must be less than infinity");if(s=Math.floor(s),0===e.length||0===s)return"";if(e.length*s>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*s;s=Math.floor(Math.log(s)/Math.log(2));for(var n=e;s;)n+=e,s-=1;return n+=n.substring(0,r-n.length)})),is=ts(kt(1,"repeat"));const os=He(String.prototype.repeat)?is:ns;const as=a((function(e,t,s){return s.replace(e,t)}));var cs=as(/[\s\uFEFF\xA0]+$/,""),ls=kt(0,"trimEnd");const us=He(String.prototype.trimEnd)?ls:cs;var ms=as(/^[\s\uFEFF\xA0]+/,""),ds=kt(0,"trimStart");const ps=He(String.prototype.trimStart)?ds:ms;var hs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=O,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 _s(e){return function(t){return new hs(e,t)}}const fs=o(x(["dropWhile"],_s,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return pe(s,1/0,t)})));const gs=ts(o(ye));const ys=Nt((function(e,t){return _e(qt(""),fs(gs(e)),Dt(""))(t)}));const vs=ts(Vt);var bs=__webpack_require__(6850);const ws=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Es=e=>{const t=(e=>{const t=e.match(ws),s=It("",["groups","indentation"],t);return Ht(s)?void 0:parseInt(s,10)})(e);if(es(t))return os(" ",t);const s=It("",[1],e.split("\n")),r=It(0,["groups","indentation","length"],s.match(/^(?<indentation>[ ]*)/));return os(" ",r)},xs=e=>{const t=e.match(ws),s=It("",["groups","chomping"],t);return Ht(s)?void 0:s},Ss=(e,t)=>ee(e)?`${us(t)}\n`:"-"===e?us(t):t,js=e=>e.replace(/\r\n/g,"\n"),Os=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,s)=>t?e:` ${s.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Ps=Nt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),As=_e(js,$t,Os,qt("\n"),B(ps),Dt("\n")),Ms=_e(js,$t,Os,qt("\n"),B(ps),Dt("\n"),Ps("'")),Ts=_e(js,$t,(e=>e.replace(/\\\n\s*/g,"")),Os,bs.MH,qt("\n"),B(ps),Dt("\n"),Ps('"'));let Fs=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),Rs=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Is=class{static test(e){return e.tag.kind===Pt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const s=e.clone();return e.style===Fs.Plain?t=As(e.content):e.style===Fs.SingleQuoted?t=Ms(e.content):e.style===Fs.DoubleQuoted?t=Ts(e.content):e.style===Fs.Literal?t=(e=>{const t=Es(e),s=xs(e),r=js(e),n=he(r.split("\n")),i=Lt(B(ys(t)),B(vs("\n"))),o=Ut(i,Vt,"",n);return Ss(s,o)})(e.content):e.style===Fs.Folded&&(t=(e=>{const t=Es(e),s=xs(e),r=js(e),n=he(r.split("\n")),i=Lt(B(ys(t)),B(vs("\n"))),o=Ut(i,Vt,"",n),a=Os(o);return Ss(s,a)})(e.content)),s.content=t,s}static resolve(e){return e}};const Ns=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Tt),this.registerTag(new Ft),this.registerTag(new Rt)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Pt.Scalar?t=Rt.uri:e.tag.kind===Pt.Sequence?t=Ft.uri:e.tag.kind===Pt.Mapping&&(t=Tt.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t}registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})}registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this}overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this}resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let s=e;Is.test(e)&&(s=Is.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new jt(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:wt(e.tag.position),node:e.clone()});if(!r.test(s))throw new jt(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:wt(e.tag.position),nodeCanonicalContent:s.content,node:e.clone()});return r.resolve(s)}};const Cs=class extends Mt{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,s=e.clone();return s.content=t,s}};const $s=class extends Mt{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),s=e.clone();return s.content=t,s}};const ks=class extends Mt{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),s=e.clone();return s.content=t,s}};const qs=class extends Mt{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const Ds=class extends Ns{constructor(){super(),this.registerTag(new Cs,!0),this.registerTag(new $s,!0),this.registerTag(new ks,!0),this.registerTag(new qs,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===Pt.Sequence)t=Ft.uri;else if(e.tag.kind===Pt.Mapping)t=Tt.uri;else if(e.tag.kind===Pt.Scalar){const s=this.tags.find((t=>t.test(e)));t=(null==s?void 0:s.tag)||"?"}return t}};const Bs=class extends Ot{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:s,styleGroup:r,...n}){super({...n}),this.anchor=e,this.tag=t,this.style=s,this.styleGroup=r}};const Ls=class extends Bs{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Us=class extends xt{},Vs=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Hs=e=>Vs("mapping",e),Gs=e=>Vs("sequence",e),Ws=e=>Vs("keyValuePair",e),zs=e=>Vs("scalar",e),Zs=e=>Vs("alias",e);const Ks=class{addAnchor(e){if(!(e=>Vs("anchor",e))(e.anchor))throw new Us("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Ls({content:e.content,style:Fs.Plain,styleGroup:Rs.Flow})}},Js=(e,t,s)=>{const r=e[t];if(null!=r){if(!s&&"function"==typeof r)return r;const e=s?r.leave:r.enter;if("function"==typeof e)return e}else{const r=s?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},Ys={},Xs=e=>null==e?void 0:e.type,Qs=e=>"string"==typeof Xs(e),er=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),tr=(e,{visitFnGetter:t=Js,nodeTypeGetter:s=Xs,breakSymbol:r=Ys,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,u,m,d,p,h){let _=l,f=!1;const g={...h,replaceWith(e,t){h.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=a.call(e[l],_,u,m,d,p,g);if("function"==typeof(null==t?void 0:t.then))throw new Et("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},leave(n,o,l,u,m,d){let p=n;const h={...d,replaceWith(e,t){d.replaceWith(e,t),p=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(p),!0);if("function"==typeof a){const t=a.call(e[n],p,o,l,u,m,h);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===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===p&&(c[n]=a)}}};tr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Js,nodeTypeGetter:s=Xs,breakSymbol:r=Ys,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(l,u,m,d,p,h){let _=l,f=!1;const g={...h,replaceWith(e,t){h.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=await a.call(e[l],_,u,m,d,p,g);if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},async leave(n,o,l,u,m,d){let p=n;const h={...d,replaceWith(e,t){d.replaceWith(e,t),p=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(p),!0);if("function"==typeof a){const t=await a.call(e[n],p,o,l,u,m,h);if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===p&&(c[n]=a)}}};const sr=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=Ys,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Js,nodeTypeGetter:c=Xs,nodePredicate:l=Qs,nodeCloneFn:u=er,detectCycles:m=!0}={})=>{const d=s||{};let p,h,_=Array.isArray(e),f=[e],g=-1,y=[],v=e;const b=[],w=[];do{g+=1;const e=g===f.length;let s;const S=e&&0!==y.length;if(e){if(s=0===w.length?void 0:b.pop(),v=h,h=w.pop(),S)if(_){v=v.slice();let e=0;for(const[t,s]of y){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=u(v);for(const[e,t]of y)v[e]=t}g=p.index,f=p.keys,y=p.edits,_=p.inArray,p=p.prev}else if(h!==i&&void 0!==h){if(s=_?g:f[g],v=h[s],v===i||void 0===v)continue;b.push(s)}let j;if(!Array.isArray(v)){var E;if(!l(v))throw new Et(`Invalid AST Node: ${String(v)}`,{node:v});if(m&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,v,s,h,b,w):h&&(h[s]=t),e||(v=t)}};j=i.call(t,v,s,h,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&&(y.push([s,j]),!e)){if(!l(j)){b.pop();continue}v=j}}var x;if(void 0===j&&S&&y.push([s,v]),!e)p={inArray:_,index:g,keys:f,edits:y,prev:p},_=Array.isArray(v),f=_?v:null!==(x=d[c(v)])&&void 0!==x?x:[],g=-1,y=[],h!==i&&void 0!==h&&w.push(h),h=v}while(void 0!==p);return 0!==y.length?y[y.length-1][1]:e};sr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=Ys,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Js,nodeTypeGetter:c=Xs,nodePredicate:l=Qs,nodeCloneFn:u=er,detectCycles:m=!0}={})=>{const d=s||{};let p,h,_=Array.isArray(e),f=[e],g=-1,y=[],v=e;const b=[],w=[];do{g+=1;const e=g===f.length;let s;const x=e&&0!==y.length;if(e){if(s=0===w.length?void 0:b.pop(),v=h,h=w.pop(),x)if(_){v=v.slice();let e=0;for(const[t,s]of y){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=u(v);for(const[e,t]of y)v[e]=t}g=p.index,f=p.keys,y=p.edits,_=p.inArray,p=p.prev}else if(h!==i&&void 0!==h){if(s=_?g:f[g],v=h[s],v===i||void 0===v)continue;b.push(s)}let S;if(!Array.isArray(v)){if(!l(v))throw new Et(`Invalid AST Node: ${String(v)}`,{node:v});if(m&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,v,s,h,b,w):h&&(h[s]=t),e||(v=t)}};S=await i.call(t,v,s,h,b,w,n)}if(S===n)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(y.push([s,S]),!e)){if(!l(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&y.push([s,v]),!e)p={inArray:_,index:g,keys:f,edits:y,prev:p},_=Array.isArray(v),f=_?v:null!==(E=d[c(v)])&&void 0!==E?E:[],g=-1,y=[],h!==i&&void 0!==h&&w.push(h),h=v}while(void 0!==p);return 0!==y.length?y[y.length-1][1]:e};class rr{static type="point";type=rr.type;row;column;char;constructor({row:e,column:t,char:s}){this.row=e,this.column=t,this.char=s}}class nr{static type="position";type=nr.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const ir=nr;const or=class extends Ot{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class ar extends Ot{static type="stream"}Object.defineProperty(ar.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Vs("document",e))(e)||(e=>Vs("comment",e))(e))):[]},enumerable:!0});const cr=ar;const lr=i((function(e){return m(0,e)}));const ur=class extends Ot{static type="parseResult";get rootNode(){return lr(this.children)}};const mr="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),s=1,r=arguments.length;s<r;){var n=arguments[s];if(null!=n)for(var i in n)R(i,n)&&(t[i]=n[i]);s+=1}return t};const dr=o((function(e,t){return mr({},e,t)}));const pr=class extends Ot{static type="directive";name;parameters;constructor({name:e,parameters:t,...s}){super({...s}),this.name=e,this.parameters=dr({version:void 0,handle:void 0,prefix:void 0},t)}};const hr=class extends Ot{static type="document"};const _r=class extends Bs{};class fr extends _r{static type="mapping"}Object.defineProperty(fr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Ws):[]},enumerable:!0});const gr=fr;class yr extends Ot{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(yr.prototype,{key:{get(){return this.children.filter((e=>zs(e)||Hs(e)||Gs(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>zs(e)||Hs(e)||Gs(e)||Zs(e))(t)))[0]},enumerable:!0}});const vr=yr;class br extends _r{static type="sequence"}Object.defineProperty(br.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Gs(e)||Hs(e)||zs(e)||Zs(e))):[]},enumerable:!0});const wr=br;const Er=class extends Ot{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const xr=class extends Ot{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Sr=class extends Ot{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const jr=class extends Ot{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}};const Or=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;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("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},Pr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Ar=e=>Array.isArray(e)||Qs(e);class Mr{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(e){return t=>null!=t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.endsWith(e)}static toPosition(e){const t=new rr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),s=new rr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new ir({start:t,end:s})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new or({name:t.text,position:Mr.toPosition(t)})}static hasKeyValuePairEmptyKey(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode}static hasKeyValuePairEmptyValue(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode}static kindNodeToYamlTag(e){const{tag:t}=e,s=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?Pt.Mapping:e.type.endsWith("sequence")?Pt.Sequence:Pt.Scalar,n=t?Mr.toPosition(t):void 0;return new At({explicitName:s,kind:r,position:n})}schema;referenceManager;stream={enter:e=>{const t=Mr.toPosition(e);return new cr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new ur({children:[e]})};yaml_directive={enter:e=>{var t;const s=Mr.toPosition(e),r=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new pr({position:s,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:e=>{const t=Mr.toPosition(e),s=e.children[0],r=e.children[1],n=new pr({position:t,name:"%TAG",parameters:{handle:null==s?void 0:s.text,prefix:null==r?void 0:r.text}});return this.schema.registerTagDirective(n),n}};reserved_directive={enter:e=>{const t=Mr.toPosition(e),s=e.children[0],r=e.children[1],n=e.children[2];return new pr({position:t,name:null==s?void 0:s.text,parameters:{handle:null==r?void 0:r.text,prefix:null==n?void 0:n.text}})}};document={enter:e=>{const t=Mr.toPosition(e);return new hr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if(Mr.isScalar(t)||Mr.isMapping(t)||Mr.isSequence(t))return e.children;const s=new rr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),r=new Ls({content:"",anchor:Mr.kindNodeToYamlAnchor(t),tag:Mr.kindNodeToYamlTag(t),position:new ir({start:s,end:s}),styleGroup:Rs.Flow,style:Fs.Plain});return this.registerAnchor(r),[...e.children,r]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=new gr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Rs.Block,style:Fs.NextLine,isMissing:e.isMissing});return this.registerAnchor(n),this.schema.resolve(n)}};block_mapping_pair={enter:e=>{const t=Mr.toPosition(e),s=[...e.children];if(Mr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);s.unshift(t)}if(Mr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);s.push(t)}return new vr({children:s,position:t,styleGroup:Rs.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=new gr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Rs.Flow,style:Fs.Explicit,isMissing:e.isMissing});return this.registerAnchor(n),this.schema.resolve(n)}};flow_pair={enter:e=>{const t=Mr.toPosition(e),s=[...e.children];if(Mr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);s.unshift(t)}if(Mr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);s.push(t)}return new vr({children:s,position:t,styleGroup:Rs.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=new wr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Rs.Block,style:Fs.NextLine});return this.registerAnchor(n),this.schema.resolve(n)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new rr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new Ls({content:"",tag:new At({explicitName:"?",kind:Pt.Scalar}),position:new ir({start:t,end:t}),styleGroup:Rs.Flow,style:Fs.Plain})]}};flow_sequence={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=new wr({children:e.children.flat(),position:t,anchor:r,tag:s,styleGroup:Rs.Flow,style:Fs.Explicit});return this.registerAnchor(n),this.schema.resolve(n)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=new Ls({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Flow,style:Fs.Plain});return this.registerAnchor(n),this.schema.resolve(n)}};single_quote_scalar={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=new Ls({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Flow,style:Fs.SingleQuoted});return this.registerAnchor(n),this.schema.resolve(n)}};double_quote_scalar={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=new Ls({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Flow,style:Fs.DoubleQuoted});return this.registerAnchor(n),this.schema.resolve(n)}};block_scalar={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=e.text.startsWith("|")?Fs.Literal:e.text.startsWith(">")?Fs.Folded:Fs.Plain,i=new Ls({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Block,style:n});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:e=>new Er({content:e.text})};alias={enter:e=>{const t=new xr({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Or&&!e.isNamed){const t=Mr.toPosition(e),s=e.type||e.text,{isMissing:r}=e;return new Sr({value:s,position:t,isMissing:r})}}ERROR(e,t,s,r){const n=Mr.toPosition(e),i=new jr({children:e.children,position:n,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===r.length?new ur({children:[i]}):i}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new rr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:s}=e,r=(null==s?void 0:s.children)||[],n=r.find(Mr.isKind("tag")),i=r.find(Mr.isKind("anchor")),o=new At(void 0!==n?{explicitName:n.text,kind:Pt.Scalar,position:Mr.toPosition(n)}:{explicitName:"?",kind:Pt.Scalar}),a=void 0!==i?new or({name:i.text,position:Mr.toPosition(i)}):void 0,c=new Ls({content:"",position:new ir({start:t,end:t}),tag:o,anchor:a,styleGroup:Rs.Flow,style:Fs.Plain});return this.registerAnchor(c),c}createKeyValuePairEmptyValue(e){const t=new rr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:s}=e,r=(null==s?void 0:s.children)||[],n=r.find(Mr.isKind("tag")),i=r.find(Mr.isKind("anchor")),o=new At(void 0!==n?{explicitName:n.text,kind:Pt.Scalar,position:Mr.toPosition(n)}:{explicitName:"?",kind:Pt.Scalar}),a=void 0!==i?new or({name:i.text,position:Mr.toPosition(i)}):void 0,c=new Ls({content:"",position:new ir({start:t,end:t}),tag:o,anchor:a,styleGroup:Rs.Flow,style:Fs.Plain});return this.registerAnchor(c),c}}const Tr=Mr;function Fr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Rr=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=j,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=Fr(this.xf["@@transducer/step"](e,!1))),e},e}();function Ir(e){return function(t){return new Rr(e,t)}}const Nr=o(x(["all"],Ir,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0}))),Cr=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],$r=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,kr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),qr=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof se.wE)&&t.classes.includes(e),Dr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Br=e=>e({hasMethod:Cr,hasBasicElementProps:$r,primitiveEq:kr,isElementType:Dr,hasClass:qr}),Lr=Br((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof se.Hg||e(s)&&t(void 0,s))),Ur=Br((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof se.Om||e(s)&&t("string",s))),Vr=Br((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof se.kT||e(s)&&t("number",s))),Hr=Br((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof se.Os||e(s)&&t("null",s))),Gr=Br((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof se.bd||e(s)&&t("boolean",s))),Wr=Br((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof se.Sh||e(r)&&t("object",r)&&s("keys",r)&&s("values",r)&&s("items",r))),zr=Br((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof se.wE&&!(r instanceof se.Sh)||e(r)&&t("array",r)&&s("push",r)&&s("unshift",r)&&s("map",r)&&s("reduce",r))),Zr=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof se.Pr||e(r)&&t("member",r)&&s(void 0,r))),Kr=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof se.Ft||e(r)&&t("link",r)&&s(void 0,r))),Jr=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof se.sI||e(r)&&t("ref",r)&&s(void 0,r))),Yr=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Je||e(r)&&t("annotation",r)&&s("array",r))),Xr=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xe||e(r)&&t("comment",r)&&s("string",r))),Qr=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof et||e(r)&&t("parseResult",r)&&s("array",r))),en=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof st||e(r)&&t("sourceMap",r)&&s("array",r))),tn=e=>Dr("object",e)||Dr("array",e)||Dr("boolean",e)||Dr("number",e)||Dr("string",e)||Dr("null",e)||Dr("member",e),sn=e=>en(e.meta.get("sourceMap")),rn=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!zr(s)&&Nr(gs(s.toValue()),e)},nn=(e,t)=>0===e.length||Nr(gs(t.classes.toValue()),e);const on=class extends Et{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const an=class extends on{};const cn=class extends on{},ln=(e,t={})=>{const{visited:s=new WeakMap}=t,r={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof se.KeyValuePair){const{key:t,value:n}=e,i=Lr(t)?ln(t,r):t,o=Lr(n)?ln(n,r):n,a=new se.KeyValuePair(i,o);return s.set(e,a),a}if(e instanceof se.ot){const t=e=>ln(e,r),n=[...e].map(t),i=new se.ot(n);return s.set(e,i),i}if(e instanceof se.G6){const t=e=>ln(e,r),n=[...e].map(t),i=new se.G6(n);return s.set(e,i),i}if(Lr(e)){const t=dn(e);if(s.set(e,t),e.content)if(Lr(e.content))t.content=ln(e.content,r);else if(e.content instanceof se.KeyValuePair)t.content=ln(e.content,r);else if(Array.isArray(e.content)){const s=e=>ln(e,r);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new an("Value provided to cloneDeep function couldn't be cloned",{value:e})};ln.safe=e=>{try{return ln(e)}catch{return e}};const un=e=>{const{key:t,value:s}=e;return new se.KeyValuePair(t,s)},mn=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=ln(e.meta)),e.attributes.length>0&&(t._attributes=ln(e.attributes)),Lr(e.content)){const s=e.content;t.content=mn(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof se.KeyValuePair?t.content=un(e.content):t.content=e.content;return t},dn=e=>{if(e instanceof se.KeyValuePair)return un(e);if(e instanceof se.ot)return(e=>{const t=[...e];return new se.ot(t)})(e);if(e instanceof se.G6)return(e=>{const t=[...e];return new se.G6(t)})(e);if(Lr(e))return mn(e);throw new cn("Value provided to cloneShallow function couldn't be cloned",{value:e})};dn.safe=e=>{try{return dn(e)}catch{return e}};const pn=e=>Wr(e)?"ObjectElement":zr(e)?"ArrayElement":Zr(e)?"MemberElement":Ur(e)?"StringElement":Gr(e)?"BooleanElement":Vr(e)?"NumberElement":Hr(e)?"NullElement":Kr(e)?"LinkElement":Jr(e)?"RefElement":void 0,hn=e=>Lr(e)?dn(e):er(e),_n=_e(pn,at),fn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const gn=(e,t,{keyMap:s=fn,...r}={})=>sr(e,t,{keyMap:s,nodeTypeGetter:pn,nodePredicate:_n,nodeCloneFn:hn,...r});gn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=fn,...r}={})=>sr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:pn,nodePredicate:_n,nodeCloneFn:hn,...r});const yn=a((function(e,t,s){var r,n={};for(r in s=s||{},t=t||{})R(r,t)&&(n[r]=R(r,s)?e(r,t[r],s[r]):t[r]);for(r in s)R(r,s)&&!R(r,n)&&(n[r]=s[r]);return n}));const vn=a((function e(t,s,r){return yn((function(s,r,n){return Ee(r)&&Ee(n)?e(t,r,n):t(s,r,n)}),s,r)}));const bn=o((function(e,t){return vn((function(e,t,s){return s}),e,t)}));const wn=o(Me);const En=pe(0,-1);const xn=o((function(e,t){return e.apply(this,t)}));const Sn=H(He);const jn=i((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():f(e)?[]:u(e)?"":Ee(e)?{}:N(e)?function(){return arguments}():(t=e,"[object Uint8ClampedArray]"===(s=Object.prototype.toString.call(t))||"[object Int8Array]"===s||"[object Uint8Array]"===s||"[object Int16Array]"===s||"[object Uint16Array]"===s||"[object Int32Array]"===s||"[object Uint32Array]"===s||"[object Float32Array]"===s||"[object Float64Array]"===s||"[object BigInt64Array]"===s||"[object BigUint64Array]"===s?e.constructor.from(""):void 0);var t,s}));const On=i((function(e){return null!=e&&Y(e,jn(e))}));const Pn=F(1,He(Array.isArray)?Array.isArray:_e(Z,ge("Array")));const An=Ie(Pn,On);const Mn=F(3,(function(e,t,s){var r=wn(e,s),n=wn(En(e),s);if(!Sn(r)&&!An(e)){var i=ie(r,n);return xn(i,t)}})),Tn=()=>({predicates:{...e},namespace:ot}),Fn={toolboxCreator:Tn,visitorOptions:{nodeTypeGetter:pn,exposeEdits:!0}},Rn=(e,t,s={})=>{if(0===t.length)return e;const r=bn(Fn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=tr(a.map(p({},"visitor")),{...i});a.forEach(Mn(["pre"],[]));const l=gn(e,c,i);return a.forEach(Mn(["post"],[])),l};Rn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const r=bn(Fn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=tr[Symbol.for("nodejs.util.promisify.custom")],l=gn[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(p({},"visitor")),{...i});await Promise.allSettled(a.map(Mn(["pre"],[])));const m=await l(e,u,i);return await Promise.allSettled(a.map(Mn(["post"],[]))),m};const In=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Lr(e)&&(e.meta.length>0&&(r.meta=ln(e.meta)),e.attributes.length>0&&(r.attributes=ln(e.attributes))),Rn(r,s,{toolboxCreator:Tn,visitorOptions:{nodeTypeGetter:pn}})},Nn=e=>(t,s={})=>In(t,{...s,Type:e});se.Sh.refract=Nn(se.Sh),se.wE.refract=Nn(se.wE),se.Om.refract=Nn(se.Om),se.bd.refract=Nn(se.bd),se.Os.refract=Nn(se.Os),se.kT.refract=Nn(se.kT),se.Ft.refract=Nn(se.Ft),se.sI.refract=Nn(se.sI),Je.refract=Nn(Je),Xe.refract=Nn(Xe),et.refract=Nn(et),st.refract=Nn(st);const Cn={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...fn},$n=e=>Lr(e)?pn(e):Xs(e),kn=e=>Lr(e)||Qs(e)||Array.isArray(e);const qn=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new et;t._content=e.children.flat(1);const s=t.findElements(tn);if(s.length>0){s[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=it()}comment(e){if(0===this.processedDocumentCount){const t=new Xe(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,s=this.processedDocumentCount>=1;if(t){const t=new Je("Only first document within YAML stream will be used. Rest will be discarded.");t.classes.push("warning"),this.maybeAddSourceMap(e,t),this.annotations.push(t)}return s?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new se.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new se.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}sequence(e){const t=new se.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}scalar(e){const t=this.namespace.toElement(e.content);return""===e.content&&e.style===Fs.Plain&&(t.classes.push("yaml-e-node"),t.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new Je(t);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}error(e,t,s,r){const n=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new Je(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new et;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new st;s.position=e.position,s.astNode=e,t.meta.set("sourceMap",s)}};class Dn{cursor;constructor(e){this.cursor=e}stream(){return new Or(this.cursor)}yaml_directive(){return new Or(this.cursor)}tag_directive(){return new Or(this.cursor)}reserved_directive(){return new Or(this.cursor)}document(){return new Or(this.cursor)}block_node(){return new Or(this.cursor).setFieldName(this.cursor)}flow_node(){return new Or(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Or(this.cursor)}block_mapping_pair(){return new Or(this.cursor)}flow_mapping(){return new Or(this.cursor)}flow_pair(){return new Or(this.cursor)}block_sequence(){return new Or(this.cursor)}block_sequence_item(){return new Or(this.cursor)}flow_sequence(){return new Or(this.cursor)}plain_scalar(){return new Or(this.cursor)}single_quote_scalar(){return new Or(this.cursor)}double_quote_scalar(){return new Or(this.cursor)}block_scalar(){return new Or(this.cursor)}ERROR(){return new Or(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Or(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Dn(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Dn(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Bn=Dn,Ln=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new Bn(s),[n]=Array.from(r),i=new Tr,o=new qn,a=new Ds,c=new Ks,l=sr(n,i,{keyMap:Pr,nodePredicate:Ar,state:{schema:a,sourceMap:t,referenceManager:c}});return sr(l.rootNode,o,{keyMap:Cn,nodeTypeGetter:$n,nodePredicate:kn,state:{sourceMap:t}})};class Un extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Vn=Un;class Hn extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Gn=Hn;class Wn extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const zn=Wn;class Zn extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const Kn=Zn;class Jn extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const Yn=Jn;class Xn extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const Qn=Xn;class ei extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const ti=ei;class si extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new se.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new se.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(si.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ri=si;class ni extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const ii=ni;class oi extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const ai=oi;class ci extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Ur(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Ur(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 li=ci;class ui extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const mi=ui;class di extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const pi=di;class hi extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const _i=hi;class fi extends se.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const gi=fi;class yi extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const vi=yi;class bi extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new se.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 wi=bi;class Ei extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new se.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new se.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(Ei.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const xi=Ei;class Si extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const ji=Si;class Oi extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const Pi=Oi;class Ai extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Mi=Ai;class Ti extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new se.bd(!1)}set required(e){this.set("required",e)}}const Fi=Ti;class Ri extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const Ii=Ri;class Ni extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Ci=Ni;const $i=class extends ht{};class ki extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const qi=ki;class Di extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Bi=Di;class Li extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Ui=Li;class Vi extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Hi=Vi;const Gi=o((function(e,t){return _((function(s,r){return s[r]=e(t[r],r,t),s}),{},D(t))}));const Wi=i((function(e){return null==e}));const zi=o((function(e,t){if(0===e.length||Wi(t))return!1;for(var s=t,r=0;r<e.length;){if(Wi(s)||!R(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));const Zi=o((function(e,t){return zi([e],t)}));const Ki=a((function(e,t,s){return e(d(t,s))})),Ji=(e,t)=>{const s=c(e,t);return Gi((e=>{if(Ze(e)&&Zi("$ref",e)&&Ki(at,"$ref",e)){const t=wn(["$ref"],e),r=ys("#/",t);return wn(r.split("/"),s)}return Ze(e)?Ji(e,s):e}),e)};const Yi=function(){return!0},Xi=e=>"string"==typeof(null==e?void 0:e.type)?e.type:pn(e),Qi={EphemeralObject:["content"],EphemeralArray:["content"],...fn},eo=(e,t,{keyMap:s=Qi,...r}={})=>gn(e,t,{keyMap:s,nodeTypeGetter:Xi,nodePredicate:Yi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});eo[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Qi,...s}={})=>gn[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Xi,nodePredicate:Yi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const to=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 so=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 ro{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new so(e.content);return this.references.set(e,t),t}};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 to(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var s;const r=t[3];return"EphemeralObject"===(null===(s=r[r.length-1])||void 0===s?void 0:s.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Ur(e.href)?e.href.toValue():""}}const no=e=>Lr(e)?Ur(e)||Vr(e)||Gr(e)||Hr(e)?e.toValue():eo(e,new ro):e,io=e=>{const t=e.meta.length>0?ln(e.meta):void 0,s=e.attributes.length>0?ln(e.attributes):void 0;return new e.constructor(void 0,t,s)},oo=(e,t)=>t.clone&&t.isMergeableElement(e)?co(io(e),e,t):e,ao={clone:!0,isMergeableElement:e=>Wr(e)||zr(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>oo(e,s))),objectElementMerge:(e,t,s)=>{const r=Wr(e)?io(e):io(t);return Wr(e)&&e.forEach(((e,t,n)=>{const i=dn(n);i.value=oo(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=no(n);let a;if(Wr(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);a=dn(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return co;const s=t.customMerge(e,t);return"function"==typeof s?s:co})(n,s)(r,t)}else a=dn(i),a.value=oo(t,s);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},co=(e,t,s)=>{var r,n,i;const o={...ao,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:ao.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:ao.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:ao.objectElementMerge;const a=zr(t);if(!(a===zr(e)))return oo(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=(e=>"function"!=typeof e.customMetaMerge?e=>ln(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>ln(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};co.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new se.Sh:e.reduce(((e,s)=>co(e,s,t)),io(e[0]))};const lo=co;const uo=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=lo(t.meta,e.meta),sn(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=lo(t.attributes,e.attributes))}};const mo=class extends uo{enter(e){return this.element=ln(e),Ys}},po=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},ho=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:ho(s,[...t,s])},_o=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>ho(e)));for(;s.every((e=>e.length>0));){const e=s.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,i=Object.create(n),o=ho(n);for(let t of e){let e=ho(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(po(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},fo=e=>e.filter(((t,s)=>e.indexOf(t)==s)),go=(e,t)=>{const s=t.map((e=>ho(e)));let r=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][r];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}r++}},yo=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,s)=>Object.getOwnPropertyDescriptor(go(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==go(r,e)||void 0!==t[r],get:(s,r)=>(go(r,e)||t)[r],set(t,s,r){const n=go(s,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[s]=r,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),vo=null,bo="copy",wo="copy",Eo="deep",xo=new WeakMap,So=e=>xo.get(e),jo=(e,t)=>{var s,r;const n=fo([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=fo([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},Oo=(e,t)=>{var s,r,n,i;return{property:jo(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:jo(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Po=(e,t)=>{var s,r,n,i,o,a;return{class:fo([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:Oo(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:Oo(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Ao=new Map,Mo=(...e)=>{const t=((...e)=>{var t;const s=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const n=[...ho(e.prototype).map((e=>e.constructor)),...null!==(t=So(e))&&void 0!==t?t:[]].filter((e=>!s.has(e)));for(let e of n)r.add(e);s.add(e),r.delete(e)}return[...s]})(...e).map((e=>Ao.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Po(e,t)))},To=e=>{let t=Ao.get(e);return t||(t={},Ao.set(e,t)),t};function Fo(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=vo;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let s of e)s.apply(this,t)},s={[i]:t};n.push(s)}function o(...t){for(const s of e)po(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===wo?_o(n,o):(a=n,c=o,yo([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===bo?_o(e,null,["prototype"]):yo(e,Function.prototype));let l=o;if("none"!==Eo){const n="deep"===Eo?Mo(...e):((...e)=>{const t=e.map((e=>To(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Po(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Ro(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},l),Ro(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},l.prototype)}var u,m;return u=l,m=e,xo.set(u,m),l}const Ro=(e,t)=>{const s=e.property,r=e.method;if(s)for(let e in s)for(let r of s[e])r(t,e);if(r)for(let e in r)for(let s of r[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const Io=o((function(e,t){for(var s={},r=0;r<e.length;)e[r]in t&&(s[e[r]]=t[e[r]]),r+=1;return s}));const No=class extends uo{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Io(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=wn(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Te(He,["visitors",...e],this.specObj)?wn(["visitors",...e],this.specObj):wn(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof mo&&(null==r?void 0:r.constructor)===mo?ln(t):(gn(t,r,s),r.element)}};const Co=class extends No{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Ur(r)&&s.includes(no(r))&&!this.ignoredFields.includes(no(r))){const s=this.toRefractedElement([...t,"fixedFields",no(r)],e),i=new se.Pr(ln(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(no(r))||this.element.content.push(ln(n))})),this.copyMetaAndAttributes(e,this.element),Ys}};class $o extends(Fo(Co,mo)){constructor(e){super(e),this.element=new qi,this.specPath=X(["document","objects","JSONSchema"])}}const ko=$o;const qo=class{parent;constructor({parent:e}){this.parent=e}},Do=e=>Wr(e)&&e.hasKey("$ref");class Bo extends(Fo(No,qo,mo)){ObjectElement(e){const t=Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Ys}ArrayElement(e){return this.element=new se.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const Lo=Bo;const Uo=class extends mo{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Vo=i((function(e){return F(me(De,0,Be("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Ho=i((function(e){return!On(e)}));const Go=o((function(e,t){return e||t}));var Wo=H(F(1,Ie(Ce,o((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:V(Go)(e,t)}))(ke,He))));const zo=Vo([at,Wo,Ho]);const Zo=function(){return!1};const Ko=class extends No{specPath;ignoredFields;fieldPatternPredicate=Zo;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(!this.ignoredFields.includes(no(t))&&this.fieldPatternPredicate(no(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new se.Pr(ln(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(no(t))||this.element.content.push(ln(s))})),this.copyMetaAndAttributes(e,this.element),Ys}};const Jo=class extends Ko{constructor(e){super(e),this.fieldPatternPredicate=zo}};class Yo extends(Fo(Jo,qo,mo)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Xo=Yo;class Qo extends(Fo(Jo,qo,mo)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ea=Qo;class ta extends(Fo(Jo,qo,mo)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const sa=ta;const ra=class extends mo{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const na=class extends mo{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 ia extends(Fo(No,qo,mo)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const oa=ia;class aa extends(Fo(No,qo,mo)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const ca=aa;class la extends(Fo(No,qo,mo)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const ua=la;class ma extends(Fo(Jo,qo,mo)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const da=ma;class pa extends(Fo(No,qo,mo)){constructor(e){super(e),this.element=new se.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),Ys}}const ha=pa;class _a extends(Fo(Co,mo)){constructor(e){super(e),this.element=new Bi,this.specPath=X(["document","objects","JSONReference"])}ObjectElement(e){const t=Co.prototype.ObjectElement.call(this,e);return Ur(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const fa=_a;const ga=class extends mo{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const ya=a((function(e,t,s){return F(Math.max(e.length,t.length,s.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)}))}));const va=i((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));const ba=o((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const wa=i(Fr);const Ea=H(Wi);const xa=Ie(Pn,Ho);function Sa(e){return function(e){if(Array.isArray(e))return ja(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 ja(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?ja(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 ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=Array(t);s<t;s++)r[s]=e[s];return r}var Oa=_e(ba(va((function(e,t){return e.length>t.length}))),lr,d("length")),Pa=Nt((function(e,t,s){var r=s.apply(void 0,Sa(e));return Ea(r)?wa(r):t}));const Aa=ya(xa,(function(e){var t=Oa(e);return F(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return me(Pa(s),void 0,e)}))}),Q);const Ma=class extends No{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ya(e,X(t),Q))),s=Aa(t)(e);return this.element=this.toRefractedElement(s,e),Ys}};const Ta=class extends Ma{constructor(e){super(e),this.alternator=[{predicate:Do,specPath:["document","objects","JSONReference"]},{predicate:Yi,specPath:["document","objects","JSONSchema"]}]}};class Fa extends(Fo(Co,mo)){constructor(e){super(e),this.element=new Ui,this.specPath=X(["document","objects","Media"])}}const Ra=Fa;class Ia extends(Fo(Co,mo)){constructor(e){super(e),this.element=new Hi,this.specPath=X(["document","objects","LinkDescription"])}}const Na={visitors:{value:mo,JSONSchemaOrJSONReferenceVisitor:Ta,document:{objects:{JSONSchema:{$visitor:ko,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:Ta,items:Lo,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Uo,properties:Xo,additionalProperties:Ta,patternProperties:ea,dependencies:sa,enum:ra,type:na,allOf:oa,anyOf:ca,oneOf:ua,not:Ta,definitions:da,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:ha,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:fa,fixedFields:{$ref:ga}},Media:{$visitor:Ra,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Ia,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ta,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ta}}}}}},Ca=e=>{if(Lr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},$a={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...fn},ka=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qi||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),qa=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bi||e(r)&&t("JSONReference",r)&&s("object",r))),Da=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ui||e(r)&&t("media",r)&&s("object",r))),Ba=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hi||e(r)&&t("linkDescription",r)&&s("object",r))),La={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",qi),t.register("jSONReference",Bi),t.register("media",Ui),t.register("linkDescription",Hi),t}},Ua=()=>{const e=it(La);return{predicates:{...t,isStringElement:Ur},namespace:e}},Va=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Na}={})=>{const n=(0,se.e)(e),i=Ji(r),o=new(wn(t,i))({specObj:i});return gn(n,o),Rn(o.element,s,{toolboxCreator:Ua,visitorOptions:{keyMap:$a,nodeTypeGetter:Ca}})},Ha=e=>(t,s={})=>Va(t,{specPath:e,...s});qi.refract=Ha(["visitors","document","objects","JSONSchema","$visitor"]),Bi.refract=Ha(["visitors","document","objects","JSONReference","$visitor"]),Ui.refract=Ha(["visitors","document","objects","Media","$visitor"]),Hi.refract=Ha(["visitors","document","objects","LinkDescription","$visitor"]);const Ga=class extends qi{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new $i("idProp getter in Schema class is not not supported.")}set idProp(e){throw new $i("idProp setter in Schema class is not not supported.")}get $schema(){throw new $i("$schema getter in Schema class is not not supported.")}set $schema(e){throw new $i("$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 $i("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new $i("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new $i("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new $i("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 $i("definitions getter in Schema class is not not supported.")}set definitions(e){throw new $i("definitions setter in Schema class is not not supported.")}get base(){throw new $i("base getter in Schema class is not not supported.")}set base(e){throw new $i("base setter in Schema class is not not supported.")}get links(){throw new $i("links getter in Schema class is not not supported.")}set links(e){throw new $i("links setter in Schema class is not not supported.")}get media(){throw new $i("media getter in Schema class is not not supported.")}set media(e){throw new $i("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 Wa extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const za=Wa;class Za extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Ka=Za;class Ja extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const Ya=Ja;class Xa extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Qa=Xa;class ec extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const tc=ec;class sc extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const rc=sc;const nc=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=lo(t.meta,e.meta),sn(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=lo(t.attributes,e.attributes))}};const ic=class extends nc{enter(e){return this.element=ln(e),Ys}};const oc=class extends nc{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:r,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=r,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Io(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=wn(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Te(He,["visitors",...e],this.specObj)?wn(["visitors",...e],this.specObj):wn(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof ic&&(null==r?void 0:r.constructor)===ic?ln(t):(gn(t,r,s),r.element)}};var ac=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=O,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Fr(s):s},e}();function cc(e){return function(t){return new ac(e,t)}}const lc=o(x(["take"],cc,(function(e,t){return pe(0,e<0?1/0:e,t)})));const uc=o((function(e,t){return Y(lc(e.length,t),e)})),mc=e=>Wr(e)&&e.hasKey("$ref"),dc=Wr,pc=Wr,hc=e=>Ur(e.key)&&uc("x-",no(e.key));const _c=class extends oc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=hc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Ur(r)&&s.includes(no(r))&&!this.ignoredFields.includes(no(r))){const s=this.toRefractedElement([...t,"fixedFields",no(r)],e),i=new se.Pr(ln(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(no(r))||this.element.content.push(ln(n))})),this.copyMetaAndAttributes(e,this.element),Ys}};class fc extends(Fo(_c,ic)){constructor(e){super(e),this.element=new vi,this.specPath=X(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return _c.prototype.ObjectElement.call(this,e)}}const gc=fc;class yc extends(Fo(oc,ic)){StringElement(e){const t=new gi(no(e));return this.copyMetaAndAttributes(e,t),this.element=t,Ys}}const vc=yc;const bc=class extends oc{MemberElement(e){return this.element=ln(e),this.element.classes.push("specification-extension"),Ys}};class wc extends(Fo(_c,ic)){constructor(e){super(e),this.element=new ii,this.specPath=X(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Ec=wc;const xc=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Sc extends(Fo(_c,ic)){constructor(e){super(e),this.element=new zn,this.specPath=X(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const jc=Sc;class Oc extends(Fo(_c,ic)){constructor(e){super(e),this.element=new ai,this.specPath=X(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Pc=Oc;class Ac extends(Fo(_c,ic)){constructor(e){super(e),this.element=new li,this.specPath=X(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return(Ur(this.element.operationId)||Ur(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Mc=Ac;const Tc=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Fc=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Rc=class extends oc{specPath;ignoredFields;fieldPatternPredicate=Zo;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=hc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:r,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(no(t))&&this.fieldPatternPredicate(no(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new se.Pr(ln(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(no(t))||this.element.content.push(ln(s))})),this.copyMetaAndAttributes(e,this.element),Ys}};const Ic=class extends Rc{constructor(e){super(e),this.fieldPatternPredicate=zo}};class Nc extends se.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Nc.primaryClass)}}const Cc=Nc;class $c extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Cc,this.specPath=X(["value"])}}const kc=$c;class qc extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Ya,this.specPath=X(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Dc=qc;const Bc=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Lc extends se.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Lc.primaryClass)}}const Uc=Lc;class Vc extends(Fo(oc,ic)){constructor(e){super(e),this.element=new Uc}ArrayElement(e){return e.forEach((e=>{const t=dc(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const Hc=Vc;class Gc extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Qa,this.specPath=X(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Wc=Gc;class zc extends se.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(zc.primaryClass)}}const Zc=zc;class Kc extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Zc,this.specPath=X(["document","objects","ServerVariable"])}}const Jc=Kc;class Yc extends(Fo(_c,ic)){constructor(e){super(e),this.element=new mi,this.specPath=X(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const Xc=Yc;const Qc=class extends oc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ya(e,X(t),Q))),s=Aa(t)(e);return this.element=this.toRefractedElement(s,e),Ys}},el=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vn||e(r)&&t("callback",r)&&s("object",r))),tl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gn||e(r)&&t("components",r)&&s("object",r))),sl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zn||e(r)&&t("contact",r)&&s("object",r))),rl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qn||e(r)&&t("example",r)&&s("object",r))),nl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ti||e(r)&&t("externalDocumentation",r)&&s("object",r))),il=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ri||e(r)&&t("header",r)&&s("object",r))),ol=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ii||e(r)&&t("info",r)&&s("object",r))),al=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ai||e(r)&&t("license",r)&&s("object",r))),cl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof li||e(r)&&t("link",r)&&s("object",r))),ll=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof gi||e(r)&&t("openapi",r)&&s("string",r))),ul=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof vi||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),ml=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof wi||e(r)&&t("operation",r)&&s("object",r))),dl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof xi||e(r)&&t("parameter",r)&&s("object",r))),pl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ji||e(r)&&t("pathItem",r)&&s("object",r))),hl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Pi||e(r)&&t("paths",r)&&s("object",r))),_l=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mi||e(r)&&t("reference",r)&&s("object",r))),fl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fi||e(r)&&t("requestBody",r)&&s("object",r))),gl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ii||e(r)&&t("response",r)&&s("object",r))),yl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ci||e(r)&&t("responses",r)&&s("object",r))),vl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ga||e(r)&&t("schema",r)&&s("object",r))),bl=e=>Gr(e)&&e.classes.includes("boolean-json-schema"),wl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof za||e(r)&&t("securityRequirement",r)&&s("object",r))),El=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ka||e(r)&&t("securityScheme",r)&&s("object",r))),xl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ya||e(r)&&t("server",r)&&s("object",r))),Sl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qa||e(r)&&t("serverVariable",r)&&s("object",r))),jl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof mi||e(r)&&t("mediaType",r)&&s("object",r))),Ol=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Uc||e(n)&&t("array",n)&&s("array",n)&&r("servers",n)));class Pl extends(Fo(Qc,ic)){constructor(e){super(e),this.alternator=[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Qc.prototype.enter.call(this,e);return _l(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Al=Pl;class Ml extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("examples"),this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Tl=Ml;class Fl extends se.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Fl.primaryClass),this.classes.push("examples")}}const Rl=Fl;const Il=class extends Tl{constructor(e){super(e),this.element=new Rl}};class Nl extends se.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Nl.primaryClass)}}const Cl=Nl;class $l extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Cl,this.specPath=X(["document","objects","Encoding"])}}const kl=$l;class ql extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new za,this.specPath=X(["value"])}}const Dl=ql;class Bl extends se.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Bl.primaryClass)}}const Ll=Bl;class Ul extends(Fo(oc,ic)){constructor(e){super(e),this.element=new Ll}ArrayElement(e){return e.forEach((e=>{if(Wr(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(ln(e))})),this.copyMetaAndAttributes(e,this.element),Ys}}const Vl=Ul;class Hl extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Gn,this.specPath=X(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Gl=Hl;class Wl extends(Fo(_c,ic)){constructor(e){super(e),this.element=new tc,this.specPath=X(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const zl=Wl;class Zl extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Mi,this.specPath=X(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return Ur(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Kl=Zl;const Jl=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Yl extends(Fo(_c,ic)){constructor(e){super(e),this.element=new xi,this.specPath=X(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return Wr(this.element.contentProp)&&this.element.contentProp.filter(jl).forEach(((e,t)=>{e.setMetaProperty("media-type",no(t))})),t}}const Xl=Yl;class Ql extends(Fo(Qc,ic)){constructor(e){super(e),this.alternator=[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Qc.prototype.enter.call(this,e);return _l(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const eu=Ql;class tu extends(Fo(_c,ic)){constructor(e){super(e),this.element=new ri,this.specPath=X(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const su=tu;class ru extends(Fo(Qc,ic)){constructor(e){super(e),this.alternator=[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Qc.prototype.enter.call(this,e);return _l(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const nu=ru;class iu extends se.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(iu.primaryClass),this.classes.push("examples")}}const ou=iu;const au=class extends Tl{constructor(e){super(e),this.element=new ou}};class cu extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("content"),this.specPath=X(["document","objects","MediaType"])}}const lu=cu;class uu extends se.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(uu.primaryClass),this.classes.push("content")}}const mu=uu;const du=class extends lu{constructor(e){super(e),this.element=new mu}};class pu extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Ga,this.specPath=X(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const hu=pu,_u=Na.visitors.document.objects.JSONSchema.fixedFields.allOf;const fu=class extends _u{ArrayElement(e){const t=_u.prototype.ArrayElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},gu=Na.visitors.document.objects.JSONSchema.fixedFields.anyOf;const yu=class extends gu{ArrayElement(e){const t=gu.prototype.ArrayElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},vu=Na.visitors.document.objects.JSONSchema.fixedFields.oneOf;const bu=class extends vu{ArrayElement(e){const t=vu.prototype.ArrayElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},wu=Na.visitors.document.objects.JSONSchema.fixedFields.items;const Eu=class extends wu{ObjectElement(e){const t=wu.prototype.ObjectElement.call(this,e);return _l(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},xu=Na.visitors.document.objects.JSONSchema.fixedFields.properties;const Su=class extends xu{ObjectElement(e){const t=xu.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},ju=Na.visitors.document.objects.JSONSchema.fixedFields.type;const Ou=class extends ju{ArrayElement(e){return this.enter(e)}},Pu=Na.visitors.JSONSchemaOrJSONReferenceVisitor;const Au=class extends Pu{ObjectElement(e){const t=Pu.prototype.enter.call(this,e);return _l(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Mu extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Kn,this.specPath=X(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Tu=Mu;class Fu extends se.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(Fu.primaryClass)}}const Ru=Fu;class Iu extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Ru,this.specPath=X(["value"])}}const Nu=Iu;class Cu extends(Fo(_c,ic)){constructor(e){super(e),this.element=new rc,this.specPath=X(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const $u=Cu;class ku extends se.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(ku.primaryClass),this.classes.push("examples")}}const qu=ku;const Du=class extends Tl{constructor(e){super(e),this.element=new qu}};class Bu extends se.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Bu.primaryClass),this.classes.push("content")}}const Lu=Bu;const Uu=class extends lu{constructor(e){super(e),this.element=new Lu}};class Vu extends se.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(Vu.primaryClass)}}const Hu=Vu;class Gu extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Hu,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Wu=Gu;class zu extends se.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(zu.primaryClass)}}const Zu=zu;class Ku extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Zu,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(gl).forEach(((e,t)=>{e.setMetaProperty("http-status-code",no(t))})),t}}const Ju=Ku;class Yu extends se.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Yu.primaryClass),this.classes.push("parameters")}}const Xu=Yu;class Qu extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Xu,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const em=Qu;class tm extends se.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(tm.primaryClass),this.classes.push("examples")}}const sm=tm;class rm extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new sm,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const nm=rm;class im extends se.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(im.primaryClass)}}const om=im;class am extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new om,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const cm=am;class lm extends se.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(lm.primaryClass)}}const um=lm;class mm extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new um,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(il).forEach(((e,t)=>{e.setMetaProperty("header-name",no(t))})),t}}const dm=mm;class pm extends se.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(pm.primaryClass)}}const hm=pm;class _m extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new hm,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const fm=_m;class gm extends se.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(gm.primaryClass)}}const ym=gm;class vm extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new ym,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const bm=vm;class wm extends se.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(wm.primaryClass)}}const Em=wm;class xm extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Em,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Sm=xm;class jm extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Qn,this.specPath=X(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return Ur(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Om=jm;const Pm=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Am extends(Fo(_c,ic)){constructor(e){super(e),this.element=new ti,this.specPath=X(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Mm=Am;class Tm extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Yn,this.specPath=X(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return Wr(this.element.headers)&&this.element.headers.filter(il).forEach(((e,t)=>{e.setMetaProperty("header-name",no(t))})),t}}const Fm=Tm;class Rm extends se.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Rm.primaryClass)}}const Im=Rm;class Nm extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Im,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!il(e))return;const s=no(t);e.setMetaProperty("headerName",s)})),t}}const Cm=Nm;class $m extends(Fo(Rc,ic)){constructor(e){super(e),this.element=new Pi,this.specPath=X(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Yi}ObjectElement(e){const t=Rc.prototype.ObjectElement.call(this,e);return this.element.filter(pl).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",ln(t))})),t}}const km=$m;class qm extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Fi,this.specPath=X(["document","objects","RequestBody"])}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return Wr(this.element.contentProp)&&this.element.contentProp.filter(jl).forEach(((e,t)=>{e.setMetaProperty("media-type",no(t))})),t}}const Dm=qm;class Bm extends se.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Bm.primaryClass),this.classes.push("content")}}const Lm=Bm;const Um=class extends lu{constructor(e){super(e),this.element=new Lm}};class Vm extends(Fo(Rc,ic)){constructor(e){super(e),this.element=new Vn,this.specPath=X(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(pl).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",no(t))})),t}}const Hm=Vm;class Gm extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Ii,this.specPath=X(["document","objects","Response"])}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return Wr(this.element.contentProp)&&this.element.contentProp.filter(jl).forEach(((e,t)=>{e.setMetaProperty("media-type",no(t))})),Wr(this.element.headers)&&this.element.headers.filter(il).forEach(((e,t)=>{e.setMetaProperty("header-name",no(t))})),t}}const Wm=Gm;class zm extends se.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(zm.primaryClass)}}const Zm=zm;class Km extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Zm,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!il(e))return;const s=no(t);e.setMetaProperty("header-name",s)})),t}}const Jm=Km;class Ym extends se.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(Ym.primaryClass),this.classes.push("content")}}const Xm=Ym;const Qm=class extends lu{constructor(e){super(e),this.element=new Xm}};class ed extends se.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(ed.primaryClass)}}const td=ed;class sd extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new td,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const rd=sd;function nd(e){return"[object Number]"===Object.prototype.toString.call(e)}const id=o((function(e,t){if(!nd(e)||!nd(t))throw new TypeError("Both arguments to range must be numbers");for(var s=Array(e<t?t-e:0),r=e<0?t+Math.abs(e):t-e,n=0;n<r;)s[n]=n+e,n+=1;return s}));function od(e,t,s){var r,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?e in s._items[n]||(t&&(s._items[n][e]=!0),!1):(t&&(s._items[n]={},s._items[n][e]=!0),!1);case"boolean":if(n in s._items){var i=e?1:0;return!!s._items[n][i]||(t&&(s._items[n][i]=!0),!1)}return t&&(s._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?!!ye(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1);case"undefined":return!!s._items[n]||(t&&(s._items[n]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in s._items?!!ye(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1)}}const ad=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!od(e,!0,this)},e.prototype.has=function(e){return od(e,!1,this)},e}();const cd=o((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new ad,a=0;a<i;a+=1)o.add(t[a]);for(;r<n;)o.add(e[r])&&(s[s.length]=e[r]),r+=1;return s}));class ld extends(Fo(_c,Rc)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:s}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...s,...cd(e.keys(),t)],_c.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Rc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Ys}}const ud=ld;class md extends(Fo(ud,ic)){constructor(e){super(e),this.element=new Ci,this.specPathFixedFields=X(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>mc(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${id(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(gl).forEach(((e,t)=>{const s=ln(t);this.fieldPatternPredicate(no(s))&&e.setMetaProperty("http-status-code",s)})),t}}const dd=md;class pd extends(Fo(Qc,ic)){constructor(e){super(e),this.alternator=[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Qc.prototype.enter.call(this,e);return _l(this.element)?this.element.setMetaProperty("referenced-element","response"):gl(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const hd=pd;class _d extends(Fo(_c,ic)){constructor(e){super(e),this.element=new wi,this.specPath=X(["document","objects","Operation"])}}const fd=_d;class gd extends se.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(gd.primaryClass)}}const yd=gd;const vd=class extends ic{constructor(e){super(e),this.element=new yd}ArrayElement(e){return this.element=this.element.concat(ln(e)),Ys}};class bd extends se.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(bd.primaryClass),this.classes.push("parameters")}}const wd=bd;class Ed extends(Fo(oc,ic)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=mc(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);_l(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const xd=Ed;const Sd=class extends xd{constructor(e){super(e),this.element=new wd}};const jd=class extends Qc{constructor(e){super(e),this.alternator=[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=Qc.prototype.enter.call(this,e);return _l(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Od extends se.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Od.primaryClass)}}const Pd=Od;class Ad extends(Fo(Ic,ic)){specPath;constructor(e){super(e),this.element=new Pd,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Md=Ad;class Td extends se.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Td.primaryClass),this.classes.push("security")}}const Fd=Td;class Rd extends(Fo(oc,ic)){constructor(e){super(e),this.element=new Fd}ArrayElement(e){return e.forEach((e=>{const t=Wr(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const Id=Rd;class Nd extends se.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Nd.primaryClass),this.classes.push("servers")}}const Cd=Nd;const $d=class extends Hc{constructor(e){super(e),this.element=new Cd}};class kd extends(Fo(_c,ic)){constructor(e){super(e),this.element=new ji,this.specPath=X(["document","objects","PathItem"])}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return this.element.filter(ml).forEach(((e,t)=>{const s=ln(t);s.content=no(s).toUpperCase(),e.setMetaProperty("http-method",s)})),Ur(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const qd=kd;const Dd=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Bd extends se.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Bd.primaryClass),this.classes.push("servers")}}const Ld=Bd;const Ud=class extends Hc{constructor(e){super(e),this.element=new Ld}};class Vd extends se.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Vd.primaryClass),this.classes.push("parameters")}}const Hd=Vd;const Gd=class extends xd{constructor(e){super(e),this.element=new Hd}};class Wd extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Ka,this.specPath=X(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const zd=Wd;class Zd extends(Fo(_c,ic)){constructor(e){super(e),this.element=new _i,this.specPath=X(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Kd=Zd;class Jd extends(Fo(_c,ic)){constructor(e){super(e),this.element=new pi,this.specPath=X(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const Yd=Jd;class Xd extends se.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(Xd.primaryClass)}}const Qd=Xd;class ep extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Qd,this.specPath=X(["value"])}}const tp=ep;class sp extends se.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(sp.primaryClass)}}const rp=sp;class np extends(Fo(oc,ic)){constructor(e){super(e),this.element=new rp}ArrayElement(e){return e.forEach((e=>{const t=pc(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const ip=np,{fixedFields:op}=Na.visitors.document.objects.JSONSchema,ap={visitors:{value:ic,document:{objects:{OpenApi:{$visitor:gc,fixedFields:{openapi:vc,info:{$ref:"#/visitors/document/objects/Info"},servers:Hc,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Vl,tags:ip,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Ec,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:xc}},Contact:{$visitor:jc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Pc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Dc,fixedFields:{url:Bc,description:{$ref:"#/visitors/value"},variables:Jc}},ServerVariable:{$visitor:Wc,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Gl,fixedFields:{schemas:Wu,responses:Ju,parameters:em,examples:nm,requestBodies:cm,headers:dm,securitySchemes:fm,links:bm,callbacks:Sm}},Paths:{$visitor:km},PathItem:{$visitor:qd,fixedFields:{$ref:Dd,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:Ud,parameters:Gd}},Operation:{$visitor:fd,fixedFields:{tags:vd,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Sd,requestBody:jd,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Md,deprecated:{$ref:"#/visitors/value"},security:Id,servers:$d}},ExternalDocumentation:{$visitor:Mm,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Xl,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:Du,content:Uu}},RequestBody:{$visitor:Dm,fixedFields:{description:{$ref:"#/visitors/value"},content:Um,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Xc,fixedFields:{schema:Al,example:{$ref:"#/visitors/value"},examples:Il,encoding:kl}},Encoding:{$visitor:Fm,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Cm,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:dd,fixedFields:{default:hd}},Response:{$visitor:Wm,fixedFields:{description:{$ref:"#/visitors/value"},headers:Jm,content:Qm,links:rd}},Callback:{$visitor:Hm},Example:{$visitor:Om,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Pm}},Link:{$visitor:Mc,fixedFields:{operationRef:Tc,operationId:Fc,parameters:kc,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:nu,example:{$ref:"#/visitors/value"},examples:au,content:du}},Tag:{$visitor:zl,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Kl,fixedFields:{$ref:Jl}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:hu,fixedFields:{title:op.title,multipleOf:op.multipleOf,maximum:op.maximum,exclusiveMaximum:op.exclusiveMaximum,minimum:op.minimum,exclusiveMinimum:op.exclusiveMinimum,maxLength:op.maxLength,minLength:op.minLength,pattern:op.pattern,maxItems:op.maxItems,minItems:op.minItems,uniqueItems:op.uniqueItems,maxProperties:op.maxProperties,minProperties:op.minProperties,required:op.required,enum:op.enum,type:Ou,allOf:fu,anyOf:yu,oneOf:bu,not:Au,items:Eu,properties:Su,additionalProperties:Au,description:op.description,format:op.format,default:op.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:Tu,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Nu}},XML:{$visitor:$u,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:zd,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:Kd,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:Yd,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:tp}},SecurityRequirement:{$visitor:Dl}},extension:{$visitor:bc}}}},cp=e=>{if(Lr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},lp={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"],...fn},up={namespace:e=>{const{base:t}=e;return t.register("callback",Vn),t.register("components",Gn),t.register("contact",zn),t.register("discriminator",Kn),t.register("encoding",Yn),t.register("example",Qn),t.register("externalDocumentation",ti),t.register("header",ri),t.register("info",ii),t.register("license",ai),t.register("link",li),t.register("mediaType",mi),t.register("oAuthFlow",pi),t.register("oAuthFlows",_i),t.register("openapi",gi),t.register("openApi3_0",vi),t.register("operation",wi),t.register("parameter",xi),t.register("pathItem",ji),t.register("paths",Pi),t.register("reference",Mi),t.register("requestBody",Fi),t.register("response",Ii),t.register("responses",Ci),t.register("schema",Ga),t.register("securityRequirement",za),t.register("securityScheme",Ka),t.register("server",Ya),t.register("serverVariable",Qa),t.register("tag",tc),t.register("xml",rc),t}},mp=()=>{const e=it(up);return{predicates:{...s,isElement:Lr,isStringElement:Ur,isArrayElement:zr,isObjectElement:Wr,isMemberElement:Zr,includesClasses:nn,hasElementSourceMap:sn},namespace:e}},dp=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,se.e)(e),n=Ji(ap),i=new(wn(t,n))({specObj:n});return gn(r,i),Rn(i.element,s,{toolboxCreator:mp,visitorOptions:{keyMap:lp,nodeTypeGetter:cp}})},pp=e=>(t,s={})=>dp(t,{specPath:e,...s});Vn.refract=pp(["visitors","document","objects","Callback","$visitor"]),Gn.refract=pp(["visitors","document","objects","Components","$visitor"]),zn.refract=pp(["visitors","document","objects","Contact","$visitor"]),Qn.refract=pp(["visitors","document","objects","Example","$visitor"]),Kn.refract=pp(["visitors","document","objects","Discriminator","$visitor"]),Yn.refract=pp(["visitors","document","objects","Encoding","$visitor"]),ti.refract=pp(["visitors","document","objects","ExternalDocumentation","$visitor"]),ri.refract=pp(["visitors","document","objects","Header","$visitor"]),ii.refract=pp(["visitors","document","objects","Info","$visitor"]),ai.refract=pp(["visitors","document","objects","License","$visitor"]),li.refract=pp(["visitors","document","objects","Link","$visitor"]),mi.refract=pp(["visitors","document","objects","MediaType","$visitor"]),pi.refract=pp(["visitors","document","objects","OAuthFlow","$visitor"]),_i.refract=pp(["visitors","document","objects","OAuthFlows","$visitor"]),gi.refract=pp(["visitors","document","objects","OpenApi","fixedFields","openapi"]),vi.refract=pp(["visitors","document","objects","OpenApi","$visitor"]),wi.refract=pp(["visitors","document","objects","Operation","$visitor"]),xi.refract=pp(["visitors","document","objects","Parameter","$visitor"]),ji.refract=pp(["visitors","document","objects","PathItem","$visitor"]),Pi.refract=pp(["visitors","document","objects","Paths","$visitor"]),Mi.refract=pp(["visitors","document","objects","Reference","$visitor"]),Fi.refract=pp(["visitors","document","objects","RequestBody","$visitor"]),Ii.refract=pp(["visitors","document","objects","Response","$visitor"]),Ci.refract=pp(["visitors","document","objects","Responses","$visitor"]),Ga.refract=pp(["visitors","document","objects","Schema","$visitor"]),za.refract=pp(["visitors","document","objects","SecurityRequirement","$visitor"]),Ka.refract=pp(["visitors","document","objects","SecurityScheme","$visitor"]),Ya.refract=pp(["visitors","document","objects","Server","$visitor"]),Qa.refract=pp(["visitors","document","objects","ServerVariable","$visitor"]),tc.refract=pp(["visitors","document","objects","Tag","$visitor"]),rc.refract=pp(["visitors","document","objects","XML","$visitor"]);const hp=class extends Vn{};const _p=class extends Gn{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const fp=class extends zn{};const gp=class extends Kn{};const yp=class extends Yn{};const vp=class extends Qn{};const bp=class extends ti{};const wp=class extends ri{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ep=class extends ii{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class xp extends se.Om{static default=new xp("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const Sp=xp;const jp=class extends ai{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Op=class extends li{};const Pp=class extends mi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ap=class extends pi{};const Mp=class extends _i{};const Tp=class extends gi{};class Fp extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Rp=Fp;const Ip=class extends wi{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Np=class extends xi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Cp=class extends ji{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}};const $p=class extends Pi{};class kp extends Mi{}Object.defineProperty(kp.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(kp.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const qp=kp;const Dp=class extends Fi{};const Bp=class extends Ii{};const Lp=class extends Ci{};class Up extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",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 if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get const(){return this.get("const")}set const(e){this.set("const",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 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 maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get 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 dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",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 deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}}const Vp=Up;const Hp=class extends za{};const Gp=class extends Ka{};const Wp=class extends Ya{};const zp=class extends Qa{};const Zp=class extends tc{};const Kp=class extends rc{};class Jp extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Rp,this.specPath=X(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,_c.prototype.ObjectElement.call(this,e)}}const Yp=Jp,Xp=ap.visitors.document.objects.Info.$visitor;const Qp=class extends Xp{constructor(e){super(e),this.element=new Ep}},eh=ap.visitors.document.objects.Contact.$visitor;const th=class extends eh{constructor(e){super(e),this.element=new fp}},sh=ap.visitors.document.objects.License.$visitor;const rh=class extends sh{constructor(e){super(e),this.element=new jp}},nh=ap.visitors.document.objects.Link.$visitor;const ih=class extends nh{constructor(e){super(e),this.element=new Op}};class oh extends(Fo(oc,ic)){StringElement(e){const t=new Sp(no(e));return this.copyMetaAndAttributes(e,t),this.element=t,Ys}}const ah=oh,ch=ap.visitors.document.objects.Server.$visitor;const lh=class extends ch{constructor(e){super(e),this.element=new Wp}},uh=ap.visitors.document.objects.ServerVariable.$visitor;const mh=class extends uh{constructor(e){super(e),this.element=new zp}},dh=ap.visitors.document.objects.MediaType.$visitor;const ph=class extends dh{constructor(e){super(e),this.element=new Pp}},hh=ap.visitors.document.objects.SecurityRequirement.$visitor;const _h=class extends hh{constructor(e){super(e),this.element=new Hp}},fh=ap.visitors.document.objects.Components.$visitor;const gh=class extends fh{constructor(e){super(e),this.element=new _p}},yh=ap.visitors.document.objects.Tag.$visitor;const vh=class extends yh{constructor(e){super(e),this.element=new Zp}},bh=ap.visitors.document.objects.Reference.$visitor;const wh=class extends bh{constructor(e){super(e),this.element=new qp}},Eh=ap.visitors.document.objects.Parameter.$visitor;const xh=class extends Eh{constructor(e){super(e),this.element=new Np}},Sh=ap.visitors.document.objects.Header.$visitor;const jh=class extends Sh{constructor(e){super(e),this.element=new wp}},Oh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof hp||e(r)&&t("callback",r)&&s("object",r))),Ph=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof _p||e(r)&&t("components",r)&&s("object",r))),Ah=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof fp||e(r)&&t("contact",r)&&s("object",r))),Mh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vp||e(r)&&t("example",r)&&s("object",r))),Th=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof bp||e(r)&&t("externalDocumentation",r)&&s("object",r))),Fh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof wp||e(r)&&t("header",r)&&s("object",r))),Rh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ep||e(r)&&t("info",r)&&s("object",r))),Ih=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Sp||e(r)&&t("jsonSchemaDialect",r)&&s("string",r))),Nh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jp||e(r)&&t("license",r)&&s("object",r))),Ch=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Op||e(r)&&t("link",r)&&s("object",r))),$h=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Tp||e(r)&&t("openapi",r)&&s("string",r))),kh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Rp||e(n)&&t("openApi3_1",n)&&s("object",n)&&r("api",n))),qh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ip||e(r)&&t("operation",r)&&s("object",r))),Dh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Np||e(r)&&t("parameter",r)&&s("object",r))),Bh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Cp||e(r)&&t("pathItem",r)&&s("object",r))),Lh=e=>{if(!Bh(e))return!1;if(!Ur(e.$ref))return!1;const t=no(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Uh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $p||e(r)&&t("paths",r)&&s("object",r))),Vh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qp||e(r)&&t("reference",r)&&s("object",r))),Hh=e=>{if(!Vh(e))return!1;if(!Ur(e.$ref))return!1;const t=no(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Gh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Dp||e(r)&&t("requestBody",r)&&s("object",r))),Wh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bp||e(r)&&t("response",r)&&s("object",r))),zh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Lp||e(r)&&t("responses",r)&&s("object",r))),Zh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vp||e(r)&&t("schema",r)&&s("object",r))),Kh=e=>Gr(e)&&e.classes.includes("boolean-json-schema"),Jh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hp||e(r)&&t("securityRequirement",r)&&s("object",r))),Yh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gp||e(r)&&t("securityScheme",r)&&s("object",r))),Xh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wp||e(r)&&t("server",r)&&s("object",r))),Qh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zp||e(r)&&t("serverVariable",r)&&s("object",r))),e_=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Pp||e(r)&&t("mediaType",r)&&s("object",r)));const t_=class{parent;constructor({parent:e}){this.parent=e}};class s_ extends(Fo(_c,t_,ic)){constructor(e){super(e),this.element=new Vp,this.specPath=X(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Sp.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=_c.prototype.ObjectElement.call(this,e);return Ur(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){const t=super.enter(e);return this.element.classes.push("boolean-json-schema"),t}getJsonSchemaDialect(){let e;return e=void 0!==this.openApiSemanticElement&&Ih(this.openApiSemanticElement.jsonSchemaDialect)?no(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Ur(this.openApiGenericElement.get("jsonSchemaDialect"))?no(this.openApiGenericElement.get("jsonSchemaDialect")):no(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(ee(this.parent)&&!Ur(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(Zh(this.parent)&&!Ur(e.get("$schema"))){const e=c(no(this.parent.meta.get("inherited$schema")),no(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?ln(this.parent.getMetaProperty("inherited$id",[])):new se.wE,s=no(e.get("$id"));zo(s)&&t.push(s),this.element.setMetaProperty("inherited$id",t)}}const r_=s_;const n_=class extends ic{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const i_=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class o_ extends(Fo(Ic,t_,ic)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=X(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const a_=o_;class c_ extends(Fo(oc,t_,ic)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Wr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=ln(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ys}}const l_=c_;class u_ extends(Fo(oc,t_,ic)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Wr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=ln(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ys}}const m_=u_;class d_ extends(Fo(oc,t_,ic)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Wr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=ln(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ys}}const p_=d_;class h_ extends(Fo(Ic,t_,ic)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=X(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const __=h_;class f_ extends(Fo(oc,t_,ic)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Wr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=ln(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ys}}const g_=f_;class y_ extends(Fo(Ic,t_,ic)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-properties"),this.specPath=X(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const v_=y_;class b_ extends(Fo(Ic,t_,ic)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=X(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const w_=b_;const E_=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}};const x_=class extends ic{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}};const S_=class extends ic{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const j_=class extends ic{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},O_=ap.visitors.document.objects.Discriminator.$visitor;const P_=class extends O_{constructor(e){super(e),this.element=new gp,this.canSupportSpecificationExtensions=!0}},A_=ap.visitors.document.objects.XML.$visitor;const M_=class extends A_{constructor(e){super(e),this.element=new Kp}};class T_ extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Hu,this.specPath=X(["document","objects","Schema"])}}const F_=T_;class R_ extends se.Sh{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(R_.primaryClass)}}const I_=R_;class N_ extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new I_,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(Vh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const C_=N_,$_=ap.visitors.document.objects.Example.$visitor;const k_=class extends $_{constructor(e){super(e),this.element=new vp}},q_=ap.visitors.document.objects.ExternalDocumentation.$visitor;const D_=class extends q_{constructor(e){super(e),this.element=new bp}},B_=ap.visitors.document.objects.Encoding.$visitor;const L_=class extends B_{constructor(e){super(e),this.element=new yp}},U_=ap.visitors.document.objects.Paths.$visitor;const V_=class extends U_{constructor(e){super(e),this.element=new $p}},H_=ap.visitors.document.objects.RequestBody.$visitor;const G_=class extends H_{constructor(e){super(e),this.element=new Dp}},W_=ap.visitors.document.objects.Callback.$visitor;const z_=class extends W_{constructor(e){super(e),this.element=new hp,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=W_.prototype.ObjectElement.call(this,e);return this.element.filter(Vh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},Z_=ap.visitors.document.objects.Response.$visitor;const K_=class extends Z_{constructor(e){super(e),this.element=new Bp}},J_=ap.visitors.document.objects.Responses.$visitor;const Y_=class extends J_{constructor(e){super(e),this.element=new Lp}},X_=ap.visitors.document.objects.Operation.$visitor;const Q_=class extends X_{constructor(e){super(e),this.element=new Ip}},ef=ap.visitors.document.objects.PathItem.$visitor;const tf=class extends ef{constructor(e){super(e),this.element=new Cp}},sf=ap.visitors.document.objects.SecurityScheme.$visitor;const rf=class extends sf{constructor(e){super(e),this.element=new Gp}},nf=ap.visitors.document.objects.OAuthFlows.$visitor;const of=class extends nf{constructor(e){super(e),this.element=new Mp}},af=ap.visitors.document.objects.OAuthFlow.$visitor;const cf=class extends af{constructor(e){super(e),this.element=new Ap}};class lf extends se.Sh{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(lf.primaryClass)}}const uf=lf;class mf extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new uf,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(Vh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Bh).forEach(((e,t)=>{e.setMetaProperty("webhook-name",no(t))})),t}}const df=mf,pf={visitors:{value:ap.visitors.value,document:{objects:{OpenApi:{$visitor:Yp,fixedFields:{openapi:ap.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:ah,servers:ap.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:df,components:{$ref:"#/visitors/document/objects/Components"},security:ap.visitors.document.objects.OpenApi.fixedFields.security,tags:ap.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Qp,fixedFields:{title:ap.visitors.document.objects.Info.fixedFields.title,description:ap.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:ap.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:ap.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:th,fixedFields:{name:ap.visitors.document.objects.Contact.fixedFields.name,url:ap.visitors.document.objects.Contact.fixedFields.url,email:ap.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:rh,fixedFields:{name:ap.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:ap.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:lh,fixedFields:{url:ap.visitors.document.objects.Server.fixedFields.url,description:ap.visitors.document.objects.Server.fixedFields.description,variables:ap.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:mh,fixedFields:{enum:ap.visitors.document.objects.ServerVariable.fixedFields.enum,default:ap.visitors.document.objects.ServerVariable.fixedFields.default,description:ap.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:gh,fixedFields:{schemas:F_,responses:ap.visitors.document.objects.Components.fixedFields.responses,parameters:ap.visitors.document.objects.Components.fixedFields.parameters,examples:ap.visitors.document.objects.Components.fixedFields.examples,requestBodies:ap.visitors.document.objects.Components.fixedFields.requestBodies,headers:ap.visitors.document.objects.Components.fixedFields.headers,securitySchemes:ap.visitors.document.objects.Components.fixedFields.securitySchemes,links:ap.visitors.document.objects.Components.fixedFields.links,callbacks:ap.visitors.document.objects.Components.fixedFields.callbacks,pathItems:C_}},Paths:{$visitor:V_},PathItem:{$visitor:tf,fixedFields:{$ref:ap.visitors.document.objects.PathItem.fixedFields.$ref,summary:ap.visitors.document.objects.PathItem.fixedFields.summary,description:ap.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:ap.visitors.document.objects.PathItem.fixedFields.servers,parameters:ap.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:Q_,fixedFields:{tags:ap.visitors.document.objects.Operation.fixedFields.tags,summary:ap.visitors.document.objects.Operation.fixedFields.summary,description:ap.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:ap.visitors.document.objects.Operation.fixedFields.operationId,parameters:ap.visitors.document.objects.Operation.fixedFields.parameters,requestBody:ap.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:ap.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:ap.visitors.document.objects.Operation.fixedFields.deprecated,security:ap.visitors.document.objects.Operation.fixedFields.security,servers:ap.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:D_,fixedFields:{description:ap.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:ap.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:xh,fixedFields:{name:ap.visitors.document.objects.Parameter.fixedFields.name,in:ap.visitors.document.objects.Parameter.fixedFields.in,description:ap.visitors.document.objects.Parameter.fixedFields.description,required:ap.visitors.document.objects.Parameter.fixedFields.required,deprecated:ap.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:ap.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:ap.visitors.document.objects.Parameter.fixedFields.style,explode:ap.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:ap.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:ap.visitors.document.objects.Parameter.fixedFields.example,examples:ap.visitors.document.objects.Parameter.fixedFields.examples,content:ap.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:G_,fixedFields:{description:ap.visitors.document.objects.RequestBody.fixedFields.description,content:ap.visitors.document.objects.RequestBody.fixedFields.content,required:ap.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:ph,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:ap.visitors.document.objects.MediaType.fixedFields.example,examples:ap.visitors.document.objects.MediaType.fixedFields.examples,encoding:ap.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:L_,fixedFields:{contentType:ap.visitors.document.objects.Encoding.fixedFields.contentType,headers:ap.visitors.document.objects.Encoding.fixedFields.headers,style:ap.visitors.document.objects.Encoding.fixedFields.style,explode:ap.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:ap.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Y_,fixedFields:{default:ap.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:K_,fixedFields:{description:ap.visitors.document.objects.Response.fixedFields.description,headers:ap.visitors.document.objects.Response.fixedFields.headers,content:ap.visitors.document.objects.Response.fixedFields.content,links:ap.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:z_},Example:{$visitor:k_,fixedFields:{summary:ap.visitors.document.objects.Example.fixedFields.summary,description:ap.visitors.document.objects.Example.fixedFields.description,value:ap.visitors.document.objects.Example.fixedFields.value,externalValue:ap.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:ih,fixedFields:{operationRef:ap.visitors.document.objects.Link.fixedFields.operationRef,operationId:ap.visitors.document.objects.Link.fixedFields.operationId,parameters:ap.visitors.document.objects.Link.fixedFields.parameters,requestBody:ap.visitors.document.objects.Link.fixedFields.requestBody,description:ap.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:jh,fixedFields:{description:ap.visitors.document.objects.Header.fixedFields.description,required:ap.visitors.document.objects.Header.fixedFields.required,deprecated:ap.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:ap.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:ap.visitors.document.objects.Header.fixedFields.style,explode:ap.visitors.document.objects.Header.fixedFields.explode,allowReserved:ap.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:ap.visitors.document.objects.Header.fixedFields.example,examples:ap.visitors.document.objects.Header.fixedFields.examples,content:ap.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:vh,fixedFields:{name:ap.visitors.document.objects.Tag.fixedFields.name,description:ap.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:wh,fixedFields:{$ref:ap.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:r_,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:n_,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:i_,$defs:a_,$comment:{$ref:"#/visitors/value"},allOf:l_,anyOf:m_,oneOf:p_,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:__,prefixItems:g_,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:v_,patternProperties:w_,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},type:E_,enum:x_,const:{$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"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxContains:{$ref:"#/visitors/value"},minContains:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},dependentRequired:S_,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},readOnly:{$ref:"#/visitors/value"},writeOnly:{$ref:"#/visitors/value"},examples:j_,format:{$ref:"#/visitors/value"},contentEncoding:{$ref:"#/visitors/value"},contentMediaType:{$ref:"#/visitors/value"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:P_,fixedFields:{propertyName:ap.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:ap.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:M_,fixedFields:{name:ap.visitors.document.objects.XML.fixedFields.name,namespace:ap.visitors.document.objects.XML.fixedFields.namespace,prefix:ap.visitors.document.objects.XML.fixedFields.prefix,attribute:ap.visitors.document.objects.XML.fixedFields.attribute,wrapped:ap.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:rf,fixedFields:{type:ap.visitors.document.objects.SecurityScheme.fixedFields.type,description:ap.visitors.document.objects.SecurityScheme.fixedFields.description,name:ap.visitors.document.objects.SecurityScheme.fixedFields.name,in:ap.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:ap.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:ap.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:ap.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:of,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:cf,fixedFields:{authorizationUrl:ap.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:ap.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:ap.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:ap.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:_h}},extension:{$visitor:ap.visitors.document.extension.$visitor}}}},hf=e=>{if(Lr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},_f={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...fn},ff=_e(as(/~/g,"~0"),as(/\//g,"~1"),encodeURIComponent);const gf=class extends Et{};const yf=class extends gf{tokens;constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}},vf=e=>{try{return 0===e.length?"":`/${e.map(ff).join("/")}`}catch(t){throw new yf("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}},bf={namespace:e=>{const{base:t}=e;return t.register("callback",hp),t.register("components",_p),t.register("contact",fp),t.register("discriminator",gp),t.register("encoding",yp),t.register("example",vp),t.register("externalDocumentation",bp),t.register("header",wp),t.register("info",Ep),t.register("jsonSchemaDialect",Sp),t.register("license",jp),t.register("link",Op),t.register("mediaType",Pp),t.register("oAuthFlow",Ap),t.register("oAuthFlows",Mp),t.register("openapi",Tp),t.register("openApi3_1",Rp),t.register("operation",Ip),t.register("parameter",Np),t.register("pathItem",Cp),t.register("paths",$p),t.register("reference",qp),t.register("requestBody",Dp),t.register("response",Bp),t.register("responses",Lp),t.register("schema",Vp),t.register("securityRequirement",Hp),t.register("securityScheme",Gp),t.register("server",Wp),t.register("serverVariable",zp),t.register("tag",Zp),t.register("xml",Kp),t}},wf=e=>{const t=e.reduce(((t,s,r)=>{if(Zr(s)){const e=String(no(s.key));t.push(e)}else if(zr(e[r-2])){const n=String(e[r-2].content.indexOf(s));t.push(n)}return t}),[]);return vf(t)},Ef=()=>{const e=it(bf);return{predicates:{...r,isElement:Lr,isStringElement:Ur,isArrayElement:zr,isObjectElement:Wr,isMemberElement:Zr,isServersElement:Ol,includesClasses:nn,hasElementSourceMap:sn},ancestorLineageToJSONPointer:wf,namespace:e}},xf=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,se.e)(e),n=Ji(pf),i=new(wn(t,n))({specObj:n});return gn(r,i),Rn(i.element,s,{toolboxCreator:Ef,visitorOptions:{keyMap:_f,nodeTypeGetter:hf}})},Sf=e=>(t,s={})=>xf(t,{specPath:e,...s});hp.refract=Sf(["visitors","document","objects","Callback","$visitor"]),_p.refract=Sf(["visitors","document","objects","Components","$visitor"]),fp.refract=Sf(["visitors","document","objects","Contact","$visitor"]),vp.refract=Sf(["visitors","document","objects","Example","$visitor"]),gp.refract=Sf(["visitors","document","objects","Discriminator","$visitor"]),yp.refract=Sf(["visitors","document","objects","Encoding","$visitor"]),bp.refract=Sf(["visitors","document","objects","ExternalDocumentation","$visitor"]),wp.refract=Sf(["visitors","document","objects","Header","$visitor"]),Ep.refract=Sf(["visitors","document","objects","Info","$visitor"]),Sp.refract=Sf(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),jp.refract=Sf(["visitors","document","objects","License","$visitor"]),Op.refract=Sf(["visitors","document","objects","Link","$visitor"]),Pp.refract=Sf(["visitors","document","objects","MediaType","$visitor"]),Ap.refract=Sf(["visitors","document","objects","OAuthFlow","$visitor"]),Mp.refract=Sf(["visitors","document","objects","OAuthFlows","$visitor"]),Tp.refract=Sf(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Rp.refract=Sf(["visitors","document","objects","OpenApi","$visitor"]),Ip.refract=Sf(["visitors","document","objects","Operation","$visitor"]),Np.refract=Sf(["visitors","document","objects","Parameter","$visitor"]),Cp.refract=Sf(["visitors","document","objects","PathItem","$visitor"]),$p.refract=Sf(["visitors","document","objects","Paths","$visitor"]),qp.refract=Sf(["visitors","document","objects","Reference","$visitor"]),Dp.refract=Sf(["visitors","document","objects","RequestBody","$visitor"]),Bp.refract=Sf(["visitors","document","objects","Response","$visitor"]),Lp.refract=Sf(["visitors","document","objects","Responses","$visitor"]),Vp.refract=Sf(["visitors","document","objects","Schema","$visitor"]),Hp.refract=Sf(["visitors","document","objects","SecurityRequirement","$visitor"]),Gp.refract=Sf(["visitors","document","objects","SecurityScheme","$visitor"]),Wp.refract=Sf(["visitors","document","objects","Server","$visitor"]),zp.refract=Sf(["visitors","document","objects","ServerVariable","$visitor"]),Zp.refract=Sf(["visitors","document","objects","Tag","$visitor"]),Kp.refract=Sf(["visitors","document","objects","XML","$visitor"]);const jf=i((function(e){return m(-1,e)}));const Of=class extends $i{};const Pf=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Of("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Of("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Of("latest method in MediaTypes class is not yet implemented.")}};class Af extends Pf{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(s)))||this.unknownMediaType}latest(e="generic"){return jf(this.filterByFormat(e))}}const Mf=new Af("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),Tf=new Af(...Mf.filterByFormat("generic"),...Mf.filterByFormat("yaml")),Ff=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m,Rf=async e=>Ff.test(e)&&await(async e=>{try{return!(await yt(e)).rootNode.isError}catch{return!1}})(e),If=async(e,t={})=>{const s=p({},"refractorOpts",t),r=h(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1}={})=>{const s=await yt(e);return Ln(s,{sourceMap:t})})(e,r),{result:i}=n;if(te(i)){const e=Rp.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},Nf=it(bf)})(),__webpack_exports__})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiYaml3_1=t():e.apidomParserAdapterOpenApiYaml3_1=t()}(self,(()=>(()=>{var __webpack_modules__={3103:(e,t,s)=>{var r=s(4715)(s(8942),"DataView");e.exports=r},5098:(e,t,s)=>{var r=s(3305),n=s(9361),i=s(1112),o=s(5276),a=s(5071);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1386:(e,t,s)=>{var r=s(2393),n=s(2049),i=s(7144),o=s(7452),a=s(3964);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9770:(e,t,s)=>{var r=s(4715)(s(8942),"Map");e.exports=r},8250:(e,t,s)=>{var r=s(9753),n=s(5681),i=s(88),o=s(4732),a=s(9068);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9413:(e,t,s)=>{var r=s(4715)(s(8942),"Promise");e.exports=r},4512:(e,t,s)=>{var r=s(4715)(s(8942),"Set");e.exports=r},3212:(e,t,s)=>{var r=s(8250),n=s(1877),i=s(8006);function o(e){var t=-1,s=null==e?0:e.length;for(this.__data__=new r;++t<s;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},1340:(e,t,s)=>{var r=s(1386),n=s(4103),i=s(1779),o=s(4162),a=s(7462),c=s(6638);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},5650:(e,t,s)=>{var r=s(8942).Symbol;e.exports=r},1623:(e,t,s)=>{var r=s(8942).Uint8Array;e.exports=r},9270:(e,t,s)=>{var r=s(4715)(s(8942),"WeakMap");e.exports=r},9847:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length,n=0,i=[];++s<r;){var o=e[s];t(o,s,e)&&(i[n++]=o)}return i}},358:(e,t,s)=>{var r=s(6137),n=s(3283),i=s(3142),o=s(5853),a=s(9632),c=s(8666),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),u=!s&&n(e),m=!s&&!u&&o(e),d=!s&&!u&&!m&&c(e),p=s||u||m||d,h=p?r(e.length,String):[],_=h.length;for(var f in e)!t&&!l.call(e,f)||p&&("length"==f||m&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,_))||h.push(f);return h}},1129:e=>{e.exports=function(e,t){for(var s=-1,r=t.length,n=e.length;++s<r;)e[n+s]=t[s];return e}},6465:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length;++s<r;)if(t(e[s],s,e))return!0;return!1}},7034:(e,t,s)=>{var r=s(6285);e.exports=function(e,t){for(var s=e.length;s--;)if(r(e[s][0],t))return s;return-1}},8244:(e,t,s)=>{var r=s(1129),n=s(3142);e.exports=function(e,t,s){var i=t(e);return n(e)?i:r(i,s(e))}},7379:(e,t,s)=>{var r=s(5650),n=s(8870),i=s(9005),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},6027:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},4687:(e,t,s)=>{var r=s(353),n=s(547);e.exports=function e(t,s,i,o,a){return t===s||(null==t||null==s||!n(t)&&!n(s)?t!=t&&s!=s:r(t,s,i,o,e,a))}},353:(e,t,s)=>{var r=s(1340),n=s(3934),i=s(8861),o=s(1182),a=s(8486),c=s(3142),l=s(5853),u=s(8666),m="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,_,f,g){var y=c(e),v=c(t),b=y?d:a(e),w=v?d:a(t),E=(b=b==m?p:b)==p,x=(w=w==m?p:w)==p,S=b==w;if(S&&l(e)){if(!l(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||u(e)?n(e,t,s,_,f,g):i(e,t,b,s,_,f,g);if(!(1&s)){var j=E&&h.call(e,"__wrapped__"),O=x&&h.call(t,"__wrapped__");if(j||O){var P=j?e.value():e,A=O?t.value():t;return g||(g=new r),f(P,A,s,_,g)}}return!!S&&(g||(g=new r),o(e,t,s,_,f,g))}},9624:(e,t,s)=>{var r=s(3655),n=s(4759),i=s(1580),o=s(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,m=l.hasOwnProperty,d=RegExp("^"+u.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?d:a).test(o(e))}},674:(e,t,s)=>{var r=s(7379),n=s(5387),i=s(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[r(e)]}},195:(e,t,s)=>{var r=s(4882),n=s(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(e);var t=[];for(var s in Object(e))i.call(e,s)&&"constructor"!=s&&t.push(s);return t}},6137:e=>{e.exports=function(e,t){for(var s=-1,r=Array(e);++s<e;)r[s]=t(s);return r}},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,s)=>{var r=s(8942)["__core-js_shared__"];e.exports=r},3934:(e,t,s)=>{var r=s(3212),n=s(6465),i=s(5568);e.exports=function(e,t,s,o,a,c){var l=1&s,u=e.length,m=t.length;if(u!=m&&!(l&&m>u))return!1;var d=c.get(e),p=c.get(t);if(d&&p)return d==t&&p==e;var h=-1,_=!0,f=2&s?new r:void 0;for(c.set(e,t),c.set(t,e);++h<u;){var g=e[h],y=t[h];if(o)var v=l?o(y,g,h,t,e,c):o(g,y,h,e,t,c);if(void 0!==v){if(v)continue;_=!1;break}if(f){if(!n(t,(function(e,t){if(!i(f,t)&&(g===e||a(g,e,s,o,c)))return f.push(t)}))){_=!1;break}}else if(g!==y&&!a(g,y,s,o,c)){_=!1;break}}return c.delete(e),c.delete(t),_}},8861:(e,t,s)=>{var r=s(5650),n=s(1623),i=s(6285),o=s(3934),a=s(5894),c=s(7447),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,s,r,l,m,d){switch(s){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!m(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 p=a;case"[object Set]":var h=1&r;if(p||(p=c),e.size!=t.size&&!h)return!1;var _=d.get(e);if(_)return _==t;r|=2,d.set(e,t);var f=o(p(e),p(t),r,l,m,d);return d.delete(e),f;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},1182:(e,t,s)=>{var r=s(393),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,i,o,a){var c=1&s,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var m=u;m--;){var d=l[m];if(!(c?d in t:n.call(t,d)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var _=!0;a.set(e,t),a.set(t,e);for(var f=c;++m<u;){var g=e[d=l[m]],y=t[d];if(i)var v=c?i(y,g,d,t,e,a):i(g,y,d,e,t,a);if(!(void 0===v?g===y||o(g,y,s,i,a):v)){_=!1;break}f||(f="constructor"==d)}if(_&&!f){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(_=!1)}return a.delete(e),a.delete(t),_}},4967:(e,t,s)=>{var r="object"==typeof s.g&&s.g&&s.g.Object===Object&&s.g;e.exports=r},393:(e,t,s)=>{var r=s(8244),n=s(7979),i=s(1211);e.exports=function(e){return r(e,i,n)}},4700:(e,t,s)=>{var r=s(9067);e.exports=function(e,t){var s=e.__data__;return r(t)?s["string"==typeof t?"string":"hash"]:s.map}},4715:(e,t,s)=>{var r=s(9624),n=s(155);e.exports=function(e,t){var s=n(e,t);return r(s)?s:void 0}},8870:(e,t,s)=>{var r=s(5650),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),s=e[a];try{e[a]=void 0;var r=!0}catch(e){}var n=o.call(e);return r&&(t?e[a]=s:delete e[a]),n}},7979:(e,t,s)=>{var r=s(9847),n=s(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},8486:(e,t,s)=>{var r=s(3103),n=s(9770),i=s(9413),o=s(4512),a=s(9270),c=s(7379),l=s(4066),u="[object Map]",m="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",_=l(r),f=l(n),g=l(i),y=l(o),v=l(a),b=c;(r&&b(new r(new ArrayBuffer(1)))!=h||n&&b(new n)!=u||i&&b(i.resolve())!=m||o&&b(new o)!=d||a&&b(new a)!=p)&&(b=function(e){var t=c(e),s="[object Object]"==t?e.constructor:void 0,r=s?l(s):"";if(r)switch(r){case _:return h;case f:return u;case g:return m;case y:return d;case v:return p}return t}),e.exports=b},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,s)=>{var r=s(4497);e.exports=function(){this.__data__=r?r(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,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var s=t[e];return"__lodash_hash_undefined__"===s?void 0:s}return n.call(t,e)?t[e]:void 0}},5276:(e,t,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},5071:(e,t,s)=>{var r=s(4497);e.exports=function(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var r=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<s}},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,s)=>{var r,n=s(1950),i=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var s=e&&e.constructor;return e===("function"==typeof s&&s.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,s)=>{var r=s(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,s=r(t,e);return!(s<0)&&(s==t.length-1?t.pop():n.call(t,s,1),--this.size,!0)}},7144:(e,t,s)=>{var r=s(7034);e.exports=function(e){var t=this.__data__,s=r(t,e);return s<0?void 0:t[s][1]}},7452:(e,t,s)=>{var r=s(7034);e.exports=function(e){return r(this.__data__,e)>-1}},3964:(e,t,s)=>{var r=s(7034);e.exports=function(e,t){var s=this.__data__,n=r(s,e);return n<0?(++this.size,s.push([e,t])):s[n][1]=t,this}},9753:(e,t,s)=>{var r=s(5098),n=s(1386),i=s(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}},5681:(e,t,s)=>{var r=s(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).get(e)}},4732:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).has(e)}},9068:(e,t,s)=>{var r=s(4700);e.exports=function(e,t){var s=r(this,e),n=s.size;return s.set(e,t),this.size+=s.size==n?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e,r){s[++t]=[r,e]})),s}},4497:(e,t,s)=>{var r=s(4715)(Object,"create");e.exports=r},8121:(e,t,s)=>{var r=s(3766)(Object.keys,Object);e.exports=r},2306:(e,t,s)=>{e=s.nmd(e);var r=s(4967),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(s){return e(t(s))}}},8942:(e,t,s)=>{var r=s(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")();e.exports=i},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,s=Array(e.size);return e.forEach((function(e){s[++t]=e})),s}},4103:(e,t,s)=>{var r=s(1386);e.exports=function(){this.__data__=new r,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}},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,s)=>{var r=s(1386),n=s(9770),i=s(8250);e.exports=function(e,t){var s=this.__data__;if(s instanceof r){var o=s.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new i(o)}return s.set(e,t),this.size=s.size,this}},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,s)=>{var r=s(6027),n=s(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,s)=>{var r=s(3655),n=s(5387);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},2563:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==r(e)}},5853:(e,t,s)=>{e=s.nmd(e);var r=s(8942),n=s(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},6343:(e,t,s)=>{var r=s(4687);e.exports=function(e,t){return r(e,t)}},3655:(e,t,s)=>{var r=s(7379),n=s(1580);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},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,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==r(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,s)=>{var r=s(7379),n=s(3142),i=s(547);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==r(e)}},8666:(e,t,s)=>{var r=s(674),n=s(9460),i=s(2306),o=i&&i.isTypedArray,a=o?n(o):r;e.exports=a},1211:(e,t,s)=>{var r=s(358),n=s(195),i=s(6529);e.exports=function(e){return i(e)?r(e):n(e)}},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,s)=>{const r=s(1517);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=n(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},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,s)=>{const r=s(9310),n=s(8138),i=s(986),o=s(2563),a=s(1580),c=s(394),l=s(7547);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(r,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let s=0;s<this.elementDetection.length;s+=1){const r=this.elementDetection[s][0],n=this.elementDetection[s][1];if(r(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=u,e.exports=u},3311:(e,t,s)=>{const r=s(1517),n=s(4123);class i extends n{map(e,t){return this.elements.map((s=>e.bind(t)(s.value,s.key,s)))}filter(e,t){return new i(this.elements.filter((s=>e.bind(t)(s.value,s.key,s))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((s,r)=>{e.bind(t)(s.value,s.key,s,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,s)=>{const r=s(8631),n=s(3004),i=s(8712),o=s(2536),a=s(2555),c=s(9796),l=s(7309),u=s(5642),m=s(9620),d=s(593),p=s(4123),h=s(3311),_=s(2322);function f(e){if(e instanceof r)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new n;if(Array.isArray(e))return new c(e.map(f));if("object"==typeof e){return new u(e)}return e}r.prototype.ObjectElement=u,r.prototype.RefElement=d,r.prototype.MemberElement=l,r.prototype.refract=f,p.prototype.refract=f,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:m,RefElement:d,refract:f,ArraySlice:p,ObjectSlice:h,KeyValuePair:_}},9620:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||[],t,s),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},593:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||[],t,s),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},8326:(e,t,s)=>{const r=s(5735),n=s(7547);t.g$=r,t.KeyValuePair=s(2322),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,s(394),s(3148)},9796:(e,t,s)=>{const r=s(1517),n=s(8631),i=s(4123);class o extends n{constructor(e,t,s){super(e||[],t,s),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let s,r;void 0!==t?(s=0,r=this.refract(t)):(s=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=s;t<this.length;t+=1){const s=this.content[t];r="object"===this.primitive()?this.refract(e(r,s.value,s.key,s,this)):this.refract(e(r,s,t,this))}return r}forEach(e,t){this.content.forEach(((s,r)=>{e.bind(t)(s,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const s=t||{},r=!!s.recursive,n=void 0===s.results?[]:s.results;return this.forEach(((t,s,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:r}),e(t,s,i)&&n.push(t)})),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,s)=>{const r=s(6343),n=s(2322),i=s(4123);class o{constructor(e,t,s){t&&(this.meta=t),s&&(this.attributes=s),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof n?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let s=new i;const r=(e,t)=>(e.push(t),e),o=(e,s)=>{s.element===t&&e.push(s);const i=s.findRecursive(t);return i&&i.reduce(r,e),s.content instanceof n&&(s.content.key&&o(e,s.content.key),s.content.value&&o(e,s.content.value)),e};return this.content&&(this.content.element&&o(s,this.content),Array.isArray(this.content)&&this.content.reduce(o,s)),e.isEmpty||(s=s.filter((t=>{let s=t.parents.map((e=>e.element));for(const t in e){const r=e[t],n=s.indexOf(r);if(-1===n)return!1;s=s.splice(0,n)}return!0}))),s}set(e){return this.content=e,this}equals(e){return r(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof n)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof n){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7309:(e,t,s)=>{const r=s(2322),n=s(8631);e.exports=class extends n{constructor(e,t,s,n){super(new r,s,n),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},3004:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||null,t,s),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}}},5642:(e,t,s)=>{const r=s(1517),n=s(1580),i=s(9796),o=s(7309),a=s(3311);e.exports=class extends i{constructor(e,t,s){super(e||[],t,s),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((s=>s.key.toValue()!==e||(t=s,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const s=e,r=this.getMember(s);return r?r.value=t:this.content.push(new o(s,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((s=>e.bind(t)(s.value,s.key,s)))}compactMap(e,t){const s=[];return this.forEach(((r,n,i)=>{const o=e.bind(t)(r,n,i);o&&s.push(o)})),s}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((s=>e.bind(t)(s.value,s.key,s)))}}},8712:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,s)=>{const r=s(394);e.exports=class extends r{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const s={element:e.element};e._meta&&e._meta.length>0&&(s.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(s.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(s.attributes=this.serialiseObject(r))}if(r)s.content=this.enumSerialiseContent(e,s);else if(this[`${e.element}SerialiseContent`])s.content=this[`${e.element}SerialiseContent`](e,s);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(s.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(s.content=[]);return s}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),s=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==s.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),s=new t;s.element!==e.element&&(s.element=e.element),e.meta&&this.deserialiseObject(e.meta,s.meta),e.attributes&&this.deserialiseObject(e.attributes,s.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==s.content||(s.content=r),"enum"===s.element){s.content&&s.attributes.set("enumerations",s.content);let e=s.attributes.get("samples");if(s.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const n=new t(r);n.element=s.element,e.push(n)}))}));const n=e.shift();s.content=n?n.content:void 0,s.attributes.set("samples",e)}else s.content=void 0;let r=s.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=s.element,s.attributes.set("default",e)}}else if("dataStructure"===s.element&&Array.isArray(s.content))[s.content]=s.content;else if("category"===s.element){const e=s.attributes.get("meta");e&&(s.attributes.set("metadata",e),s.attributes.remove("meta"))}else"member"===s.element&&s.key&&s.key._attributes&&s.key._attributes.getValue("variable")&&(s.attributes.set("variable",s.key.attributes.get("variable")),s.key.attributes.remove("variable"));return s}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,s)=>{if(e){const r=s.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const s=this.deserialiseContent(e.content);return void 0===s&&null!==t.content||(t.content=s),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,s)=>{e&&(t[s.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},8583:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(s=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[s.MalformedUnicode,"malformed Unicode character escape sequence"],[s.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[s.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[s.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[s.EndOfString,"malformed escape sequence at end of string"]])},6850:(e,t,s)=>{"use strict";t.MH=void 0;const r=s(8583);function n(e,t,s){const n=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(n)||void 0!==s&&s!==e.length)throw new SyntaxError(r.errorMessages.get(t));return n}function i(e,t){const s=n(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=n(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(s,e)}return String.fromCharCode(s)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,s,a,c,l,u,m,d,p){if(void 0!==s)return"\\";if(void 0!==a)return function(e){const t=n(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const s=n(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(s)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==l)return i(l,u);if(void 0!==m)return i(m);if("0"===d)return"\0";if(void 0!==d)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const s=parseInt(e,8);return String.fromCharCode(s)}(d,!t);if(void 0!==p)return h=p,o.get(h)||h;var h;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=c},3833:(module,__unused_webpack_exports,__webpack_require__)=>{var __dirname="/",Module=void 0!==Module?Module:{},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(3078),nodePath=__webpack_require__(4142);scriptDirectory=__dirname+"/",readBinary=e=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e)),readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise(((s,r)=>{fs.readFile(e,t?void 0:"utf8",((e,n)=>{e?r(e):s(t?n.buffer:n)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>isFileURI(e)?new Promise(((t,s)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{(200==r.status||0==r.status&&r.response)&&s(r.response),t(r.status)},r.onerror=t,r.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary,wasmMemory;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP_DATA_VIEW;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies?.(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function findWasmBinary(){var e="tree-sitter.wasm";return isDataURI(e)?e:locateFile(e)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary?Promise.resolve().then((()=>getBinarySync(e))):readAsync(e).then((e=>new Uint8Array(e)),(()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,s){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(s,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,s,r){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,s,r):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,s).then(r,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,s,r)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var s=getDylinkMetadata(t);return s.neededDynlibs&&(dynamicLibraries=s.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})),{}}var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var s=GOT[t];return s||(s=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(s.required=!0),s}},LE_HEAP_LOAD_F32=e=>HEAP_DATA_VIEW.getFloat32(e,!0),LE_HEAP_LOAD_F64=e=>HEAP_DATA_VIEW.getFloat64(e,!0),LE_HEAP_LOAD_I16=e=>HEAP_DATA_VIEW.getInt16(e,!0),LE_HEAP_LOAD_I32=e=>HEAP_DATA_VIEW.getInt32(e,!0),LE_HEAP_LOAD_U32=e=>HEAP_DATA_VIEW.getUint32(e,!0),LE_HEAP_STORE_F32=(e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),LE_HEAP_STORE_F64=(e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),LE_HEAP_STORE_I16=(e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),LE_HEAP_STORE_I32=(e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),LE_HEAP_STORE_U32=(e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t,s)=>{for(var r=t+s,n=t;e[n]&&!(n>=r);)++n;if(n-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,n));for(var i="";t<n;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i},getDylinkMetadata=e=>{var t=0,s=0;function r(){for(var s=0,r=1;;){var n=e[t++];if(s+=(127&n)*r,r*=128,!(128&n))break}return s}function n(){var s=r();return UTF8ArrayToString(e,(t+=s)-s,s)}function i(e,t){if(e)throw new Error(t)}var o="dylink.0";if(e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,o);0===a.length&&(o="dylink",a=WebAssembly.Module.customSections(e,o)),i(0===a.length,"need dylink section"),s=(e=new Uint8Array(a[0])).length}else{var c=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);i(!(1836278016==c[0]||6386541==c[0]),"need to see wasm magic number"),i(0!==e[8],"need the dylink section to be first"),t=9;var l=r();s=t+l,o=n()}var u={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==o){u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();for(var m=r(),d=0;d<m;++d){var p=n();u.neededDynlibs.push(p)}}else{i("dylink.0"!==o);for(;t<s;){var h=e[t++],_=r();if(1===h)u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();else if(2===h)for(m=r(),d=0;d<m;++d)p=n(),u.neededDynlibs.push(p);else if(3===h)for(var f=r();f--;){var g=n();256&r()&&u.tlsExports.add(g)}else if(4===h)for(f=r();f--;){n(),g=n();1==(3&r())&&u.weakImports.add(g)}else t+=_}}return u};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,s)=>{var r={refcount:1/0,name:e,exports:s,global:!0};return LDSO.loadedLibsByName[e]=r,null!=t&&(LDSO.loadedLibsByHandle[t]=r),r},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=(e,t)=>(HEAPU8.fill(0,e,e+t),e),alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,s=t+alignMemory(e,16);return ___heap_base=s,GOT.__heap_base.value=s,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},s={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},r=1;r<e.length;++r)s.parameters.push(t[e[r]]);return s},generateFuncType=(e,t)=>{var s=e.slice(0,1),r=e.slice(1),n={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(r.length,t);for(var i=0;i<r.length;++i)t.push(n[r[i]]);"v"==s?t.push(0):t.push(1,n[s])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var s=[1];generateFuncType(t,s);var r=[0,97,115,109,1,0,0,0,1];uleb128Encode(s.length,r),r.push(...s),r.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var n=new WebAssembly.Module(new Uint8Array(r));return new WebAssembly.Instance(n,{e:{f:e}}).exports.f},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var s=e;s<e+t;s++){var r=getWasmTableEntry(s);r&&functionsInTableMap.set(r,s)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var s=getFunctionAddress(e);if(s)return s;var r=getEmptyTableSlot();try{setWasmTableEntry(r,e)}catch(s){if(!(s instanceof TypeError))throw s;var n=convertJsFunctionToWasm(e,t);setWasmTableEntry(r,n)}return functionsInTableMap.set(e,r),r},updateGOT=(e,t)=>{for(var s in e)if(!isInternalSym(s)){var r=e[s];s.startsWith("orig$")&&(s=s.split("$")[1],t=!0),GOT[s]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[s].value)&&("function"==typeof r?GOT[s].value=addFunction(r):"number"==typeof r?GOT[s].value=r:err(`unhandled export type for '${s}': ${typeof r}`))}},relocateExports=(e,t,s)=>{var r={};for(var n in e){var i=e[n];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),r[n]=i}return updateGOT(r,s),r},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,s)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...s)),dynCall=(e,t,s=[])=>e.includes("j")?dynCallLegacy(e,t,s):getWasmTableEntry(t)(...s),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...s)=>{var r=stackSave();try{return dynCall(e,t,s)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var s;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?s=wasmImports[e]:e.startsWith("invoke_")&&(s=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:s,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+8];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32(4*(handle+12>>2),memoryBase),LE_HEAP_STORE_I32(4*(handle+16>>2),metadata.memorySize),LE_HEAP_STORE_U32(4*(handle+20>>2),tableBase),LE_HEAP_STORE_I32(4*(handle+24>>2),metadata.tableSize))}else memoryBase=LE_HEAP_LOAD_U32(4*(handle+12>>2)),tableBase=LE_HEAP_LOAD_U32(4*(handle+20>>2));var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];var s;t in e||(e[t]=(...e)=>(s||=resolveSymbol(t),s(...e)));return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(","),cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags,localScope)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[s,r]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=r)};e(s);const t="__main_argc_argv";"main"==s&&e(t),s==t&&e("main"),s.startsWith("dynCall_")&&!Module.hasOwnProperty(s)&&(Module[s]=r)}},asyncLoad=(e,t,s,r)=>{var n=r?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),n&&removeRunDependency(n)}),(t=>{if(!s)throw`Loading data file "${e}" failed.`;s()})),n&&addRunDependency(n)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},s,r){var n=LDSO.loadedLibsByName[e];if(n)return t.global?n.global||(n.global=!0,mergeLibSymbols(n.exports,e)):s&&Object.assign(s,n.exports),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,r&&(LDSO.loadedLibsByHandle[r]=n),!t.loadAsync||Promise.resolve(!0);function i(){if(r){var s=LE_HEAP_LOAD_U32(4*(r+28>>2)),n=LE_HEAP_LOAD_U32(4*(r+32>>2));if(s&&n){var i=HEAP8.slice(s,s+n);return t.loadAsync?Promise.resolve(i):i}}var o=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(o,e,t)}));if(!readBinary)throw new Error(`${o}: file not found, and synchronous loading of external files is not available`);return readBinary(o)}function o(){return t.loadAsync?i().then((n=>loadWebAssemblyModule(n,t,e,s,r))):loadWebAssemblyModule(i(),t,e,s,r)}function a(t){n.global?mergeLibSymbols(t,e):s&&Object.assign(s,t),n.exports=t}return(n=newDSO(e,r,"loading")).refcount=t.nodelete?1/0:1,n.global=t.global,t.loadAsync?o().then((e=>(a(e),!0))):(a(o()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var s=resolveGlobalSymbol(e,!0).sym;if(!s&&!t.required)continue;if("function"==typeof s)t.value=addFunction(s,s.sig);else{if("number"!=typeof s)throw new Error(`bad export type for '${e}': ${typeof s}`);t.value=s}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("loadDylibs"),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")}))):reportUndefinedSymbols()},noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,s="i8"){switch(s.endsWith("*")&&(s="*"),s){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${s}`)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=(e,t,s)=>HEAPU8.copyWithin(e,t,t+s);__emscripten_memcpy_js.sig="vppp";var _emscripten_date_now=()=>Date.now(),_emscripten_get_now;_emscripten_date_now.sig="d",_emscripten_get_now=()=>performance.now(),_emscripten_get_now.sig="d";var getHeapMax=()=>2147483648,growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var s=getHeapMax();if(e>s)return!1;for(var r,n,i=1;i<=4;i*=2){var o=t*(1+.2/i);o=Math.min(o,e+100663296);var a=Math.min(s,(r=Math.max(e,o))+((n=65536)-r%n)%n);if(growMemory(a))return!0}return!1};_emscripten_resize_heap.sig="ip";var _fd_close=e=>52;_fd_close.sig="ii";var convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function _fd_seek(e,t,s,r,n){convertI32PairToI53Checked(t,s);return 70}_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var s=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(s,0)),s.length=0):s.push(t)},_fd_write=(e,t,s,r)=>{for(var n=0,i=0;i<s;i++){var o=LE_HEAP_LOAD_U32(4*(t>>2)),a=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var c=0;c<a;c++)printChar(e,HEAPU8[o+c]);n+=a}return LE_HEAP_STORE_U32(4*(r>>2),n),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const s=UTF8ToString(t);currentLogCallback(s,0!==e)}}function _tree_sitter_parse_callback(e,t,s,r,n){const i=currentParseCallback(t,{row:s,column:r});"string"==typeof i?(setValue(n,i.length,"i32"),stringToUTF16(i,e,10240)):setValue(n,0,"i32")}_fd_write.sig="iippp";var runtimeKeepaliveCounter=0,keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0,_proc_exit=e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))};_proc_exit.sig="vi";var exitJS=(e,t)=>{EXITSTATUS=e,_proc_exit(e)},handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},lengthBytesUTF8=e=>{for(var t=0,s=0;s<e.length;++s){var r=e.charCodeAt(s);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++s):t+=3}return t},stringToUTF8Array=(e,t,s,r)=>{if(!(r>0))return 0;for(var n=s,i=s+r-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o);if(a<=127){if(s>=i)break;t[s++]=a}else if(a<=2047){if(s+1>=i)break;t[s++]=192|a>>6,t[s++]=128|63&a}else if(a<=65535){if(s+2>=i)break;t[s++]=224|a>>12,t[s++]=128|a>>6&63,t[s++]=128|63&a}else{if(s+3>=i)break;t[s++]=240|a>>18,t[s++]=128|a>>12&63,t[s++]=128|a>>6&63,t[s++]=128|63&a}}return t[s]=0,s-n},stringToUTF8=(e,t,s)=>stringToUTF8Array(e,HEAPU8,t,s),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,s=stackAlloc(t);return stringToUTF8(e,s,t),s},stringToUTF16=(e,t,s)=>{if(s??=2147483647,s<2)return 0;for(var r=t,n=(s-=2)<2*e.length?s/2:e.length,i=0;i<n;++i){var o=e.charCodeAt(i);LE_HEAP_STORE_I16(2*(t>>1),o),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-r},AsciiToString=e=>{for(var t="";;){var s=HEAPU8[e++];if(!s)return t;t+=String.fromCharCode(s)}},wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports.__wasm_call_ctors)(),___wasm_apply_data_relocs=()=>(___wasm_apply_data_relocs=wasmExports.__wasm_apply_data_relocs)(),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t),_realloc=Module._realloc=(e,t)=>(_realloc=Module._realloc=wasmExports.realloc)(e,t),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_ts_language_symbol_count=Module._ts_language_symbol_count=e=>(_ts_language_symbol_count=Module._ts_language_symbol_count=wasmExports.ts_language_symbol_count)(e),_ts_language_state_count=Module._ts_language_state_count=e=>(_ts_language_state_count=Module._ts_language_state_count=wasmExports.ts_language_state_count)(e),_ts_language_version=Module._ts_language_version=e=>(_ts_language_version=Module._ts_language_version=wasmExports.ts_language_version)(e),_ts_language_field_count=Module._ts_language_field_count=e=>(_ts_language_field_count=Module._ts_language_field_count=wasmExports.ts_language_field_count)(e),_ts_language_next_state=Module._ts_language_next_state=(e,t,s)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,s),_ts_language_symbol_name=Module._ts_language_symbol_name=(e,t)=>(_ts_language_symbol_name=Module._ts_language_symbol_name=wasmExports.ts_language_symbol_name)(e,t),_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=(e,t,s,r)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,s,r),_strncmp=Module._strncmp=(e,t,s)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,s),_ts_language_symbol_type=Module._ts_language_symbol_type=(e,t)=>(_ts_language_symbol_type=Module._ts_language_symbol_type=wasmExports.ts_language_symbol_type)(e,t),_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=(e,t)=>(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=wasmExports.ts_language_field_name_for_id)(e,t),_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=(e,t)=>(_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=wasmExports.ts_lookahead_iterator_new)(e,t),_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=e=>(_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=wasmExports.ts_lookahead_iterator_delete)(e),_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=(e,t)=>(_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=wasmExports.ts_lookahead_iterator_reset_state)(e,t),_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=(e,t,s)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,s),_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=e=>(_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=wasmExports.ts_lookahead_iterator_next)(e),_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=e=>(_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=wasmExports.ts_lookahead_iterator_current_symbol)(e),_memset=Module._memset=(e,t,s)=>(_memset=Module._memset=wasmExports.memset)(e,t,s),_memcpy=Module._memcpy=(e,t,s)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,s),_ts_parser_delete=Module._ts_parser_delete=e=>(_ts_parser_delete=Module._ts_parser_delete=wasmExports.ts_parser_delete)(e),_ts_parser_reset=Module._ts_parser_reset=e=>(_ts_parser_reset=Module._ts_parser_reset=wasmExports.ts_parser_reset)(e),_ts_parser_set_language=Module._ts_parser_set_language=(e,t)=>(_ts_parser_set_language=Module._ts_parser_set_language=wasmExports.ts_parser_set_language)(e,t),_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=e=>(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=wasmExports.ts_parser_timeout_micros)(e),_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=(e,t,s)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,s),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,s)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,s),_memmove=Module._memmove=(e,t,s)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,s),_memcmp=Module._memcmp=(e,t,s)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,s),_ts_query_new=Module._ts_query_new=(e,t,s,r,n)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,s,r,n),_ts_query_delete=Module._ts_query_delete=e=>(_ts_query_delete=Module._ts_query_delete=wasmExports.ts_query_delete)(e),_iswspace=Module._iswspace=e=>(_iswspace=Module._iswspace=wasmExports.iswspace)(e),_iswalnum=Module._iswalnum=e=>(_iswalnum=Module._iswalnum=wasmExports.iswalnum)(e),_ts_query_pattern_count=Module._ts_query_pattern_count=e=>(_ts_query_pattern_count=Module._ts_query_pattern_count=wasmExports.ts_query_pattern_count)(e),_ts_query_capture_count=Module._ts_query_capture_count=e=>(_ts_query_capture_count=Module._ts_query_capture_count=wasmExports.ts_query_capture_count)(e),_ts_query_string_count=Module._ts_query_string_count=e=>(_ts_query_string_count=Module._ts_query_string_count=wasmExports.ts_query_string_count)(e),_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=(e,t,s)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,s),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,s)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,s),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,s)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,s),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,s)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,s),_ts_tree_copy=Module._ts_tree_copy=e=>(_ts_tree_copy=Module._ts_tree_copy=wasmExports.ts_tree_copy)(e),_ts_tree_delete=Module._ts_tree_delete=e=>(_ts_tree_delete=Module._ts_tree_delete=wasmExports.ts_tree_delete)(e),_ts_init=Module._ts_init=()=>(_ts_init=Module._ts_init=wasmExports.ts_init)(),_ts_parser_new_wasm=Module._ts_parser_new_wasm=()=>(_ts_parser_new_wasm=Module._ts_parser_new_wasm=wasmExports.ts_parser_new_wasm)(),_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=(e,t)=>(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=wasmExports.ts_parser_enable_logger_wasm)(e,t),_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=(e,t,s,r,n)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,s,r,n),_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=e=>(_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=wasmExports.ts_parser_included_ranges_wasm)(e),_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=(e,t)=>(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=wasmExports.ts_language_type_is_named_wasm)(e,t),_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=(e,t)=>(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=wasmExports.ts_language_type_is_visible_wasm)(e,t),_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=e=>(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=wasmExports.ts_tree_root_node_wasm)(e),_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=e=>(_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=wasmExports.ts_tree_root_node_with_offset_wasm)(e),_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=e=>(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=wasmExports.ts_tree_edit_wasm)(e),_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=e=>(_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=wasmExports.ts_tree_included_ranges_wasm)(e),_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=(e,t)=>(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=wasmExports.ts_tree_get_changed_ranges_wasm)(e,t),_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=e=>(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=wasmExports.ts_tree_cursor_new_wasm)(e),_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=e=>(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=wasmExports.ts_tree_cursor_delete_wasm)(e),_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=e=>(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=wasmExports.ts_tree_cursor_reset_wasm)(e),_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=(e,t)=>(_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=wasmExports.ts_tree_cursor_reset_to_wasm)(e,t),_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=e=>(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=wasmExports.ts_tree_cursor_goto_first_child_wasm)(e),_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=e=>(_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=wasmExports.ts_tree_cursor_goto_last_child_wasm)(e),_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=e=>(_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_index_wasm)(e),_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=e=>(_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_position_wasm)(e),_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=e=>(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=wasmExports.ts_tree_cursor_goto_next_sibling_wasm)(e),_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=e=>(_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=wasmExports.ts_tree_cursor_goto_previous_sibling_wasm)(e),_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=(e,t)=>(_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=wasmExports.ts_tree_cursor_goto_descendant_wasm)(e,t),_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=e=>(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=wasmExports.ts_tree_cursor_goto_parent_wasm)(e),_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=e=>(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=wasmExports.ts_tree_cursor_current_node_type_id_wasm)(e),_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=e=>(_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=wasmExports.ts_tree_cursor_current_node_state_id_wasm)(e),_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=e=>(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=wasmExports.ts_tree_cursor_current_node_is_named_wasm)(e),_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=e=>(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=wasmExports.ts_tree_cursor_current_node_is_missing_wasm)(e),_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=e=>(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=wasmExports.ts_tree_cursor_current_node_id_wasm)(e),_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=e=>(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=wasmExports.ts_tree_cursor_start_position_wasm)(e),_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=e=>(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=wasmExports.ts_tree_cursor_end_position_wasm)(e),_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=e=>(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=wasmExports.ts_tree_cursor_start_index_wasm)(e),_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=e=>(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=wasmExports.ts_tree_cursor_end_index_wasm)(e),_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=e=>(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=wasmExports.ts_tree_cursor_current_field_id_wasm)(e),_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=e=>(_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=wasmExports.ts_tree_cursor_current_depth_wasm)(e),_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=e=>(_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=wasmExports.ts_tree_cursor_current_descendant_index_wasm)(e),_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=e=>(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=wasmExports.ts_tree_cursor_current_node_wasm)(e),_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=e=>(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=wasmExports.ts_node_symbol_wasm)(e),_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=(e,t)=>(_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=wasmExports.ts_node_field_name_for_child_wasm)(e,t),_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=(e,t)=>(_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=wasmExports.ts_node_children_by_field_id_wasm)(e,t),_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=e=>(_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=wasmExports.ts_node_first_child_for_byte_wasm)(e),_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=e=>(_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=wasmExports.ts_node_first_named_child_for_byte_wasm)(e),_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=e=>(_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=wasmExports.ts_node_grammar_symbol_wasm)(e),_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=e=>(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=wasmExports.ts_node_child_count_wasm)(e),_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=e=>(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=wasmExports.ts_node_named_child_count_wasm)(e),_ts_node_child_wasm=Module._ts_node_child_wasm=(e,t)=>(_ts_node_child_wasm=Module._ts_node_child_wasm=wasmExports.ts_node_child_wasm)(e,t),_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=(e,t)=>(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=wasmExports.ts_node_named_child_wasm)(e,t),_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=(e,t)=>(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=wasmExports.ts_node_child_by_field_id_wasm)(e,t),_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=e=>(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=wasmExports.ts_node_next_sibling_wasm)(e),_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=e=>(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=wasmExports.ts_node_prev_sibling_wasm)(e),_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=e=>(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=wasmExports.ts_node_next_named_sibling_wasm)(e),_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=e=>(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=wasmExports.ts_node_prev_named_sibling_wasm)(e),_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=e=>(_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=wasmExports.ts_node_descendant_count_wasm)(e),_ts_node_parent_wasm=Module._ts_node_parent_wasm=e=>(_ts_node_parent_wasm=Module._ts_node_parent_wasm=wasmExports.ts_node_parent_wasm)(e),_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=e=>(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=wasmExports.ts_node_descendant_for_index_wasm)(e),_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=e=>(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=wasmExports.ts_node_named_descendant_for_index_wasm)(e),_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=e=>(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=wasmExports.ts_node_descendant_for_position_wasm)(e),_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=e=>(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=wasmExports.ts_node_named_descendant_for_position_wasm)(e),_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=e=>(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=wasmExports.ts_node_start_point_wasm)(e),_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=e=>(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=wasmExports.ts_node_end_point_wasm)(e),_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=e=>(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=wasmExports.ts_node_start_index_wasm)(e),_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=e=>(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=wasmExports.ts_node_end_index_wasm)(e),_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=e=>(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=wasmExports.ts_node_to_string_wasm)(e),_ts_node_children_wasm=Module._ts_node_children_wasm=e=>(_ts_node_children_wasm=Module._ts_node_children_wasm=wasmExports.ts_node_children_wasm)(e),_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=e=>(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=wasmExports.ts_node_named_children_wasm)(e),_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=(e,t,s,r,n,i,o)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,s,r,n,i,o),_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=e=>(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=wasmExports.ts_node_is_named_wasm)(e),_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=e=>(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=wasmExports.ts_node_has_changes_wasm)(e),_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=e=>(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=wasmExports.ts_node_has_error_wasm)(e),_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=e=>(_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=wasmExports.ts_node_is_error_wasm)(e),_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=e=>(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=wasmExports.ts_node_is_missing_wasm)(e),_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=e=>(_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=wasmExports.ts_node_is_extra_wasm)(e),_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=e=>(_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=wasmExports.ts_node_parse_state_wasm)(e),_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=e=>(_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=wasmExports.ts_node_next_parse_state_wasm)(e),_ts_query_matches_wasm=Module._ts_query_matches_wasm=(e,t,s,r,n,i,o,a,c,l,u)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,s,r,n,i,o,a,c,l,u),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,s,r,n,i,o,a,c,l,u)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,s,r,n,i,o,a,c,l,u),_iswalpha=Module._iswalpha=e=>(_iswalpha=Module._iswalpha=wasmExports.iswalpha)(e),_iswblank=Module._iswblank=e=>(_iswblank=Module._iswblank=wasmExports.iswblank)(e),_iswdigit=Module._iswdigit=e=>(_iswdigit=Module._iswdigit=wasmExports.iswdigit)(e),_iswlower=Module._iswlower=e=>(_iswlower=Module._iswlower=wasmExports.iswlower)(e),_iswupper=Module._iswupper=e=>(_iswupper=Module._iswupper=wasmExports.iswupper)(e),_iswxdigit=Module._iswxdigit=e=>(_iswxdigit=Module._iswxdigit=wasmExports.iswxdigit)(e),_memchr=Module._memchr=(e,t,s)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,s),_strlen=Module._strlen=e=>(_strlen=Module._strlen=wasmExports.strlen)(e),_strcmp=Module._strcmp=(e,t)=>(_strcmp=Module._strcmp=wasmExports.strcmp)(e,t),_strncat=Module._strncat=(e,t,s)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,s),_strncpy=Module._strncpy=(e,t,s)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,s),_towlower=Module._towlower=e=>(_towlower=Module._towlower=wasmExports.towlower)(e),_towupper=Module._towupper=e=>(_towupper=Module._towupper=wasmExports.towupper)(e),_setThrew=(e,t)=>(_setThrew=wasmExports.setThrew)(e,t),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),dynCall_jiji=Module.dynCall_jiji=(e,t,s,r,n)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,s,r,n),_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=e=>(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=wasmExports.orig$ts_parser_timeout_micros)(e),_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=(e,t)=>(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=wasmExports.orig$ts_parser_set_timeout_micros)(e,t),calledRun;function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var s=e.length,r=stackAlloc(4*(s+1)),n=r;e.forEach((e=>{LE_HEAP_STORE_U32(4*(n>>2),stringToUTF8OnStack(e)),n+=4})),LE_HEAP_STORE_U32(4*(n>>2),0);try{var i=t(s,r);return exitJS(i,!0),i}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized?.(),shouldRunNow&&callMain(e),postRun()))}runDependencies>0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;let VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const s=C._ts_language_version(t);if(s<MIN_COMPATIBLE_VERSION||VERSION<s)throw new Error(`Incompatible language version ${s}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,s){if("string"==typeof e)currentParseCallback=(t,s)=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let r=0,n=0;if(s?.includedRanges){r=s.includedRanges.length,n=C._calloc(r,SIZE_OF_RANGE);let e=n;for(let t=0;t<r;t++)marshalRange(e,s.includedRanges[t]),e+=SIZE_OF_RANGE}const i=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,r);if(!i)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const o=new Tree(INTERNAL,i,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,o}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(e);if(e>0){let r=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(r),r+=SIZE_OF_RANGE;C._free(t)}return s}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,s,r){assertInternal(e),this[0]=t,this.language=s,this.textCallback=r}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),marshalPoint(s+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),s=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(s)}return r}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(e);if(e>0){let r=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(r),r+=SIZE_OF_RANGE;C._free(t)}return s}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);if(!t)return null;return AsciiToString(t)}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=getValue(TRANSFER_BUFFER,"i32"),s=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(s)}return r}firstChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,s),s+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,s),s+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,s){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),s||(s=ZERO_POINT);const r=[],n=this.tree.language.types;for(let t=0,s=n.length;t<s;t++)e.includes(n[t])&&r.push(t);const i=C._malloc(SIZE_OF_INT*r.length);for(let e=0,t=r.length;e<t;e++)setValue(i+e*SIZE_OF_INT,r[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,t.row,t.column,s.row,s.column);const o=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(a),C._free(i),c}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),setValue(s+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),setValue(s+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(s,e),marshalPoint(s+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(s,e),marshalPoint(s+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoFirstChildForIndex(e){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const s=lengthBytesUTF8(e),r=C._malloc(s+1);stringToUTF8(e,r,s+1);const n=C._ts_language_symbol_for_name(this[0],r,s,t);return C._free(r),n||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterable(INTERNAL,t,this):null}query(e){const t=lengthBytesUTF8(e),s=C._malloc(t+1);stringToUTF8(e,s,t+1);const r=C._ts_query_new(this[0],s,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!r){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=getValue(TRANSFER_BUFFER,"i32"),n=UTF8ToString(s,r).length,i=e.substr(n,100).split("\n")[0];let o,a=i.match(QUERY_WORD_REGEX)[0];switch(t){case 2:o=new RangeError(`Bad node name '${a}'`);break;case 3:o=new RangeError(`Bad field name '${a}'`);break;case 4:o=new RangeError(`Bad capture name @${a}`);break;case 5:o=new TypeError(`Bad pattern structure at offset ${n}: '${i}'...`),a="";break;default:o=new SyntaxError(`Bad syntax at offset ${n}: '${i}'...`),a=""}throw o.index=n,o.length=a.length,C._free(s),o}const n=C._ts_query_string_count(r),i=C._ts_query_capture_count(r),o=C._ts_query_pattern_count(r),a=new Array(i),c=new Array(n);for(let e=0;e<i;e++){const t=C._ts_query_capture_name_for_id(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,s)}for(let e=0;e<n;e++){const t=C._ts_query_string_value_for_id(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");c[e]=UTF8ToString(t,s)}const l=new Array(o),u=new Array(o),m=new Array(o),d=new Array(o),p=new Array(o);for(let e=0;e<o;e++){const t=C._ts_query_predicates_for_pattern(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");d[e]=[],p[e]=[];const n=[];let i=t;for(let t=0;t<s;t++){const t=getValue(i,"i32");i+=SIZE_OF_INT;const s=getValue(i,"i32");if(i+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)n.push({type:"capture",name:a[s]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:c[s]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let s,r=!0,i=!0;switch(t){case"any-not-eq?":case"not-eq?":r=!1;case"any-eq?":case"eq?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}"`);if(i=!t.startsWith("any-"),"capture"===n[2].type){const t=n[1].name,s=n[2].name;p[e].push((e=>{const n=[],o=[];for(const r of e)r.name===t&&n.push(r.node),r.name===s&&o.push(r.node);const a=(e,t,s)=>s?e.text===t.text:e.text!==t.text;return i?n.every((e=>o.some((t=>a(e,t,r))))):n.some((e=>o.some((t=>a(e,t,r)))))}))}else{s=n[1].name;const t=n[2].value,o=e=>e.text===t,a=e=>e.text!==t;p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node);const n=r?o:a;return i?t.every(n):t.some(n)}))}break;case"any-not-match?":case"not-match?":r=!1;case"any-match?":case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${n[2].value}.`);s=n[1].name;const o=new RegExp(n[2].value);i=!t.startsWith("any-"),p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);const n=(e,t)=>t?o.test(e):!o.test(e);return 0===t.length?!r:i?t.every((e=>n(e,r))):t.some((e=>n(e,r)))}));break;case"set!":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');l[e]||(l[e]={}),l[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const a="is?"===t?u:m;a[e]||(a[e]={}),a[e][n[1].value]=n[2]?n[2].value:null;break;case"not-any-of?":r=!1;case"any-of?":if(n.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);for(let e=2;e<n.length;e++)if("string"!==n[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);s=n[1].name;const c=n.slice(2).map((e=>e.value));p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);return 0===t.length?!r:t.every((e=>c.includes(e)))===r}));break;default:d[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(m[e])}return C._free(s),new Query(INTERNAL,r,a,p,d,Object.freeze(l),Object.freeze(u),Object.freeze(m))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const s=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(3078);t=Promise.resolve(e.readFileSync(s))}else t=fetch(s).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const s=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${s}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),s=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));s||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[s]();return new Language(INTERNAL,r)}))}}class LookaheadIterable{constructor(e,t,s){assertInternal(e),this[0]=t,this.language=s}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(e){return C._ts_lookahead_iterator_reset_state(this[0],e)}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}[Symbol.iterator](){const e=this;return{next:()=>C._ts_lookahead_iterator_next(e[0])?{done:!1,value:e.currentType}:{done:!0,value:""}}}}class Query{constructor(e,t,s,r,n,i,o,a){assertInternal(e),this[0]=t,this.captureNames=s,this.textPredicates=r,this.predicates=n,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:s=ZERO_POINT,startIndex:r=0,endIndex:n=0,matchLimit:i=4294967295,maxStartDepth:o=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,r,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),m=new Array(c);this.exceededMatchLimit=Boolean(u);let d=0,p=l;for(let t=0;t<c;t++){const t=getValue(p,"i32");p+=SIZE_OF_INT;const s=getValue(p,"i32");p+=SIZE_OF_INT;const r=new Array(s);if(p=unmarshalCaptures(this,e.tree,p,r),this.textPredicates[t].every((e=>e(r)))){m[d]={pattern:t,captures:r};const e=this.setProperties[t];e&&(m[d].setProperties=e);const s=this.assertedProperties[t];s&&(m[d].assertedProperties=s);const n=this.refutedProperties[t];n&&(m[d].refutedProperties=n),d++}}return m.length=d,C._free(l),m}captures(e,{startPosition:t=ZERO_POINT,endPosition:s=ZERO_POINT,startIndex:r=0,endIndex:n=0,matchLimit:i=4294967295,maxStartDepth:o=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,r,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),m=[];this.exceededMatchLimit=Boolean(u);const d=[];let p=l;for(let t=0;t<c;t++){const t=getValue(p,"i32");p+=SIZE_OF_INT;const s=getValue(p,"i32");p+=SIZE_OF_INT;const r=getValue(p,"i32");if(p+=SIZE_OF_INT,d.length=s,p=unmarshalCaptures(this,e.tree,p,d),this.textPredicates[t].every((e=>e(d)))){const e=d[r],s=this.setProperties[t];s&&(e.setProperties=s);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),m.push(e)}}return C._free(l),m}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),s=C._malloc(t+1);stringToUTF8(e,s,t+1),C._ts_query_disable_capture(this[0],s,t),C._free(s)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,s){const r=s-t;let n=e.textCallback(t,null,s);for(t+=n.length;t<s;){const r=e.textCallback(t,null,s);if(!(r&&r.length>0))break;t+=r.length,n+=r}return t>s&&(n=n.slice(0,r)),n}function unmarshalCaptures(e,t,s,r){for(let n=0,i=r.length;n<i;n++){const i=getValue(s,"i32"),o=unmarshalNode(t,s+=SIZE_OF_INT);s+=SIZE_OF_NODE,r[n]={name:e.captureNames[i],node:o}}return s}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const s=getValue(t,"i32");if(0===s)return null;const r=getValue(t+=SIZE_OF_INT,"i32"),n=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),a=new Node(INTERNAL,e);return a.id=s,a.startIndex=r,a.startPosition={row:n,column:i},a[0]=o,a}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32"),setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32")>>>0,column:getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32")>>>0,t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}();module.exports=TreeSitter},3078:()=>{},4142:()=>{},1212:(e,t,s)=>{e.exports=s(8411)},7202:(e,t,s)=>{"use strict";var r=s(239);e.exports=r},6656:(e,t,s)=>{"use strict";s(484),s(5695),s(6138),s(9828),s(3832);var r=s(8099);e.exports=r.AggregateError},8411:(e,t,s)=>{"use strict";e.exports=s(8337)},8337:(e,t,s)=>{"use strict";s(5442);var r=s(7202);e.exports=r},814:(e,t,s)=>{"use strict";var r=s(2769),n=s(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not a function")}},1966:(e,t,s)=>{"use strict";var r=s(2937),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,s)=>{"use strict";var r=s(262),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not an object")}},1005:(e,t,s)=>{"use strict";var r=s(3273),n=s(4574),i=s(8130),o=function(e){return function(t,s,o){var a=r(t),c=i(a);if(0===c)return!e&&-1;var l,u=n(o,c);if(e&&s!=s){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===s)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,s)=>{"use strict";var r=s(6100),n=r({}.toString),i=r("".slice);e.exports=function(e){return i(n(e),8,-1)}},8407:(e,t,s)=>{"use strict";var r=s(4904),n=s(2769),i=s(9932),o=s(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,s,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?s:c?i(t):"Object"===(r=i(t))&&n(t.callee)?"Arguments":r}},7464:(e,t,s)=>{"use strict";var r=s(701),n=s(5691),i=s(4543),o=s(9989);e.exports=function(e,t,s){for(var a=n(t),c=o.f,l=i.f,u=0;u<a.length;u++){var m=a[u];r(e,m)||s&&r(s,m)||c(e,m,l(t,m))}}},2871:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,s)=>{"use strict";var r=s(5024),n=s(9989),i=s(480);e.exports=r?function(e,t,s){return n.f(e,t,i(1,s))}:function(e,t,s){return e[t]=s,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,s)=>{"use strict";var r=s(3999);e.exports=function(e,t,s,n){return n&&n.enumerable?e[t]=s:r(e,t,s),e}},7525:(e,t,s)=>{"use strict";var r=s(8900),n=Object.defineProperty;e.exports=function(e,t){try{n(r,e,{value:t,configurable:!0,writable:!0})}catch(s){r[e]=t}return t}},5024:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,s)=>{"use strict";var r=s(8900),n=s(262),i=r.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3531:(e,t,s)=>{"use strict";var r=s(8900).navigator,n=r&&r.userAgent;e.exports=n?String(n):""},5547:(e,t,s)=>{"use strict";var r,n,i=s(8900),o=s(3531),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(n=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(n=+r[1]),e.exports=n},3885:(e,t,s)=>{"use strict";var r=s(6100),n=Error,i=r("".replace),o=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},4279:(e,t,s)=>{"use strict";var r=s(3999),n=s(3885),i=s(5791),o=Error.captureStackTrace;e.exports=function(e,t,s,a){i&&(o?o(e,t):r(e,"stack",n(s,a)))}},5791:(e,t,s)=>{"use strict";var r=s(1203),n=s(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},9098:(e,t,s)=>{"use strict";var r=s(8900),n=s(7013),i=s(9344),o=s(2769),a=s(4543).f,c=s(8696),l=s(8099),u=s(4572),m=s(3999),d=s(701);s(3753);var p=function(e){var t=function(s,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(s);case 2:return new e(s,r)}return new e(s,r,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,n,h,_,f,g,y,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,j=E?r:x?r[w]:r[w]&&r[w].prototype,O=E?l:l[w]||m(l,w,{})[w],P=O.prototype;for(_ in t)n=!(s=c(E?_:w+(x?".":"#")+_,e.forced))&&j&&d(j,_),g=O[_],n&&(y=e.dontCallGetSet?(b=a(j,_))&&b.value:j[_]),f=n&&y?y:t[_],(s||S||typeof g!=typeof f)&&(v=e.bind&&n?u(f,r):e.wrap&&n?p(f):S&&o(f)?i(f):f,(e.sham||f&&f.sham||g&&g.sham)&&m(v,"sham",!0),m(O,_,v),S&&(d(l,h=w+"Prototype")||m(l,h,{}),m(l[h],_,f),e.real&&P&&(s||!P[_])&&m(P,_,f)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,s)=>{"use strict";var r=s(9344),n=s(814),i=s(1780),o=r(r.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype.call;e.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},3410:(e,t,s)=>{"use strict";var r=s(5024),n=s(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},3574:(e,t,s)=>{"use strict";var r=s(6100),n=s(814);e.exports=function(e,t,s){try{return r(n(Object.getOwnPropertyDescriptor(e,t)[s]))}catch(e){}}},9344:(e,t,s)=>{"use strict";var r=s(9932),n=s(6100);e.exports=function(e){if("Function"===r(e))return n(e)}},6100:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.call,o=r&&n.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,s)=>{"use strict";var r=s(8099),n=s(8900),i=s(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(n[e]):r[e]&&r[e][t]||n[e]&&n[e][t]}},967:(e,t,s)=>{"use strict";var r=s(8407),n=s(4674),i=s(3057),o=s(6625),a=s(8655)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[r(e)]}},1613:(e,t,s)=>{"use strict";var r=s(4713),n=s(814),i=s(7235),o=s(459),a=s(967),c=TypeError;e.exports=function(e,t){var s=arguments.length<2?a(e):t;if(n(s))return i(r(s,e));throw new c(o(e)+" is not iterable")}},4674:(e,t,s)=>{"use strict";var r=s(814),n=s(3057);e.exports=function(e,t){var s=e[t];return n(s)?void 0:r(s)}},8900:function(e,t,s){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s.g&&s.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,s)=>{"use strict";var r=s(6100),n=s(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,s)=>{"use strict";var r=s(1003);e.exports=r("document","documentElement")},9665:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203),i=s(9619);e.exports=!r&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,s)=>{"use strict";var r=s(6100),n=s(1203),i=s(9932),o=Object,a=r("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},3507:(e,t,s)=>{"use strict";var r=s(2769),n=s(262),i=s(3491);e.exports=function(e,t,s){var o,a;return i&&r(o=t.constructor)&&o!==s&&n(a=o.prototype)&&a!==s.prototype&&i(e,a),e}},8148:(e,t,s)=>{"use strict";var r=s(262),n=s(3999);e.exports=function(e,t){r(t)&&"cause"in t&&n(e,"cause",t.cause)}},8417:(e,t,s)=>{"use strict";var r,n,i,o=s(1314),a=s(8900),c=s(262),l=s(3999),u=s(701),m=s(3753),d=s(4275),p=s(5241),h="Object already initialized",_=a.TypeError,f=a.WeakMap;if(o||m.state){var g=m.state||(m.state=new f);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new _(h);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=d("state");p[y]=!0,r=function(e,t){if(u(e,y))throw new _(h);return t.facade=e,l(e,y,t),t},n=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:r,get:n,has:i,enforce:function(e){return i(e)?n(e):r(e,{})},getterFor:function(e){return function(t){var s;if(!c(t)||(s=n(t)).type!==e)throw new _("Incompatible receiver, "+e+" required");return s}}}},2877:(e,t,s)=>{"use strict";var r=s(8655),n=s(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},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,s)=>{"use strict";var r=s(1203),n=s(2769),i=/#|\.prototype\./,o=function(e,t){var s=c[a(e)];return s===u||s!==l&&(n(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,s)=>{"use strict";var r=s(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},2937:(e,t,s)=>{"use strict";var r=s(262);e.exports=function(e){return r(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,s)=>{"use strict";var r=s(1003),n=s(2769),i=s(4317),o=s(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&i(t.prototype,a(e))}},208:(e,t,s)=>{"use strict";var r=s(4572),n=s(4713),i=s(7235),o=s(459),a=s(2877),c=s(8130),l=s(4317),u=s(1613),m=s(967),d=s(1743),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},_=h.prototype;e.exports=function(e,t,s){var f,g,y,v,b,w,E,x=s&&s.that,S=!(!s||!s.AS_ENTRIES),j=!(!s||!s.IS_RECORD),O=!(!s||!s.IS_ITERATOR),P=!(!s||!s.INTERRUPTED),A=r(t,x),M=function(e){return f&&d(f,"normal",e),new h(!0,e)},T=function(e){return S?(i(e),P?A(e[0],e[1],M):A(e[0],e[1])):P?A(e,M):A(e)};if(j)f=e.iterator;else if(O)f=e;else{if(!(g=m(e)))throw new p(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((b=T(e[y]))&&l(_,b))return b;return new h(!1)}f=u(e,g)}for(w=j?e.next:f.next;!(E=n(w,f)).done;){try{b=T(E.value)}catch(e){d(f,"throw",e)}if("object"==typeof b&&b&&l(_,b))return b}return new h(!1)}},1743:(e,t,s)=>{"use strict";var r=s(4713),n=s(7235),i=s(4674);e.exports=function(e,t,s){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw s;return s}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw s;if(a)throw o;return n(o),s}},1926:(e,t,s)=>{"use strict";var r=s(2621).IteratorPrototype,n=s(5780),i=s(480),o=s(1811),a=s(6625),c=function(){return this};e.exports=function(e,t,s,l){var u=t+" Iterator";return e.prototype=n(r,{next:i(+!l,s)}),o(e,u,!1,!0),a[u]=c,e}},164:(e,t,s)=>{"use strict";var r=s(9098),n=s(4713),i=s(4871),o=s(3410),a=s(2769),c=s(1926),l=s(3671),u=s(3491),m=s(1811),d=s(3999),p=s(3508),h=s(8655),_=s(6625),f=s(2621),g=o.PROPER,y=o.CONFIGURABLE,v=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,w=h("iterator"),E="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,s,o,h,f,O){c(s,t,o);var P,A,M,T=function(e){if(e===h&&C)return C;if(!b&&e&&e in I)return I[e];switch(e){case E:case x:case S:return function(){return new s(this,e)}}return function(){return new s(this)}},F=t+" Iterator",R=!1,I=e.prototype,N=I[w]||I["@@iterator"]||h&&I[h],C=!b&&N||T(h),$="Array"===t&&I.entries||N;if($&&(P=l($.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===v||(u?u(P,v):a(P[w])||p(P,w,j)),m(P,F,!0,!0),i&&(_[F]=j)),g&&h===x&&N&&N.name!==x&&(!i&&y?d(I,"name",x):(R=!0,C=function(){return n(N,this)})),h)if(A={values:T(x),keys:f?C:T(E),entries:T(S)},O)for(M in A)(b||R||!(M in I))&&p(I,M,A[M]);else r({target:t,proto:!0,forced:b||R},A);return i&&!O||I[w]===C||p(I,w,C,{name:h}),_[t]=C,A}},2621:(e,t,s)=>{"use strict";var r,n,i,o=s(1203),a=s(2769),c=s(262),l=s(5780),u=s(3671),m=s(3508),d=s(8655),p=s(4871),h=d("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(r=n):_=!0),!c(r)||o((function(){var e={};return r[h].call(e)!==e}))?r={}:p&&(r=l(r)),a(r[h])||m(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:_}},6625:e=>{"use strict";e.exports={}},8130:(e,t,s)=>{"use strict";var r=s(8146);e.exports=function(e){return r(e.length)}},5777:e=>{"use strict";var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?s:t)(r)}},4879:(e,t,s)=>{"use strict";var r=s(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},5780:(e,t,s)=>{"use strict";var r,n=s(7235),i=s(7389),o=s(9683),a=s(5241),c=s(3489),l=s(9619),u=s(4275),m="prototype",d="script",p=u("IE_PROTO"),h=function(){},_=function(e){return"<"+d+">"+e+"</"+d+">"},f=function(e){e.write(_("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,s;g="undefined"!=typeof document?document.domain&&r?f(r):(t=l("iframe"),s="java"+d+":",t.style.display="none",c.appendChild(t),t.src=String(s),(e=t.contentWindow.document).open(),e.write(_("document.F=Object")),e.close(),e.F):f(r);for(var n=o.length;n--;)delete g[m][o[n]];return g()};a[p]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(h[m]=n(e),s=new h,h[m]=null,s[p]=e):s=g(),void 0===t?s:i.f(s,t)}},7389:(e,t,s)=>{"use strict";var r=s(5024),n=s(1330),i=s(9989),o=s(7235),a=s(3273),c=s(8364);t.f=r&&!n?Object.defineProperties:function(e,t){o(e);for(var s,r=a(t),n=c(t),l=n.length,u=0;l>u;)i.f(e,s=n[u++],r[s]);return e}},9989:(e,t,s)=>{"use strict";var r=s(5024),n=s(9665),i=s(1330),o=s(7235),a=s(5341),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,m="enumerable",d="configurable",p="writable";t.f=r?i?function(e,t,s){if(o(e),t=a(t),o(s),"function"==typeof e&&"prototype"===t&&"value"in s&&p in s&&!s[p]){var r=u(e,t);r&&r[p]&&(e[t]=s.value,s={configurable:d in s?s[d]:r[d],enumerable:m in s?s[m]:r[m],writable:!1})}return l(e,t,s)}:l:function(e,t,s){if(o(e),t=a(t),o(s),n)try{return l(e,t,s)}catch(e){}if("get"in s||"set"in s)throw new c("Accessors not supported");return"value"in s&&(e[t]=s.value),e}},4543:(e,t,s)=>{"use strict";var r=s(5024),n=s(4713),i=s(7161),o=s(480),a=s(3273),c=s(5341),l=s(701),u=s(9665),m=Object.getOwnPropertyDescriptor;t.f=r?m:function(e,t){if(e=a(e),t=c(t),u)try{return m(e,t)}catch(e){}if(l(e,t))return o(!n(i.f,e,t),e[t])}},5116:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,n)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,s)=>{"use strict";var r=s(701),n=s(2769),i=s(2137),o=s(4275),a=s(2871),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var s=t.constructor;return n(s)&&t instanceof s?s.prototype:t instanceof l?u:null}},4317:(e,t,s)=>{"use strict";var r=s(6100);e.exports=r({}.isPrototypeOf)},8600:(e,t,s)=>{"use strict";var r=s(6100),n=s(701),i=s(3273),o=s(1005).indexOf,a=s(5241),c=r([].push);e.exports=function(e,t){var s,r=i(e),l=0,u=[];for(s in r)!n(a,s)&&n(r,s)&&c(u,s);for(;t.length>l;)n(r,s=t[l++])&&(~o(u,s)||c(u,s));return u}},8364:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683);e.exports=Object.keys||function(e){return r(e,n)}},7161:(e,t)=>{"use strict";var s={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!s.call({1:2},1);t.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:s},3491:(e,t,s)=>{"use strict";var r=s(3574),n=s(262),i=s(5426),o=s(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,s={};try{(e=r(Object.prototype,"__proto__","set"))(s,[]),t=s instanceof Array}catch(e){}return function(s,r){return i(s),o(r),n(s)?(t?e(s,r):s.__proto__=r,s):s}}():void 0)},9559:(e,t,s)=>{"use strict";var r=s(4904),n=s(8407);e.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},9258:(e,t,s)=>{"use strict";var r=s(4713),n=s(2769),i=s(262),o=TypeError;e.exports=function(e,t){var s,a;if("string"===t&&n(s=e.toString)&&!i(a=r(s,e)))return a;if(n(s=e.valueOf)&&!i(a=r(s,e)))return a;if("string"!==t&&n(s=e.toString)&&!i(a=r(s,e)))return a;throw new o("Can't convert object to primitive value")}},5691:(e,t,s)=>{"use strict";var r=s(1003),n=s(6100),i=s(5116),o=s(7313),a=s(7235),c=n([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),s=o.f;return s?c(t,s(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,s)=>{"use strict";var r=s(9989).f;e.exports=function(e,t,s){s in e||r(e,s,{configurable:!0,get:function(){return t[s]},set:function(e){t[s]=e}})}},5426:(e,t,s)=>{"use strict";var r=s(3057),n=TypeError;e.exports=function(e){if(r(e))throw new n("Can't call method on "+e);return e}},1811:(e,t,s)=>{"use strict";var r=s(4904),n=s(9989).f,i=s(3999),o=s(701),a=s(9559),c=s(8655)("toStringTag");e.exports=function(e,t,s,l){var u=s?e:e&&e.prototype;u&&(o(u,c)||n(u,c,{configurable:!0,value:t}),l&&!r&&i(u,"toString",a))}},4275:(e,t,s)=>{"use strict";var r=s(8141),n=s(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},3753:(e,t,s)=>{"use strict";var r=s(4871),n=s(8900),i=s(7525),o="__core-js_shared__",a=e.exports=n[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8141:(e,t,s)=>{"use strict";var r=s(3753);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},5571:(e,t,s)=>{"use strict";var r=s(6100),n=s(9903),i=s(1139),o=s(5426),a=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(e){return function(t,s){var r,u,m=i(o(t)),d=n(s),p=m.length;return d<0||d>=p?e?"":void 0:(r=c(m,d))<55296||r>56319||d+1===p||(u=c(m,d+1))<56320||u>57343?e?a(m,d):r:e?l(m,d,d+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},4603:(e,t,s)=>{"use strict";var r=s(5547),n=s(1203),i=s(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4574:(e,t,s)=>{"use strict";var r=s(9903),n=Math.max,i=Math.min;e.exports=function(e,t){var s=r(e);return s<0?n(s+t,0):i(s,t)}},3273:(e,t,s)=>{"use strict";var r=s(1395),n=s(5426);e.exports=function(e){return r(n(e))}},9903:(e,t,s)=>{"use strict";var r=s(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8146:(e,t,s)=>{"use strict";var r=s(9903),n=Math.min;e.exports=function(e){var t=r(e);return t>0?n(t,9007199254740991):0}},2137:(e,t,s)=>{"use strict";var r=s(5426),n=Object;e.exports=function(e){return n(r(e))}},493:(e,t,s)=>{"use strict";var r=s(4713),n=s(262),i=s(6281),o=s(4674),a=s(9258),c=s(8655),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var s,c=o(e,u);if(c){if(void 0===t&&(t="default"),s=r(c,e,t),!n(s)||i(s))return s;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5341:(e,t,s)=>{"use strict";var r=s(493),n=s(6281);e.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}},4904:(e,t,s)=>{"use strict";var r={};r[s(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},1139:(e,t,s)=>{"use strict";var r=s(8407),n=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,s)=>{"use strict";var r=s(6100),n=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},7460:(e,t,s)=>{"use strict";var r=s(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203);e.exports=r&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,s)=>{"use strict";var r=s(8900),n=s(2769),i=r.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},8655:(e,t,s)=>{"use strict";var r=s(8900),n=s(8141),i=s(701),o=s(1268),a=s(4603),c=s(7460),l=r.Symbol,u=n("wks"),m=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:m("Symbol."+e)),u[e]}},6453:(e,t,s)=>{"use strict";var r=s(1003),n=s(701),i=s(3999),o=s(4317),a=s(3491),c=s(7464),l=s(5516),u=s(3507),m=s(4879),d=s(8148),p=s(4279),h=s(5024),_=s(4871);e.exports=function(e,t,s,f){var g="stackTraceLimit",y=f?2:1,v=e.split("."),b=v[v.length-1],w=r.apply(null,v);if(w){var E=w.prototype;if(!_&&n(E,"cause")&&delete E.cause,!s)return w;var x=r("Error"),S=t((function(e,t){var s=m(f?t:e,void 0),r=f?new w(e):new w;return void 0!==s&&i(r,"message",s),p(r,S,r.stack,2),this&&o(E,this)&&u(r,this,S),arguments.length>y&&d(r,arguments[y]),r}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):h&&g in w&&(l(S,w,g),l(S,w,"prepareStackTrace")),c(S,w),!_)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},6138:(e,t,s)=>{"use strict";var r=s(9098),n=s(1003),i=s(7013),o=s(1203),a=s(6453),c="AggregateError",l=n(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,s){return i(e,this,arguments)}}),u,!0)})},3085:(e,t,s)=>{"use strict";var r=s(9098),n=s(4317),i=s(3671),o=s(3491),a=s(7464),c=s(5780),l=s(3999),u=s(480),m=s(8148),d=s(4279),p=s(208),h=s(4879),_=s(8655)("toStringTag"),f=Error,g=[].push,y=function(e,t){var s,r=n(v,this);o?s=o(new f,r?i(this):v):(s=r?this:c(v),l(s,_,"Error")),void 0!==t&&l(s,"message",h(t)),d(s,y,s.stack,1),arguments.length>2&&m(s,arguments[2]);var a=[];return p(e,g,{that:a}),l(s,"errors",a),s};o?o(y,f):a(y,f,{name:!0});var v=y.prototype=c(f.prototype,{constructor:u(1,y),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},5695:(e,t,s)=>{"use strict";s(3085)},9828:(e,t,s)=>{"use strict";var r=s(3273),n=s(8137),i=s(6625),o=s(8417),a=s(9989).f,c=s(164),l=s(877),u=s(4871),m=s(5024),d="Array Iterator",p=o.set,h=o.getterFor(d);e.exports=c(Array,"Array",(function(e,t){p(this,{type:d,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,s=e.index++;if(!t||s>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(s,!1);case"values":return l(t[s],!1)}return l([s,t[s]],!1)}),"values");var _=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&m&&"values"!==_.name)try{a(_,"name",{value:"values"})}catch(e){}},484:(e,t,s)=>{"use strict";var r=s(9098),n=s(8900),i=s(7013),o=s(6453),a="WebAssembly",c=n[a],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var s={};s[e]=o(e,t,l),r({global:!0,constructor:!0,arity:1,forced:l},s)},m=function(e,t){if(c&&c[e]){var s={};s[e]=o(a+"."+e,t,l),r({target:a,stat:!0,constructor:!0,arity:1,forced:l},s)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),m("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),m("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),m("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},3832:(e,t,s)=>{"use strict";var r=s(5571).charAt,n=s(1139),i=s(8417),o=s(164),a=s(877),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:n(e),index:0})}),(function(){var e,t=u(this),s=t.string,n=t.index;return n>=s.length?a(void 0,!0):(e=r(s,n),t.index+=e.length,a(e,!1))}))},5442:(e,t,s)=>{"use strict";s(5695)},85:(e,t,s)=>{"use strict";s(9828);var r=s(1100),n=s(8900),i=s(1811),o=s(6625);for(var a in r)i(n[a],a),o[a]=o.Array},239:(e,t,s)=>{"use strict";s(5442);var r=s(6656);s(85),e.exports=r}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var s=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(s.exports,s,s.exports,__webpack_require__),s.loaded=!0,s.exports}__webpack_require__.d=(e,t)=>{for(var s in t)__webpack_require__.o(t,s)&&!__webpack_require__.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var s=t.getElementsByTagName("script");if(s.length)for(var r=s.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=s[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})();var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{detect:()=>Rf,detectionRegExp:()=>Ff,mediaTypes:()=>Tf,namespace:()=>Nf,parse:()=>If});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>sn,includesClasses:()=>nn,includesSymbols:()=>rn,isAnnotationElement:()=>Yr,isArrayElement:()=>zr,isBooleanElement:()=>Gr,isCommentElement:()=>Xr,isElement:()=>Lr,isLinkElement:()=>Kr,isMemberElement:()=>Zr,isNullElement:()=>Hr,isNumberElement:()=>Vr,isObjectElement:()=>Wr,isParseResultElement:()=>Qr,isPrimitiveElement:()=>tn,isRefElement:()=>Jr,isSourceMapElement:()=>en,isStringElement:()=>Ur});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>qa,isJSONSchemaElement:()=>ka,isLinkDescriptionElement:()=>Ba,isMediaElement:()=>Da});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{isBooleanJsonSchemaElement:()=>bl,isCallbackElement:()=>el,isComponentsElement:()=>tl,isContactElement:()=>sl,isExampleElement:()=>rl,isExternalDocumentationElement:()=>nl,isHeaderElement:()=>il,isInfoElement:()=>ol,isLicenseElement:()=>al,isLinkElement:()=>cl,isMediaTypeElement:()=>jl,isOpenApi3_0Element:()=>ul,isOpenapiElement:()=>ll,isOperationElement:()=>ml,isParameterElement:()=>dl,isPathItemElement:()=>pl,isPathsElement:()=>hl,isReferenceElement:()=>_l,isRequestBodyElement:()=>fl,isResponseElement:()=>gl,isResponsesElement:()=>yl,isSchemaElement:()=>vl,isSecurityRequirementElement:()=>wl,isSecuritySchemeElement:()=>El,isServerElement:()=>xl,isServerVariableElement:()=>Sl,isServersElement:()=>Ol});var r={};function n(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function i(e){return function t(s){return 0===arguments.length||n(s)?t:e.apply(this,arguments)}}function o(e){return function t(s,r){switch(arguments.length){case 0:return t;case 1:return n(s)?t:i((function(t){return e(s,t)}));default:return n(s)&&n(r)?t:n(s)?i((function(t){return e(t,r)})):n(r)?i((function(t){return e(s,t)})):e(s,r)}}}function a(e){return function t(s,r,a){switch(arguments.length){case 0:return t;case 1:return n(s)?t:o((function(t,r){return e(s,t,r)}));case 2:return n(s)&&n(r)?t:n(s)?o((function(t,s){return e(t,r,s)})):n(r)?o((function(t,r){return e(s,t,r)})):i((function(t){return e(s,r,t)}));default:return n(s)&&n(r)&&n(a)?t:n(s)&&n(r)?o((function(t,s){return e(t,s,a)})):n(s)&&n(a)?o((function(t,s){return e(t,r,s)})):n(r)&&n(a)?o((function(t,r){return e(s,t,r)})):n(s)?i((function(t){return e(t,r,a)})):n(r)?i((function(t){return e(s,t,a)})):n(a)?i((function(t){return e(s,r,t)})):e(s,r,a)}}}__webpack_require__.r(r),__webpack_require__.d(r,{isBooleanJsonSchemaElement:()=>Kh,isCallbackElement:()=>Oh,isComponentsElement:()=>Ph,isContactElement:()=>Ah,isExampleElement:()=>Mh,isExternalDocumentationElement:()=>Th,isHeaderElement:()=>Fh,isInfoElement:()=>Rh,isJsonSchemaDialectElement:()=>Ih,isLicenseElement:()=>Nh,isLinkElement:()=>Ch,isMediaTypeElement:()=>e_,isOpenApi3_1Element:()=>kh,isOpenapiElement:()=>$h,isOperationElement:()=>qh,isParameterElement:()=>Dh,isPathItemElement:()=>Bh,isPathItemElementExternal:()=>Lh,isPathsElement:()=>Uh,isReferenceElement:()=>Vh,isReferenceElementExternal:()=>Hh,isRequestBodyElement:()=>Gh,isResponseElement:()=>Wh,isResponsesElement:()=>zh,isSchemaElement:()=>Zh,isSecurityRequirementElement:()=>Jh,isSecuritySchemeElement:()=>Yh,isServerElement:()=>Xh,isServerVariableElement:()=>Qh});const c=o((function(e,t){return null==t||t!=t?e:t})),l=Number.isInteger||function(e){return(e|0)===e};function u(e){return"[object String]"===Object.prototype.toString.call(e)}function m(e,t){var s=e<0?t.length+e:e;return u(t)?t.charAt(s):t[s]}const d=o((function(e,t){if(null!=t)return l(e)?m(e,t):t[e]}));const p=a((function(e,t,s){return c(e,d(t,s))}));const h=o((function(e,t){for(var s={},r={},n=0,i=e.length;n<i;)r[e[n]]=1,n+=1;for(var o in t)r.hasOwnProperty(o)||(s[o]=t[o]);return s}));function _(e,t,s){for(var r=0,n=s.length;r<n;)t=e(t,s[r]),r+=1;return t}const f=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const g=i((function(e){return!!f(e)||!!e&&("object"==typeof e&&(!u(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var y="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function v(e,t,s){return function(r,n,i){if(g(i))return e(r,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(r,n,i,"fantasy-land/reduce");if(null!=i[y])return s(r,n,i[y]());if("function"==typeof i.next)return s(r,n,i);if("function"==typeof i.reduce)return t(r,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function b(e,t,s){for(var r=s.next();!r.done;)t=e(t,r.value),r=s.next();return t}function w(e,t,s,r){return s[r](e,t)}const E=v(_,w,b);function x(e,t,s){return function(){if(0===arguments.length)return s();var r=arguments[arguments.length-1];if(!f(r)){for(var n=0;n<e.length;){if("function"==typeof r[e[n]])return r[e[n]].apply(r,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return s.apply(this,arguments)}}function S(e,t){for(var s=0,r=t.length,n=Array(r);s<r;)n[s]=e(t[s]),s+=1;return n}const j=function(){return this.xf["@@transducer/init"]()},O=function(e){return this.xf["@@transducer/result"](e)};var P=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=O,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const A=function(e){return function(t){return new P(e,t)}};function M(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,s){return t.apply(this,arguments)};case 3:return function(e,s,r){return t.apply(this,arguments)};case 4:return function(e,s,r,n){return t.apply(this,arguments)};case 5:return function(e,s,r,n,i){return t.apply(this,arguments)};case 6:return function(e,s,r,n,i,o){return t.apply(this,arguments)};case 7:return function(e,s,r,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,s,r,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,s,r,n,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,s,r,n,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function T(e,t,s){return function(){for(var r=[],i=0,o=e,a=0,c=!1;a<t.length||i<arguments.length;){var l;a<t.length&&(!n(t[a])||i>=arguments.length)?l=t[a]:(l=arguments[i],i+=1),r[a]=l,n(l)?c=!0:o-=1,a+=1}return!c&&o<=0?s.apply(this,r):M(Math.max(0,o),T(e,r,s))}}const F=o((function(e,t){return 1===e?i(t):M(e,T(e,[],t))}));function R(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var I=Object.prototype.toString;const N=function(){return"[object Arguments]"===I.call(arguments)?function(e){return"[object Arguments]"===I.call(e)}:function(e){return R("callee",e)}}();var C=!{toString:null}.propertyIsEnumerable("toString"),$=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=function(){return arguments.propertyIsEnumerable("length")}(),q=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1};const D="function"!=typeof Object.keys||k?i((function(e){if(Object(e)!==e)return[];var t,s,r=[],n=k&&N(e);for(t in e)!R(t,e)||n&&"length"===t||(r[r.length]=t);if(C)for(s=$.length-1;s>=0;)R(t=$[s],e)&&!q(r,t)&&(r[r.length]=t),s-=1;return r})):i((function(e){return Object(e)!==e?[]:Object.keys(e)}));const B=o(x(["fantasy-land/map","map"],A,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return F(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return _((function(s,r){return s[r]=e(t[r]),s}),{},D(t));default:return S(e,t)}})));const L=o((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(s){return e(s)(t(s))}:E((function(e,s){return function(e,t){var s;t=t||[];var r=(e=e||[]).length,n=t.length,i=[];for(s=0;s<r;)i[i.length]=e[s],s+=1;for(s=0;s<n;)i[i.length]=t[s],s+=1;return i}(e,B(s,t))}),[],e)}));const U=o((function(e,t){var s=F(e,t);return F(e,(function(){return _(L,B(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const V=i((function(e){return U(e.length,e)}));const H=V(i((function(e){return!e})));function G(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function W(e,t,s){for(var r=0,n=s.length;r<n;){if(e(t,s[r]))return!0;r+=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 Z=i((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function K(e,t,s,r){var n=G(e);function i(e,t){return J(e,t,s.slice(),r.slice())}return!W((function(e,t){return!W(i,t,e)}),G(t),n)}function J(e,t,s,r){if(z(e,t))return!0;var n,i,o=Z(e);if(o!==Z(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=s.length-1;a>=0;){if(s[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&K(e.entries(),t.entries(),s.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&K(e.values(),t.values(),s.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=D(e);if(c.length!==D(t).length)return!1;var l=s.concat([e]),u=r.concat([t]);for(a=c.length-1;a>=0;){var m=c[a];if(!R(m,t)||!J(t[m],e[m],l,u))return!1;a-=1}return!0}const Y=o((function(e,t){return J(e,t,[],[])}));const X=i((function(e){return function(){return e}}));const Q=X(void 0);const ee=Y(Q());const te=H(ee);var se=__webpack_require__(8326);function re(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ne(e,t,s){for(var r=0,n=s.length;r<n;){if((t=e["@@transducer/step"](t,s[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const ie=o((function(e,t){return M(e.length,(function(){return e.apply(t,arguments)}))}));function oe(e,t,s){for(var r=s.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=s.next()}return e["@@transducer/result"](t)}function ae(e,t,s,r){return e["@@transducer/result"](s[r](ie(e["@@transducer/step"],e),t))}const ce=v(ne,ae,oe);var le=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function ue(e){return new le(e)}const me=a((function(e,t,s){return ce("function"==typeof e?ue(e):e,t,s)}));function de(e,t){return function(){var s=arguments.length;if(0===s)return t();var r=arguments[s-1];return f(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,s-1))}}const pe=a(de("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const he=i(de("tail",pe(1,1/0)));function _e(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return M(arguments[0].length,me(re,arguments[0],he(arguments)))}var fe=function(e,t){switch(arguments.length){case 0:return fe;case 1:return function t(s){return 0===arguments.length?t:z(e,s)};default:return z(e,t)}};const ge=fe;function ye(e,t){return function(e,t,s){var r,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;s<e.length;){if(0===(n=e[s])&&1/n===r)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(n=e[s])&&n!=n)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(Y(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function ve(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 be=function(e){return(e<10?"0":"")+e};const we="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+be(e.getUTCMonth()+1)+"-"+be(e.getUTCDate())+"T"+be(e.getUTCHours())+":"+be(e.getUTCMinutes())+":"+be(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Ee(e){return"[object Object]"===Object.prototype.toString.call(e)}var xe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=O,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Se(e){return function(t){return new xe(e,t)}}const je=o(x(["fantasy-land/filter","filter"],Se,(function(e,t){return Ee(t)?_((function(s,r){return e(t[r])&&(s[r]=t[r]),s}),{},D(t)):function(e,t){for(var s=0,r=t.length,n=[];s<r;)e(t[s])&&(n[n.length]=t[s]),s+=1;return n}(e,t)})));const Oe=o((function(e,t){return je((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Pe(e,t){var s=function(s){var r=t.concat([e]);return ye(s,r)?"<Circular>":Pe(s,r)},r=function(e,t){return S((function(t){return ve(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+S(s,e).join(", ")+"))";case"[object Array]":return"["+S(s,e).concat(r(e,Oe((function(e){return/^\d+$/.test(e)}),D(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):ve(we(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":ve(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+r(e,D(e)).join(", ")+"}"}}const Ae=i((function(e){return Pe(e,[])}));function Me(e,t){for(var s=t,r=0;r<e.length;r+=1){if(null==s)return;var n=e[r];s=l(n)?m(n,s):s[n]}return s}const Te=a((function(e,t,s){return e(Me(t,s))}));function Fe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Re=o((function(e,t){return e&&t}));const Ie=o((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:V(Re)(e,t)}));const Ne=Y(null);const Ce=H(Ne);function $e(e){return $e="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},$e(e)}const ke=function(e){return"object"===$e(e)};const qe=F(1,Ie(Ce,ke));const De=o((function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var r=s(e,t);if(void 0!==r)return r;var n=s(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Ae(e),o=s(i,Ae(t));return void 0!==o&&o===i?e:t}));const Be=o((function(e,t){return B(d(e),t)}));const Le=i((function(e){return F(me(De,0,Be("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const Ue=F(1,_e(Z,ge("GeneratorFunction")));const Ve=F(1,_e(Z,ge("AsyncFunction")));const He=Le([_e(Z,ge("Function")),Ue,Ve]);var Ge=_e(Z,ge("Object")),We=_e(Ae,Y(Ae(Object))),ze=Te(Ie(He,We),["constructor"]);const Ze=F(1,(function(e){if(!qe(e)||!Ge(e))return!1;var t=Object.getPrototypeOf(e);return!!Ne(t)||ze(t)}));class Ke extends se.Om{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Je=Ke;class Ye extends se.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const Xe=Ye;class Qe extends se.wE{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(ee(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const et=Qe;class tt extends se.wE{constructor(e,t,s){super(e,t,s),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 se.wE([e.start.row,e.start.column,e.start.char]),s=new se.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),s.classes.push("position"),this.push(t).push(s)}}const st=tt;class rt extends se.g${constructor(){super(),this.register("annotation",Je),this.register("comment",Xe),this.register("parseResult",et),this.register("sourceMap",st)}}const nt=new rt,it=e=>{const t=new rt;return Ze(e)&&t.use(e),t},ot=nt;const at=F(1,_e(Z,ge("String"))),ct=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",lt=globalThis.fetch;He(lt)&&(globalThis.fetch=(...e)=>at(e[0])&&e[0].endsWith("tree-sitter.wasm")?lt.apply(globalThis,[ct,he(e)]):lt.apply(globalThis,e));var ut=__webpack_require__(3833),mt=__webpack_require__(1212);const dt=class extends mt{constructor(e,t,s){if(super(e,t,s),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=s&&"object"==typeof s&&Object.hasOwn(s,"cause")&&!("cause"in this)){const{cause:e}=s;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class pt 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 ht=pt,_t=__webpack_require__.p+"083dd6647843baf16cbefd09aae31f27.wasm";let ft=null,gt=null;const yt=async e=>{if(null===ft&&null===gt)gt=ut.init().then((()=>ut.Language.load(_t))).then((e=>{const t=new ut;return t.setLanguage(e),t})).finally((()=>{gt=null})),ft=await gt;else if(null===ft&&null!==gt)ft=await gt;else if(null===ft)throw new ht("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return ft.parse(e)};function vt(e,t,s){if(s||(s=new bt),n=typeof(r=e),null==r||"object"!=n&&"function"!=n)return e;var r,n,i,o=function(r){var n=s.get(e);if(n)return n;for(var i in s.set(e,r),e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t?vt(e[i],!0,s):e[i]);return r};switch(Z(e)){case"Object":return o(Object.create(Object.getPrototypeOf(e)));case"Array":return o(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return i=e,new RegExp(i.source,i.flags?i.flags:(i.global?"g":"")+(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.sticky?"y":"")+(i.unicode?"u":"")+(i.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var bt=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var s=this.hash(e),r=this.map[s];r||(this.map[s]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var s in e)t.push(Object.prototype.toString.call(e[s]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var s=this.map[t],r=0;r<s.length;r+=1){if((i=s[r])[0]===e)return i[1]}else{var n=this.hash(e);if(s=this.map[n])for(r=0;r<s.length;r+=1){var i;if((i=s[r])[0]===e)return i[1]}}},e}();const wt=i((function(e){return null!=e&&"function"==typeof e.clone?e.clone():vt(e,!0)}));const Et=class extends ht{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const xt=class extends Et{};const St=class extends xt{};const jt=class extends St{specificTagName;explicitTagName;tagKind;tagPosition;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const Ot=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:s=!1}={}){this.type=this.constructor.type,this.isMissing=s,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const s=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,s)})),e}};let Pt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const At=class extends Ot{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...s}){super({...s}),this.explicitName=e,this.kind=t}};const Mt=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Tt=class extends Mt{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Pt.Mapping}};const Ft=class extends Mt{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Pt.Sequence}};const Rt=class extends Mt{static uri="tag:yaml.org,2002:str"};const It=a((function(e,t,s){return c(e,Me(t,s))}));const Nt=i((function(e){return F(e.length,e)}));var Ct="\t\n\v\f\r \u2028\u2029\ufeff";const $t=i("function"==typeof String.prototype.trim&&!Ct.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Ct+"]["+Ct+"]*"),s=new RegExp("["+Ct+"]["+Ct+"]*$");return e.replace(t,"").replace(s,"")});const kt=o((function(e,t){return F(e+1,(function(){var s=arguments[e];if(null!=s&&Fe(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ae(s)+' does not have a method named "'+t+'"')}))}));const qt=kt(1,"split");const Dt=kt(1,"join");const Bt=i((function(e){return u(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Lt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return _e.apply(this,Bt(arguments))}const Ut=F(4,(function(e,t,s,r){return ce(e("function"==typeof t?ue(t):t),s,r)}));const Vt=o((function(e,t){if(f(e)){if(f(t))return e.concat(t);throw new TypeError(Ae(t)+" is not an array")}if(u(e)){if(u(t))return e+t;throw new TypeError(Ae(t)+" is not a string")}if(null!=e&&Fe(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&Fe(e.concat))return e.concat(t);throw new TypeError(Ae(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Ht=Y("");const Gt=o((function(e,t){return F(me(De,0,Be("length",t)),(function(){var s=arguments,r=this;return e.apply(r,S((function(e){return e.apply(r,s)}),t))}))}));function Wt(e){return e}const zt=i(Wt);const Zt=F(1,_e(Z,ge("Number")));var Kt=Ie(Zt,isFinite);var Jt=F(1,Kt);const Yt=He(Number.isFinite)?F(1,ie(Number.isFinite,Number)):Jt;var Xt=Ie(Yt,Gt(Y,[Math.floor,zt]));var Qt=F(1,Xt);const es=He(Number.isInteger)?F(1,ie(Number.isInteger,Number)):Qt;const ts=i((function(e){return F(e.length,(function(t,s){var r=Array.prototype.slice.call(arguments,0);return r[0]=s,r[1]=t,e.apply(this,r)}))}));const ss=H(Yt);const rs=F(1,Ie(Zt,o((function(e,t){return e>t}))(0)));var ns=Nt((function(e,t){var s=Number(t);if(s!==t&&(s=0),rs(s))throw new RangeError("repeat count must be non-negative");if(ss(s))throw new RangeError("repeat count must be less than infinity");if(s=Math.floor(s),0===e.length||0===s)return"";if(e.length*s>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*s;s=Math.floor(Math.log(s)/Math.log(2));for(var n=e;s;)n+=e,s-=1;return n+=n.substring(0,r-n.length)})),is=ts(kt(1,"repeat"));const os=He(String.prototype.repeat)?is:ns;const as=a((function(e,t,s){return s.replace(e,t)}));var cs=as(/[\s\uFEFF\xA0]+$/,""),ls=kt(0,"trimEnd");const us=He(String.prototype.trimEnd)?ls:cs;var ms=as(/^[\s\uFEFF\xA0]+/,""),ds=kt(0,"trimStart");const ps=He(String.prototype.trimStart)?ds:ms;var hs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=O,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 _s(e){return function(t){return new hs(e,t)}}const fs=o(x(["dropWhile"],_s,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return pe(s,1/0,t)})));const gs=ts(o(ye));const ys=Nt((function(e,t){return _e(qt(""),fs(gs(e)),Dt(""))(t)}));const vs=ts(Vt);var bs=__webpack_require__(6850);const ws=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Es=e=>{const t=(e=>{const t=e.match(ws),s=It("",["groups","indentation"],t);return Ht(s)?void 0:parseInt(s,10)})(e);if(es(t))return os(" ",t);const s=It("",[1],e.split("\n")),r=It(0,["groups","indentation","length"],s.match(/^(?<indentation>[ ]*)/));return os(" ",r)},xs=e=>{const t=e.match(ws),s=It("",["groups","chomping"],t);return Ht(s)?void 0:s},Ss=(e,t)=>ee(e)?`${us(t)}\n`:"-"===e?us(t):t,js=e=>e.replace(/\r\n/g,"\n"),Os=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,s)=>t?e:` ${s.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Ps=Nt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),As=_e(js,$t,Os,qt("\n"),B(ps),Dt("\n")),Ms=_e(js,$t,Os,qt("\n"),B(ps),Dt("\n"),Ps("'")),Ts=_e(js,$t,(e=>e.replace(/\\\n\s*/g,"")),Os,bs.MH,qt("\n"),B(ps),Dt("\n"),Ps('"'));let Fs=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),Rs=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Is=class{static test(e){return e.tag.kind===Pt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const s=e.clone();return e.style===Fs.Plain?t=As(e.content):e.style===Fs.SingleQuoted?t=Ms(e.content):e.style===Fs.DoubleQuoted?t=Ts(e.content):e.style===Fs.Literal?t=(e=>{const t=Es(e),s=xs(e),r=js(e),n=he(r.split("\n")),i=Lt(B(ys(t)),B(vs("\n"))),o=Ut(i,Vt,"",n);return Ss(s,o)})(e.content):e.style===Fs.Folded&&(t=(e=>{const t=Es(e),s=xs(e),r=js(e),n=he(r.split("\n")),i=Lt(B(ys(t)),B(vs("\n"))),o=Ut(i,Vt,"",n),a=Os(o);return Ss(s,a)})(e.content)),s.content=t,s}static resolve(e){return e}};const Ns=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Tt),this.registerTag(new Ft),this.registerTag(new Rt)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Pt.Scalar?t=Rt.uri:e.tag.kind===Pt.Sequence?t=Ft.uri:e.tag.kind===Pt.Mapping&&(t=Tt.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t}registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})}registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this}overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this}resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let s=e;Is.test(e)&&(s=Is.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new jt(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:wt(e.tag.position),node:e.clone()});if(!r.test(s))throw new jt(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:wt(e.tag.position),nodeCanonicalContent:s.content,node:e.clone()});return r.resolve(s)}};const Cs=class extends Mt{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,s=e.clone();return s.content=t,s}};const $s=class extends Mt{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),s=e.clone();return s.content=t,s}};const ks=class extends Mt{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),s=e.clone();return s.content=t,s}};const qs=class extends Mt{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const Ds=class extends Ns{constructor(){super(),this.registerTag(new Cs,!0),this.registerTag(new $s,!0),this.registerTag(new ks,!0),this.registerTag(new qs,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===Pt.Sequence)t=Ft.uri;else if(e.tag.kind===Pt.Mapping)t=Tt.uri;else if(e.tag.kind===Pt.Scalar){const s=this.tags.find((t=>t.test(e)));t=(null==s?void 0:s.tag)||"?"}return t}};const Bs=class extends Ot{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:s,styleGroup:r,...n}){super({...n}),this.anchor=e,this.tag=t,this.style=s,this.styleGroup=r}};const Ls=class extends Bs{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Us=class extends xt{},Vs=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Hs=e=>Vs("mapping",e),Gs=e=>Vs("sequence",e),Ws=e=>Vs("keyValuePair",e),zs=e=>Vs("scalar",e),Zs=e=>Vs("alias",e);const Ks=class{addAnchor(e){if(!(e=>Vs("anchor",e))(e.anchor))throw new Us("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Ls({content:e.content,style:Fs.Plain,styleGroup:Rs.Flow})}},Js=(e,t,s)=>{const r=e[t];if(null!=r){if(!s&&"function"==typeof r)return r;const e=s?r.leave:r.enter;if("function"==typeof e)return e}else{const r=s?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},Ys={},Xs=e=>null==e?void 0:e.type,Qs=e=>"string"==typeof Xs(e),er=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),tr=(e,{visitFnGetter:t=Js,nodeTypeGetter:s=Xs,breakSymbol:r=Ys,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,u,m,d,p,h){let _=l,f=!1;const g={...h,replaceWith(e,t){h.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=a.call(e[l],_,u,m,d,p,g);if("function"==typeof(null==t?void 0:t.then))throw new Et("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},leave(n,o,l,u,m,d){let p=n;const h={...d,replaceWith(e,t){d.replaceWith(e,t),p=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(p),!0);if("function"==typeof a){const t=a.call(e[n],p,o,l,u,m,h);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===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===p&&(c[n]=a)}}};tr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Js,nodeTypeGetter:s=Xs,breakSymbol:r=Ys,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(l,u,m,d,p,h){let _=l,f=!1;const g={...h,replaceWith(e,t){h.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=await a.call(e[l],_,u,m,d,p,g);if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},async leave(n,o,l,u,m,d){let p=n;const h={...d,replaceWith(e,t){d.replaceWith(e,t),p=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(p),!0);if("function"==typeof a){const t=await a.call(e[n],p,o,l,u,m,h);if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===p&&(c[n]=a)}}};const sr=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=Ys,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Js,nodeTypeGetter:c=Xs,nodePredicate:l=Qs,nodeCloneFn:u=er,detectCycles:m=!0}={})=>{const d=s||{};let p,h,_=Array.isArray(e),f=[e],g=-1,y=[],v=e;const b=[],w=[];do{g+=1;const e=g===f.length;let s;const S=e&&0!==y.length;if(e){if(s=0===w.length?void 0:b.pop(),v=h,h=w.pop(),S)if(_){v=v.slice();let e=0;for(const[t,s]of y){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=u(v);for(const[e,t]of y)v[e]=t}g=p.index,f=p.keys,y=p.edits,_=p.inArray,p=p.prev}else if(h!==i&&void 0!==h){if(s=_?g:f[g],v=h[s],v===i||void 0===v)continue;b.push(s)}let j;if(!Array.isArray(v)){var E;if(!l(v))throw new Et(`Invalid AST Node: ${String(v)}`,{node:v});if(m&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,v,s,h,b,w):h&&(h[s]=t),e||(v=t)}};j=i.call(t,v,s,h,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&&(y.push([s,j]),!e)){if(!l(j)){b.pop();continue}v=j}}var x;if(void 0===j&&S&&y.push([s,v]),!e)p={inArray:_,index:g,keys:f,edits:y,prev:p},_=Array.isArray(v),f=_?v:null!==(x=d[c(v)])&&void 0!==x?x:[],g=-1,y=[],h!==i&&void 0!==h&&w.push(h),h=v}while(void 0!==p);return 0!==y.length?y[y.length-1][1]:e};sr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=Ys,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Js,nodeTypeGetter:c=Xs,nodePredicate:l=Qs,nodeCloneFn:u=er,detectCycles:m=!0}={})=>{const d=s||{};let p,h,_=Array.isArray(e),f=[e],g=-1,y=[],v=e;const b=[],w=[];do{g+=1;const e=g===f.length;let s;const x=e&&0!==y.length;if(e){if(s=0===w.length?void 0:b.pop(),v=h,h=w.pop(),x)if(_){v=v.slice();let e=0;for(const[t,s]of y){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=u(v);for(const[e,t]of y)v[e]=t}g=p.index,f=p.keys,y=p.edits,_=p.inArray,p=p.prev}else if(h!==i&&void 0!==h){if(s=_?g:f[g],v=h[s],v===i||void 0===v)continue;b.push(s)}let S;if(!Array.isArray(v)){if(!l(v))throw new Et(`Invalid AST Node: ${String(v)}`,{node:v});if(m&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,v,s,h,b,w):h&&(h[s]=t),e||(v=t)}};S=await i.call(t,v,s,h,b,w,n)}if(S===n)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(y.push([s,S]),!e)){if(!l(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&y.push([s,v]),!e)p={inArray:_,index:g,keys:f,edits:y,prev:p},_=Array.isArray(v),f=_?v:null!==(E=d[c(v)])&&void 0!==E?E:[],g=-1,y=[],h!==i&&void 0!==h&&w.push(h),h=v}while(void 0!==p);return 0!==y.length?y[y.length-1][1]:e};class rr{static type="point";type=rr.type;row;column;char;constructor({row:e,column:t,char:s}){this.row=e,this.column=t,this.char=s}}class nr{static type="position";type=nr.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const ir=nr;const or=class extends Ot{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class ar extends Ot{static type="stream"}Object.defineProperty(ar.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Vs("document",e))(e)||(e=>Vs("comment",e))(e))):[]},enumerable:!0});const cr=ar;const lr=i((function(e){return m(0,e)}));const ur=class extends Ot{static type="parseResult";get rootNode(){return lr(this.children)}};const mr="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),s=1,r=arguments.length;s<r;){var n=arguments[s];if(null!=n)for(var i in n)R(i,n)&&(t[i]=n[i]);s+=1}return t};const dr=o((function(e,t){return mr({},e,t)}));const pr=class extends Ot{static type="directive";name;parameters;constructor({name:e,parameters:t,...s}){super({...s}),this.name=e,this.parameters=dr({version:void 0,handle:void 0,prefix:void 0},t)}};const hr=class extends Ot{static type="document"};const _r=class extends Bs{};class fr extends _r{static type="mapping"}Object.defineProperty(fr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Ws):[]},enumerable:!0});const gr=fr;class yr extends Ot{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(yr.prototype,{key:{get(){return this.children.filter((e=>zs(e)||Hs(e)||Gs(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>zs(e)||Hs(e)||Gs(e)||Zs(e))(t)))[0]},enumerable:!0}});const vr=yr;class br extends _r{static type="sequence"}Object.defineProperty(br.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Gs(e)||Hs(e)||zs(e)||Zs(e))):[]},enumerable:!0});const wr=br;const Er=class extends Ot{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const xr=class extends Ot{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Sr=class extends Ot{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const jr=class extends Ot{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}};const Or=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;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("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},Pr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Ar=e=>Array.isArray(e)||Qs(e);class Mr{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(e){return t=>null!=t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.endsWith(e)}static toPosition(e){const t=new rr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),s=new rr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new ir({start:t,end:s})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new or({name:t.text,position:Mr.toPosition(t)})}static hasKeyValuePairEmptyKey(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode}static hasKeyValuePairEmptyValue(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode}static kindNodeToYamlTag(e){const{tag:t}=e,s=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?Pt.Mapping:e.type.endsWith("sequence")?Pt.Sequence:Pt.Scalar,n=t?Mr.toPosition(t):void 0;return new At({explicitName:s,kind:r,position:n})}schema;referenceManager;stream={enter:e=>{const t=Mr.toPosition(e);return new cr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new ur({children:[e]})};yaml_directive={enter:e=>{var t;const s=Mr.toPosition(e),r=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new pr({position:s,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:e=>{const t=Mr.toPosition(e),s=e.children[0],r=e.children[1],n=new pr({position:t,name:"%TAG",parameters:{handle:null==s?void 0:s.text,prefix:null==r?void 0:r.text}});return this.schema.registerTagDirective(n),n}};reserved_directive={enter:e=>{const t=Mr.toPosition(e),s=e.children[0],r=e.children[1],n=e.children[2];return new pr({position:t,name:null==s?void 0:s.text,parameters:{handle:null==r?void 0:r.text,prefix:null==n?void 0:n.text}})}};document={enter:e=>{const t=Mr.toPosition(e);return new hr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if(Mr.isScalar(t)||Mr.isMapping(t)||Mr.isSequence(t))return e.children;const s=new rr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),r=new Ls({content:"",anchor:Mr.kindNodeToYamlAnchor(t),tag:Mr.kindNodeToYamlTag(t),position:new ir({start:s,end:s}),styleGroup:Rs.Flow,style:Fs.Plain});return this.registerAnchor(r),[...e.children,r]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=new gr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Rs.Block,style:Fs.NextLine,isMissing:e.isMissing});return this.registerAnchor(n),this.schema.resolve(n)}};block_mapping_pair={enter:e=>{const t=Mr.toPosition(e),s=[...e.children];if(Mr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);s.unshift(t)}if(Mr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);s.push(t)}return new vr({children:s,position:t,styleGroup:Rs.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=new gr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Rs.Flow,style:Fs.Explicit,isMissing:e.isMissing});return this.registerAnchor(n),this.schema.resolve(n)}};flow_pair={enter:e=>{const t=Mr.toPosition(e),s=[...e.children];if(Mr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);s.unshift(t)}if(Mr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);s.push(t)}return new vr({children:s,position:t,styleGroup:Rs.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=new wr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Rs.Block,style:Fs.NextLine});return this.registerAnchor(n),this.schema.resolve(n)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new rr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new Ls({content:"",tag:new At({explicitName:"?",kind:Pt.Scalar}),position:new ir({start:t,end:t}),styleGroup:Rs.Flow,style:Fs.Plain})]}};flow_sequence={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=new wr({children:e.children.flat(),position:t,anchor:r,tag:s,styleGroup:Rs.Flow,style:Fs.Explicit});return this.registerAnchor(n),this.schema.resolve(n)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=new Ls({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Flow,style:Fs.Plain});return this.registerAnchor(n),this.schema.resolve(n)}};single_quote_scalar={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=new Ls({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Flow,style:Fs.SingleQuoted});return this.registerAnchor(n),this.schema.resolve(n)}};double_quote_scalar={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=new Ls({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Flow,style:Fs.DoubleQuoted});return this.registerAnchor(n),this.schema.resolve(n)}};block_scalar={enter:e=>{const t=Mr.toPosition(e),s=Mr.kindNodeToYamlTag(e),r=Mr.kindNodeToYamlAnchor(e),n=e.text.startsWith("|")?Fs.Literal:e.text.startsWith(">")?Fs.Folded:Fs.Plain,i=new Ls({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Block,style:n});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:e=>new Er({content:e.text})};alias={enter:e=>{const t=new xr({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Or&&!e.isNamed){const t=Mr.toPosition(e),s=e.type||e.text,{isMissing:r}=e;return new Sr({value:s,position:t,isMissing:r})}}ERROR(e,t,s,r){const n=Mr.toPosition(e),i=new jr({children:e.children,position:n,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===r.length?new ur({children:[i]}):i}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new rr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:s}=e,r=(null==s?void 0:s.children)||[],n=r.find(Mr.isKind("tag")),i=r.find(Mr.isKind("anchor")),o=new At(void 0!==n?{explicitName:n.text,kind:Pt.Scalar,position:Mr.toPosition(n)}:{explicitName:"?",kind:Pt.Scalar}),a=void 0!==i?new or({name:i.text,position:Mr.toPosition(i)}):void 0,c=new Ls({content:"",position:new ir({start:t,end:t}),tag:o,anchor:a,styleGroup:Rs.Flow,style:Fs.Plain});return this.registerAnchor(c),c}createKeyValuePairEmptyValue(e){const t=new rr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:s}=e,r=(null==s?void 0:s.children)||[],n=r.find(Mr.isKind("tag")),i=r.find(Mr.isKind("anchor")),o=new At(void 0!==n?{explicitName:n.text,kind:Pt.Scalar,position:Mr.toPosition(n)}:{explicitName:"?",kind:Pt.Scalar}),a=void 0!==i?new or({name:i.text,position:Mr.toPosition(i)}):void 0,c=new Ls({content:"",position:new ir({start:t,end:t}),tag:o,anchor:a,styleGroup:Rs.Flow,style:Fs.Plain});return this.registerAnchor(c),c}}const Tr=Mr;function Fr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Rr=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=j,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=Fr(this.xf["@@transducer/step"](e,!1))),e},e}();function Ir(e){return function(t){return new Rr(e,t)}}const Nr=o(x(["all"],Ir,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0}))),Cr=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],$r=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,kr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),qr=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof se.wE)&&t.classes.includes(e),Dr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Br=e=>e({hasMethod:Cr,hasBasicElementProps:$r,primitiveEq:kr,isElementType:Dr,hasClass:qr}),Lr=Br((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof se.Hg||e(s)&&t(void 0,s))),Ur=Br((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof se.Om||e(s)&&t("string",s))),Vr=Br((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof se.kT||e(s)&&t("number",s))),Hr=Br((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof se.Os||e(s)&&t("null",s))),Gr=Br((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof se.bd||e(s)&&t("boolean",s))),Wr=Br((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof se.Sh||e(r)&&t("object",r)&&s("keys",r)&&s("values",r)&&s("items",r))),zr=Br((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof se.wE&&!(r instanceof se.Sh)||e(r)&&t("array",r)&&s("push",r)&&s("unshift",r)&&s("map",r)&&s("reduce",r))),Zr=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof se.Pr||e(r)&&t("member",r)&&s(void 0,r))),Kr=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof se.Ft||e(r)&&t("link",r)&&s(void 0,r))),Jr=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof se.sI||e(r)&&t("ref",r)&&s(void 0,r))),Yr=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Je||e(r)&&t("annotation",r)&&s("array",r))),Xr=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xe||e(r)&&t("comment",r)&&s("string",r))),Qr=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof et||e(r)&&t("parseResult",r)&&s("array",r))),en=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof st||e(r)&&t("sourceMap",r)&&s("array",r))),tn=e=>Dr("object",e)||Dr("array",e)||Dr("boolean",e)||Dr("number",e)||Dr("string",e)||Dr("null",e)||Dr("member",e),sn=e=>en(e.meta.get("sourceMap")),rn=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!zr(s)&&Nr(gs(s.toValue()),e)},nn=(e,t)=>0===e.length||Nr(gs(t.classes.toValue()),e);const on=class extends Et{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const an=class extends on{};const cn=class extends on{},ln=(e,t={})=>{const{visited:s=new WeakMap}=t,r={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof se.KeyValuePair){const{key:t,value:n}=e,i=Lr(t)?ln(t,r):t,o=Lr(n)?ln(n,r):n,a=new se.KeyValuePair(i,o);return s.set(e,a),a}if(e instanceof se.ot){const t=e=>ln(e,r),n=[...e].map(t),i=new se.ot(n);return s.set(e,i),i}if(e instanceof se.G6){const t=e=>ln(e,r),n=[...e].map(t),i=new se.G6(n);return s.set(e,i),i}if(Lr(e)){const t=dn(e);if(s.set(e,t),e.content)if(Lr(e.content))t.content=ln(e.content,r);else if(e.content instanceof se.KeyValuePair)t.content=ln(e.content,r);else if(Array.isArray(e.content)){const s=e=>ln(e,r);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new an("Value provided to cloneDeep function couldn't be cloned",{value:e})};ln.safe=e=>{try{return ln(e)}catch{return e}};const un=e=>{const{key:t,value:s}=e;return new se.KeyValuePair(t,s)},mn=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=ln(e.meta)),e.attributes.length>0&&(t._attributes=ln(e.attributes)),Lr(e.content)){const s=e.content;t.content=mn(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof se.KeyValuePair?t.content=un(e.content):t.content=e.content;return t},dn=e=>{if(e instanceof se.KeyValuePair)return un(e);if(e instanceof se.ot)return(e=>{const t=[...e];return new se.ot(t)})(e);if(e instanceof se.G6)return(e=>{const t=[...e];return new se.G6(t)})(e);if(Lr(e))return mn(e);throw new cn("Value provided to cloneShallow function couldn't be cloned",{value:e})};dn.safe=e=>{try{return dn(e)}catch{return e}};const pn=e=>Wr(e)?"ObjectElement":zr(e)?"ArrayElement":Zr(e)?"MemberElement":Ur(e)?"StringElement":Gr(e)?"BooleanElement":Vr(e)?"NumberElement":Hr(e)?"NullElement":Kr(e)?"LinkElement":Jr(e)?"RefElement":void 0,hn=e=>Lr(e)?dn(e):er(e),_n=_e(pn,at),fn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const gn=(e,t,{keyMap:s=fn,...r}={})=>sr(e,t,{keyMap:s,nodeTypeGetter:pn,nodePredicate:_n,nodeCloneFn:hn,...r});gn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=fn,...r}={})=>sr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:pn,nodePredicate:_n,nodeCloneFn:hn,...r});const yn=a((function(e,t,s){var r,n={};for(r in s=s||{},t=t||{})R(r,t)&&(n[r]=R(r,s)?e(r,t[r],s[r]):t[r]);for(r in s)R(r,s)&&!R(r,n)&&(n[r]=s[r]);return n}));const vn=a((function e(t,s,r){return yn((function(s,r,n){return Ee(r)&&Ee(n)?e(t,r,n):t(s,r,n)}),s,r)}));const bn=o((function(e,t){return vn((function(e,t,s){return s}),e,t)}));const wn=o(Me);const En=pe(0,-1);const xn=o((function(e,t){return e.apply(this,t)}));const Sn=H(He);const jn=i((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():f(e)?[]:u(e)?"":Ee(e)?{}:N(e)?function(){return arguments}():(t=e,"[object Uint8ClampedArray]"===(s=Object.prototype.toString.call(t))||"[object Int8Array]"===s||"[object Uint8Array]"===s||"[object Int16Array]"===s||"[object Uint16Array]"===s||"[object Int32Array]"===s||"[object Uint32Array]"===s||"[object Float32Array]"===s||"[object Float64Array]"===s||"[object BigInt64Array]"===s||"[object BigUint64Array]"===s?e.constructor.from(""):void 0);var t,s}));const On=i((function(e){return null!=e&&Y(e,jn(e))}));const Pn=F(1,He(Array.isArray)?Array.isArray:_e(Z,ge("Array")));const An=Ie(Pn,On);const Mn=F(3,(function(e,t,s){var r=wn(e,s),n=wn(En(e),s);if(!Sn(r)&&!An(e)){var i=ie(r,n);return xn(i,t)}})),Tn=()=>({predicates:{...e},namespace:ot}),Fn={toolboxCreator:Tn,visitorOptions:{nodeTypeGetter:pn,exposeEdits:!0}},Rn=(e,t,s={})=>{if(0===t.length)return e;const r=bn(Fn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=tr(a.map(p({},"visitor")),{...i});a.forEach(Mn(["pre"],[]));const l=gn(e,c,i);return a.forEach(Mn(["post"],[])),l};Rn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const r=bn(Fn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=tr[Symbol.for("nodejs.util.promisify.custom")],l=gn[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(p({},"visitor")),{...i});await Promise.allSettled(a.map(Mn(["pre"],[])));const m=await l(e,u,i);return await Promise.allSettled(a.map(Mn(["post"],[]))),m};const In=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Lr(e)&&(e.meta.length>0&&(r.meta=ln(e.meta)),e.attributes.length>0&&(r.attributes=ln(e.attributes))),Rn(r,s,{toolboxCreator:Tn,visitorOptions:{nodeTypeGetter:pn}})},Nn=e=>(t,s={})=>In(t,{...s,Type:e});se.Sh.refract=Nn(se.Sh),se.wE.refract=Nn(se.wE),se.Om.refract=Nn(se.Om),se.bd.refract=Nn(se.bd),se.Os.refract=Nn(se.Os),se.kT.refract=Nn(se.kT),se.Ft.refract=Nn(se.Ft),se.sI.refract=Nn(se.sI),Je.refract=Nn(Je),Xe.refract=Nn(Xe),et.refract=Nn(et),st.refract=Nn(st);const Cn={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...fn},$n=e=>Lr(e)?pn(e):Xs(e),kn=e=>Lr(e)||Qs(e)||Array.isArray(e);const qn=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new et;t._content=e.children.flat(1);const s=t.findElements(tn);if(s.length>0){s[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=it()}comment(e){if(0===this.processedDocumentCount){const t=new Xe(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,s=this.processedDocumentCount>=1;if(t){const t=new Je("Only first document within YAML stream will be used. Rest will be discarded.");t.classes.push("warning"),this.maybeAddSourceMap(e,t),this.annotations.push(t)}return s?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new se.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new se.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}sequence(e){const t=new se.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}scalar(e){const t=this.namespace.toElement(e.content);return""===e.content&&e.style===Fs.Plain&&(t.classes.push("yaml-e-node"),t.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new Je(t);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}error(e,t,s,r){const n=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new Je(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new et;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new st;s.position=e.position,s.astNode=e,t.meta.set("sourceMap",s)}};class Dn{cursor;constructor(e){this.cursor=e}stream(){return new Or(this.cursor)}yaml_directive(){return new Or(this.cursor)}tag_directive(){return new Or(this.cursor)}reserved_directive(){return new Or(this.cursor)}document(){return new Or(this.cursor)}block_node(){return new Or(this.cursor).setFieldName(this.cursor)}flow_node(){return new Or(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Or(this.cursor)}block_mapping_pair(){return new Or(this.cursor)}flow_mapping(){return new Or(this.cursor)}flow_pair(){return new Or(this.cursor)}block_sequence(){return new Or(this.cursor)}block_sequence_item(){return new Or(this.cursor)}flow_sequence(){return new Or(this.cursor)}plain_scalar(){return new Or(this.cursor)}single_quote_scalar(){return new Or(this.cursor)}double_quote_scalar(){return new Or(this.cursor)}block_scalar(){return new Or(this.cursor)}ERROR(){return new Or(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Or(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Dn(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Dn(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Bn=Dn,Ln=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new Bn(s),[n]=Array.from(r),i=new Tr,o=new qn,a=new Ds,c=new Ks,l=sr(n,i,{keyMap:Pr,nodePredicate:Ar,state:{schema:a,sourceMap:t,referenceManager:c}});return sr(l.rootNode,o,{keyMap:Cn,nodeTypeGetter:$n,nodePredicate:kn,state:{sourceMap:t}})};class Un extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Vn=Un;class Hn extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Gn=Hn;class Wn extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const zn=Wn;class Zn extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const Kn=Zn;class Jn extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const Yn=Jn;class Xn extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const Qn=Xn;class ei extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const ti=ei;class si extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new se.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new se.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(si.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ri=si;class ni extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const ii=ni;class oi extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const ai=oi;class ci extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Ur(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Ur(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 li=ci;class ui extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const mi=ui;class di extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const pi=di;class hi extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const _i=hi;class fi extends se.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const gi=fi;class yi extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const vi=yi;class bi extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new se.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 wi=bi;class Ei extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new se.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new se.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(Ei.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const xi=Ei;class Si extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const ji=Si;class Oi extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const Pi=Oi;class Ai extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Mi=Ai;class Ti extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new se.bd(!1)}set required(e){this.set("required",e)}}const Fi=Ti;class Ri extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const Ii=Ri;class Ni extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Ci=Ni;const $i=class extends ht{};class ki extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const qi=ki;class Di extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Bi=Di;class Li extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Ui=Li;class Vi extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Hi=Vi;const Gi=o((function(e,t){return _((function(s,r){return s[r]=e(t[r],r,t),s}),{},D(t))}));const Wi=i((function(e){return null==e}));const zi=o((function(e,t){if(0===e.length||Wi(t))return!1;for(var s=t,r=0;r<e.length;){if(Wi(s)||!R(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));const Zi=o((function(e,t){return zi([e],t)}));const Ki=a((function(e,t,s){return e(d(t,s))})),Ji=(e,t)=>{const s=c(e,t);return Gi((e=>{if(Ze(e)&&Zi("$ref",e)&&Ki(at,"$ref",e)){const t=wn(["$ref"],e),r=ys("#/",t);return wn(r.split("/"),s)}return Ze(e)?Ji(e,s):e}),e)};const Yi=function(){return!0},Xi=e=>"string"==typeof(null==e?void 0:e.type)?e.type:pn(e),Qi={EphemeralObject:["content"],EphemeralArray:["content"],...fn},eo=(e,t,{keyMap:s=Qi,...r}={})=>gn(e,t,{keyMap:s,nodeTypeGetter:Xi,nodePredicate:Yi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});eo[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Qi,...s}={})=>gn[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Xi,nodePredicate:Yi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const to=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 so=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 ro{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new so(e.content);return this.references.set(e,t),t}};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 to(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var s;const r=t[3];return"EphemeralObject"===(null===(s=r[r.length-1])||void 0===s?void 0:s.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Ur(e.href)?e.href.toValue():""}}const no=e=>Lr(e)?Ur(e)||Vr(e)||Gr(e)||Hr(e)?e.toValue():eo(e,new ro):e,io=e=>{const t=e.meta.length>0?ln(e.meta):void 0,s=e.attributes.length>0?ln(e.attributes):void 0;return new e.constructor(void 0,t,s)},oo=(e,t)=>t.clone&&t.isMergeableElement(e)?co(io(e),e,t):e,ao={clone:!0,isMergeableElement:e=>Wr(e)||zr(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>oo(e,s))),objectElementMerge:(e,t,s)=>{const r=Wr(e)?io(e):io(t);return Wr(e)&&e.forEach(((e,t,n)=>{const i=dn(n);i.value=oo(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=no(n);let a;if(Wr(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);a=dn(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return co;const s=t.customMerge(e,t);return"function"==typeof s?s:co})(n,s)(r,t)}else a=dn(i),a.value=oo(t,s);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},co=(e,t,s)=>{var r,n,i;const o={...ao,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:ao.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:ao.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:ao.objectElementMerge;const a=zr(t);if(!(a===zr(e)))return oo(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=(e=>"function"!=typeof e.customMetaMerge?e=>ln(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>ln(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};co.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new se.Sh:e.reduce(((e,s)=>co(e,s,t)),io(e[0]))};const lo=co;const uo=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=lo(t.meta,e.meta),sn(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=lo(t.attributes,e.attributes))}};const mo=class extends uo{enter(e){return this.element=ln(e),Ys}},po=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},ho=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:ho(s,[...t,s])},_o=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>ho(e)));for(;s.every((e=>e.length>0));){const e=s.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,i=Object.create(n),o=ho(n);for(let t of e){let e=ho(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(po(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},fo=e=>e.filter(((t,s)=>e.indexOf(t)==s)),go=(e,t)=>{const s=t.map((e=>ho(e)));let r=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][r];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}r++}},yo=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,s)=>Object.getOwnPropertyDescriptor(go(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==go(r,e)||void 0!==t[r],get:(s,r)=>(go(r,e)||t)[r],set(t,s,r){const n=go(s,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[s]=r,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),vo=null,bo="copy",wo="copy",Eo="deep",xo=new WeakMap,So=e=>xo.get(e),jo=(e,t)=>{var s,r;const n=fo([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=fo([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},Oo=(e,t)=>{var s,r,n,i;return{property:jo(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:jo(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Po=(e,t)=>{var s,r,n,i,o,a;return{class:fo([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:Oo(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:Oo(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Ao=new Map,Mo=(...e)=>{const t=((...e)=>{var t;const s=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const n=[...ho(e.prototype).map((e=>e.constructor)),...null!==(t=So(e))&&void 0!==t?t:[]].filter((e=>!s.has(e)));for(let e of n)r.add(e);s.add(e),r.delete(e)}return[...s]})(...e).map((e=>Ao.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Po(e,t)))},To=e=>{let t=Ao.get(e);return t||(t={},Ao.set(e,t)),t};function Fo(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=vo;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let s of e)s.apply(this,t)},s={[i]:t};n.push(s)}function o(...t){for(const s of e)po(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===wo?_o(n,o):(a=n,c=o,yo([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===bo?_o(e,null,["prototype"]):yo(e,Function.prototype));let l=o;if("none"!==Eo){const n="deep"===Eo?Mo(...e):((...e)=>{const t=e.map((e=>To(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Po(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Ro(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},l),Ro(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},l.prototype)}var u,m;return u=l,m=e,xo.set(u,m),l}const Ro=(e,t)=>{const s=e.property,r=e.method;if(s)for(let e in s)for(let r of s[e])r(t,e);if(r)for(let e in r)for(let s of r[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const Io=o((function(e,t){for(var s={},r=0;r<e.length;)e[r]in t&&(s[e[r]]=t[e[r]]),r+=1;return s}));const No=class extends uo{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Io(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=wn(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Te(He,["visitors",...e],this.specObj)?wn(["visitors",...e],this.specObj):wn(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof mo&&(null==r?void 0:r.constructor)===mo?ln(t):(gn(t,r,s),r.element)}};const Co=class extends No{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Ur(r)&&s.includes(no(r))&&!this.ignoredFields.includes(no(r))){const s=this.toRefractedElement([...t,"fixedFields",no(r)],e),i=new se.Pr(ln(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(no(r))||this.element.content.push(ln(n))})),this.copyMetaAndAttributes(e,this.element),Ys}};class $o extends(Fo(Co,mo)){constructor(e){super(e),this.element=new qi,this.specPath=X(["document","objects","JSONSchema"])}}const ko=$o;const qo=class{parent;constructor({parent:e}){this.parent=e}},Do=e=>Wr(e)&&e.hasKey("$ref");class Bo extends(Fo(No,qo,mo)){ObjectElement(e){const t=Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Ys}ArrayElement(e){return this.element=new se.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const Lo=Bo;const Uo=class extends mo{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Vo=i((function(e){return F(me(De,0,Be("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Ho=i((function(e){return!On(e)}));const Go=o((function(e,t){return e||t}));var Wo=H(F(1,Ie(Ce,o((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:V(Go)(e,t)}))(ke,He))));const zo=Vo([at,Wo,Ho]);const Zo=function(){return!1};const Ko=class extends No{specPath;ignoredFields;fieldPatternPredicate=Zo;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(!this.ignoredFields.includes(no(t))&&this.fieldPatternPredicate(no(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new se.Pr(ln(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(no(t))||this.element.content.push(ln(s))})),this.copyMetaAndAttributes(e,this.element),Ys}};const Jo=class extends Ko{constructor(e){super(e),this.fieldPatternPredicate=zo}};class Yo extends(Fo(Jo,qo,mo)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Xo=Yo;class Qo extends(Fo(Jo,qo,mo)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ea=Qo;class ta extends(Fo(Jo,qo,mo)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const sa=ta;const ra=class extends mo{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const na=class extends mo{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 ia extends(Fo(No,qo,mo)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const oa=ia;class aa extends(Fo(No,qo,mo)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const ca=aa;class la extends(Fo(No,qo,mo)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const ua=la;class ma extends(Fo(Jo,qo,mo)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Do(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const da=ma;class pa extends(Fo(No,qo,mo)){constructor(e){super(e),this.element=new se.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),Ys}}const ha=pa;class _a extends(Fo(Co,mo)){constructor(e){super(e),this.element=new Bi,this.specPath=X(["document","objects","JSONReference"])}ObjectElement(e){const t=Co.prototype.ObjectElement.call(this,e);return Ur(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const fa=_a;const ga=class extends mo{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const ya=a((function(e,t,s){return F(Math.max(e.length,t.length,s.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)}))}));const va=i((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));const ba=o((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const wa=i(Fr);const Ea=H(Wi);const xa=Ie(Pn,Ho);function Sa(e){return function(e){if(Array.isArray(e))return ja(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 ja(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?ja(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 ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=Array(t);s<t;s++)r[s]=e[s];return r}var Oa=_e(ba(va((function(e,t){return e.length>t.length}))),lr,d("length")),Pa=Nt((function(e,t,s){var r=s.apply(void 0,Sa(e));return Ea(r)?wa(r):t}));const Aa=ya(xa,(function(e){var t=Oa(e);return F(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return me(Pa(s),void 0,e)}))}),Q);const Ma=class extends No{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ya(e,X(t),Q))),s=Aa(t)(e);return this.element=this.toRefractedElement(s,e),Ys}};const Ta=class extends Ma{constructor(e){super(e),this.alternator=[{predicate:Do,specPath:["document","objects","JSONReference"]},{predicate:Yi,specPath:["document","objects","JSONSchema"]}]}};class Fa extends(Fo(Co,mo)){constructor(e){super(e),this.element=new Ui,this.specPath=X(["document","objects","Media"])}}const Ra=Fa;class Ia extends(Fo(Co,mo)){constructor(e){super(e),this.element=new Hi,this.specPath=X(["document","objects","LinkDescription"])}}const Na={visitors:{value:mo,JSONSchemaOrJSONReferenceVisitor:Ta,document:{objects:{JSONSchema:{$visitor:ko,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:Ta,items:Lo,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Uo,properties:Xo,additionalProperties:Ta,patternProperties:ea,dependencies:sa,enum:ra,type:na,allOf:oa,anyOf:ca,oneOf:ua,not:Ta,definitions:da,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:ha,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:fa,fixedFields:{$ref:ga}},Media:{$visitor:Ra,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Ia,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ta,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ta}}}}}},Ca=e=>{if(Lr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},$a={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...fn},ka=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qi||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),qa=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bi||e(r)&&t("JSONReference",r)&&s("object",r))),Da=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ui||e(r)&&t("media",r)&&s("object",r))),Ba=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hi||e(r)&&t("linkDescription",r)&&s("object",r))),La={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",qi),t.register("jSONReference",Bi),t.register("media",Ui),t.register("linkDescription",Hi),t}},Ua=()=>{const e=it(La);return{predicates:{...t,isStringElement:Ur},namespace:e}},Va=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Na}={})=>{const n=(0,se.e)(e),i=Ji(r),o=new(wn(t,i))({specObj:i});return gn(n,o),Rn(o.element,s,{toolboxCreator:Ua,visitorOptions:{keyMap:$a,nodeTypeGetter:Ca}})},Ha=e=>(t,s={})=>Va(t,{specPath:e,...s});qi.refract=Ha(["visitors","document","objects","JSONSchema","$visitor"]),Bi.refract=Ha(["visitors","document","objects","JSONReference","$visitor"]),Ui.refract=Ha(["visitors","document","objects","Media","$visitor"]),Hi.refract=Ha(["visitors","document","objects","LinkDescription","$visitor"]);const Ga=class extends qi{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new $i("idProp getter in Schema class is not not supported.")}set idProp(e){throw new $i("idProp setter in Schema class is not not supported.")}get $schema(){throw new $i("$schema getter in Schema class is not not supported.")}set $schema(e){throw new $i("$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 $i("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new $i("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new $i("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new $i("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 $i("definitions getter in Schema class is not not supported.")}set definitions(e){throw new $i("definitions setter in Schema class is not not supported.")}get base(){throw new $i("base getter in Schema class is not not supported.")}set base(e){throw new $i("base setter in Schema class is not not supported.")}get links(){throw new $i("links getter in Schema class is not not supported.")}set links(e){throw new $i("links setter in Schema class is not not supported.")}get media(){throw new $i("media getter in Schema class is not not supported.")}set media(e){throw new $i("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 Wa extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const za=Wa;class Za extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Ka=Za;class Ja extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const Ya=Ja;class Xa extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Qa=Xa;class ec extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const tc=ec;class sc extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const rc=sc;const nc=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=lo(t.meta,e.meta),sn(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=lo(t.attributes,e.attributes))}};const ic=class extends nc{enter(e){return this.element=ln(e),Ys}};const oc=class extends nc{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:r,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=r,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Io(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=wn(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Te(He,["visitors",...e],this.specObj)?wn(["visitors",...e],this.specObj):wn(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof ic&&(null==r?void 0:r.constructor)===ic?ln(t):(gn(t,r,s),r.element)}};var ac=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=O,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Fr(s):s},e}();function cc(e){return function(t){return new ac(e,t)}}const lc=o(x(["take"],cc,(function(e,t){return pe(0,e<0?1/0:e,t)})));const uc=o((function(e,t){return Y(lc(e.length,t),e)})),mc=e=>Wr(e)&&e.hasKey("$ref"),dc=Wr,pc=Wr,hc=e=>Ur(e.key)&&uc("x-",no(e.key));const _c=class extends oc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=hc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Ur(r)&&s.includes(no(r))&&!this.ignoredFields.includes(no(r))){const s=this.toRefractedElement([...t,"fixedFields",no(r)],e),i=new se.Pr(ln(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(no(r))||this.element.content.push(ln(n))})),this.copyMetaAndAttributes(e,this.element),Ys}};class fc extends(Fo(_c,ic)){constructor(e){super(e),this.element=new vi,this.specPath=X(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return _c.prototype.ObjectElement.call(this,e)}}const gc=fc;class yc extends(Fo(oc,ic)){StringElement(e){const t=new gi(no(e));return this.copyMetaAndAttributes(e,t),this.element=t,Ys}}const vc=yc;const bc=class extends oc{MemberElement(e){return this.element=ln(e),this.element.classes.push("specification-extension"),Ys}};class wc extends(Fo(_c,ic)){constructor(e){super(e),this.element=new ii,this.specPath=X(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Ec=wc;const xc=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Sc extends(Fo(_c,ic)){constructor(e){super(e),this.element=new zn,this.specPath=X(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const jc=Sc;class Oc extends(Fo(_c,ic)){constructor(e){super(e),this.element=new ai,this.specPath=X(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Pc=Oc;class Ac extends(Fo(_c,ic)){constructor(e){super(e),this.element=new li,this.specPath=X(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return(Ur(this.element.operationId)||Ur(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Mc=Ac;const Tc=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Fc=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Rc=class extends oc{specPath;ignoredFields;fieldPatternPredicate=Zo;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=hc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:r,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(no(t))&&this.fieldPatternPredicate(no(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new se.Pr(ln(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(no(t))||this.element.content.push(ln(s))})),this.copyMetaAndAttributes(e,this.element),Ys}};const Ic=class extends Rc{constructor(e){super(e),this.fieldPatternPredicate=zo}};class Nc extends se.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Nc.primaryClass)}}const Cc=Nc;class $c extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Cc,this.specPath=X(["value"])}}const kc=$c;class qc extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Ya,this.specPath=X(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Dc=qc;const Bc=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Lc extends se.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Lc.primaryClass)}}const Uc=Lc;class Vc extends(Fo(oc,ic)){constructor(e){super(e),this.element=new Uc}ArrayElement(e){return e.forEach((e=>{const t=dc(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const Hc=Vc;class Gc extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Qa,this.specPath=X(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Wc=Gc;class zc extends se.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(zc.primaryClass)}}const Zc=zc;class Kc extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Zc,this.specPath=X(["document","objects","ServerVariable"])}}const Jc=Kc;class Yc extends(Fo(_c,ic)){constructor(e){super(e),this.element=new mi,this.specPath=X(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const Xc=Yc;const Qc=class extends oc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ya(e,X(t),Q))),s=Aa(t)(e);return this.element=this.toRefractedElement(s,e),Ys}},el=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vn||e(r)&&t("callback",r)&&s("object",r))),tl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gn||e(r)&&t("components",r)&&s("object",r))),sl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zn||e(r)&&t("contact",r)&&s("object",r))),rl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qn||e(r)&&t("example",r)&&s("object",r))),nl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ti||e(r)&&t("externalDocumentation",r)&&s("object",r))),il=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ri||e(r)&&t("header",r)&&s("object",r))),ol=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ii||e(r)&&t("info",r)&&s("object",r))),al=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ai||e(r)&&t("license",r)&&s("object",r))),cl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof li||e(r)&&t("link",r)&&s("object",r))),ll=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof gi||e(r)&&t("openapi",r)&&s("string",r))),ul=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof vi||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),ml=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof wi||e(r)&&t("operation",r)&&s("object",r))),dl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof xi||e(r)&&t("parameter",r)&&s("object",r))),pl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ji||e(r)&&t("pathItem",r)&&s("object",r))),hl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Pi||e(r)&&t("paths",r)&&s("object",r))),_l=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mi||e(r)&&t("reference",r)&&s("object",r))),fl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fi||e(r)&&t("requestBody",r)&&s("object",r))),gl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ii||e(r)&&t("response",r)&&s("object",r))),yl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ci||e(r)&&t("responses",r)&&s("object",r))),vl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ga||e(r)&&t("schema",r)&&s("object",r))),bl=e=>Gr(e)&&e.classes.includes("boolean-json-schema"),wl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof za||e(r)&&t("securityRequirement",r)&&s("object",r))),El=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ka||e(r)&&t("securityScheme",r)&&s("object",r))),xl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ya||e(r)&&t("server",r)&&s("object",r))),Sl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qa||e(r)&&t("serverVariable",r)&&s("object",r))),jl=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof mi||e(r)&&t("mediaType",r)&&s("object",r))),Ol=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Uc||e(n)&&t("array",n)&&s("array",n)&&r("servers",n)));class Pl extends(Fo(Qc,ic)){constructor(e){super(e),this.alternator=[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Qc.prototype.enter.call(this,e);return _l(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Al=Pl;class Ml extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("examples"),this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Tl=Ml;class Fl extends se.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Fl.primaryClass),this.classes.push("examples")}}const Rl=Fl;const Il=class extends Tl{constructor(e){super(e),this.element=new Rl}};class Nl extends se.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Nl.primaryClass)}}const Cl=Nl;class $l extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Cl,this.specPath=X(["document","objects","Encoding"])}}const kl=$l;class ql extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new za,this.specPath=X(["value"])}}const Dl=ql;class Bl extends se.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Bl.primaryClass)}}const Ll=Bl;class Ul extends(Fo(oc,ic)){constructor(e){super(e),this.element=new Ll}ArrayElement(e){return e.forEach((e=>{if(Wr(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(ln(e))})),this.copyMetaAndAttributes(e,this.element),Ys}}const Vl=Ul;class Hl extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Gn,this.specPath=X(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Gl=Hl;class Wl extends(Fo(_c,ic)){constructor(e){super(e),this.element=new tc,this.specPath=X(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const zl=Wl;class Zl extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Mi,this.specPath=X(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return Ur(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Kl=Zl;const Jl=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Yl extends(Fo(_c,ic)){constructor(e){super(e),this.element=new xi,this.specPath=X(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return Wr(this.element.contentProp)&&this.element.contentProp.filter(jl).forEach(((e,t)=>{e.setMetaProperty("media-type",no(t))})),t}}const Xl=Yl;class Ql extends(Fo(Qc,ic)){constructor(e){super(e),this.alternator=[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Qc.prototype.enter.call(this,e);return _l(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const eu=Ql;class tu extends(Fo(_c,ic)){constructor(e){super(e),this.element=new ri,this.specPath=X(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const su=tu;class ru extends(Fo(Qc,ic)){constructor(e){super(e),this.alternator=[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Qc.prototype.enter.call(this,e);return _l(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const nu=ru;class iu extends se.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(iu.primaryClass),this.classes.push("examples")}}const ou=iu;const au=class extends Tl{constructor(e){super(e),this.element=new ou}};class cu extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("content"),this.specPath=X(["document","objects","MediaType"])}}const lu=cu;class uu extends se.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(uu.primaryClass),this.classes.push("content")}}const mu=uu;const du=class extends lu{constructor(e){super(e),this.element=new mu}};class pu extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Ga,this.specPath=X(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const hu=pu,_u=Na.visitors.document.objects.JSONSchema.fixedFields.allOf;const fu=class extends _u{ArrayElement(e){const t=_u.prototype.ArrayElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},gu=Na.visitors.document.objects.JSONSchema.fixedFields.anyOf;const yu=class extends gu{ArrayElement(e){const t=gu.prototype.ArrayElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},vu=Na.visitors.document.objects.JSONSchema.fixedFields.oneOf;const bu=class extends vu{ArrayElement(e){const t=vu.prototype.ArrayElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},wu=Na.visitors.document.objects.JSONSchema.fixedFields.items;const Eu=class extends wu{ObjectElement(e){const t=wu.prototype.ObjectElement.call(this,e);return _l(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},xu=Na.visitors.document.objects.JSONSchema.fixedFields.properties;const Su=class extends xu{ObjectElement(e){const t=xu.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},ju=Na.visitors.document.objects.JSONSchema.fixedFields.type;const Ou=class extends ju{ArrayElement(e){return this.enter(e)}},Pu=Na.visitors.JSONSchemaOrJSONReferenceVisitor;const Au=class extends Pu{ObjectElement(e){const t=Pu.prototype.enter.call(this,e);return _l(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Mu extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Kn,this.specPath=X(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Tu=Mu;class Fu extends se.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(Fu.primaryClass)}}const Ru=Fu;class Iu extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Ru,this.specPath=X(["value"])}}const Nu=Iu;class Cu extends(Fo(_c,ic)){constructor(e){super(e),this.element=new rc,this.specPath=X(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const $u=Cu;class ku extends se.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(ku.primaryClass),this.classes.push("examples")}}const qu=ku;const Du=class extends Tl{constructor(e){super(e),this.element=new qu}};class Bu extends se.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Bu.primaryClass),this.classes.push("content")}}const Lu=Bu;const Uu=class extends lu{constructor(e){super(e),this.element=new Lu}};class Vu extends se.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(Vu.primaryClass)}}const Hu=Vu;class Gu extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Hu,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Wu=Gu;class zu extends se.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(zu.primaryClass)}}const Zu=zu;class Ku extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Zu,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(gl).forEach(((e,t)=>{e.setMetaProperty("http-status-code",no(t))})),t}}const Ju=Ku;class Yu extends se.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Yu.primaryClass),this.classes.push("parameters")}}const Xu=Yu;class Qu extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Xu,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const em=Qu;class tm extends se.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(tm.primaryClass),this.classes.push("examples")}}const sm=tm;class rm extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new sm,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const nm=rm;class im extends se.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(im.primaryClass)}}const om=im;class am extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new om,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const cm=am;class lm extends se.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(lm.primaryClass)}}const um=lm;class mm extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new um,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(il).forEach(((e,t)=>{e.setMetaProperty("header-name",no(t))})),t}}const dm=mm;class pm extends se.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(pm.primaryClass)}}const hm=pm;class _m extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new hm,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const fm=_m;class gm extends se.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(gm.primaryClass)}}const ym=gm;class vm extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new ym,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const bm=vm;class wm extends se.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(wm.primaryClass)}}const Em=wm;class xm extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Em,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Sm=xm;class jm extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Qn,this.specPath=X(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return Ur(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Om=jm;const Pm=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Am extends(Fo(_c,ic)){constructor(e){super(e),this.element=new ti,this.specPath=X(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Mm=Am;class Tm extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Yn,this.specPath=X(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return Wr(this.element.headers)&&this.element.headers.filter(il).forEach(((e,t)=>{e.setMetaProperty("header-name",no(t))})),t}}const Fm=Tm;class Rm extends se.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Rm.primaryClass)}}const Im=Rm;class Nm extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Im,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!il(e))return;const s=no(t);e.setMetaProperty("headerName",s)})),t}}const Cm=Nm;class $m extends(Fo(Rc,ic)){constructor(e){super(e),this.element=new Pi,this.specPath=X(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Yi}ObjectElement(e){const t=Rc.prototype.ObjectElement.call(this,e);return this.element.filter(pl).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",ln(t))})),t}}const km=$m;class qm extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Fi,this.specPath=X(["document","objects","RequestBody"])}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return Wr(this.element.contentProp)&&this.element.contentProp.filter(jl).forEach(((e,t)=>{e.setMetaProperty("media-type",no(t))})),t}}const Dm=qm;class Bm extends se.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Bm.primaryClass),this.classes.push("content")}}const Lm=Bm;const Um=class extends lu{constructor(e){super(e),this.element=new Lm}};class Vm extends(Fo(Rc,ic)){constructor(e){super(e),this.element=new Vn,this.specPath=X(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(pl).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",no(t))})),t}}const Hm=Vm;class Gm extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Ii,this.specPath=X(["document","objects","Response"])}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return Wr(this.element.contentProp)&&this.element.contentProp.filter(jl).forEach(((e,t)=>{e.setMetaProperty("media-type",no(t))})),Wr(this.element.headers)&&this.element.headers.filter(il).forEach(((e,t)=>{e.setMetaProperty("header-name",no(t))})),t}}const Wm=Gm;class zm extends se.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(zm.primaryClass)}}const Zm=zm;class Km extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Zm,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!il(e))return;const s=no(t);e.setMetaProperty("header-name",s)})),t}}const Jm=Km;class Ym extends se.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(Ym.primaryClass),this.classes.push("content")}}const Xm=Ym;const Qm=class extends lu{constructor(e){super(e),this.element=new Xm}};class ed extends se.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(ed.primaryClass)}}const td=ed;class sd extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new td,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const rd=sd;function nd(e){return"[object Number]"===Object.prototype.toString.call(e)}const id=o((function(e,t){if(!nd(e)||!nd(t))throw new TypeError("Both arguments to range must be numbers");for(var s=Array(e<t?t-e:0),r=e<0?t+Math.abs(e):t-e,n=0;n<r;)s[n]=n+e,n+=1;return s}));function od(e,t,s){var r,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?e in s._items[n]||(t&&(s._items[n][e]=!0),!1):(t&&(s._items[n]={},s._items[n][e]=!0),!1);case"boolean":if(n in s._items){var i=e?1:0;return!!s._items[n][i]||(t&&(s._items[n][i]=!0),!1)}return t&&(s._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?!!ye(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1);case"undefined":return!!s._items[n]||(t&&(s._items[n]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in s._items?!!ye(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1)}}const ad=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!od(e,!0,this)},e.prototype.has=function(e){return od(e,!1,this)},e}();const cd=o((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new ad,a=0;a<i;a+=1)o.add(t[a]);for(;r<n;)o.add(e[r])&&(s[s.length]=e[r]),r+=1;return s}));class ld extends(Fo(_c,Rc)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:s}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...s,...cd(e.keys(),t)],_c.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Rc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Ys}}const ud=ld;class md extends(Fo(ud,ic)){constructor(e){super(e),this.element=new Ci,this.specPathFixedFields=X(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>mc(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${id(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(gl).forEach(((e,t)=>{const s=ln(t);this.fieldPatternPredicate(no(s))&&e.setMetaProperty("http-status-code",s)})),t}}const dd=md;class pd extends(Fo(Qc,ic)){constructor(e){super(e),this.alternator=[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Qc.prototype.enter.call(this,e);return _l(this.element)?this.element.setMetaProperty("referenced-element","response"):gl(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const hd=pd;class _d extends(Fo(_c,ic)){constructor(e){super(e),this.element=new wi,this.specPath=X(["document","objects","Operation"])}}const fd=_d;class gd extends se.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(gd.primaryClass)}}const yd=gd;const vd=class extends ic{constructor(e){super(e),this.element=new yd}ArrayElement(e){return this.element=this.element.concat(ln(e)),Ys}};class bd extends se.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(bd.primaryClass),this.classes.push("parameters")}}const wd=bd;class Ed extends(Fo(oc,ic)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=mc(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);_l(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const xd=Ed;const Sd=class extends xd{constructor(e){super(e),this.element=new wd}};const jd=class extends Qc{constructor(e){super(e),this.alternator=[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=Qc.prototype.enter.call(this,e);return _l(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Od extends se.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Od.primaryClass)}}const Pd=Od;class Ad extends(Fo(Ic,ic)){specPath;constructor(e){super(e),this.element=new Pd,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Md=Ad;class Td extends se.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Td.primaryClass),this.classes.push("security")}}const Fd=Td;class Rd extends(Fo(oc,ic)){constructor(e){super(e),this.element=new Fd}ArrayElement(e){return e.forEach((e=>{const t=Wr(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const Id=Rd;class Nd extends se.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Nd.primaryClass),this.classes.push("servers")}}const Cd=Nd;const $d=class extends Hc{constructor(e){super(e),this.element=new Cd}};class kd extends(Fo(_c,ic)){constructor(e){super(e),this.element=new ji,this.specPath=X(["document","objects","PathItem"])}ObjectElement(e){const t=_c.prototype.ObjectElement.call(this,e);return this.element.filter(ml).forEach(((e,t)=>{const s=ln(t);s.content=no(s).toUpperCase(),e.setMetaProperty("http-method",s)})),Ur(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const qd=kd;const Dd=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Bd extends se.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Bd.primaryClass),this.classes.push("servers")}}const Ld=Bd;const Ud=class extends Hc{constructor(e){super(e),this.element=new Ld}};class Vd extends se.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Vd.primaryClass),this.classes.push("parameters")}}const Hd=Vd;const Gd=class extends xd{constructor(e){super(e),this.element=new Hd}};class Wd extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Ka,this.specPath=X(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const zd=Wd;class Zd extends(Fo(_c,ic)){constructor(e){super(e),this.element=new _i,this.specPath=X(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Kd=Zd;class Jd extends(Fo(_c,ic)){constructor(e){super(e),this.element=new pi,this.specPath=X(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const Yd=Jd;class Xd extends se.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(Xd.primaryClass)}}const Qd=Xd;class ep extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Qd,this.specPath=X(["value"])}}const tp=ep;class sp extends se.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(sp.primaryClass)}}const rp=sp;class np extends(Fo(oc,ic)){constructor(e){super(e),this.element=new rp}ArrayElement(e){return e.forEach((e=>{const t=pc(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Ys}}const ip=np,{fixedFields:op}=Na.visitors.document.objects.JSONSchema,ap={visitors:{value:ic,document:{objects:{OpenApi:{$visitor:gc,fixedFields:{openapi:vc,info:{$ref:"#/visitors/document/objects/Info"},servers:Hc,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Vl,tags:ip,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Ec,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:xc}},Contact:{$visitor:jc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Pc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Dc,fixedFields:{url:Bc,description:{$ref:"#/visitors/value"},variables:Jc}},ServerVariable:{$visitor:Wc,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Gl,fixedFields:{schemas:Wu,responses:Ju,parameters:em,examples:nm,requestBodies:cm,headers:dm,securitySchemes:fm,links:bm,callbacks:Sm}},Paths:{$visitor:km},PathItem:{$visitor:qd,fixedFields:{$ref:Dd,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:Ud,parameters:Gd}},Operation:{$visitor:fd,fixedFields:{tags:vd,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Sd,requestBody:jd,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Md,deprecated:{$ref:"#/visitors/value"},security:Id,servers:$d}},ExternalDocumentation:{$visitor:Mm,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Xl,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:Du,content:Uu}},RequestBody:{$visitor:Dm,fixedFields:{description:{$ref:"#/visitors/value"},content:Um,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Xc,fixedFields:{schema:Al,example:{$ref:"#/visitors/value"},examples:Il,encoding:kl}},Encoding:{$visitor:Fm,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Cm,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:dd,fixedFields:{default:hd}},Response:{$visitor:Wm,fixedFields:{description:{$ref:"#/visitors/value"},headers:Jm,content:Qm,links:rd}},Callback:{$visitor:Hm},Example:{$visitor:Om,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Pm}},Link:{$visitor:Mc,fixedFields:{operationRef:Tc,operationId:Fc,parameters:kc,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:nu,example:{$ref:"#/visitors/value"},examples:au,content:du}},Tag:{$visitor:zl,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Kl,fixedFields:{$ref:Jl}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:hu,fixedFields:{title:op.title,multipleOf:op.multipleOf,maximum:op.maximum,exclusiveMaximum:op.exclusiveMaximum,minimum:op.minimum,exclusiveMinimum:op.exclusiveMinimum,maxLength:op.maxLength,minLength:op.minLength,pattern:op.pattern,maxItems:op.maxItems,minItems:op.minItems,uniqueItems:op.uniqueItems,maxProperties:op.maxProperties,minProperties:op.minProperties,required:op.required,enum:op.enum,type:Ou,allOf:fu,anyOf:yu,oneOf:bu,not:Au,items:Eu,properties:Su,additionalProperties:Au,description:op.description,format:op.format,default:op.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:Tu,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Nu}},XML:{$visitor:$u,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:zd,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:Kd,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:Yd,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:tp}},SecurityRequirement:{$visitor:Dl}},extension:{$visitor:bc}}}},cp=e=>{if(Lr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},lp={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"],...fn},up={namespace:e=>{const{base:t}=e;return t.register("callback",Vn),t.register("components",Gn),t.register("contact",zn),t.register("discriminator",Kn),t.register("encoding",Yn),t.register("example",Qn),t.register("externalDocumentation",ti),t.register("header",ri),t.register("info",ii),t.register("license",ai),t.register("link",li),t.register("mediaType",mi),t.register("oAuthFlow",pi),t.register("oAuthFlows",_i),t.register("openapi",gi),t.register("openApi3_0",vi),t.register("operation",wi),t.register("parameter",xi),t.register("pathItem",ji),t.register("paths",Pi),t.register("reference",Mi),t.register("requestBody",Fi),t.register("response",Ii),t.register("responses",Ci),t.register("schema",Ga),t.register("securityRequirement",za),t.register("securityScheme",Ka),t.register("server",Ya),t.register("serverVariable",Qa),t.register("tag",tc),t.register("xml",rc),t}},mp=()=>{const e=it(up);return{predicates:{...s,isElement:Lr,isStringElement:Ur,isArrayElement:zr,isObjectElement:Wr,isMemberElement:Zr,includesClasses:nn,hasElementSourceMap:sn},namespace:e}},dp=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,se.e)(e),n=Ji(ap),i=new(wn(t,n))({specObj:n});return gn(r,i),Rn(i.element,s,{toolboxCreator:mp,visitorOptions:{keyMap:lp,nodeTypeGetter:cp}})},pp=e=>(t,s={})=>dp(t,{specPath:e,...s});Vn.refract=pp(["visitors","document","objects","Callback","$visitor"]),Gn.refract=pp(["visitors","document","objects","Components","$visitor"]),zn.refract=pp(["visitors","document","objects","Contact","$visitor"]),Qn.refract=pp(["visitors","document","objects","Example","$visitor"]),Kn.refract=pp(["visitors","document","objects","Discriminator","$visitor"]),Yn.refract=pp(["visitors","document","objects","Encoding","$visitor"]),ti.refract=pp(["visitors","document","objects","ExternalDocumentation","$visitor"]),ri.refract=pp(["visitors","document","objects","Header","$visitor"]),ii.refract=pp(["visitors","document","objects","Info","$visitor"]),ai.refract=pp(["visitors","document","objects","License","$visitor"]),li.refract=pp(["visitors","document","objects","Link","$visitor"]),mi.refract=pp(["visitors","document","objects","MediaType","$visitor"]),pi.refract=pp(["visitors","document","objects","OAuthFlow","$visitor"]),_i.refract=pp(["visitors","document","objects","OAuthFlows","$visitor"]),gi.refract=pp(["visitors","document","objects","OpenApi","fixedFields","openapi"]),vi.refract=pp(["visitors","document","objects","OpenApi","$visitor"]),wi.refract=pp(["visitors","document","objects","Operation","$visitor"]),xi.refract=pp(["visitors","document","objects","Parameter","$visitor"]),ji.refract=pp(["visitors","document","objects","PathItem","$visitor"]),Pi.refract=pp(["visitors","document","objects","Paths","$visitor"]),Mi.refract=pp(["visitors","document","objects","Reference","$visitor"]),Fi.refract=pp(["visitors","document","objects","RequestBody","$visitor"]),Ii.refract=pp(["visitors","document","objects","Response","$visitor"]),Ci.refract=pp(["visitors","document","objects","Responses","$visitor"]),Ga.refract=pp(["visitors","document","objects","Schema","$visitor"]),za.refract=pp(["visitors","document","objects","SecurityRequirement","$visitor"]),Ka.refract=pp(["visitors","document","objects","SecurityScheme","$visitor"]),Ya.refract=pp(["visitors","document","objects","Server","$visitor"]),Qa.refract=pp(["visitors","document","objects","ServerVariable","$visitor"]),tc.refract=pp(["visitors","document","objects","Tag","$visitor"]),rc.refract=pp(["visitors","document","objects","XML","$visitor"]);const hp=class extends Vn{};const _p=class extends Gn{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const fp=class extends zn{};const gp=class extends Kn{};const yp=class extends Yn{};const vp=class extends Qn{};const bp=class extends ti{};const wp=class extends ri{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ep=class extends ii{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class xp extends se.Om{static default=new xp("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const Sp=xp;const jp=class extends ai{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Op=class extends li{};const Pp=class extends mi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ap=class extends pi{};const Mp=class extends _i{};const Tp=class extends gi{};class Fp extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Rp=Fp;const Ip=class extends wi{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Np=class extends xi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Cp=class extends ji{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}};const $p=class extends Pi{};class kp extends Mi{}Object.defineProperty(kp.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(kp.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const qp=kp;const Dp=class extends Fi{};const Bp=class extends Ii{};const Lp=class extends Ci{};class Up extends se.Sh{constructor(e,t,s){super(e,t,s),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",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 if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get const(){return this.get("const")}set const(e){this.set("const",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 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 maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get 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 dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",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 deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}}const Vp=Up;const Hp=class extends za{};const Gp=class extends Ka{};const Wp=class extends Ya{};const zp=class extends Qa{};const Zp=class extends tc{};const Kp=class extends rc{};class Jp extends(Fo(_c,ic)){constructor(e){super(e),this.element=new Rp,this.specPath=X(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,_c.prototype.ObjectElement.call(this,e)}}const Yp=Jp,Xp=ap.visitors.document.objects.Info.$visitor;const Qp=class extends Xp{constructor(e){super(e),this.element=new Ep}},eh=ap.visitors.document.objects.Contact.$visitor;const th=class extends eh{constructor(e){super(e),this.element=new fp}},sh=ap.visitors.document.objects.License.$visitor;const rh=class extends sh{constructor(e){super(e),this.element=new jp}},nh=ap.visitors.document.objects.Link.$visitor;const ih=class extends nh{constructor(e){super(e),this.element=new Op}};class oh extends(Fo(oc,ic)){StringElement(e){const t=new Sp(no(e));return this.copyMetaAndAttributes(e,t),this.element=t,Ys}}const ah=oh,ch=ap.visitors.document.objects.Server.$visitor;const lh=class extends ch{constructor(e){super(e),this.element=new Wp}},uh=ap.visitors.document.objects.ServerVariable.$visitor;const mh=class extends uh{constructor(e){super(e),this.element=new zp}},dh=ap.visitors.document.objects.MediaType.$visitor;const ph=class extends dh{constructor(e){super(e),this.element=new Pp}},hh=ap.visitors.document.objects.SecurityRequirement.$visitor;const _h=class extends hh{constructor(e){super(e),this.element=new Hp}},fh=ap.visitors.document.objects.Components.$visitor;const gh=class extends fh{constructor(e){super(e),this.element=new _p}},yh=ap.visitors.document.objects.Tag.$visitor;const vh=class extends yh{constructor(e){super(e),this.element=new Zp}},bh=ap.visitors.document.objects.Reference.$visitor;const wh=class extends bh{constructor(e){super(e),this.element=new qp}},Eh=ap.visitors.document.objects.Parameter.$visitor;const xh=class extends Eh{constructor(e){super(e),this.element=new Np}},Sh=ap.visitors.document.objects.Header.$visitor;const jh=class extends Sh{constructor(e){super(e),this.element=new wp}},Oh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof hp||e(r)&&t("callback",r)&&s("object",r))),Ph=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof _p||e(r)&&t("components",r)&&s("object",r))),Ah=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof fp||e(r)&&t("contact",r)&&s("object",r))),Mh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vp||e(r)&&t("example",r)&&s("object",r))),Th=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof bp||e(r)&&t("externalDocumentation",r)&&s("object",r))),Fh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof wp||e(r)&&t("header",r)&&s("object",r))),Rh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ep||e(r)&&t("info",r)&&s("object",r))),Ih=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Sp||e(r)&&t("jsonSchemaDialect",r)&&s("string",r))),Nh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jp||e(r)&&t("license",r)&&s("object",r))),Ch=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Op||e(r)&&t("link",r)&&s("object",r))),$h=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Tp||e(r)&&t("openapi",r)&&s("string",r))),kh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Rp||e(n)&&t("openApi3_1",n)&&s("object",n)&&r("api",n))),qh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ip||e(r)&&t("operation",r)&&s("object",r))),Dh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Np||e(r)&&t("parameter",r)&&s("object",r))),Bh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Cp||e(r)&&t("pathItem",r)&&s("object",r))),Lh=e=>{if(!Bh(e))return!1;if(!Ur(e.$ref))return!1;const t=no(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Uh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $p||e(r)&&t("paths",r)&&s("object",r))),Vh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qp||e(r)&&t("reference",r)&&s("object",r))),Hh=e=>{if(!Vh(e))return!1;if(!Ur(e.$ref))return!1;const t=no(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Gh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Dp||e(r)&&t("requestBody",r)&&s("object",r))),Wh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bp||e(r)&&t("response",r)&&s("object",r))),zh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Lp||e(r)&&t("responses",r)&&s("object",r))),Zh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vp||e(r)&&t("schema",r)&&s("object",r))),Kh=e=>Gr(e)&&e.classes.includes("boolean-json-schema"),Jh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hp||e(r)&&t("securityRequirement",r)&&s("object",r))),Yh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gp||e(r)&&t("securityScheme",r)&&s("object",r))),Xh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wp||e(r)&&t("server",r)&&s("object",r))),Qh=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zp||e(r)&&t("serverVariable",r)&&s("object",r))),e_=Br((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Pp||e(r)&&t("mediaType",r)&&s("object",r)));const t_=class{parent;constructor({parent:e}){this.parent=e}};class s_ extends(Fo(_c,t_,ic)){constructor(e){super(e),this.element=new Vp,this.specPath=X(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Sp.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=_c.prototype.ObjectElement.call(this,e);return Ur(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){const t=super.enter(e);return this.element.classes.push("boolean-json-schema"),t}getJsonSchemaDialect(){let e;return e=void 0!==this.openApiSemanticElement&&Ih(this.openApiSemanticElement.jsonSchemaDialect)?no(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Ur(this.openApiGenericElement.get("jsonSchemaDialect"))?no(this.openApiGenericElement.get("jsonSchemaDialect")):no(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(ee(this.parent)&&!Ur(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(Zh(this.parent)&&!Ur(e.get("$schema"))){const e=c(no(this.parent.meta.get("inherited$schema")),no(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?ln(this.parent.getMetaProperty("inherited$id",[])):new se.wE,s=no(e.get("$id"));zo(s)&&t.push(s),this.element.setMetaProperty("inherited$id",t)}}const r_=s_;const n_=class extends ic{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const i_=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class o_ extends(Fo(Ic,t_,ic)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=X(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const a_=o_;class c_ extends(Fo(oc,t_,ic)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Wr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=ln(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ys}}const l_=c_;class u_ extends(Fo(oc,t_,ic)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Wr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=ln(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ys}}const m_=u_;class d_ extends(Fo(oc,t_,ic)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Wr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=ln(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ys}}const p_=d_;class h_ extends(Fo(Ic,t_,ic)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=X(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const __=h_;class f_ extends(Fo(oc,t_,ic)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Wr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=ln(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ys}}const g_=f_;class y_ extends(Fo(Ic,t_,ic)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-properties"),this.specPath=X(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const v_=y_;class b_ extends(Fo(Ic,t_,ic)){constructor(e){super(e),this.element=new se.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=X(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const w_=b_;const E_=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}};const x_=class extends ic{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}};const S_=class extends ic{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const j_=class extends ic{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},O_=ap.visitors.document.objects.Discriminator.$visitor;const P_=class extends O_{constructor(e){super(e),this.element=new gp,this.canSupportSpecificationExtensions=!0}},A_=ap.visitors.document.objects.XML.$visitor;const M_=class extends A_{constructor(e){super(e),this.element=new Kp}};class T_ extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new Hu,this.specPath=X(["document","objects","Schema"])}}const F_=T_;class R_ extends se.Sh{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(R_.primaryClass)}}const I_=R_;class N_ extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new I_,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(Vh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const C_=N_,$_=ap.visitors.document.objects.Example.$visitor;const k_=class extends $_{constructor(e){super(e),this.element=new vp}},q_=ap.visitors.document.objects.ExternalDocumentation.$visitor;const D_=class extends q_{constructor(e){super(e),this.element=new bp}},B_=ap.visitors.document.objects.Encoding.$visitor;const L_=class extends B_{constructor(e){super(e),this.element=new yp}},U_=ap.visitors.document.objects.Paths.$visitor;const V_=class extends U_{constructor(e){super(e),this.element=new $p}},H_=ap.visitors.document.objects.RequestBody.$visitor;const G_=class extends H_{constructor(e){super(e),this.element=new Dp}},W_=ap.visitors.document.objects.Callback.$visitor;const z_=class extends W_{constructor(e){super(e),this.element=new hp,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=W_.prototype.ObjectElement.call(this,e);return this.element.filter(Vh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},Z_=ap.visitors.document.objects.Response.$visitor;const K_=class extends Z_{constructor(e){super(e),this.element=new Bp}},J_=ap.visitors.document.objects.Responses.$visitor;const Y_=class extends J_{constructor(e){super(e),this.element=new Lp}},X_=ap.visitors.document.objects.Operation.$visitor;const Q_=class extends X_{constructor(e){super(e),this.element=new Ip}},ef=ap.visitors.document.objects.PathItem.$visitor;const tf=class extends ef{constructor(e){super(e),this.element=new Cp}},sf=ap.visitors.document.objects.SecurityScheme.$visitor;const rf=class extends sf{constructor(e){super(e),this.element=new Gp}},nf=ap.visitors.document.objects.OAuthFlows.$visitor;const of=class extends nf{constructor(e){super(e),this.element=new Mp}},af=ap.visitors.document.objects.OAuthFlow.$visitor;const cf=class extends af{constructor(e){super(e),this.element=new Ap}};class lf extends se.Sh{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(lf.primaryClass)}}const uf=lf;class mf extends(Fo(Ic,ic)){constructor(e){super(e),this.element=new uf,this.specPath=e=>mc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Ic.prototype.ObjectElement.call(this,e);return this.element.filter(Vh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Bh).forEach(((e,t)=>{e.setMetaProperty("webhook-name",no(t))})),t}}const df=mf,pf={visitors:{value:ap.visitors.value,document:{objects:{OpenApi:{$visitor:Yp,fixedFields:{openapi:ap.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:ah,servers:ap.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:df,components:{$ref:"#/visitors/document/objects/Components"},security:ap.visitors.document.objects.OpenApi.fixedFields.security,tags:ap.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Qp,fixedFields:{title:ap.visitors.document.objects.Info.fixedFields.title,description:ap.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:ap.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:ap.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:th,fixedFields:{name:ap.visitors.document.objects.Contact.fixedFields.name,url:ap.visitors.document.objects.Contact.fixedFields.url,email:ap.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:rh,fixedFields:{name:ap.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:ap.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:lh,fixedFields:{url:ap.visitors.document.objects.Server.fixedFields.url,description:ap.visitors.document.objects.Server.fixedFields.description,variables:ap.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:mh,fixedFields:{enum:ap.visitors.document.objects.ServerVariable.fixedFields.enum,default:ap.visitors.document.objects.ServerVariable.fixedFields.default,description:ap.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:gh,fixedFields:{schemas:F_,responses:ap.visitors.document.objects.Components.fixedFields.responses,parameters:ap.visitors.document.objects.Components.fixedFields.parameters,examples:ap.visitors.document.objects.Components.fixedFields.examples,requestBodies:ap.visitors.document.objects.Components.fixedFields.requestBodies,headers:ap.visitors.document.objects.Components.fixedFields.headers,securitySchemes:ap.visitors.document.objects.Components.fixedFields.securitySchemes,links:ap.visitors.document.objects.Components.fixedFields.links,callbacks:ap.visitors.document.objects.Components.fixedFields.callbacks,pathItems:C_}},Paths:{$visitor:V_},PathItem:{$visitor:tf,fixedFields:{$ref:ap.visitors.document.objects.PathItem.fixedFields.$ref,summary:ap.visitors.document.objects.PathItem.fixedFields.summary,description:ap.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:ap.visitors.document.objects.PathItem.fixedFields.servers,parameters:ap.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:Q_,fixedFields:{tags:ap.visitors.document.objects.Operation.fixedFields.tags,summary:ap.visitors.document.objects.Operation.fixedFields.summary,description:ap.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:ap.visitors.document.objects.Operation.fixedFields.operationId,parameters:ap.visitors.document.objects.Operation.fixedFields.parameters,requestBody:ap.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:ap.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:ap.visitors.document.objects.Operation.fixedFields.deprecated,security:ap.visitors.document.objects.Operation.fixedFields.security,servers:ap.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:D_,fixedFields:{description:ap.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:ap.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:xh,fixedFields:{name:ap.visitors.document.objects.Parameter.fixedFields.name,in:ap.visitors.document.objects.Parameter.fixedFields.in,description:ap.visitors.document.objects.Parameter.fixedFields.description,required:ap.visitors.document.objects.Parameter.fixedFields.required,deprecated:ap.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:ap.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:ap.visitors.document.objects.Parameter.fixedFields.style,explode:ap.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:ap.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:ap.visitors.document.objects.Parameter.fixedFields.example,examples:ap.visitors.document.objects.Parameter.fixedFields.examples,content:ap.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:G_,fixedFields:{description:ap.visitors.document.objects.RequestBody.fixedFields.description,content:ap.visitors.document.objects.RequestBody.fixedFields.content,required:ap.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:ph,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:ap.visitors.document.objects.MediaType.fixedFields.example,examples:ap.visitors.document.objects.MediaType.fixedFields.examples,encoding:ap.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:L_,fixedFields:{contentType:ap.visitors.document.objects.Encoding.fixedFields.contentType,headers:ap.visitors.document.objects.Encoding.fixedFields.headers,style:ap.visitors.document.objects.Encoding.fixedFields.style,explode:ap.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:ap.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Y_,fixedFields:{default:ap.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:K_,fixedFields:{description:ap.visitors.document.objects.Response.fixedFields.description,headers:ap.visitors.document.objects.Response.fixedFields.headers,content:ap.visitors.document.objects.Response.fixedFields.content,links:ap.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:z_},Example:{$visitor:k_,fixedFields:{summary:ap.visitors.document.objects.Example.fixedFields.summary,description:ap.visitors.document.objects.Example.fixedFields.description,value:ap.visitors.document.objects.Example.fixedFields.value,externalValue:ap.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:ih,fixedFields:{operationRef:ap.visitors.document.objects.Link.fixedFields.operationRef,operationId:ap.visitors.document.objects.Link.fixedFields.operationId,parameters:ap.visitors.document.objects.Link.fixedFields.parameters,requestBody:ap.visitors.document.objects.Link.fixedFields.requestBody,description:ap.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:jh,fixedFields:{description:ap.visitors.document.objects.Header.fixedFields.description,required:ap.visitors.document.objects.Header.fixedFields.required,deprecated:ap.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:ap.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:ap.visitors.document.objects.Header.fixedFields.style,explode:ap.visitors.document.objects.Header.fixedFields.explode,allowReserved:ap.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:ap.visitors.document.objects.Header.fixedFields.example,examples:ap.visitors.document.objects.Header.fixedFields.examples,content:ap.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:vh,fixedFields:{name:ap.visitors.document.objects.Tag.fixedFields.name,description:ap.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:wh,fixedFields:{$ref:ap.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:r_,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:n_,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:i_,$defs:a_,$comment:{$ref:"#/visitors/value"},allOf:l_,anyOf:m_,oneOf:p_,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:__,prefixItems:g_,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:v_,patternProperties:w_,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},type:E_,enum:x_,const:{$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"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxContains:{$ref:"#/visitors/value"},minContains:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},dependentRequired:S_,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},readOnly:{$ref:"#/visitors/value"},writeOnly:{$ref:"#/visitors/value"},examples:j_,format:{$ref:"#/visitors/value"},contentEncoding:{$ref:"#/visitors/value"},contentMediaType:{$ref:"#/visitors/value"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:P_,fixedFields:{propertyName:ap.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:ap.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:M_,fixedFields:{name:ap.visitors.document.objects.XML.fixedFields.name,namespace:ap.visitors.document.objects.XML.fixedFields.namespace,prefix:ap.visitors.document.objects.XML.fixedFields.prefix,attribute:ap.visitors.document.objects.XML.fixedFields.attribute,wrapped:ap.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:rf,fixedFields:{type:ap.visitors.document.objects.SecurityScheme.fixedFields.type,description:ap.visitors.document.objects.SecurityScheme.fixedFields.description,name:ap.visitors.document.objects.SecurityScheme.fixedFields.name,in:ap.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:ap.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:ap.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:ap.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:of,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:cf,fixedFields:{authorizationUrl:ap.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:ap.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:ap.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:ap.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:_h}},extension:{$visitor:ap.visitors.document.extension.$visitor}}}},hf=e=>{if(Lr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},_f={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...fn},ff=_e(as(/~/g,"~0"),as(/\//g,"~1"),encodeURIComponent);const gf=class extends Et{};const yf=class extends gf{tokens;constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}},vf=e=>{try{return 0===e.length?"":`/${e.map(ff).join("/")}`}catch(t){throw new yf("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}},bf={namespace:e=>{const{base:t}=e;return t.register("callback",hp),t.register("components",_p),t.register("contact",fp),t.register("discriminator",gp),t.register("encoding",yp),t.register("example",vp),t.register("externalDocumentation",bp),t.register("header",wp),t.register("info",Ep),t.register("jsonSchemaDialect",Sp),t.register("license",jp),t.register("link",Op),t.register("mediaType",Pp),t.register("oAuthFlow",Ap),t.register("oAuthFlows",Mp),t.register("openapi",Tp),t.register("openApi3_1",Rp),t.register("operation",Ip),t.register("parameter",Np),t.register("pathItem",Cp),t.register("paths",$p),t.register("reference",qp),t.register("requestBody",Dp),t.register("response",Bp),t.register("responses",Lp),t.register("schema",Vp),t.register("securityRequirement",Hp),t.register("securityScheme",Gp),t.register("server",Wp),t.register("serverVariable",zp),t.register("tag",Zp),t.register("xml",Kp),t}},wf=e=>{const t=e.reduce(((t,s,r)=>{if(Zr(s)){const e=String(no(s.key));t.push(e)}else if(zr(e[r-2])){const n=String(e[r-2].content.indexOf(s));t.push(n)}return t}),[]);return vf(t)},Ef=()=>{const e=it(bf);return{predicates:{...r,isElement:Lr,isStringElement:Ur,isArrayElement:zr,isObjectElement:Wr,isMemberElement:Zr,isServersElement:Ol,includesClasses:nn,hasElementSourceMap:sn},ancestorLineageToJSONPointer:wf,namespace:e}},xf=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,se.e)(e),n=Ji(pf),i=new(wn(t,n))({specObj:n});return gn(r,i),Rn(i.element,s,{toolboxCreator:Ef,visitorOptions:{keyMap:_f,nodeTypeGetter:hf}})},Sf=e=>(t,s={})=>xf(t,{specPath:e,...s});hp.refract=Sf(["visitors","document","objects","Callback","$visitor"]),_p.refract=Sf(["visitors","document","objects","Components","$visitor"]),fp.refract=Sf(["visitors","document","objects","Contact","$visitor"]),vp.refract=Sf(["visitors","document","objects","Example","$visitor"]),gp.refract=Sf(["visitors","document","objects","Discriminator","$visitor"]),yp.refract=Sf(["visitors","document","objects","Encoding","$visitor"]),bp.refract=Sf(["visitors","document","objects","ExternalDocumentation","$visitor"]),wp.refract=Sf(["visitors","document","objects","Header","$visitor"]),Ep.refract=Sf(["visitors","document","objects","Info","$visitor"]),Sp.refract=Sf(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),jp.refract=Sf(["visitors","document","objects","License","$visitor"]),Op.refract=Sf(["visitors","document","objects","Link","$visitor"]),Pp.refract=Sf(["visitors","document","objects","MediaType","$visitor"]),Ap.refract=Sf(["visitors","document","objects","OAuthFlow","$visitor"]),Mp.refract=Sf(["visitors","document","objects","OAuthFlows","$visitor"]),Tp.refract=Sf(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Rp.refract=Sf(["visitors","document","objects","OpenApi","$visitor"]),Ip.refract=Sf(["visitors","document","objects","Operation","$visitor"]),Np.refract=Sf(["visitors","document","objects","Parameter","$visitor"]),Cp.refract=Sf(["visitors","document","objects","PathItem","$visitor"]),$p.refract=Sf(["visitors","document","objects","Paths","$visitor"]),qp.refract=Sf(["visitors","document","objects","Reference","$visitor"]),Dp.refract=Sf(["visitors","document","objects","RequestBody","$visitor"]),Bp.refract=Sf(["visitors","document","objects","Response","$visitor"]),Lp.refract=Sf(["visitors","document","objects","Responses","$visitor"]),Vp.refract=Sf(["visitors","document","objects","Schema","$visitor"]),Hp.refract=Sf(["visitors","document","objects","SecurityRequirement","$visitor"]),Gp.refract=Sf(["visitors","document","objects","SecurityScheme","$visitor"]),Wp.refract=Sf(["visitors","document","objects","Server","$visitor"]),zp.refract=Sf(["visitors","document","objects","ServerVariable","$visitor"]),Zp.refract=Sf(["visitors","document","objects","Tag","$visitor"]),Kp.refract=Sf(["visitors","document","objects","XML","$visitor"]);const jf=i((function(e){return m(-1,e)}));const Of=class extends $i{};const Pf=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Of("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Of("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Of("latest method in MediaTypes class is not yet implemented.")}};class Af extends Pf{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(s)))||this.unknownMediaType}latest(e="generic"){return jf(this.filterByFormat(e))}}const Mf=new Af("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),Tf=new Af(...Mf.filterByFormat("generic"),...Mf.filterByFormat("yaml")),Ff=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m,Rf=async e=>Ff.test(e)&&await(async e=>{try{return!(await yt(e)).rootNode.isError}catch{return!1}})(e),If=async(e,t={})=>{const s=p({},"refractorOpts",t),r=h(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1}={})=>{const s=await yt(e);return Ln(s,{sourceMap:t})})(e,r),{result:i}=n;if(te(i)){const e=Rp.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},Nf=it(bf)})(),__webpack_exports__})()));
|