@swagger-api/apidom-parser-adapter-openapi-yaml-2 0.99.0 → 0.99.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiYaml2=t():e.apidomParserAdapterOpenApiYaml2=t()}(self,(()=>(()=>{var e={3103:(e,t,n)=>{var r=n(4715)(n(8942),"DataView");e.exports=r},5098:(e,t,n)=>{var r=n(3305),s=n(9361),i=n(1112),o=n(5276),a=n(5071);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1386:(e,t,n)=>{var r=n(2393),s=n(2049),i=n(7144),o=n(7452),a=n(3964);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9770:(e,t,n)=>{var r=n(4715)(n(8942),"Map");e.exports=r},8250:(e,t,n)=>{var r=n(9753),s=n(5681),i=n(88),o=n(4732),a=n(9068);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9413:(e,t,n)=>{var r=n(4715)(n(8942),"Promise");e.exports=r},4512:(e,t,n)=>{var r=n(4715)(n(8942),"Set");e.exports=r},3212:(e,t,n)=>{var r=n(8250),s=n(1877),i=n(8006);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},1340:(e,t,n)=>{var r=n(1386),s=n(4103),i=n(1779),o=n(4162),a=n(7462),c=n(6638);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},5650:(e,t,n)=>{var r=n(8942).Symbol;e.exports=r},1623:(e,t,n)=>{var r=n(8942).Uint8Array;e.exports=r},9270:(e,t,n)=>{var r=n(4715)(n(8942),"WeakMap");e.exports=r},9847:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}},358:(e,t,n)=>{var r=n(6137),s=n(3283),i=n(3142),o=n(5853),a=n(9632),c=n(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&s(e),p=!n&&!l&&o(e),h=!n&&!l&&!p&&c(e),m=n||l||p||h,f=m?r(e.length,String):[],d=f.length;for(var _ in e)!t&&!u.call(e,_)||m&&("length"==_||p&&("offset"==_||"parent"==_)||h&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||a(_,d))||f.push(_);return f}},1129:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}},6465:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},7034:(e,t,n)=>{var r=n(6285);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},8244:(e,t,n)=>{var r=n(1129),s=n(3142);e.exports=function(e,t,n){var i=t(e);return s(e)?i:r(i,n(e))}},7379:(e,t,n)=>{var r=n(5650),s=n(8870),i=n(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)?s(e):i(e)}},6027:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return s(e)&&"[object Arguments]"==r(e)}},4687:(e,t,n)=>{var r=n(353),s=n(547);e.exports=function e(t,n,i,o,a){return t===n||(null==t||null==n||!s(t)&&!s(n)?t!=t&&n!=n:r(t,n,i,o,e,a))}},353:(e,t,n)=>{var r=n(1340),s=n(3934),i=n(8861),o=n(1182),a=n(8486),c=n(3142),u=n(5853),l=n(8666),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,_,g){var y=c(e),v=c(t),w=y?h:a(e),b=v?h:a(t),E=(w=w==p?m:w)==m,x=(b=b==p?m:b)==m,S=w==b;if(S&&u(e)){if(!u(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||l(e)?s(e,t,n,d,_,g):i(e,t,w,n,d,_,g);if(!(1&n)){var P=E&&f.call(e,"__wrapped__"),j=x&&f.call(t,"__wrapped__");if(P||j){var O=P?e.value():e,A=j?t.value():t;return g||(g=new r),_(O,A,n,d,g)}}return!!S&&(g||(g=new r),o(e,t,n,d,_,g))}},9624:(e,t,n)=>{var r=n(3655),s=n(4759),i=n(1580),o=n(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,h=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(r(e)?h:a).test(o(e))}},674:(e,t,n)=>{var r=n(7379),s=n(5387),i=n(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[r(e)]}},195:(e,t,n)=>{var r=n(4882),s=n(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return s(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6137:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);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,n)=>{var r=n(8942)["__core-js_shared__"];e.exports=r},3934:(e,t,n)=>{var r=n(3212),s=n(6465),i=n(5568);e.exports=function(e,t,n,o,a,c){var u=1&n,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var f=-1,d=!0,_=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++f<l;){var g=e[f],y=t[f];if(o)var v=u?o(y,g,f,t,e,c):o(g,y,f,e,t,c);if(void 0!==v){if(v)continue;d=!1;break}if(_){if(!s(t,(function(e,t){if(!i(_,t)&&(g===e||a(g,e,n,o,c)))return _.push(t)}))){d=!1;break}}else if(g!==y&&!a(g,y,n,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},8861:(e,t,n)=>{var r=n(5650),s=n(1623),i=n(6285),o=n(3934),a=n(5894),c=n(7447),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,p,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=a;case"[object Set]":var f=1&r;if(m||(m=c),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;r|=2,h.set(e,t);var _=o(m(e),m(t),r,u,p,h);return h.delete(e),_;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},1182:(e,t,n)=>{var r=n(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,a){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var p=l;p--;){var h=u[p];if(!(c?h in t:s.call(t,h)))return!1}var m=a.get(e),f=a.get(t);if(m&&f)return m==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var _=c;++p<l;){var g=e[h=u[p]],y=t[h];if(i)var v=c?i(y,g,h,t,e,a):i(g,y,h,e,t,a);if(!(void 0===v?g===y||o(g,y,n,i,a):v)){d=!1;break}_||(_="constructor"==h)}if(d&&!_){var w=e.constructor,b=t.constructor;w==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(d=!1)}return a.delete(e),a.delete(t),d}},4967:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},393:(e,t,n)=>{var r=n(8244),s=n(7979),i=n(1211);e.exports=function(e){return r(e,i,s)}},4700:(e,t,n)=>{var r=n(9067);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},4715:(e,t,n)=>{var r=n(9624),s=n(155);e.exports=function(e,t){var n=s(e,t);return r(n)?n:void 0}},8870:(e,t,n)=>{var r=n(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var s=o.call(e);return r&&(t?e[a]=n:delete e[a]),s}},7979:(e,t,n)=>{var r=n(9847),s=n(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)})))}:s;e.exports=a},8486:(e,t,n)=>{var r=n(3103),s=n(9770),i=n(9413),o=n(4512),a=n(9270),c=n(7379),u=n(4066),l="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=u(r),_=u(s),g=u(i),y=u(o),v=u(a),w=c;(r&&w(new r(new ArrayBuffer(1)))!=f||s&&w(new s)!=l||i&&w(i.resolve())!=p||o&&w(new o)!=h||a&&w(new a)!=m)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return f;case _:return l;case g:return p;case y:return h;case v:return m}return t}),e.exports=w},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,n)=>{var r=n(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,n)=>{var r=n(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0}},5276:(e,t,n)=>{var r=n(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}},5071:(e,t,n)=>{var r=n(4497);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},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,n)=>{var r,s=n(1950),i=(r=/[^.]+$/.exec(s&&s.keys&&s.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 n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,n)=>{var r=n(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():s.call(t,n,1),--this.size,!0)}},7144:(e,t,n)=>{var r=n(7034);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7452:(e,t,n)=>{var r=n(7034);e.exports=function(e){return r(this.__data__,e)>-1}},3964:(e,t,n)=>{var r=n(7034);e.exports=function(e,t){var n=this.__data__,s=r(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}},9753:(e,t,n)=>{var r=n(5098),s=n(1386),i=n(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||s),string:new r}}},5681:(e,t,n)=>{var r=n(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,n)=>{var r=n(4700);e.exports=function(e){return r(this,e).get(e)}},4732:(e,t,n)=>{var r=n(4700);e.exports=function(e){return r(this,e).has(e)}},9068:(e,t,n)=>{var r=n(4700);e.exports=function(e,t){var n=r(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},4497:(e,t,n)=>{var r=n(4715)(Object,"create");e.exports=r},8121:(e,t,n)=>{var r=n(3766)(Object.keys,Object);e.exports=r},2306:(e,t,n)=>{e=n.nmd(e);var r=n(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&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(n){return e(t(n))}}},8942:(e,t,n)=>{var r=n(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=r||s||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},7447:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},4103:(e,t,n)=>{var r=n(1386);e.exports=function(){this.__data__=new r,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},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,n)=>{var r=n(1386),s=n(9770),i=n(8250);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.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,n)=>{var r=n(6027),s=n(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,n)=>{var r=n(3655),s=n(5387);e.exports=function(e){return null!=e&&s(e.length)&&!r(e)}},2563:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==r(e)}},5853:(e,t,n)=>{e=n.nmd(e);var r=n(8942),s=n(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)||s;e.exports=c},6343:(e,t,n)=>{var r=n(4687);e.exports=function(e,t){return r(e,t)}},3655:(e,t,n)=>{var r=n(7379),s=n(1580);e.exports=function(e){if(!s(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,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return"number"==typeof e||s(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,n)=>{var r=n(7379),s=n(3142),i=n(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==r(e)}},8666:(e,t,n)=>{var r=n(674),s=n(9460),i=n(2306),o=i&&i.isTypedArray,a=o?s(o):r;e.exports=a},1211:(e,t,n)=>{var r=n(358),s=n(195),i=n(6529);e.exports=function(e){return i(e)?r(e):s(e)}},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,n)=>{const r=n(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5735:(e,t,n)=>{const r=n(9310),s=n(8138),i=n(986),o=n(2563),a=n(1580),c=n(394),u=n(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(r,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],s=this.elementDetection[n][1];if(r(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},3311:(e,t,n)=>{const r=n(1517),s=n(4123);class i extends s{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(e,t){return new i(this.elements.filter((n=>e.bind(t)(n.value,n.key,n))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,n)=>{const r=n(8631),s=n(3004),i=n(8712),o=n(2536),a=n(2555),c=n(9796),u=n(7309),l=n(5642),p=n(9620),h=n(593),m=n(4123),f=n(3311),d=n(2322);function _(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 s;if(Array.isArray(e))return new c(e.map(_));if("object"==typeof e){return new l(e)}return e}r.prototype.ObjectElement=l,r.prototype.RefElement=h,r.prototype.MemberElement=u,r.prototype.refract=_,m.prototype.refract=_,e.exports={Element:r,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:h,refract:_,ArraySlice:m,ObjectSlice:f,KeyValuePair:d}},9620:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),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,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),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,n)=>{const r=n(5735),s=n(7547);t.g$=r,t.KeyValuePair=n(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,n(394),n(3148)},9796:(e,t,n)=>{const r=n(1517),s=n(8631),i=n(4123);class o extends s{constructor(e,t,n){super(e||[],t,n),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 n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t<this.length;t+=1){const n=this.content[t];r="object"===this.primitive()?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach(((n,r)=>{e.bind(t)(n,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 n=t||{},r=!!n.recursive,s=void 0===n.results?[]:n.results;return this.forEach(((t,n,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:r}),e(t,n,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,n)=>{const r=n(6343),s=n(2322),i=n(4123);class o{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let n=new i;const r=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===t&&e.push(n);const i=n.findRecursive(t);return i&&i.reduce(r,e),n.content instanceof s&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),e.isEmpty||(n=n.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],s=n.indexOf(r);if(-1===s)return!1;n=n.splice(0,s)}return!0}))),n}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 s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7309:(e,t,n)=>{const r=n(2322),s=n(8631);e.exports=class extends s{constructor(e,t,n,s){super(new r,n,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},3004:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}},5642:(e,t,n)=>{const r=n(1517),s=n(1580),i=n(9796),o=n(7309),a=n(3311);e.exports=class extends i{constructor(e,t,n){super(e||[],t,n),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((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const n=e,r=this.getMember(n);return r?r.value=t:this.content.push(new o(n,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((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,s,i)=>{const o=e.bind(t)(r,s,i);o&&n.push(o)})),n}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((n=>e.bind(t)(n.value,n.key,n)))}}},8712:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,n)=>{const r=n(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 n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(n.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&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);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)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}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(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let s=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]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==n.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const s=new t(r);s.element=n.element,e.push(s)}))}));const s=e.shift();n.content=s?s.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}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,n)=>{if(e){const r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),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 n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),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,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},8357:e=>{!function(){"use strict";var t,n,r,s,i,o="properties",a="deepProperties",c="propertyDescriptors",u="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",h="configuration",m="deepConfiguration",f="deepProps",d="deepStatics",_="deepConf",g="initializers",y="methods",v="composers",w="compose";function b(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function E(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var x=E.bind(0,(function(e,t){if(t)for(var n=b(t),r=0;r<n.length;r+=1)Object.defineProperty(e,n[r],Object.getOwnPropertyDescriptor(t,n[r]));return e}));function S(e){return"function"==typeof e}function P(e){return e&&"object"==typeof e||S(e)}function j(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var O=E.bind(0,(function e(n,r){if(r===t)return n;if(Array.isArray(r))return(Array.isArray(n)?n:[]).concat(r);if(!j(r))return r;for(var s,i,o=b(r),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(r,s)).hasOwnProperty("value")?i.value!==t&&(n[s]=e(j(n[s])||Array.isArray(r[s])?n[s]:{},r[s])):Object.defineProperty(n,s,i);return n}));function A(){return(n=Array.prototype.concat.apply([],arguments).filter((function(e,t,n){return S(e)&&n.indexOf(e)===t}))).length?n:t}function k(e,t){function r(n,r){P(t[n])&&(P(e[n])||(e[n]={}),(r||x)(e[n],t[n]))}function s(r){(n=A(e[r],t[r]))&&(e[r]=n)}return t&&P(t=t[w]||t)&&(r(y),r(o),r(a,O),r(c),r(u),r(l,O),r(p),r(h),r(m,O),s(g),s(v)),e}function I(){return function(e){return n=function e(n){var r,s,i=e[w]||{},u={__proto__:i[y]},l=i[g],p=Array.prototype.slice.apply(arguments),h=i[a];if(h&&O(u,h),(h=i[o])&&x(u,h),(h=i[c])&&Object.defineProperties(u,h),!l||!l.length)return u;for(n===t&&(n={}),i=0;i<l.length;)S(r=l[i++])&&(u=(s=r.call(u,n,{instance:u,stamp:e,args:p}))===t?u:s);return u},(r=e[l])&&O(n,r),(r=e[u])&&x(n,r),(r=e[p])&&Object.defineProperties(n,r),r=S(n[w])?n[w]:I,x(n[w]=function(){return r.apply(this,arguments)},e),n}(Array.prototype.concat.apply([this],arguments).reduce(k,{}))}function M(e){return S(e)&&S(e[w])}var N={};function T(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((n=this)&&n[w]||r).call(n,s)}}N[y]=T(y,x),N[o]=N.props=T(o,x),N[g]=N.init=T(g,A),N[v]=T(v,A),N[a]=N[f]=T(a,O),N[u]=N.statics=T(u,x),N[l]=N[d]=T(l,O),N[h]=N.conf=T(h,x),N[m]=N[_]=T(m,O),N[c]=T(c,x),N[p]=T(p,x),r=N[w]=x((function(){for(var e,b,E=0,S=[],j=arguments,k=this;E<j.length;)P(e=j[E++])&&S.push(M(e)?e:((s={})[y]=(b=e)[y]||t,r=b.props,s[o]=P((n=b[o])||r)?x({},r,n):t,s[g]=A(b.init,b[g]),s[v]=A(b[v]),r=b[f],s[a]=P((n=b[a])||r)?O({},r,n):t,s[c]=b[c],r=b.statics,s[u]=P((n=b[u])||r)?x({},r,n):t,r=b[d],s[l]=P((n=b[l])||r)?O({},r,n):t,n=b[p],s[p]=P((r=b.name&&{name:{value:b.name}})||n)?x({},n,r):t,r=b.conf,s[h]=P((n=b[h])||r)?x({},r,n):t,r=b[_],s[m]=P((n=b[m])||r)?O({},r,n):t,s));if(e=I.apply(k||i,S),k&&S.unshift(k),Array.isArray(j=e[w][v]))for(E=0;E<j.length;)e=M(k=j[E++]({stamp:e,composables:S}))?k:e;return e}),N),N.create=function(){return this.apply(t,arguments)},(s={})[u]=N,i=I(s),r[w]=r.bind(),r.version="4.3.2","object"!=typeof t?e.exports=r:self.stampit=r}()},8583:(e,t)=>{"use strict";var n;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"}(n=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[n.MalformedUnicode,"malformed Unicode character escape sequence"],[n.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[n.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[n.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[n.EndOfString,"malformed escape sequence at end of string"]])},6850:(e,t,n)=>{"use strict";t.MH=void 0;const r=n(8583);function s(e,t,n){const s=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(s)||void 0!==n&&n!==e.length)throw new SyntaxError(r.errorMessages.get(t));return s}function i(e,t){const n=s(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=s(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(n,e)}return String.fromCharCode(n)}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,n,a,c,u,l,p,h,m){if(void 0!==n)return"\\";if(void 0!==a)return function(e){const t=s(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 n=s(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(n)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==u)return i(u,l);if(void 0!==p)return i(p);if("0"===h)return"\0";if(void 0!==h)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const n=parseInt(e,8);return String.fromCharCode(n)}(h,!t);if(void 0!==m)return f=m,o.get(f)||f;var f;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=c},3833:(e,t,n)=>{var r=void 0!==r?r:{},s=function(){var t,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(r=Object.assign({},r,o),t=new Promise((t=>{var o,a={};for(o in r)r.hasOwnProperty(o)&&(a[o]=r[o]);var c,u,l,p,h=[],m="./this.program",f=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var d,_,g,y,v,w="";c?(w=p?n(4142).dirname(w)+"/":"//",d=function(e,t){return y||(y=n(3078)),v||(v=n(4142)),e=v.normalize(e),y.readFileSync(e,t?null:"utf8")},g=function(e){var t=d(e,!0);return t.buffer||(t=new Uint8Array(t)),T(t.buffer),t},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),h=process.argv.slice(2),e.exports=r,f=function(e){process.exit(e)},r.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=function(e){return read(e)}),g=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(T("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?h=scriptArgs:void 0!==arguments&&(h=arguments),"function"==typeof quit&&(f=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||p)&&(p?w=self.location.href:void 0!==s&&s.currentScript&&(w=s.currentScript.src),w=0!==w.indexOf("blob:")?w.substr(0,w.lastIndexOf("/")+1):"",d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(g=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)}),r.print||console.log.bind(console);var b=r.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(r[o]=a[o]);a=null,r.arguments&&(h=r.arguments),r.thisProgram&&(m=r.thisProgram),r.quit&&(f=r.quit);var E,x=16,S=[];function P(e,t){if(!E){E=new WeakMap;for(var n=0;n<Y.length;n++){var r=Y.get(n);r&&E.set(r,n)}}if(E.has(e))return E.get(e);var s=function(){if(S.length)return S.pop();try{Y.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Y.length-1}();try{Y.set(s,e)}catch(n){if(!(n instanceof TypeError))throw n;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var n={i:"i32",j:"i64",f:"f32",d:"f64"},r={parameters:[],results:"v"==t[0]?[]:[n[t[0]]]},s=1;s<t.length;++s)r.parameters.push(n[t[s]]);return new WebAssembly.Function(r,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(c[a[s]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);Y.set(s,i)}return E.set(e,s),s}var j,O=r.dynamicLibraries||[];r.wasmBinary&&(j=r.wasmBinary);var A,k=r.noExitRuntime||!0;function I(e,t,n,r){switch("*"===(n=n||"i8").charAt(n.length-1)&&(n="i32"),n){case"i1":case"i8":R[e>>0]=t;break;case"i16":C[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":le=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],q[e>>2]=le[0],q[e+4>>2]=le[1];break;case"float":D[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ae("invalid type for setValue: "+n)}}function M(e,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return R[e>>0];case"i16":return C[e>>1];case"i32":case"i64":return q[e>>2];case"float":return D[e>>2];case"double":return L[e>>3];default:ae("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ae("no native wasm support detected");var N=!1;function T(e,t){e||ae("Assertion failed: "+t)}var $,R,F,C,q,D,L,V="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(e,t,n){for(var r=t+n,s=t;e[s]&&!(s>=r);)++s;if(s-t>16&&e.subarray&&V)return V.decode(e.subarray(t,s));for(var i="";t<s;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function U(e,t){return e?B(F,e,t):""}function z(e,t,n,r){if(!(r>0))return 0;for(var s=n,i=n+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)),a<=127){if(n>=i)break;t[n++]=a}else if(a<=2047){if(n+1>=i)break;t[n++]=192|a>>6,t[n++]=128|63&a}else if(a<=65535){if(n+2>=i)break;t[n++]=224|a>>12,t[n++]=128|a>>6&63,t[n++]=128|63&a}else{if(n+3>=i)break;t[n++]=240|a>>18,t[n++]=128|a>>12&63,t[n++]=128|a>>6&63,t[n++]=128|63&a}}return t[n]=0,n-s}function H(e,t,n){return z(e,F,t,n)}function G(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}function K(e){var t=G(e)+1,n=Ue(t);return z(e,R,n,t),n}function W(e){$=e,r.HEAP8=R=new Int8Array(e),r.HEAP16=C=new Int16Array(e),r.HEAP32=q=new Int32Array(e),r.HEAPU8=F=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=new Uint32Array(e),r.HEAPF32=D=new Float32Array(e),r.HEAPF64=L=new Float64Array(e)}var J=r.INITIAL_MEMORY||33554432;(A=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:J/65536,maximum:32768}))&&($=A.buffer),J=$.byteLength,W($);var Y=new WebAssembly.Table({initial:17,element:"anyfunc"}),Z=[],X=[],Q=[],ee=[],te=!1,ne=0,re=null,se=null;function ie(e){ne++,r.monitorRunDependencies&&r.monitorRunDependencies(ne)}function oe(e){if(ne--,r.monitorRunDependencies&&r.monitorRunDependencies(ne),0==ne&&(null!==re&&(clearInterval(re),re=null),se)){var t=se;se=null,t()}}function ae(e){throw r.onAbort&&r.onAbort(e),b(e+=""),N=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}r.preloadedImages={},r.preloadedAudios={},r.preloadedWasm={};var ce,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function he(e){return e.startsWith("file://")}function me(e){try{if(e==ce&&j)return new Uint8Array(j);if(g)return g(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return r.locateFile?r.locateFile(e,w):w+e}(ce));var fe={},de={get:function(e,t){return fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),fe[t]}};function _e(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?Y.get(n)():Y.get(n)(t.arg):n(void 0===t.arg?null:t.arg)}else t(r)}}function ge(e){var t=0;function n(){for(var n=0,r=1;;){var s=e[t++];if(n+=(127&s)*r,r*=128,!(128&s))break}return n}if(e instanceof WebAssembly.Module){var r=WebAssembly.Module.customSections(e,"dylink");T(0!=r.length,"need dylink section"),e=new Int8Array(r[0])}else T(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===e[8],"need the dylink section to be first"),t=9,n(),T(6===e[t]),T(e[++t]==="d".charCodeAt(0)),T(e[++t]==="y".charCodeAt(0)),T(e[++t]==="l".charCodeAt(0)),T(e[++t]==="i".charCodeAt(0)),T(e[++t]==="n".charCodeAt(0)),T(e[++t]==="k".charCodeAt(0)),t++;var s={};s.memorySize=n(),s.memoryAlign=n(),s.tableSize=n(),s.tableAlign=n();var i=n();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=n(),c=e.subarray(t,t+a);t+=a;var u=B(c,0);s.neededDynlibs.push(u)}return s}var ye=0;function ve(){return k||ye>0}function we(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function be(e,t){for(var n in e)if(e.hasOwnProperty(n)){qe.hasOwnProperty(n)||(qe[n]=e[n]);var s=we(n);r.hasOwnProperty(s)||(r[s]=e[n])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xe=5250880;function Se(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Pe(e,t){var n={};for(var r in e){var s=e[r];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),n[r]=s}return function(e){for(var t in e)if(!Se(t)){var n=!1,r=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],n=!0),fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(n||0==fe[t].value)&&("function"==typeof r?fe[t].value=P(r):"number"==typeof r?fe[t].value=r:b("unhandled export type for `"+t+"`: "+typeof r))}}(n),n}function je(e,t){var n,s;return t&&(n=qe["orig$"+e]),n||(n=qe[e]),n||(n=r[we(e)]),!n&&e.startsWith("invoke_")&&(s=e.split("_")[1],n=function(){var e=Ve();try{return function(e,t,n){return e.includes("j")?function(e,t,n){var s=r["dynCall_"+e];return n&&n.length?s.apply(null,[t].concat(n)):s.call(null,t)}(e,t,n):Y.get(t).apply(null,n)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Be(e),t!==t+0&&"longjmp"!==t)throw t;ze(1,0)}}),n}function Oe(e,t){var n=ge(e);function r(){var r=Math.pow(2,n.memoryAlign);r=Math.max(r,x);var s,i,o,a=(s=function(e){if(te)return De(e);var t=xe,n=t+e+15&-16;return xe=n,fe.__heap_base.value=n,t}(n.memorySize+r),(i=r)||(i=x),Math.ceil(s/i)*i),c=Y.length;Y.grow(n.tableSize);for(var u=a;u<a+n.memorySize;u++)R[u]=0;for(u=c;u<c+n.tableSize;u++)Y.set(u,null);var l=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return a;case"__table_base":return c}return t in qe?qe[t]:(t in e||(e[t]=function(){return n||(n=function(e){var t=je(e,!1);return t||(t=o[e]),t}(t)),n.apply(null,arguments)}),e[t]);var n}}),p={"GOT.mem":new Proxy({},de),"GOT.func":new Proxy({},de),env:l,wasi_snapshot_preview1:l};function h(e){for(var r=0;r<n.tableSize;r++){var s=Y.get(c+r);s&&E.set(s,c+r)}o=Pe(e.exports,a),t.allowUndefined||ke();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():X.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var m=new WebAssembly.Instance(e,p);return Promise.resolve(h(m))}return WebAssembly.instantiate(e,p).then((function(e){return h(e.instance)}))}var f=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return h(m=new WebAssembly.Instance(f,p))}return t.loadAsync?n.neededDynlibs.reduce((function(e,n){return e.then((function(){return Ae(n,t)}))}),Promise.resolve()).then((function(){return r()})):(n.neededDynlibs.forEach((function(e){Ae(e,t)})),r())}function Ae(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:r.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var n,s=Ee.loadedLibNames[e];if(s)return n=Ee.loadedLibs[s],t.global&&!n.global&&(n.global=!0,"loading"!==n.module&&be(n.module)),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,t.loadAsync?Promise.resolve(s):s;function i(e){if(t.fs){var n=t.fs.readFile(e,{encoding:"binary"});return n instanceof Uint8Array||(n=new Uint8Array(n)),t.loadAsync?Promise.resolve(n):n}return t.loadAsync?(r=e,fetch(r,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+r+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):g(e);var r}function o(){if(void 0!==r.preloadedWasm&&void 0!==r.preloadedWasm[e]){var n=r.preloadedWasm[e];return t.loadAsync?Promise.resolve(n):n}return t.loadAsync?i(e).then((function(e){return Oe(e,t)})):Oe(i(e),t)}function a(e){n.global&&be(e),n.module=e}return s=Ee.nextHandle++,n={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=s,Ee.loadedLibs[s]=n,t.loadAsync?o().then((function(e){return a(e),s})):(a(o()),s)}function ke(){for(var e in fe)if(0==fe[e].value){var t=je(e,!0);"function"==typeof t?fe[e].value=P(t,t.sig):"number"==typeof t?fe[e].value=t:T(!1,"bad export type for `"+e+"`: "+typeof t)}}r.___heap_base=xe;var Ie,Me=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Ne(){ae()}r._abort=Ne,Ne.sig="v",Ie=c?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Te(e,t){var n;if(0===e)n=Date.now();else{if(1!==e&&4!==e)return 28,q[Le()>>2]=28,-1;n=Ie()}return q[t>>2]=n/1e3|0,q[t+4>>2]=n%1e3*1e3*1e3|0,0}function $e(e){try{return A.grow(e-$.byteLength+65535>>>16),W(A.buffer),1}catch(e){}}function Re(e){We(e)}function Fe(e){}Te.sig="iii",Re.sig="vi",Fe.sig="vi";var Ce,qe={__heap_base:xe,__indirect_function_table:Y,__memory_base:1024,__stack_pointer:Me,__table_base:1,abort:Ne,clock_gettime:Te,emscripten_memcpy_big:function(e,t,n){F.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=F.length;if((e>>>=0)>2147483648)return!1;for(var r=1;r<=4;r*=2){var s=n*(1+.2/r);if(s=Math.min(s,e+100663296),$e(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Re,memory:A,setTempRet0:Fe,tree_sitter_log_callback:function(e,t){if(ut){const n=U(t);ut(n,0!==e)}},tree_sitter_parse_callback:function(e,t,n,r,s){var i=ct(t,{row:n,column:r});"string"==typeof i?(I(s,i.length,"i32"),function(e,t,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=(n-=2)<2*e.length?n/2:e.length,s=0;s<r;++s){var i=e.charCodeAt(s);C[t>>1]=i,t+=2}C[t>>1]=0}(i,e,10240)):I(s,0,"i32")}},De=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,de),"GOT.func":new Proxy(qe,de)};function t(e,t){var n=e.exports;n=Pe(n,1024),r.asm=n;var s,i=ge(t);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),be(n),s=r.asm.__wasm_call_ctors,X.unshift(s),oe()}function n(e){t(e.instance,e.module)}function s(t){return function(){if(!j&&(l||p)){if("function"==typeof fetch&&!he(ce))return fetch(ce,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ce+"'";return e.arrayBuffer()})).catch((function(){return me(ce)}));if(_)return new Promise((function(e,t){_(ce,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return me(ce)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){b("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){return b("Module.instantiateWasm callback failed with error: "+e),!1}j||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||he(ce)||"function"!=typeof fetch?s(n):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return b("wasm streaming compile failed: "+e),b("falling back to ArrayBuffer instantiation"),s(n)}))}))}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r._malloc=function(){return(De=r._malloc=r.asm.malloc).apply(null,arguments)}),Le=(r._calloc=function(){return(r._calloc=r.asm.calloc).apply(null,arguments)},r._realloc=function(){return(r._realloc=r.asm.realloc).apply(null,arguments)},r._free=function(){return(r._free=r.asm.free).apply(null,arguments)},r._ts_language_symbol_count=function(){return(r._ts_language_symbol_count=r.asm.ts_language_symbol_count).apply(null,arguments)},r._ts_language_version=function(){return(r._ts_language_version=r.asm.ts_language_version).apply(null,arguments)},r._ts_language_field_count=function(){return(r._ts_language_field_count=r.asm.ts_language_field_count).apply(null,arguments)},r._ts_language_symbol_name=function(){return(r._ts_language_symbol_name=r.asm.ts_language_symbol_name).apply(null,arguments)},r._ts_language_symbol_for_name=function(){return(r._ts_language_symbol_for_name=r.asm.ts_language_symbol_for_name).apply(null,arguments)},r._ts_language_symbol_type=function(){return(r._ts_language_symbol_type=r.asm.ts_language_symbol_type).apply(null,arguments)},r._ts_language_field_name_for_id=function(){return(r._ts_language_field_name_for_id=r.asm.ts_language_field_name_for_id).apply(null,arguments)},r._memcpy=function(){return(r._memcpy=r.asm.memcpy).apply(null,arguments)},r._ts_parser_delete=function(){return(r._ts_parser_delete=r.asm.ts_parser_delete).apply(null,arguments)},r._ts_parser_reset=function(){return(r._ts_parser_reset=r.asm.ts_parser_reset).apply(null,arguments)},r._ts_parser_set_language=function(){return(r._ts_parser_set_language=r.asm.ts_parser_set_language).apply(null,arguments)},r._ts_parser_timeout_micros=function(){return(r._ts_parser_timeout_micros=r.asm.ts_parser_timeout_micros).apply(null,arguments)},r._ts_parser_set_timeout_micros=function(){return(r._ts_parser_set_timeout_micros=r.asm.ts_parser_set_timeout_micros).apply(null,arguments)},r._memmove=function(){return(r._memmove=r.asm.memmove).apply(null,arguments)},r._memcmp=function(){return(r._memcmp=r.asm.memcmp).apply(null,arguments)},r._ts_query_new=function(){return(r._ts_query_new=r.asm.ts_query_new).apply(null,arguments)},r._ts_query_delete=function(){return(r._ts_query_delete=r.asm.ts_query_delete).apply(null,arguments)},r._iswspace=function(){return(r._iswspace=r.asm.iswspace).apply(null,arguments)},r._iswalnum=function(){return(r._iswalnum=r.asm.iswalnum).apply(null,arguments)},r._ts_query_pattern_count=function(){return(r._ts_query_pattern_count=r.asm.ts_query_pattern_count).apply(null,arguments)},r._ts_query_capture_count=function(){return(r._ts_query_capture_count=r.asm.ts_query_capture_count).apply(null,arguments)},r._ts_query_string_count=function(){return(r._ts_query_string_count=r.asm.ts_query_string_count).apply(null,arguments)},r._ts_query_capture_name_for_id=function(){return(r._ts_query_capture_name_for_id=r.asm.ts_query_capture_name_for_id).apply(null,arguments)},r._ts_query_string_value_for_id=function(){return(r._ts_query_string_value_for_id=r.asm.ts_query_string_value_for_id).apply(null,arguments)},r._ts_query_predicates_for_pattern=function(){return(r._ts_query_predicates_for_pattern=r.asm.ts_query_predicates_for_pattern).apply(null,arguments)},r._ts_tree_copy=function(){return(r._ts_tree_copy=r.asm.ts_tree_copy).apply(null,arguments)},r._ts_tree_delete=function(){return(r._ts_tree_delete=r.asm.ts_tree_delete).apply(null,arguments)},r._ts_init=function(){return(r._ts_init=r.asm.ts_init).apply(null,arguments)},r._ts_parser_new_wasm=function(){return(r._ts_parser_new_wasm=r.asm.ts_parser_new_wasm).apply(null,arguments)},r._ts_parser_enable_logger_wasm=function(){return(r._ts_parser_enable_logger_wasm=r.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},r._ts_parser_parse_wasm=function(){return(r._ts_parser_parse_wasm=r.asm.ts_parser_parse_wasm).apply(null,arguments)},r._ts_language_type_is_named_wasm=function(){return(r._ts_language_type_is_named_wasm=r.asm.ts_language_type_is_named_wasm).apply(null,arguments)},r._ts_language_type_is_visible_wasm=function(){return(r._ts_language_type_is_visible_wasm=r.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},r._ts_tree_root_node_wasm=function(){return(r._ts_tree_root_node_wasm=r.asm.ts_tree_root_node_wasm).apply(null,arguments)},r._ts_tree_edit_wasm=function(){return(r._ts_tree_edit_wasm=r.asm.ts_tree_edit_wasm).apply(null,arguments)},r._ts_tree_get_changed_ranges_wasm=function(){return(r._ts_tree_get_changed_ranges_wasm=r.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},r._ts_tree_cursor_new_wasm=function(){return(r._ts_tree_cursor_new_wasm=r.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},r._ts_tree_cursor_delete_wasm=function(){return(r._ts_tree_cursor_delete_wasm=r.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},r._ts_tree_cursor_reset_wasm=function(){return(r._ts_tree_cursor_reset_wasm=r.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_first_child_wasm=function(){return(r._ts_tree_cursor_goto_first_child_wasm=r.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_next_sibling_wasm=function(){return(r._ts_tree_cursor_goto_next_sibling_wasm=r.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_parent_wasm=function(){return(r._ts_tree_cursor_goto_parent_wasm=r.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_type_id_wasm=function(){return(r._ts_tree_cursor_current_node_type_id_wasm=r.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_named_wasm=function(){return(r._ts_tree_cursor_current_node_is_named_wasm=r.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_missing_wasm=function(){return(r._ts_tree_cursor_current_node_is_missing_wasm=r.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_id_wasm=function(){return(r._ts_tree_cursor_current_node_id_wasm=r.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},r._ts_tree_cursor_start_position_wasm=function(){return(r._ts_tree_cursor_start_position_wasm=r.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},r._ts_tree_cursor_end_position_wasm=function(){return(r._ts_tree_cursor_end_position_wasm=r.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},r._ts_tree_cursor_start_index_wasm=function(){return(r._ts_tree_cursor_start_index_wasm=r.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},r._ts_tree_cursor_end_index_wasm=function(){return(r._ts_tree_cursor_end_index_wasm=r.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},r._ts_tree_cursor_current_field_id_wasm=function(){return(r._ts_tree_cursor_current_field_id_wasm=r.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_wasm=function(){return(r._ts_tree_cursor_current_node_wasm=r.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},r._ts_node_symbol_wasm=function(){return(r._ts_node_symbol_wasm=r.asm.ts_node_symbol_wasm).apply(null,arguments)},r._ts_node_child_count_wasm=function(){return(r._ts_node_child_count_wasm=r.asm.ts_node_child_count_wasm).apply(null,arguments)},r._ts_node_named_child_count_wasm=function(){return(r._ts_node_named_child_count_wasm=r.asm.ts_node_named_child_count_wasm).apply(null,arguments)},r._ts_node_child_wasm=function(){return(r._ts_node_child_wasm=r.asm.ts_node_child_wasm).apply(null,arguments)},r._ts_node_named_child_wasm=function(){return(r._ts_node_named_child_wasm=r.asm.ts_node_named_child_wasm).apply(null,arguments)},r._ts_node_child_by_field_id_wasm=function(){return(r._ts_node_child_by_field_id_wasm=r.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},r._ts_node_next_sibling_wasm=function(){return(r._ts_node_next_sibling_wasm=r.asm.ts_node_next_sibling_wasm).apply(null,arguments)},r._ts_node_prev_sibling_wasm=function(){return(r._ts_node_prev_sibling_wasm=r.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},r._ts_node_next_named_sibling_wasm=function(){return(r._ts_node_next_named_sibling_wasm=r.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},r._ts_node_prev_named_sibling_wasm=function(){return(r._ts_node_prev_named_sibling_wasm=r.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},r._ts_node_parent_wasm=function(){return(r._ts_node_parent_wasm=r.asm.ts_node_parent_wasm).apply(null,arguments)},r._ts_node_descendant_for_index_wasm=function(){return(r._ts_node_descendant_for_index_wasm=r.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_index_wasm=function(){return(r._ts_node_named_descendant_for_index_wasm=r.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_descendant_for_position_wasm=function(){return(r._ts_node_descendant_for_position_wasm=r.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_position_wasm=function(){return(r._ts_node_named_descendant_for_position_wasm=r.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_start_point_wasm=function(){return(r._ts_node_start_point_wasm=r.asm.ts_node_start_point_wasm).apply(null,arguments)},r._ts_node_end_point_wasm=function(){return(r._ts_node_end_point_wasm=r.asm.ts_node_end_point_wasm).apply(null,arguments)},r._ts_node_start_index_wasm=function(){return(r._ts_node_start_index_wasm=r.asm.ts_node_start_index_wasm).apply(null,arguments)},r._ts_node_end_index_wasm=function(){return(r._ts_node_end_index_wasm=r.asm.ts_node_end_index_wasm).apply(null,arguments)},r._ts_node_to_string_wasm=function(){return(r._ts_node_to_string_wasm=r.asm.ts_node_to_string_wasm).apply(null,arguments)},r._ts_node_children_wasm=function(){return(r._ts_node_children_wasm=r.asm.ts_node_children_wasm).apply(null,arguments)},r._ts_node_named_children_wasm=function(){return(r._ts_node_named_children_wasm=r.asm.ts_node_named_children_wasm).apply(null,arguments)},r._ts_node_descendants_of_type_wasm=function(){return(r._ts_node_descendants_of_type_wasm=r.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},r._ts_node_is_named_wasm=function(){return(r._ts_node_is_named_wasm=r.asm.ts_node_is_named_wasm).apply(null,arguments)},r._ts_node_has_changes_wasm=function(){return(r._ts_node_has_changes_wasm=r.asm.ts_node_has_changes_wasm).apply(null,arguments)},r._ts_node_has_error_wasm=function(){return(r._ts_node_has_error_wasm=r.asm.ts_node_has_error_wasm).apply(null,arguments)},r._ts_node_is_missing_wasm=function(){return(r._ts_node_is_missing_wasm=r.asm.ts_node_is_missing_wasm).apply(null,arguments)},r._ts_query_matches_wasm=function(){return(r._ts_query_matches_wasm=r.asm.ts_query_matches_wasm).apply(null,arguments)},r._ts_query_captures_wasm=function(){return(r._ts_query_captures_wasm=r.asm.ts_query_captures_wasm).apply(null,arguments)},r._iswdigit=function(){return(r._iswdigit=r.asm.iswdigit).apply(null,arguments)},r._iswalpha=function(){return(r._iswalpha=r.asm.iswalpha).apply(null,arguments)},r._iswlower=function(){return(r._iswlower=r.asm.iswlower).apply(null,arguments)},r._towupper=function(){return(r._towupper=r.asm.towupper).apply(null,arguments)},r.___errno_location=function(){return(Le=r.___errno_location=r.asm.__errno_location).apply(null,arguments)}),Ve=(r._memchr=function(){return(r._memchr=r.asm.memchr).apply(null,arguments)},r._strlen=function(){return(r._strlen=r.asm.strlen).apply(null,arguments)},r.stackSave=function(){return(Ve=r.stackSave=r.asm.stackSave).apply(null,arguments)}),Be=r.stackRestore=function(){return(Be=r.stackRestore=r.asm.stackRestore).apply(null,arguments)},Ue=r.stackAlloc=function(){return(Ue=r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},ze=r._setThrew=function(){return(ze=r._setThrew=r.asm.setThrew).apply(null,arguments)};function He(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=r.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},r.__Znwm=function(){return(r.__Znwm=r.asm._Znwm).apply(null,arguments)},r.__ZdlPv=function(){return(r.__ZdlPv=r.asm._ZdlPv).apply(null,arguments)},r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=r.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},r._orig$ts_parser_timeout_micros=function(){return(r._orig$ts_parser_timeout_micros=r.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},r._orig$ts_parser_set_timeout_micros=function(){return(r._orig$ts_parser_set_timeout_micros=r.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},r.allocate=function(e,t){var n;return n=1==t?Ue(e.length):De(e.length),e.subarray||e.slice?F.set(e,n):F.set(new Uint8Array(e),n),n},se=function e(){Ce||Ke(),Ce||(se=e)};var Ge=!1;function Ke(e){function t(){Ce||(Ce=!0,r.calledRun=!0,N||(te=!0,_e(X),_e(Q),r.onRuntimeInitialized&&r.onRuntimeInitialized(),Je&&function(e){var t=r._main;if(t){var n=(e=e||[]).length+1,s=Ue(4*(n+1));q[s>>2]=K(m);for(var i=1;i<n;i++)q[(s>>2)+i]=K(e[i-1]);q[(s>>2)+n]=0;try{We(t(n,s),!0)}catch(e){if(e instanceof He)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),b("exception thrown: "+o),f(1,e)}}}(e),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)e=r.postRun.shift(),ee.unshift(e);var e;_e(ee)}()))}e=e||h,ne>0||!Ge&&(function(){if(O.length){if(!g)return ie(),void O.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),ke()}));O.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),ke()}else ke()}(),Ge=!0,ne>0)||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),Z.unshift(e);var e;_e(Z)}(),ne>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}function We(e,t){t&&ve()&&0===e||(ve()||(r.onExit&&r.onExit(e),N=!0),f(e,new He(e)))}if(r.run=Ke,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();var Je=!0;r.noInitialRun&&(Je=!1),Ke();const Ye=r,Ze={},Xe=4,Qe=5*Xe,et=2*Xe,tt=2*Xe+2*et,nt={row:0,column:0},rt=/[\w-.]*/g,st=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=Ye._ts_init(),it=M(at,"i32"),ot=M(at+Xe,"i32")}initialize(){Ye._ts_parser_new_wasm(),this[0]=M(at,"i32"),this[1]=M(at+Xe,"i32")}delete(){Ye._ts_parser_delete(this[0]),Ye._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==ft)throw new Error("Argument must be a Language");{t=e[0];const n=Ye._ts_language_version(t);if(n<ot||it<n)throw new Error(`Incompatible language version ${n}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ye._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,n){if("string"==typeof e)ct=(t,n,r)=>e.slice(t,r);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=e}this.logCallback?(ut=this.logCallback,Ye._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,Ye._ts_parser_enable_logger_wasm(this[0],0));let r=0,s=0;if(n&&n.includedRanges){r=n.includedRanges.length;let e=s=Ye._calloc(r,tt);for(let t=0;t<r;t++)jt(e,n.includedRanges[t]),e+=tt}const i=Ye._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,r);if(!i)throw ct=null,ut=null,new Error("Parsing failed");const o=new pt(Ze,i,this.language,ct);return ct=null,ut=null,o}reset(){Ye._ts_parser_reset(this[0])}setTimeoutMicros(e){Ye._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ye._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class pt{constructor(e,t,n,r){yt(e),this[0]=t,this.language=n,this.textCallback=r}copy(){const e=Ye._ts_tree_copy(this[0]);return new pt(Ze,e,this.language,this.textCallback)}delete(){Ye._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=at;St(t,e.startPosition),St(t+=et,e.oldEndPosition),St(t+=et,e.newEndPosition),I(t+=et,e.startIndex,"i32"),I(t+=Xe,e.oldEndIndex,"i32"),I(t+=Xe,e.newEndIndex,"i32"),t+=Xe}(e),Ye._ts_tree_edit_wasm(this[0])}get rootNode(){return Ye._ts_tree_root_node_wasm(this[0]),bt(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ye._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=M(at,"i32"),n=M(at+Xe,"i32"),r=new Array(t);if(t>0){let e=n;for(let n=0;n<t;n++)r[n]=Ot(e),e+=tt;Ye._free(n)}return r}}class ht{constructor(e,t){yt(e),this.tree=t}get typeId(){return wt(this),Ye._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return wt(this),Ye._ts_node_end_point_wasm(this.tree[0]),Pt(at)}get endIndex(){return wt(this),Ye._ts_node_end_index_wasm(this.tree[0])}get text(){return _t(this.tree,this.startIndex,this.endIndex)}isNamed(){return wt(this),1===Ye._ts_node_is_named_wasm(this.tree[0])}hasError(){return wt(this),1===Ye._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return wt(this),1===Ye._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return wt(this),1===Ye._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return wt(this),Ye._ts_node_child_wasm(this.tree[0],e),bt(this.tree)}namedChild(e){return wt(this),Ye._ts_node_named_child_wasm(this.tree[0],e),bt(this.tree)}childForFieldId(e){return wt(this),Ye._ts_node_child_by_field_id_wasm(this.tree[0],e),bt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return wt(this),Ye._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return wt(this),Ye._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){wt(this),Ye._ts_node_children_wasm(this.tree[0]);const e=M(at,"i32"),t=M(at+Xe,"i32");if(this._children=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._children[t]=bt(this.tree,n),n+=Qe;Ye._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){wt(this),Ye._ts_node_named_children_wasm(this.tree[0]);const e=M(at,"i32"),t=M(at+Xe,"i32");if(this._namedChildren=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._namedChildren[t]=bt(this.tree,n),n+=Qe;Ye._free(t)}}return this._namedChildren}descendantsOfType(e,t,n){Array.isArray(e)||(e=[e]),t||(t=nt),n||(n=nt);const r=[],s=this.tree.language.types;for(let t=0,n=s.length;t<n;t++)e.includes(s[t])&&r.push(t);const i=Ye._malloc(Xe*r.length);for(let e=0,t=r.length;e<t;e++)I(i+e*Xe,r[e],"i32");wt(this),Ye._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,t.row,t.column,n.row,n.column);const o=M(at,"i32"),a=M(at+Xe,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=bt(this.tree,e),e+=Qe}return Ye._free(a),Ye._free(i),c}get nextSibling(){return wt(this),Ye._ts_node_next_sibling_wasm(this.tree[0]),bt(this.tree)}get previousSibling(){return wt(this),Ye._ts_node_prev_sibling_wasm(this.tree[0]),bt(this.tree)}get nextNamedSibling(){return wt(this),Ye._ts_node_next_named_sibling_wasm(this.tree[0]),bt(this.tree)}get previousNamedSibling(){return wt(this),Ye._ts_node_prev_named_sibling_wasm(this.tree[0]),bt(this.tree)}get parent(){return wt(this),Ye._ts_node_parent_wasm(this.tree[0]),bt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");wt(this);let n=at+Qe;return I(n,e,"i32"),I(n+Xe,t,"i32"),Ye._ts_node_descendant_for_index_wasm(this.tree[0]),bt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");wt(this);let n=at+Qe;return I(n,e,"i32"),I(n+Xe,t,"i32"),Ye._ts_node_named_descendant_for_index_wasm(this.tree[0]),bt(this.tree)}descendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");wt(this);let n=at+Qe;return St(n,e),St(n+et,t),Ye._ts_node_descendant_for_position_wasm(this.tree[0]),bt(this.tree)}namedDescendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");wt(this);let n=at+Qe;return St(n,e),St(n+et,t),Ye._ts_node_named_descendant_for_position_wasm(this.tree[0]),bt(this.tree)}walk(){return wt(this),Ye._ts_tree_cursor_new_wasm(this.tree[0]),new mt(Ze,this.tree)}toString(){wt(this);const e=Ye._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var n=F[e++>>0];if(!n)return t;t+=String.fromCharCode(n)}}(e);return Ye._free(e),t}}class mt{constructor(e,t){yt(e),this.tree=t,xt(this)}delete(){Et(this),Ye._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){wt(e),Et(this,at+Qe),Ye._ts_tree_cursor_reset_wasm(this.tree[0]),xt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Et(this),Ye._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Et(this),Ye._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Et(this),1===Ye._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Et(this),1===Ye._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Et(this);const e=Ye._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ye._ts_tree_cursor_end_index_wasm(this.tree[0]);return _t(this.tree,e,t)}get startPosition(){return Et(this),Ye._ts_tree_cursor_start_position_wasm(this.tree[0]),Pt(at)}get endPosition(){return Et(this),Ye._ts_tree_cursor_end_position_wasm(this.tree[0]),Pt(at)}get startIndex(){return Et(this),Ye._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Et(this),Ye._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Et(this),Ye._ts_tree_cursor_current_node_wasm(this.tree[0]),bt(this.tree)}currentFieldId(){return Et(this),Ye._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Et(this);const e=Ye._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xt(this),1===e}gotoNextSibling(){Et(this);const e=Ye._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xt(this),1===e}gotoParent(){Et(this);const e=Ye._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xt(this),1===e}}class ft{constructor(e,t){yt(e),this[0]=t,this.types=new Array(Ye._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ye._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=U(Ye._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ye._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ye._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?U(t):null}}get version(){return Ye._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const n=G(e),r=Ye._malloc(n+1);H(e,r,n+1);const s=Ye._ts_language_symbol_for_name(this[0],r,n,t);return Ye._free(r),s||null}get nodeTypeCount(){return Ye._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ye._ts_language_symbol_name(this[0],e);return t?U(t):null}nodeTypeIsNamed(e){return!!Ye._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ye._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=G(e),n=Ye._malloc(t+1);H(e,n,t+1);const r=Ye._ts_query_new(this[0],n,t,at,at+Xe);if(!r){const t=M(at+Xe,"i32"),r=U(n,M(at,"i32")).length,s=e.substr(r,100).split("\n")[0];let i,o=s.match(rt)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${r}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${r}: '${s}'...`),o=""}throw i.index=r,i.length=o.length,Ye._free(n),i}const s=Ye._ts_query_string_count(r),i=Ye._ts_query_capture_count(r),o=Ye._ts_query_pattern_count(r),a=new Array(i),c=new Array(s);for(let e=0;e<i;e++){const t=Ye._ts_query_capture_name_for_id(r,e,at),n=M(at,"i32");a[e]=U(t,n)}for(let e=0;e<s;e++){const t=Ye._ts_query_string_value_for_id(r,e,at),n=M(at,"i32");c[e]=U(t,n)}const u=new Array(o),l=new Array(o),p=new Array(o),h=new Array(o),m=new Array(o);for(let e=0;e<o;e++){const t=Ye._ts_query_predicates_for_pattern(r,e,at),n=M(at,"i32");h[e]=[],m[e]=[];const s=[];let i=t;for(let t=0;t<n;t++){const t=M(i,"i32"),n=M(i+=Xe,"i32");if(i+=Xe,1===t)s.push({type:"capture",name:a[n]});else if(2===t)s.push({type:"string",value:c[n]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let n=!0;switch(t){case"not-eq?":n=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,r=s[2].name;m[e].push((function(e){let s,i;for(const n of e)n.name===t&&(s=n.node),n.name===r&&(i=n.node);return void 0===s||void 0===i||s.text===i.text===n}))}else{const t=s[1].name,r=s[2].value;m[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===r===n;return!0}))}break;case"not-match?":n=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const r=s[1].name,i=new RegExp(s[2].value);m[e].push((function(e){for(const t of e)if(t.name===r)return i.test(t.node.text)===n;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:p;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;default:h[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ye._free(n),new dt(Ze,r,a,m,h,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=n(3078);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const n=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${n}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:Oe;return t.then((e=>r(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),n=t.find((e=>st.test(e)&&!e.includes("external_scanner_")));n||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[n]();return new ft(Ze,r)}))}}class dt{constructor(e,t,n,r,s,i,o,a){yt(e),this[0]=t,this.captureNames=n,this.textPredicates=r,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ye._ts_query_delete(this[0]),this[0]=0}matches(e,t,n,r){t||(t=nt),n||(n=nt),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");wt(e),Ye._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,s);const i=M(at,"i32"),o=M(at+Xe,"i32"),a=M(at+2*Xe,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let t=0;t<i;t++){const n=M(l,"i32"),r=M(l+=Xe,"i32");l+=Xe;const s=new Array(r);if(l=gt(this,e.tree,l,s),this.textPredicates[n].every((e=>e(s)))){c[u++]={pattern:n,captures:s};const e=this.setProperties[n];e&&(c[t].setProperties=e);const r=this.assertedProperties[n];r&&(c[t].assertedProperties=r);const i=this.refutedProperties[n];i&&(c[t].refutedProperties=i)}}return c.length=u,Ye._free(o),c}captures(e,t,n,r){t||(t=nt),n||(n=nt),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");wt(e),Ye._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,s);const i=M(at,"i32"),o=M(at+Xe,"i32"),a=M(at+2*Xe,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=M(l,"i32"),n=M(l+=Xe,"i32"),r=M(l+=Xe,"i32");if(l+=Xe,u.length=n,l=gt(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[r],n=this.setProperties[t];n&&(e.setProperties=n);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ye._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function _t(e,t,n){const r=n-t;let s=e.textCallback(t,null,n);for(t+=s.length;t<n;){const r=e.textCallback(t,null,n);if(!(r&&r.length>0))break;t+=r.length,s+=r}return t>n&&(s=s.slice(0,r)),s}function gt(e,t,n,r){for(let s=0,i=r.length;s<i;s++){const i=M(n,"i32"),o=bt(t,n+=Xe);n+=Qe,r[s]={name:e.captureNames[i],node:o}}return n}function yt(e){if(e!==Ze)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function wt(e){let t=at;I(t,e.id,"i32"),I(t+=Xe,e.startIndex,"i32"),I(t+=Xe,e.startPosition.row,"i32"),I(t+=Xe,e.startPosition.column,"i32"),I(t+=Xe,e[0],"i32")}function bt(e,t=at){const n=M(t,"i32");if(0===n)return null;const r=M(t+=Xe,"i32"),s=M(t+=Xe,"i32"),i=M(t+=Xe,"i32"),o=M(t+=Xe,"i32"),a=new ht(Ze,e);return a.id=n,a.startIndex=r,a.startPosition={row:s,column:i},a[0]=o,a}function Et(e,t=at){I(t+0*Xe,e[0],"i32"),I(t+1*Xe,e[1],"i32"),I(t+2*Xe,e[2],"i32")}function xt(e){e[0]=M(at+0*Xe,"i32"),e[1]=M(at+1*Xe,"i32"),e[2]=M(at+2*Xe,"i32")}function St(e,t){I(e,t.row,"i32"),I(e+Xe,t.column,"i32")}function Pt(e){return{row:M(e,"i32"),column:M(e+Xe,"i32")}}function jt(e,t){St(e,t.startPosition),St(e+=et,t.endPosition),I(e+=et,t.startIndex,"i32"),I(e+=Xe,t.endIndex,"i32"),e+=Xe}function Ot(e){const t={};return t.startPosition=Pt(e),e+=et,t.endPosition=Pt(e),e+=et,t.startIndex=M(e,"i32"),e+=Xe,t.endIndex=M(e,"i32"),t}for(const e of Object.getOwnPropertyNames(lt.prototype))Object.defineProperty(i.prototype,e,{value:lt.prototype[e],enumerable:!1,writable:!1});i.Language=ft,r.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=s},3078:()=>{},4142:()=>{},1212:(e,t,n)=>{e.exports=n(8411)},7202:(e,t,n)=>{"use strict";var r=n(239);e.exports=r},6656:(e,t,n)=>{"use strict";n(484),n(5695),n(6138),n(9828),n(3832);var r=n(8099);e.exports=r.AggregateError},8411:(e,t,n)=>{"use strict";e.exports=n(8337)},8337:(e,t,n)=>{"use strict";n(5442);var r=n(7202);e.exports=r},814:(e,t,n)=>{"use strict";var r=n(2769),s=n(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not a function")}},1966:(e,t,n)=>{"use strict";var r=n(2937),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,n)=>{"use strict";var r=n(262),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not an object")}},1005:(e,t,n)=>{"use strict";var r=n(3273),s=n(4574),i=n(8130),o=function(e){return function(t,n,o){var a,c=r(t),u=i(c),l=s(o,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,n)=>{"use strict";var r=n(6100),s=r({}.toString),i=r("".slice);e.exports=function(e){return i(s(e),8,-1)}},8407:(e,t,n)=>{"use strict";var r=n(4904),s=n(2769),i=n(9932),o=n(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?n:c?i(t):"Object"===(r=i(t))&&s(t.callee)?"Arguments":r}},7464:(e,t,n)=>{"use strict";var r=n(701),s=n(5691),i=n(4543),o=n(9989);e.exports=function(e,t,n){for(var a=s(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];r(e,p)||n&&r(n,p)||c(e,p,u(t,p))}}},2871:(e,t,n)=>{"use strict";var r=n(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,n)=>{"use strict";var r=n(5024),s=n(9989),i=n(480);e.exports=r?function(e,t,n){return s.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,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,n)=>{"use strict";var r=n(3999);e.exports=function(e,t,n,s){return s&&s.enumerable?e[t]=n:r(e,t,n),e}},7525:(e,t,n)=>{"use strict";var r=n(1063),s=Object.defineProperty;e.exports=function(e,t){try{s(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},5024:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,n)=>{"use strict";var r=n(1063),s=n(262),i=r.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7868:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(e,t,n)=>{"use strict";var r,s,i=n(1063),o=n(7868),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(s=+r[1]),e.exports=s},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(e,t,n)=>{"use strict";var r=n(6100),s=Error,i=r("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},4279:(e,t,n)=>{"use strict";var r=n(3999),s=n(3885),i=n(5791),o=Error.captureStackTrace;e.exports=function(e,t,n,a){i&&(o?o(e,t):r(e,"stack",s(n,a)))}},5791:(e,t,n)=>{"use strict";var r=n(1203),s=n(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9098:(e,t,n)=>{"use strict";var r=n(1063),s=n(7013),i=n(9344),o=n(2769),a=n(4543).f,c=n(8696),u=n(8099),l=n(4572),p=n(3999),h=n(701),m=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,s,f,d,_,g,y,v,w,b=e.target,E=e.global,x=e.stat,S=e.proto,P=E?r:x?r[b]:r[b]&&r[b].prototype,j=E?u:u[b]||p(u,b,{})[b],O=j.prototype;for(d in t)s=!(n=c(E?d:b+(x?".":"#")+d,e.forced))&&P&&h(P,d),g=j[d],s&&(y=e.dontCallGetSet?(w=a(P,d))&&w.value:P[d]),_=s&&y?y:t[d],(n||S||typeof g!=typeof _)&&(v=e.bind&&s?l(_,r):e.wrap&&s?m(_):S&&o(_)?i(_):_,(e.sham||_&&_.sham||g&&g.sham)&&p(v,"sham",!0),p(j,d,v),S&&(h(u,f=b+"Prototype")||p(u,f,{}),p(u[f],d,_),e.real&&O&&(n||!O[d])&&p(O,d,_)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,n)=>{"use strict";var r=n(9344),s=n(814),i=n(1780),o=r(r.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype.call;e.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},3410:(e,t,n)=>{"use strict";var r=n(5024),s=n(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3574:(e,t,n)=>{"use strict";var r=n(6100),s=n(814);e.exports=function(e,t,n){try{return r(s(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},9344:(e,t,n)=>{"use strict";var r=n(9932),s=n(6100);e.exports=function(e){if("Function"===r(e))return s(e)}},6100:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,n)=>{"use strict";var r=n(8099),s=n(1063),i=n(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(s[e]):r[e]&&r[e][t]||s[e]&&s[e][t]}},967:(e,t,n)=>{"use strict";var r=n(8407),s=n(4674),i=n(3057),o=n(6625),a=n(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[r(e)]}},1613:(e,t,n)=>{"use strict";var r=n(4713),s=n(814),i=n(7235),o=n(459),a=n(967),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(s(n))return i(r(n,e));throw new c(o(e)+" is not iterable")}},4674:(e,t,n)=>{"use strict";var r=n(814),s=n(3057);e.exports=function(e,t){var n=e[t];return s(n)?void 0:r(n)}},1063:function(e,t,n){"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 n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,n)=>{"use strict";var r=n(6100),s=n(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,n)=>{"use strict";var r=n(1003);e.exports=r("document","documentElement")},9665:(e,t,n)=>{"use strict";var r=n(5024),s=n(1203),i=n(9619);e.exports=!r&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,n)=>{"use strict";var r=n(6100),s=n(1203),i=n(9932),o=Object,a=r("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},3507:(e,t,n)=>{"use strict";var r=n(2769),s=n(262),i=n(3491);e.exports=function(e,t,n){var o,a;return i&&r(o=t.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},8148:(e,t,n)=>{"use strict";var r=n(262),s=n(3999);e.exports=function(e,t){r(t)&&"cause"in t&&s(e,"cause",t.cause)}},8417:(e,t,n)=>{"use strict";var r,s,i,o=n(1314),a=n(1063),c=n(262),u=n(3999),l=n(701),p=n(3753),h=n(4275),m=n(5241),f="Object already initialized",d=a.TypeError,_=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new _);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new d(f);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=h("state");m[y]=!0,r=function(e,t){if(l(e,y))throw new d(f);return t.facade=e,u(e,y,t),t},s=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:r,get:s,has:i,enforce:function(e){return i(e)?s(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return n}}}},2877:(e,t,n)=>{"use strict";var r=n(8655),s=n(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696:(e,t,n)=>{"use strict";var r=n(1203),s=n(2769),i=/#|\.prototype\./,o=function(e,t){var n=c[a(e)];return n===l||n!==u&&(s(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,n)=>{"use strict";var r=n(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},2937:(e,t,n)=>{"use strict";var r=n(262);e.exports=function(e){return r(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,n)=>{"use strict";var r=n(1003),s=n(2769),i=n(4317),o=n(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&i(t.prototype,a(e))}},208:(e,t,n)=>{"use strict";var r=n(4572),s=n(4713),i=n(7235),o=n(459),a=n(2877),c=n(8130),u=n(4317),l=n(1613),p=n(967),h=n(1743),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},d=f.prototype;e.exports=function(e,t,n){var _,g,y,v,w,b,E,x=n&&n.that,S=!(!n||!n.AS_ENTRIES),P=!(!n||!n.IS_RECORD),j=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),A=r(t,x),k=function(e){return _&&h(_,"normal",e),new f(!0,e)},I=function(e){return S?(i(e),O?A(e[0],e[1],k):A(e[0],e[1])):O?A(e,k):A(e)};if(P)_=e.iterator;else if(j)_=e;else{if(!(g=p(e)))throw new m(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((w=I(e[y]))&&u(d,w))return w;return new f(!1)}_=l(e,g)}for(b=P?e.next:_.next;!(E=s(b,_)).done;){try{w=I(E.value)}catch(e){h(_,"throw",e)}if("object"==typeof w&&w&&u(d,w))return w}return new f(!1)}},1743:(e,t,n)=>{"use strict";var r=n(4713),s=n(7235),i=n(4674);e.exports=function(e,t,n){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw n;if(a)throw o;return s(o),n}},1926:(e,t,n)=>{"use strict";var r=n(2621).IteratorPrototype,s=n(5780),i=n(480),o=n(1811),a=n(6625),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=s(r,{next:i(+!u,n)}),o(e,l,!1,!0),a[l]=c,e}},164:(e,t,n)=>{"use strict";var r=n(9098),s=n(4713),i=n(4871),o=n(3410),a=n(2769),c=n(1926),u=n(3671),l=n(3491),p=n(1811),h=n(3999),m=n(3508),f=n(8655),d=n(6625),_=n(2621),g=o.PROPER,y=o.CONFIGURABLE,v=_.IteratorPrototype,w=_.BUGGY_SAFARI_ITERATORS,b=f("iterator"),E="keys",x="values",S="entries",P=function(){return this};e.exports=function(e,t,n,o,f,_,j){c(n,t,o);var O,A,k,I=function(e){if(e===f&&R)return R;if(!w&&e&&e in T)return T[e];switch(e){case E:case x:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",N=!1,T=e.prototype,$=T[b]||T["@@iterator"]||f&&T[f],R=!w&&$||I(f),F="Array"===t&&T.entries||$;if(F&&(O=u(F.call(new e)))!==Object.prototype&&O.next&&(i||u(O)===v||(l?l(O,v):a(O[b])||m(O,b,P)),p(O,M,!0,!0),i&&(d[M]=P)),g&&f===x&&$&&$.name!==x&&(!i&&y?h(T,"name",x):(N=!0,R=function(){return s($,this)})),f)if(A={values:I(x),keys:_?R:I(E),entries:I(S)},j)for(k in A)(w||N||!(k in T))&&m(T,k,A[k]);else r({target:t,proto:!0,forced:w||N},A);return i&&!j||T[b]===R||m(T,b,R,{name:f}),d[t]=R,A}},2621:(e,t,n)=>{"use strict";var r,s,i,o=n(1203),a=n(2769),c=n(262),u=n(5780),l=n(3671),p=n(3508),h=n(8655),m=n(4871),f=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(r=s):d=!0),!c(r)||o((function(){var e={};return r[f].call(e)!==e}))?r={}:m&&(r=u(r)),a(r[f])||p(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},6625:e=>{"use strict";e.exports={}},8130:(e,t,n)=>{"use strict";var r=n(8146);e.exports=function(e){return r(e.length)}},5777:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},4879:(e,t,n)=>{"use strict";var r=n(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},5780:(e,t,n)=>{"use strict";var r,s=n(7235),i=n(7389),o=n(9683),a=n(5241),c=n(3489),u=n(9619),l=n(4275),p="prototype",h="script",m=l("IE_PROTO"),f=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},_=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g="undefined"!=typeof document?document.domain&&r?_(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):_(r);for(var s=o.length;s--;)delete g[p][o[s]];return g()};a[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[p]=s(e),n=new f,f[p]=null,n[m]=e):n=g(),void 0===t?n:i.f(n,t)}},7389:(e,t,n)=>{"use strict";var r=n(5024),s=n(1330),i=n(9989),o=n(7235),a=n(3273),c=n(8364);t.f=r&&!s?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,n=s[l++],r[n]);return e}},9989:(e,t,n)=>{"use strict";var r=n(5024),s=n(9665),i=n(1330),o=n(7235),a=n(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",m="writable";t.f=r?i?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&m in n&&!n[m]){var r=l(e,t);r&&r[m]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:p in n?n[p]:r[p],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=a(t),o(n),s)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4543:(e,t,n)=>{"use strict";var r=n(5024),s=n(4713),i=n(7161),o=n(480),a=n(3273),c=n(5341),u=n(701),l=n(9665),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},5116:(e,t,n)=>{"use strict";var r=n(8600),s=n(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,n)=>{"use strict";var r=n(701),s=n(2769),i=n(2137),o=n(4275),a=n(2871),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var n=t.constructor;return s(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},4317:(e,t,n)=>{"use strict";var r=n(6100);e.exports=r({}.isPrototypeOf)},8600:(e,t,n)=>{"use strict";var r=n(6100),s=n(701),i=n(3273),o=n(1005).indexOf,a=n(5241),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!s(a,n)&&s(r,n)&&c(l,n);for(;t.length>u;)s(r,n=t[u++])&&(~o(l,n)||c(l,n));return l}},8364:(e,t,n)=>{"use strict";var r=n(8600),s=n(9683);e.exports=Object.keys||function(e){return r(e,s)}},7161:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},3491:(e,t,n)=>{"use strict";var r=n(3574),s=n(7235),i=n(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return s(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},9559:(e,t,n)=>{"use strict";var r=n(4904),s=n(8407);e.exports=r?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(e,t,n)=>{"use strict";var r=n(4713),s=n(2769),i=n(262),o=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&s(n=e.toString)&&!i(a=r(n,e)))return a;if(s(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&s(n=e.toString)&&!i(a=r(n,e)))return a;throw new o("Can't convert object to primitive value")}},5691:(e,t,n)=>{"use strict";var r=n(1003),s=n(6100),i=n(5116),o=n(7313),a=n(7235),c=s([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?c(t,n(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,n)=>{"use strict";var r=n(9989).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},5426:(e,t,n)=>{"use strict";var r=n(3057),s=TypeError;e.exports=function(e){if(r(e))throw new s("Can't call method on "+e);return e}},1811:(e,t,n)=>{"use strict";var r=n(4904),s=n(9989).f,i=n(3999),o=n(701),a=n(9559),c=n(8655)("toStringTag");e.exports=function(e,t,n,u){var l=n?e:e&&e.prototype;l&&(o(l,c)||s(l,c,{configurable:!0,value:t}),u&&!r&&i(l,"toString",a))}},4275:(e,t,n)=>{"use strict";var r=n(8141),s=n(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3753:(e,t,n)=>{"use strict";var r=n(1063),s=n(7525),i="__core-js_shared__",o=r[i]||s(i,{});e.exports=o},8141:(e,t,n)=>{"use strict";var r=n(4871),s=n(3753);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5571:(e,t,n)=>{"use strict";var r=n(6100),s=n(9903),i=n(1139),o=n(5426),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,p=i(o(t)),h=s(n),m=p.length;return h<0||h>=m?e?"":void 0:(r=c(p,h))<55296||r>56319||h+1===m||(l=c(p,h+1))<56320||l>57343?e?a(p,h):r:e?u(p,h,h+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4603:(e,t,n)=>{"use strict";var r=n(4432),s=n(1203),i=n(1063).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4574:(e,t,n)=>{"use strict";var r=n(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):i(n,t)}},3273:(e,t,n)=>{"use strict";var r=n(1395),s=n(5426);e.exports=function(e){return r(s(e))}},9903:(e,t,n)=>{"use strict";var r=n(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8146:(e,t,n)=>{"use strict";var r=n(9903),s=Math.min;e.exports=function(e){var t=r(e);return t>0?s(t,9007199254740991):0}},2137:(e,t,n)=>{"use strict";var r=n(5426),s=Object;e.exports=function(e){return s(r(e))}},493:(e,t,n)=>{"use strict";var r=n(4713),s=n(262),i=n(6281),o=n(4674),a=n(9258),c=n(8655),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var n,c=o(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!s(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5341:(e,t,n)=>{"use strict";var r=n(493),s=n(6281);e.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},4904:(e,t,n)=>{"use strict";var r={};r[n(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},1139:(e,t,n)=>{"use strict";var r=n(8407),s=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,n)=>{"use strict";var r=n(6100),s=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},7460:(e,t,n)=>{"use strict";var r=n(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,n)=>{"use strict";var r=n(5024),s=n(1203);e.exports=r&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,n)=>{"use strict";var r=n(1063),s=n(2769),i=r.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8655:(e,t,n)=>{"use strict";var r=n(1063),s=n(8141),i=n(701),o=n(1268),a=n(4603),c=n(7460),u=r.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},6453:(e,t,n)=>{"use strict";var r=n(1003),s=n(701),i=n(3999),o=n(4317),a=n(3491),c=n(7464),u=n(5516),l=n(3507),p=n(4879),h=n(8148),m=n(4279),f=n(5024),d=n(4871);e.exports=function(e,t,n,_){var g="stackTraceLimit",y=_?2:1,v=e.split("."),w=v[v.length-1],b=r.apply(null,v);if(b){var E=b.prototype;if(!d&&s(E,"cause")&&delete E.cause,!n)return b;var x=r("Error"),S=t((function(e,t){var n=p(_?t:e,void 0),r=_?new b(e):new b;return void 0!==n&&i(r,"message",n),m(r,S,r.stack,2),this&&o(E,this)&&l(r,this,S),arguments.length>y&&h(r,arguments[y]),r}));if(S.prototype=E,"Error"!==w?a?a(S,x):c(S,x,{name:!0}):f&&g in b&&(u(S,b,g),u(S,b,"prepareStackTrace")),c(S,b),!d)try{E.name!==w&&i(E,"name",w),E.constructor=S}catch(e){}return S}}},6138:(e,t,n)=>{"use strict";var r=n(9098),s=n(1003),i=n(7013),o=n(1203),a=n(6453),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,n){return i(e,this,arguments)}}),l,!0)})},3085:(e,t,n)=>{"use strict";var r=n(9098),s=n(4317),i=n(3671),o=n(3491),a=n(7464),c=n(5780),u=n(3999),l=n(480),p=n(8148),h=n(4279),m=n(208),f=n(4879),d=n(8655)("toStringTag"),_=Error,g=[].push,y=function(e,t){var n,r=s(v,this);o?n=o(new _,r?i(this):v):(n=r?this:c(v),u(n,d,"Error")),void 0!==t&&u(n,"message",f(t)),h(n,y,n.stack,1),arguments.length>2&&p(n,arguments[2]);var a=[];return m(e,g,{that:a}),u(n,"errors",a),n};o?o(y,_):a(y,_,{name:!0});var v=y.prototype=c(_.prototype,{constructor:l(1,y),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},5695:(e,t,n)=>{"use strict";n(3085)},9828:(e,t,n)=>{"use strict";var r=n(3273),s=n(8137),i=n(6625),o=n(8417),a=n(9989).f,c=n(164),u=n(877),l=n(4871),p=n(5024),h="Array Iterator",m=o.set,f=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){m(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},484:(e,t,n)=>{"use strict";var r=n(9098),s=n(1063),i=n(7013),o=n(6453),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=o(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},p=function(e,t){if(c&&c[e]){var n={};n[e]=o(a+"."+e,t,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},3832:(e,t,n)=>{"use strict";var r=n(5571).charAt,s=n(1139),i=n(8417),o=n(164),a=n(877),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:s(e),index:0})}),(function(){var e,t=l(this),n=t.string,s=t.index;return s>=n.length?a(void 0,!0):(e=r(n,s),t.index+=e.length,a(e,!1))}))},5442:(e,t,n)=>{"use strict";n(5695)},85:(e,t,n)=>{"use strict";n(9828);var r=n(1100),s=n(1063),i=n(1811),o=n(6625);for(var a in r)i(s[a],a),o[a]=o.Array},239:(e,t,n)=>{"use strict";n(5442);var r=n(6656);n(85),e.exports=r}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var r={};return(()=>{"use strict";n.r(r),n.d(r,{detect:()=>xp,detectionRegExp:()=>Ep,mediaTypes:()=>bp,namespace:()=>Pp,parse:()=>Sp});var e={};n.r(e),n.d(e,{hasElementSourceMap:()=>us,includesClasses:()=>ps,includesSymbols:()=>ls,isAnnotationElement:()=>ss,isArrayElement:()=>es,isBooleanElement:()=>Xr,isCommentElement:()=>is,isElement:()=>Wr,isLinkElement:()=>ns,isMemberElement:()=>ts,isNullElement:()=>Zr,isNumberElement:()=>Yr,isObjectElement:()=>Qr,isParseResultElement:()=>os,isPrimitiveElement:()=>cs,isRefElement:()=>rs,isSourceMapElement:()=>as,isStringElement:()=>Jr});var t={};n.r(t),n.d(t,{isJSONReferenceElement:()=>oa,isJSONSchemaElement:()=>ia,isLinkDescriptionElement:()=>ca,isMediaElement:()=>aa});var s={};n.r(s),n.d(s,{isReferenceLikeElement:()=>vc,isSwaggerExtension:()=>yc});var i={};function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function a(e){return function t(n){return 0===arguments.length||o(n)?t:e.apply(this,arguments)}}function c(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return o(n)?t:a((function(t){return e(n,t)}));default:return o(n)&&o(r)?t:o(n)?a((function(t){return e(t,r)})):o(r)?a((function(t){return e(n,t)})):e(n,r)}}}function u(e){return function t(n,r,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:c((function(t,r){return e(n,t,r)}));case 2:return o(n)&&o(r)?t:o(n)?c((function(t,n){return e(t,r,n)})):o(r)?c((function(t,r){return e(n,t,r)})):a((function(t){return e(n,r,t)}));default:return o(n)&&o(r)&&o(s)?t:o(n)&&o(r)?c((function(t,n){return e(t,n,s)})):o(n)&&o(s)?c((function(t,n){return e(t,r,n)})):o(r)&&o(s)?c((function(t,r){return e(n,t,r)})):o(n)?a((function(t){return e(t,r,s)})):o(r)?a((function(t){return e(n,t,s)})):o(s)?a((function(t){return e(n,r,t)})):e(n,r,s)}}}n.r(i),n.d(i,{isContactElement:()=>nu,isDefinitionsElement:()=>wu,isExampleElement:()=>hu,isExternalDocumentationElement:()=>ou,isHeaderElement:()=>mu,isHeadersElement:()=>pu,isInfoElement:()=>eu,isItemsElement:()=>cu,isLicenseElement:()=>tu,isOperationElement:()=>iu,isParameterElement:()=>au,isParametersDefinitionsElement:()=>bu,isPathItemElement:()=>su,isPathsElement:()=>ru,isReferenceElement:()=>du,isResponseElement:()=>lu,isResponsesDefinitionsElement:()=>yu,isResponsesElement:()=>uu,isSchemaElement:()=>_u,isScopesElement:()=>xu,isSecurityDefinitionsElement:()=>vu,isSecurityRequirementElement:()=>Su,isSecuritySchemeElement:()=>Eu,isSwaggerElement:()=>Xc,isSwaggerVersionElement:()=>Qc,isTagElement:()=>fu,isXmlElement:()=>gu});const l=c((function(e,t){return null==t||t!=t?e:t})),p=Number.isInteger||function(e){return e<<0===e};function h(e){return"[object String]"===Object.prototype.toString.call(e)}const m=c((function(e,t){var n=e<0?t.length+e:e;return h(t)?t.charAt(n):t[n]}));const f=c((function(e,t){if(null!=t)return p(e)?m(e,t):t[e]}));const d=u((function(e,t,n){return l(e,f(t,n))}));var _=c((function(e,t){for(var n={},r={},s=0,i=e.length;s<i;)r[e[s]]=1,s+=1;for(var o in t)r.hasOwnProperty(o)||(n[o]=t[o]);return n}));const g=_;function y(e,t,n){for(var r=0,s=n.length;r<s;)t=e(t,n[r]),r+=1;return t}const v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const w=a((function(e){return!!v(e)||!!e&&("object"==typeof e&&(!h(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var b="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function E(e,t,n){return function(r,s,i){if(w(i))return e(r,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(r,s,i,"fantasy-land/reduce");if(null!=i[b])return n(r,s,i[b]());if("function"==typeof i.next)return n(r,s,i);if("function"==typeof i.reduce)return t(r,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function x(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function S(e,t,n,r){return n[r](e,t)}const P=E(y,S,x);function j(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!v(r)){for(var s=0;s<e.length;){if("function"==typeof r[e[s]])return r[e[s]].apply(r,Array.prototype.slice.call(arguments,0,-1));s+=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 n.apply(this,arguments)}}function O(e,t){for(var n=0,r=t.length,s=Array(r);n<r;)s[n]=e(t[n]),n+=1;return s}const A=function(){return this.xf["@@transducer/init"]()},k=function(e){return this.xf["@@transducer/result"](e)};var I=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const M=function(e){return function(t){return new I(e,t)}};function N(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,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,s){return t.apply(this,arguments)};case 5:return function(e,n,r,s,i){return t.apply(this,arguments)};case 6:return function(e,n,r,s,i,o){return t.apply(this,arguments)};case 7:return function(e,n,r,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,n,r,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,n,r,s,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,n,r,s,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function T(e,t,n){return function(){for(var r=[],s=0,i=e,a=0,c=!1;a<t.length||s<arguments.length;){var u;a<t.length&&(!o(t[a])||s>=arguments.length)?u=t[a]:(u=arguments[s],s+=1),r[a]=u,o(u)?c=!0:i-=1,a+=1}return!c&&i<=0?n.apply(this,r):N(Math.max(0,i),T(e,r,n))}}const $=c((function(e,t){return 1===e?a(t):N(e,T(e,[],t))}));function R(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var F=Object.prototype.toString;const C=function(){return"[object Arguments]"===F.call(arguments)?function(e){return"[object Arguments]"===F.call(e)}:function(e){return R("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),D=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(){return arguments.propertyIsEnumerable("length")}(),V=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},B="function"!=typeof Object.keys||L?a((function(e){if(Object(e)!==e)return[];var t,n,r=[],s=L&&C(e);for(t in e)!R(t,e)||s&&"length"===t||(r[r.length]=t);if(q)for(n=D.length-1;n>=0;)R(t=D[n],e)&&!V(r,t)&&(r[r.length]=t),n-=1;return r})):a((function(e){return Object(e)!==e?[]:Object.keys(e)}));const U=B;const z=c(j(["fantasy-land/map","map"],M,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return $(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return y((function(n,r){return n[r]=e(t[r]),n}),{},U(t));default:return O(e,t)}})));const H=c((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:P((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,s=t.length,i=[];for(n=0;n<r;)i[i.length]=e[n],n+=1;for(n=0;n<s;)i[i.length]=t[n],n+=1;return i}(e,z(n,t))}),[],e)}));const G=c((function(e,t){var n=$(e,t);return $(e,(function(){return y(H,z(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const K=a((function(e){return G(e.length,e)}));const W=K(a((function(e){return!e})));function J(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Y(e,t,n){for(var r=0,s=n.length;r<s;){if(e(t,n[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 X=a((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Q(e,t,n,r){var s=J(e);function i(e,t){return ee(e,t,n.slice(),r.slice())}return!Y((function(e,t){return!Y(i,t,e)}),J(t),s)}function ee(e,t,n,r){if(Z(e,t))return!0;var s,i,o=X(e);if(o!==X(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!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=n.length-1;a>=0;){if(n[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Q(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&Q(e.values(),t.values(),n.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=U(e);if(c.length!==U(t).length)return!1;var u=n.concat([e]),l=r.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!R(p,t)||!ee(t[p],e[p],u,l))return!1;a-=1}return!0}const te=c((function(e,t){return ee(e,t,[],[])}));const ne=a((function(e){return function(){return e}}));const re=ne(void 0);const se=te(re());const ie=W(se);var oe=n(8326);function ae(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ce(e,t,n){for(var r=0,s=n.length;r<s;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const ue=c((function(e,t){return N(e.length,(function(){return e.apply(t,arguments)}))}));function le(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function pe(e,t,n,r){return e["@@transducer/result"](n[r](ue(e["@@transducer/step"],e),t))}const he=E(ce,pe,le);var me=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function fe(e){return new me(e)}const de=u((function(e,t,n){return he("function"==typeof e?fe(e):e,t,n)}));function _e(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return v(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}const ge=u(_e("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})));const ye=a(_e("tail",ge(1,1/0)));function ve(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return N(arguments[0].length,de(ae,arguments[0],ye(arguments)))}var we=function(e,t){switch(arguments.length){case 0:return we;case 1:return function t(n){return 0===arguments.length?t:Z(e,n)};default:return Z(e,t)}};const be=we;function Ee(e,t){return function(e,t,n){var r,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(s=e[n])&&1/s===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(s=e[n])&&s!=s)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(te(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function xe(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 Se=function(e){return(e<10?"0":"")+e};const Pe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Se(e.getUTCMonth()+1)+"-"+Se(e.getUTCDate())+"T"+Se(e.getUTCHours())+":"+Se(e.getUTCMinutes())+":"+Se(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function je(e){return"[object Object]"===Object.prototype.toString.call(e)}var Oe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ae(e){return function(t){return new Oe(e,t)}}const ke=c(j(["fantasy-land/filter","filter"],Ae,(function(e,t){return je(t)?y((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},U(t)):function(e,t){for(var n=0,r=t.length,s=[];n<r;)e(t[n])&&(s[s.length]=t[n]),n+=1;return s}(e,t)})));const Ie=c((function(e,t){return ke((n=e,function(){return!n.apply(this,arguments)}),t);var n}));function Me(e,t){var n=function(n){var r=t.concat([e]);return Ee(n,r)?"<Circular>":Me(n,r)},r=function(e,t){return O((function(t){return xe(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+O(n,e).join(", ")+"))";case"[object Array]":return"["+O(n,e).concat(r(e,Ie((function(e){return/^\d+$/.test(e)}),U(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):xe(Pe(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":xe(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+r(e,U(e)).join(", ")+"}"}}const Ne=a((function(e){return Me(e,[])}));const Te=c((function(e,t){return e.map((function(e){for(var n,r=t,s=0;s<e.length;){if(null==r)return;n=e[s],r=p(n)?m(n,r):r[n],s+=1}return r}))}));const $e=c((function(e,t){return Te([e],t)[0]}));const Re=u((function(e,t,n){return e($e(t,n))}));function Fe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ce=c((function(e,t){return e&&t}));const qe=c((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:K(Ce)(e,t)}));const De=te(null);const Le=W(De);function Ve(e){return Ve="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},Ve(e)}const Be=function(e){return"object"===Ve(e)};const Ue=$(1,qe(Le,Be));const ze=c((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var s=n(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=Ne(e),o=n(i,Ne(t));return void 0!==o&&o===i?e:t}));const He=c((function(e,t){return z(f(e),t)}));const Ge=a((function(e){return $(de(ze,0,He("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const Ke=$(1,ve(X,be("GeneratorFunction")));const We=$(1,ve(X,be("AsyncFunction")));const Je=Ge([ve(X,be("Function")),Ke,We]);var Ye=ve(X,be("Object")),Ze=ve(Ne,te(Ne(Object))),Xe=Re(qe(Je,Ze),["constructor"]);const Qe=$(1,(function(e){if(!Ue(e)||!Ye(e))return!1;var t=Object.getPrototypeOf(e);return!!De(t)||Xe(t)}));class et extends oe.Om{constructor(e,t,n){super(e,t,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const tt=et;class nt extends oe.Om{constructor(e,t,n){super(e,t,n),this.element="comment"}}const rt=nt;class st extends oe.wE{constructor(e,t,n){super(e,t,n),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(se(t))return!1;const n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}}const it=st;class ot extends oe.wE{constructor(e,t,n){super(e,t,n),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new oe.wE([e.start.row,e.start.column,e.start.char]),n=new oe.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),n.classes.push("position"),this.push(t).push(n)}}const at=ot;class ct extends oe.g${constructor(){super(),this.register("annotation",tt),this.register("comment",rt),this.register("parseResult",it),this.register("sourceMap",at)}}const ut=new ct,lt=e=>{const t=new ct;return Qe(e)&&t.use(e),t},pt=ut;const ht=$(1,ve(X,be("String"))),mt=n.p+"23aac571c96605dc25219087ad291441.wasm",ft=globalThis.fetch;Je(ft)&&(globalThis.fetch=(...e)=>ht(e[0])&&e[0].endsWith("tree-sitter.wasm")?ft.apply(globalThis,[mt,ye(e)]):ft.apply(globalThis,e));var dt=n(3833),_t=n(1212);const gt=class extends _t{constructor(e,t,n){if(super(e,t,n),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!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:e}=n;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class yt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(gt,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 vt=yt,wt=n.p+"d396281e11774e0afa7a40d620779b6d.wasm";let bt=null,Et=null;const xt=async e=>{if(null===bt&&null===Et)Et=dt.init().then((()=>dt.Language.load(wt))).then((e=>{const t=new dt;return t.setLanguage(e),t})).finally((()=>{Et=null})),bt=await Et;else if(null===bt&&null!==Et)bt=await Et;else if(null===bt)throw new vt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return bt.parse(e)};function St(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function Pt(e,t,n){if(n||(n=new jt),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var r=function(r){var s=n.get(e);if(s)return s;for(var i in n.set(e,r),e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t?Pt(e[i],!0,n):e[i]);return r};switch(X(e)){case"Object":return r(Object.create(Object.getPrototypeOf(e)));case"Array":return r([]);case"Date":return new Date(e.valueOf());case"RegExp":return St(e);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 jt=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const n=this.hash(e);let r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const n=this.map[t];for(let t=0;t<n.length;t+=1){const r=n[t];if(r[0]===e)return r[1]}}return}const t=this.hash(e),n=this.map[t];if(n)for(let t=0;t<n.length;t+=1){const r=n[t];if(r[0]===e)return r[1]}},e}();const Ot=a((function(e){return null!=e&&"function"==typeof e.clone?e.clone():Pt(e,!0)}));const At=class extends vt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}};const kt=class extends At{};const It=class extends kt{};const Mt=class extends It{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 Nt=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:n=!1}={}){this.type=this.constructor.type,this.isMissing=n,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const n=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,n)})),e}};let Tt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const $t=class extends Nt{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...n}){super({...n}),this.explicitName=e,this.kind=t}};const Rt=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Ft=class extends Rt{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Tt.Mapping}};const Ct=class extends Rt{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Tt.Sequence}};const qt=class extends Rt{static uri="tag:yaml.org,2002:str"};const Dt=u((function(e,t,n){return l(e,$e(t,n))}));const Lt=a((function(e){return $(e.length,e)}));var Vt="\t\n\v\f\r \u2028\u2029\ufeff";const Bt=a("function"==typeof String.prototype.trim&&!Vt.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Vt+"]["+Vt+"]*"),n=new RegExp("["+Vt+"]["+Vt+"]*$");return e.replace(t,"").replace(n,"")});const Ut=c((function(e,t){return $(e+1,(function(){var n=arguments[e];if(null!=n&&Fe(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ne(n)+' does not have a method named "'+t+'"')}))}));const zt=Ut(1,"split");const Ht=Ut(1,"join");const Gt=a((function(e){return h(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Kt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return ve.apply(this,Gt(arguments))}const Wt=$(4,(function(e,t,n,r){return he(e("function"==typeof t?fe(t):t),n,r)}));const Jt=c((function(e,t){if(v(e)){if(v(t))return e.concat(t);throw new TypeError(Ne(t)+" is not an array")}if(h(e)){if(h(t))return e+t;throw new TypeError(Ne(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(Ne(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Yt=te("");const Zt=c((function(e,t){return $(de(ze,0,He("length",t)),(function(){var n=arguments,r=this;return e.apply(r,O((function(e){return e.apply(r,n)}),t))}))}));function Xt(e){return e}const Qt=a(Xt);const en=$(1,ve(X,be("Number")));var tn=qe(en,isFinite);var nn=$(1,tn);const rn=Je(Number.isFinite)?$(1,ue(Number.isFinite,Number)):nn;var sn=qe(rn,Zt(te,[Math.floor,Qt]));var on=$(1,sn);const an=Je(Number.isInteger)?$(1,ue(Number.isInteger,Number)):on;const cn=a((function(e){return $(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))}));const un=W(rn);const ln=$(1,qe(en,c((function(e,t){return e>t}))(0)));var pn=Lt((function(e,t){var n=Number(t);if(n!==t&&(n=0),ln(n))throw new RangeError("repeat count must be non-negative");if(un(n))throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0===e.length||0===n)return"";if(e.length*n>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*n;n=Math.floor(Math.log(n)/Math.log(2));for(var s=e;n;)s+=e,n-=1;return s+=s.substring(0,r-s.length)})),hn=cn(Ut(1,"repeat"));const mn=Je(String.prototype.repeat)?hn:pn;const fn=u((function(e,t,n){return n.replace(e,t)}));var dn=fn(/[\s\uFEFF\xA0]+$/,""),_n=Ut(0,"trimEnd");const gn=Je(String.prototype.trimEnd)?_n:dn;var yn=fn(/^[\s\uFEFF\xA0]+/,""),vn=Ut(0,"trimStart");const wn=Je(String.prototype.trimStart)?vn:yn;var bn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function En(e){return function(t){return new bn(e,t)}}const xn=c(j(["dropWhile"],En,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return ge(n,1/0,t)})));const Sn=cn(c(Ee));const Pn=Lt((function(e,t){return ve(zt(""),xn(Sn(e)),Ht(""))(t)}));const jn=cn(Jt);var On=n(6850);const An=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,kn=e=>{const t=(e=>{const t=e.match(An),n=Dt("",["groups","indentation"],t);return Yt(n)?void 0:parseInt(n,10)})(e);if(an(t))return mn(" ",t);const n=Dt("",[1],e.split("\n")),r=Dt(0,["groups","indentation","length"],n.match(/^(?<indentation>[ ]*)/));return mn(" ",r)},In=e=>{const t=e.match(An),n=Dt("",["groups","chomping"],t);return Yt(n)?void 0:n},Mn=(e,t)=>se(e)?`${gn(t)}\n`:"-"===e?gn(t):t,Nn=e=>e.replace(/\r\n/g,"\n"),Tn=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,n)=>t?e:` ${n.trimStart()}`)).replace(/[\n]{2}/g,"\n"),$n=Lt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Rn=ve(Nn,Bt,Tn,zt("\n"),z(wn),Ht("\n")),Fn=ve(Nn,Bt,Tn,zt("\n"),z(wn),Ht("\n"),$n("'")),Cn=ve(Nn,Bt,(e=>e.replace(/\\\n\s*/g,"")),Tn,On.MH,zt("\n"),z(wn),Ht("\n"),$n('"'));let qn=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}({}),Dn=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Ln=class{static test(e){return e.tag.kind===Tt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const n=e.clone();return e.style===qn.Plain?t=Rn(e.content):e.style===qn.SingleQuoted?t=Fn(e.content):e.style===qn.DoubleQuoted?t=Cn(e.content):e.style===qn.Literal?t=(e=>{const t=kn(e),n=In(e),r=Nn(e),s=ye(r.split("\n")),i=Kt(z(Pn(t)),z(jn("\n"))),o=Wt(i,Jt,"",s);return Mn(n,o)})(e.content):e.style===qn.Folded&&(t=(e=>{const t=kn(e),n=In(e),r=Nn(e),s=ye(r.split("\n")),i=Kt(z(Pn(t)),z(jn("\n"))),o=Wt(i,Jt,"",s),a=Tn(o);return Mn(n,a)})(e.content)),n.content=t,n}static resolve(e){return e}};const Vn=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Ft),this.registerTag(new Ct),this.registerTag(new qt)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Tt.Scalar?t=qt.uri:e.tag.kind===Tt.Sequence?t=Ct.uri:e.tag.kind===Tt.Mapping&&(t=Ft.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t}registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})}registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this}overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this}resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let n=e;Ln.test(e)&&(n=Ln.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new Mt(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Ot(e.tag.position),node:e.clone()});if(!r.test(n))throw new Mt(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Ot(e.tag.position),nodeCanonicalContent:n.content,node:e.clone()});return r.resolve(n)}};const Bn=class extends Rt{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,n=e.clone();return n.content=t,n}};const Un=class extends Rt{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),n=e.clone();return n.content=t,n}};const zn=class extends Rt{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),n=e.clone();return n.content=t,n}};const Hn=class extends Rt{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 Gn=class extends Vn{constructor(){super(),this.registerTag(new Bn,!0),this.registerTag(new Un,!0),this.registerTag(new zn,!0),this.registerTag(new Hn,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===Tt.Sequence)t=Ct.uri;else if(e.tag.kind===Tt.Mapping)t=Ft.uri;else if(e.tag.kind===Tt.Scalar){const n=this.tags.find((t=>t.test(e)));t=(null==n?void 0:n.tag)||"?"}return t}};const Kn=class extends Nt{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:n,styleGroup:r,...s}){super({...s}),this.anchor=e,this.tag=t,this.style=n,this.styleGroup=r}};const Wn=class extends Kn{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Jn=class extends kt{},Yn=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Zn=e=>Yn("mapping",e),Xn=e=>Yn("sequence",e),Qn=e=>Yn("keyValuePair",e),er=e=>Yn("scalar",e),tr=e=>Yn("alias",e);const nr=class{addAnchor(e){if(!(e=>Yn("anchor",e))(e.anchor))throw new Jn("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Wn({content:e.content,style:qn.Plain,styleGroup:Dn.Flow})}},rr=(e,t,n)=>{const r=e[t];if(null!=r){if(!n&&"function"==typeof r)return r;const e=n?r.leave:r.enter;if("function"==typeof e)return e}else{const r=n?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},sr={},ir=e=>null==e?void 0:e.type,or=e=>"string"==typeof ir(e),ar=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),cr=(e,{visitFnGetter:t=rr,nodeTypeGetter:n=ir,breakSymbol:r=sr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,...l){let p=u,h=!1;for(let m=0;m<e.length;m+=1)if(c[m]===a){const a=t(e[m],n(p),!1);if("function"==typeof a){const t=a.call(e[m],p,...l);if(t===i)c[m]=u;else if(t===r)c[m]=r;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,h=!0}}}}return h?p:void 0},leave(s,...o){for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],n(s),!0);if("function"==typeof a){const t=a.call(e[u],s,...o);if(t===r)c[u]=r;else if(void 0!==t&&t!==i)return t}}else c[u]===s&&(c[u]=a)}}};cr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=rr,nodeTypeGetter:n=ir,breakSymbol:r=sr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(u,...l){let p=u,h=!1;for(let m=0;m<e.length;m+=1)if(c[m]===a){const a=t(e[m],n(p),!1);if("function"==typeof a){const t=await a.call(e[m],p,...l);if(t===i)c[m]=u;else if(t===r)c[m]=r;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,h=!0}}}}return h?p:void 0},async leave(s,...o){for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],n(s),!0);if("function"==typeof a){const t=await a.call(e[u],s,...o);if(t===r)c[u]=r;else if(void 0!==t&&t!==i)return t}}else c[u]===s&&(c[u]=a)}}};const ur=(e,t,{keyMap:n=null,state:r={},breakSymbol:s=sr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=rr,nodeTypeGetter:c=ir,nodePredicate:u=or,nodeCloneFn:l=ar,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],g=-1,y=[],v=e;const w=[],b=[];do{g+=1;const e=g===_.length;let n;const x=e&&0!==y.length;if(e){if(n=0===b.length?void 0:w.pop(),v=f,f=b.pop(),x)if(d){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;n===i?(v.splice(r,1),e+=1):v[r]=n}}else{v=l(v);for(const[e,t]of y)v[e]=t}g=m.index,_=m.keys,y=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?g:_[g],v=f[n],v===i||void 0===v)continue;w.push(n)}let S;if(!Array.isArray(v)){if(!u(v))throw new At(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&b.includes(v)){w.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;S=i.call(t,v,n,f,w,b)}if(S===s)break;if(S===o){if(!e){w.pop();continue}}else if(void 0!==S&&(y.push([n,S]),!e)){if(!u(S)){w.pop();continue}v=S}}var E;if(void 0===S&&x&&y.push([n,v]),!e)m={inArray:d,index:g,keys:_,edits:y,prev:m},d=Array.isArray(v),_=d?v:null!==(E=h[c(v)])&&void 0!==E?E:[],g=-1,y=[],f!==i&&void 0!==f&&b.push(f),f=v}while(void 0!==m);return 0!==y.length?y[y.length-1][1]:e};ur[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:s=sr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=rr,nodeTypeGetter:c=ir,nodePredicate:u=or,nodeCloneFn:l=ar,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],g=-1,y=[],v=e;const w=[],b=[];do{g+=1;const e=g===_.length;let n;const x=e&&0!==y.length;if(e){if(n=0===b.length?void 0:w.pop(),v=f,f=b.pop(),x)if(d){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;n===i?(v.splice(r,1),e+=1):v[r]=n}}else{v=l(v);for(const[e,t]of y)v[e]=t}g=m.index,_=m.keys,y=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?g:_[g],v=f[n],v===i||void 0===v)continue;w.push(n)}let S;if(!Array.isArray(v)){if(!u(v))throw new At(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&b.includes(v)){w.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;S=await i.call(t,v,n,f,w,b)}if(S===s)break;if(S===o){if(!e){w.pop();continue}}else if(void 0!==S&&(y.push([n,S]),!e)){if(!u(S)){w.pop();continue}v=S}}var E;if(void 0===S&&x&&y.push([n,v]),!e)m={inArray:d,index:g,keys:_,edits:y,prev:m},d=Array.isArray(v),_=d?v:null!==(E=h[c(v)])&&void 0!==E?E:[],g=-1,y=[],f!==i&&void 0!==f&&b.push(f),f=v}while(void 0!==m);return 0!==y.length?y[y.length-1][1]:e};class lr{static type="point";type=lr.type;row;column;char;constructor({row:e,column:t,char:n}){this.row=e,this.column=t,this.char=n}}class pr{static type="position";type=pr.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const hr=pr;const mr=class extends Nt{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class fr extends Nt{static type="stream"}Object.defineProperty(fr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Yn("document",e))(e)||(e=>Yn("comment",e))(e))):[]},enumerable:!0});const dr=fr;const _r=m(0);const gr=class extends Nt{static type="parseResult";get rootNode(){return _r(this.children)}};const yr="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),n=1,r=arguments.length;n<r;){var s=arguments[n];if(null!=s)for(var i in s)R(i,s)&&(t[i]=s[i]);n+=1}return t};const vr=c((function(e,t){return yr({},e,t)}));const wr=class extends Nt{static type="directive";name;parameters;constructor({name:e,parameters:t,...n}){super({...n}),this.name=e,this.parameters=vr({version:void 0,handle:void 0,prefix:void 0},t)}};const br=class extends Nt{static type="document"};const Er=class extends Kn{};class xr extends Er{static type="mapping"}Object.defineProperty(xr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Qn):[]},enumerable:!0});const Sr=xr;class Pr extends Nt{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(Pr.prototype,{key:{get(){return this.children.filter((e=>er(e)||Zn(e)||Xn(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>er(e)||Zn(e)||Xn(e)||tr(e))(t)))[0]},enumerable:!0}});const jr=Pr;class Or extends Er{static type="sequence"}Object.defineProperty(Or.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Xn(e)||Zn(e)||er(e)||tr(e))):[]},enumerable:!0});const Ar=Or;const kr=class extends Nt{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Ir=class extends Nt{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Mr=class extends Nt{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const Nr=class extends Nt{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...n}={}){super({...n}),this.value=e,this.isUnexpected=t}};const Tr=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"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},$r={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Rr=e=>Array.isArray(e)||or(e);class Fr{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 lr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),n=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new hr({start:t,end:n})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new mr({name:t.text,position:Fr.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,n=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?Tt.Mapping:e.type.endsWith("sequence")?Tt.Sequence:Tt.Scalar,s=t?Fr.toPosition(t):void 0;return new $t({explicitName:n,kind:r,position:s})}schema;referenceManager;stream={enter:e=>{const t=Fr.toPosition(e);return new dr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new gr({children:[e]})};yaml_directive={enter:e=>{var t;const n=Fr.toPosition(e),r=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new wr({position:n,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:e=>{const t=Fr.toPosition(e),n=e.children[0],r=e.children[1],s=new wr({position:t,name:"%TAG",parameters:{handle:null==n?void 0:n.text,prefix:null==r?void 0:r.text}});return this.schema.registerTagDirective(s),s}};reserved_directive={enter:e=>{const t=Fr.toPosition(e),n=e.children[0],r=e.children[1],s=e.children[2];return new wr({position:t,name:null==n?void 0:n.text,parameters:{handle:null==r?void 0:r.text,prefix:null==s?void 0:s.text}})}};document={enter:e=>{const t=Fr.toPosition(e);return new br({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(Fr.isScalar(t)||Fr.isMapping(t)||Fr.isSequence(t))return e.children;const n=new lr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),r=new Wn({content:"",anchor:Fr.kindNodeToYamlAnchor(t),tag:Fr.kindNodeToYamlTag(t),position:new hr({start:n,end:n}),styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(r),[...e.children,r]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Sr({children:e.children,position:t,anchor:r,tag:n,styleGroup:Dn.Block,style:qn.NextLine,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};block_mapping_pair={enter:e=>{const t=Fr.toPosition(e),n=[...e.children];if(Fr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);n.unshift(t)}if(Fr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);n.push(t)}return new jr({children:n,position:t,styleGroup:Dn.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Sr({children:e.children,position:t,anchor:r,tag:n,styleGroup:Dn.Flow,style:qn.Explicit,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};flow_pair={enter:e=>{const t=Fr.toPosition(e),n=[...e.children];if(Fr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);n.unshift(t)}if(Fr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);n.push(t)}return new jr({children:n,position:t,styleGroup:Dn.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Ar({children:e.children,position:t,anchor:r,tag:n,styleGroup:Dn.Block,style:qn.NextLine});return this.registerAnchor(s),this.schema.resolve(s)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new Wn({content:"",tag:new $t({explicitName:"?",kind:Tt.Scalar}),position:new hr({start:t,end:t}),styleGroup:Dn.Flow,style:qn.Plain})]}};flow_sequence={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Ar({children:e.children.flat(),position:t,anchor:r,tag:n,styleGroup:Dn.Flow,style:qn.Explicit});return this.registerAnchor(s),this.schema.resolve(s)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(s),this.schema.resolve(s)}};single_quote_scalar={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Flow,style:qn.SingleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};double_quote_scalar={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Flow,style:qn.DoubleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};block_scalar={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=e.text.startsWith("|")?qn.Literal:e.text.startsWith(">")?qn.Folded:qn.Plain,i=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Block,style:s});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:e=>new kr({content:e.text})};alias={enter:e=>{const t=new Ir({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Tr&&!e.isNamed){const t=Fr.toPosition(e),n=e.type||e.text,{isMissing:r}=e;return new Mr({value:n,position:t,isMissing:r})}}ERROR(e,t,n,r){const s=Fr.toPosition(e),i=new Nr({children:e.children,position:s,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===r.length?new gr({children:[i]}):i}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new lr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:n}=e,r=(null==n?void 0:n.children)||[],s=r.find(Fr.isKind("tag")),i=r.find(Fr.isKind("anchor")),o=new $t(void 0!==s?{explicitName:s.text,kind:Tt.Scalar,position:Fr.toPosition(s)}:{explicitName:"?",kind:Tt.Scalar}),a=void 0!==i?new mr({name:i.text,position:Fr.toPosition(i)}):void 0,c=new Wn({content:"",position:new hr({start:t,end:t}),tag:o,anchor:a,styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(c),c}createKeyValuePairEmptyValue(e){const t=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:n}=e,r=(null==n?void 0:n.children)||[],s=r.find(Fr.isKind("tag")),i=r.find(Fr.isKind("anchor")),o=new $t(void 0!==s?{explicitName:s.text,kind:Tt.Scalar,position:Fr.toPosition(s)}:{explicitName:"?",kind:Tt.Scalar}),a=void 0!==i?new mr({name:i.text,position:Fr.toPosition(i)}):void 0,c=new Wn({content:"",position:new hr({start:t,end:t}),tag:o,anchor:a,styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(c),c}}const Cr=Fr;function qr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Dr=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=qr(this.xf["@@transducer/step"](e,!1))),e},e}();function Lr(e){return function(t){return new Dr(e,t)}}const Vr=c(j(["all"],Lr,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}))),Br=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ur=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,zr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Hr=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof oe.wE)&&t.classes.includes(e),Gr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Kr=e=>e({hasMethod:Br,hasBasicElementProps:Ur,primitiveEq:zr,isElementType:Gr,hasClass:Hr}),Wr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.Hg||e(n)&&t(void 0,n))),Jr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.Om||e(n)&&t("string",n))),Yr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.kT||e(n)&&t("number",n))),Zr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.Os||e(n)&&t("null",n))),Xr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.bd||e(n)&&t("boolean",n))),Qr=Kr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof oe.Sh||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),es=Kr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof oe.wE&&!(r instanceof oe.Sh)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),ts=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.Pr||e(r)&&t("member",r)&&n(void 0,r))),ns=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.Ft||e(r)&&t("link",r)&&n(void 0,r))),rs=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.sI||e(r)&&t("ref",r)&&n(void 0,r))),ss=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof tt||e(r)&&t("annotation",r)&&n("array",r))),is=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof rt||e(r)&&t("comment",r)&&n("string",r))),os=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof it||e(r)&&t("parseResult",r)&&n("array",r))),as=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof at||e(r)&&t("sourceMap",r)&&n("array",r))),cs=e=>Gr("object",e)||Gr("array",e)||Gr("boolean",e)||Gr("number",e)||Gr("string",e)||Gr("null",e)||Gr("member",e),us=e=>as(e.meta.get("sourceMap")),ls=(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!es(n)&&Vr(Sn(n.toValue()),e)},ps=(e,t)=>0===e.length||Vr(Sn(t.classes.toValue()),e);const hs=class extends At{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const ms=class extends hs{};const fs=class extends hs{},ds=(e,t={})=>{const{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof oe.KeyValuePair){const{key:t,value:s}=e,i=Wr(t)?ds(t,r):t,o=Wr(s)?ds(s,r):s,a=new oe.KeyValuePair(i,o);return n.set(e,a),a}if(e instanceof oe.ot){const t=e=>ds(e,r),s=[...e].map(t),i=new oe.ot(s);return n.set(e,i),i}if(e instanceof oe.G6){const t=e=>ds(e,r),s=[...e].map(t),i=new oe.G6(s);return n.set(e,i),i}if(Wr(e)){const t=ys(e);if(n.set(e,t),e.content)if(Wr(e.content))t.content=ds(e.content,r);else if(e.content instanceof oe.KeyValuePair)t.content=ds(e.content,r);else if(Array.isArray(e.content)){const n=e=>ds(e,r);t.content=e.content.map(n)}else t.content=e.content;else t.content=e.content;return t}throw new ms("Value provided to cloneDeep function couldn't be cloned",{value:e})};ds.safe=e=>{try{return ds(e)}catch{return e}};const _s=e=>{const{key:t,value:n}=e;return new oe.KeyValuePair(t,n)},gs=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=ds(e.meta)),e.attributes.length>0&&(t._attributes=ds(e.attributes)),Wr(e.content)){const n=e.content;t.content=gs(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof oe.KeyValuePair?t.content=_s(e.content):t.content=e.content;return t},ys=e=>{if(e instanceof oe.KeyValuePair)return _s(e);if(e instanceof oe.ot)return(e=>{const t=[...e];return new oe.ot(t)})(e);if(e instanceof oe.G6)return(e=>{const t=[...e];return new oe.G6(t)})(e);if(Wr(e))return gs(e);throw new fs("Value provided to cloneShallow function couldn't be cloned",{value:e})};ys.safe=e=>{try{return ys(e)}catch{return e}};const vs=e=>Qr(e)?"ObjectElement":es(e)?"ArrayElement":ts(e)?"MemberElement":Jr(e)?"StringElement":Xr(e)?"BooleanElement":Yr(e)?"NumberElement":Zr(e)?"NullElement":ns(e)?"LinkElement":rs(e)?"RefElement":void 0,ws=e=>Wr(e)?ys(e):ar(e),bs=ve(vs,ht),Es={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const xs=(e,t,{keyMap:n=Es,...r}={})=>ur(e,t,{keyMap:n,nodeTypeGetter:vs,nodePredicate:bs,nodeCloneFn:ws,...r});xs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=Es,...r}={})=>ur[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:vs,nodePredicate:bs,nodeCloneFn:ws,...r});const Ss=u((function(e,t,n){var r,s={};for(r in n=n||{},t=t||{})R(r,t)&&(s[r]=R(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)R(r,n)&&!R(r,s)&&(s[r]=n[r]);return s}));const Ps=u((function e(t,n,r){return Ss((function(n,r,s){return je(r)&&je(s)?e(t,r,s):t(n,r,s)}),n,r)}));const js=c((function(e,t){return Ps((function(e,t,n){return n}),e,t)}));const Os=ge(0,-1);const As=c((function(e,t){return e.apply(this,t)}));const ks=W(Je);var Is=a((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():v(e)?[]:h(e)?"":je(e)?{}:C(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Ms=Is;const Ns=a((function(e){return null!=e&&te(e,Ms(e))}));const Ts=$(1,Je(Array.isArray)?Array.isArray:ve(X,be("Array")));const $s=qe(Ts,Ns);const Rs=$(3,(function(e,t,n){var r=$e(e,n),s=$e(Os(e),n);if(!ks(r)&&!$s(e)){var i=ue(r,s);return As(i,t)}})),Fs=()=>({predicates:{...e},namespace:pt}),Cs={toolboxCreator:Fs,visitorOptions:{nodeTypeGetter:vs,exposeEdits:!0}},qs=(e,t,n={})=>{if(0===t.length)return e;const r=js(Cs,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),a=t.map((e=>e(o))),c=cr(a.map(d({},"visitor")),{...i});a.forEach(Rs(["pre"],[]));const u=xs(e,c,i);return a.forEach(Rs(["post"],[])),u};qs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,n={})=>{if(0===t.length)return e;const r=js(Cs,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),a=t.map((e=>e(o))),c=cr[Symbol.for("nodejs.util.promisify.custom")],u=xs[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(d({},"visitor")),{...i});await Promise.allSettled(a.map(Rs(["pre"],[])));const p=await u(e,l,i);return await Promise.allSettled(a.map(Rs(["post"],[]))),p};const Ds=(e,{Type:t,plugins:n=[]})=>{const r=new t(e);return Wr(e)&&(e.meta.length>0&&(r.meta=ds(e.meta)),e.attributes.length>0&&(r.attributes=ds(e.attributes))),qs(r,n,{toolboxCreator:Fs,visitorOptions:{nodeTypeGetter:vs}})},Ls=e=>(t,n={})=>Ds(t,{...n,Type:e});oe.Sh.refract=Ls(oe.Sh),oe.wE.refract=Ls(oe.wE),oe.Om.refract=Ls(oe.Om),oe.bd.refract=Ls(oe.bd),oe.Os.refract=Ls(oe.Os),oe.kT.refract=Ls(oe.kT),oe.Ft.refract=Ls(oe.Ft),oe.sI.refract=Ls(oe.sI),tt.refract=Ls(tt),rt.refract=Ls(rt),it.refract=Ls(it),at.refract=Ls(at);const Vs={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...Es},Bs=e=>Wr(e)?vs(e):ir(e),Us=e=>Wr(e)||or(e)||Array.isArray(e);const zs=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new it;t._content=e.children.flat(1);const n=t.findElements(cs);if(n.length>0){n[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=lt()}comment(e){if(0===this.processedDocumentCount){const t=new rt(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,n=this.processedDocumentCount>=1;if(t){const t=new tt("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 n?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new oe.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new oe.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 oe.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===qn.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})`,n=new tt(t);n.classes.push("warning"),this.maybeAddSourceMap(e,n),this.annotations.push(n)}return null}error(e,t,n,r){const s=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new tt(s);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new it;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const n=new at;n.position=e.position,n.astNode=e,t.meta.set("sourceMap",n)}};class Hs{cursor;constructor(e){this.cursor=e}stream(){return new Tr(this.cursor)}yaml_directive(){return new Tr(this.cursor)}tag_directive(){return new Tr(this.cursor)}reserved_directive(){return new Tr(this.cursor)}document(){return new Tr(this.cursor)}block_node(){return new Tr(this.cursor).setFieldName(this.cursor)}flow_node(){return new Tr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Tr(this.cursor)}block_mapping_pair(){return new Tr(this.cursor)}flow_mapping(){return new Tr(this.cursor)}flow_pair(){return new Tr(this.cursor)}block_sequence(){return new Tr(this.cursor)}block_sequence_item(){return new Tr(this.cursor)}flow_sequence(){return new Tr(this.cursor)}plain_scalar(){return new Tr(this.cursor)}single_quote_scalar(){return new Tr(this.cursor)}double_quote_scalar(){return new Tr(this.cursor)}block_scalar(){return new Tr(this.cursor)}ERROR(){return new Tr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Tr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Hs(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Hs(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Gs=Hs,Ks=(e,{sourceMap:t=!1}={})=>{const n=e.walk(),r=new Gs(n),[s]=Array.from(r),i=new Cr,o=new zs,a=new Gn,c=new nr,u=ur(s,i,{keyMap:$r,nodePredicate:Rr,state:{schema:a,sourceMap:t,referenceManager:c}});return ur(u.rootNode,o,{keyMap:Vs,nodeTypeGetter:Bs,nodePredicate:Us,state:{sourceMap:t}})};class Ws extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="swagger",this.classes.push("api")}get swagger(){return this.get("swagger")}set swagger(e){this.set("swagger",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get host(){return this.get("host")}set host(e){this.set("host",e)}get basePath(){return this.get("basePath")}set basePath(e){this.set("basePath",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get consumes(){return this.get("consumes")}set consumes(e){this.set("consumes",e)}get produces(){return this.get("produces")}set produces(e){this.set("produces",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get securityDefinitions(){return this.get("securityDefinitions")}set securityDefinitions(e){this.set("securityDefinitions",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 Js=Ws;class Ys extends oe.Om{constructor(e,t,n){super(e,t,n),this.element="swaggerVersion",this.classes.push("spec-version"),this.classes.push("version")}}const Zs=Ys;class Xs extends oe.Sh{constructor(e,t,n){super(e,t,n),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 Qs=Xs;class ei extends oe.Sh{constructor(e,t,n){super(e,t,n),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 ti=ei;class ni extends oe.Sh{constructor(e,t,n){super(e,t,n),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 ri=ni;class si extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="paths"}}const ii=si;class oi extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",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 parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const ai=oi;class ci extends oe.Sh{constructor(e,t,n){super(e,t,n),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 responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}}const ui=ci;class li extends oe.Sh{constructor(e,t,n){super(e,t,n),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 pi=li;const hi=class extends vt{};class mi extends oe.Sh{constructor(e,t,n){super(e,t,n),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 fi=mi;class di extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const _i=di;class gi extends oe.Sh{constructor(e,t,n){super(e,t,n),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 yi=gi;class vi extends oe.Sh{constructor(e,t,n){super(e,t,n),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 wi=vi;const bi=c((function(e,t){return y((function(n,r){return n[r]=e(t[r],r,t),n}),{},U(t))}));const Ei=a((function(e){return null==e}));const xi=c((function(e,t){if(0===e.length||Ei(t))return!1;for(var n=t,r=0;r<e.length;){if(Ei(n)||!R(e[r],n))return!1;n=n[e[r]],r+=1}return!0}));var Si=c((function(e,t){return xi([e],t)}));const Pi=Si;const ji=u((function(e,t,n){return e(f(t,n))})),Oi=(e,t)=>{const n=l(e,t);return bi((e=>{if(Qe(e)&&Pi("$ref",e)&&ji(ht,"$ref",e)){const t=$e(["$ref"],e),r=Pn("#/",t);return $e(r.split("/"),n)}return Qe(e)?Oi(e,n):e}),e)};var Ai=n(8357);const ki=function(){return!0},Ii=e=>"string"==typeof(null==e?void 0:e.type)?e.type:vs(e),Mi={EphemeralObject:["content"],EphemeralArray:["content"],...Es},Ni=(e,t,{keyMap:n=Mi,...r}={})=>xs(e,t,{keyMap:n,nodeTypeGetter:Ii,nodePredicate:ki,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});Ni[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Mi,...n}={})=>xs[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Ii,nodePredicate:ki,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});const Ti=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 $i=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class Ri{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new $i(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 Ti(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 n;const r=t[3];return"EphemeralObject"===(null===(n=r[r.length-1])||void 0===n?void 0:n.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Jr(e.href)?e.href.toValue():""}}const Fi=e=>Wr(e)?Jr(e)||Yr(e)||Xr(e)||Zr(e)?e.toValue():Ni(e,new Ri):e,Ci=e=>{const t=e.meta.length>0?ds(e.meta):void 0,n=e.attributes.length>0?ds(e.attributes):void 0;return new e.constructor(void 0,t,n)},qi=(e,t)=>t.clone&&t.isMergeableElement(e)?Bi(Ci(e),e,t):e,Di=e=>"function"!=typeof e.customMetaMerge?e=>ds(e):e.customMetaMerge,Li=e=>"function"!=typeof e.customAttributesMerge?e=>ds(e):e.customAttributesMerge,Vi={clone:!0,isMergeableElement:e=>Qr(e)||es(e),arrayElementMerge:(e,t,n)=>e.concat(t)["fantasy-land/map"]((e=>qi(e,n))),objectElementMerge:(e,t,n)=>{const r=Qr(e)?Ci(e):Ci(t);return Qr(e)&&e.forEach(((e,t,s)=>{const i=ys(s);i.value=qi(e,n),r.content.push(i)})),t.forEach(((t,s,i)=>{const o=Fi(s);let a;if(Qr(e)&&e.hasKey(o)&&n.isMergeableElement(t)){const r=e.get(o);a=ys(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Bi;const n=t.customMerge(e,t);return"function"==typeof n?n:Bi})(s,n)(r,t)}else a=ys(i),a.value=qi(t,n);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function Bi(e,t,n){var r,s,i;const o={...Vi,...n};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:Vi.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:Vi.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:Vi.objectElementMerge;const a=es(t);if(!(a===es(e)))return qi(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=Di(o)(e.meta,t.meta),c.attributes=Li(o)(e.attributes,t.attributes),c}Bi.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new oe.Sh:e.reduce(((e,n)=>Bi(e,n,t)),Ci(e[0]))};const Ui=Ai({props:{element:null},methods:{copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Bi(t.meta,e.meta),us(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Bi(t.attributes,e.attributes))}}}),zi=Ai(Ui,{methods:{enter(e){return this.element=ds(e),sr}}});const Hi=ne(re());const Gi=c((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})),Ki=Ai(Ui,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return Gi(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=$e(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Re(Je,["visitors",...e],this.specObj)?$e(["visitors",...e],this.specObj):$e(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})},toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n),s=Object.getPrototypeOf(r);return se(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?ds(t):(xs(t,r,n),r.element)}}}),Wi=Ai(Ki,{props:{specPath:Hi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Jr(r)&&n.includes(Fi(r))&&!this.ignoredFields.includes(Fi(r))){const n=this.toRefractedElement([...t,"fixedFields",Fi(r)],e),i=new oe.Pr(ds(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Fi(r))||this.element.content.push(ds(s))})),this.copyMetaAndAttributes(e,this.element),sr}}}),Ji=Ai(Wi,zi,{props:{specPath:ne(["document","objects","JSONSchema"])},init(){this.element=new fi}}),Yi=zi,Zi=zi,Xi=zi,Qi=zi,eo=zi,to=zi,no=zi,ro=zi,so=zi,io=zi,oo=Ai({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),ao=e=>Qr(e)&&e.hasKey("$ref"),co=Ai(Ki,oo,zi,{methods:{ObjectElement(e){const t=ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),sr},ArrayElement(e){return this.element=new oe.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}}),uo=zi,lo=zi,po=zi,ho=zi,mo=zi,fo=Ai(zi,{methods:{ArrayElement(e){return this.element=ds(e),this.element.classes.push("json-schema-required"),sr}}});const _o=a((function(e){return $(de(ze,0,He("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const go=c((function(e,t){return e||t}));const yo=W($(1,qe(Le,c((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:K(go)(e,t)}))(Be,Je))));const vo=W(Ns);const wo=_o([ht,yo,vo]);const bo=function(){return!1},Eo=Ai(Ki,{props:{fieldPatternPredicate:bo,specPath:Hi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,n)=>{if(!this.ignoredFields.includes(Fi(t))&&this.fieldPatternPredicate(Fi(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new oe.Pr(ds(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Fi(t))||this.element.content.push(ds(n))})),this.copyMetaAndAttributes(e,this.element),sr}}}),xo=Ai(Eo,{props:{fieldPatternPredicate:wo}}),So=Ai(xo,oo,zi,{props:{specPath:e=>ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-properties")}}),Po=Ai(xo,oo,zi,{props:{specPath:e=>ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-patternProperties")}}),jo=Ai(xo,oo,zi,{props:{specPath:e=>ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-dependencies")}}),Oo=Ai(zi,{methods:{ArrayElement(e){return this.element=ds(e),this.element.classes.push("json-schema-enum"),sr}}}),Ao=Ai(zi,{methods:{StringElement(e){return this.element=ds(e),this.element.classes.push("json-schema-type"),sr},ArrayElement(e){return this.element=ds(e),this.element.classes.push("json-schema-type"),sr}}}),ko=Ai(Ki,oo,zi,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}}),Io=Ai(Ki,oo,zi,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}}),Mo=Ai(Ki,oo,zi,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}}),No=Ai(xo,oo,zi,{props:{specPath:e=>ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-definitions")}}),To=zi,$o=zi,Ro=zi,Fo=zi,Co=zi,qo=Ai(Ki,oo,zi,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}}),Do=zi,Lo=Ai(Wi,zi,{props:{specPath:ne(["document","objects","JSONReference"])},init(){this.element=new _i},methods:{ObjectElement(e){const t=Wi.compose.methods.ObjectElement.call(this,e);return Jr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Vo=Ai(zi,{methods:{StringElement(e){return this.element=ds(e),this.element.classes.push("reference-value"),sr}}});const Bo=u((function(e,t,n){return $(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))}));const Uo=a((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}}));var zo=c((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Ho=zo;const Go=a(qr);const Ko=W(Ei);const Wo=qe(Ts,vo);function Jo(e){return function(e){if(Array.isArray(e))return Yo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Yo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Zo=ve(Ho(Uo((function(e,t){return e.length>t.length}))),_r,f("length")),Xo=Lt((function(e,t,n){var r=n.apply(void 0,Jo(e));return Ko(r)?Go(r):t}));const Qo=Bo(Wo,(function(e){var t=Zo(e);return $(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return de(Xo(n),void 0,e)}))}),re),ea=Ai(Ki,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Bo(e,ne(t),re))),n=Qo(t)(e);return this.element=this.toRefractedElement(n,e),sr}}}),ta=Ai(ea,{props:{alternator:[{predicate:ao,specPath:["document","objects","JSONReference"]},{predicate:ki,specPath:["document","objects","JSONSchema"]}]}}),na={visitors:{value:zi,JSONSchemaOrJSONReferenceVisitor:ta,document:{objects:{JSONSchema:{$visitor:Ji,fixedFields:{id:Yi,$schema:Zi,multipleOf:Xi,maximum:Qi,exclusiveMaximum:eo,minimum:to,exclusiveMinimum:no,maxLength:ro,minLength:so,pattern:io,additionalItems:ta,items:co,maxItems:uo,minItems:lo,uniqueItems:po,maxProperties:ho,minProperties:mo,required:fo,properties:So,additionalProperties:ta,patternProperties:Po,dependencies:jo,enum:Oo,type:Ao,allOf:ko,anyOf:Io,oneOf:Mo,not:ta,definitions:No,title:To,description:$o,default:Ro,format:Fo,base:Co,links:qo,media:{$ref:"#/visitors/document/objects/Media"},readOnly:Do}},JSONReference:{$visitor:Lo,fixedFields:{$ref:Vo}},Media:{$visitor:Ai(Wi,zi,{props:{specPath:ne(["document","objects","Media"])},init(){this.element=new yi}}),fixedFields:{binaryEncoding:zi,type:zi}},LinkDescription:{$visitor:Ai(Wi,zi,{props:{specPath:ne(["document","objects","LinkDescription"])},init(){this.element=new wi}}),fixedFields:{href:zi,rel:zi,title:zi,targetSchema:ta,mediaType:zi,method:zi,encType:zi,schema:ta}}}}}},ra=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},sa={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Es},ia=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof fi||e(r)&&t("JSONSchemaDraft4",r)&&n("object",r))),oa=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof _i||e(r)&&t("JSONReference",r)&&n("object",r))),aa=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof yi||e(r)&&t("media",r)&&n("object",r))),ca=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof wi||e(r)&&t("linkDescription",r)&&n("object",r))),ua={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",fi),t.register("jSONReference",_i),t.register("media",yi),t.register("linkDescription",wi),t}},la=()=>{const e=lt(ua);return{predicates:{...t,isStringElement:Jr},namespace:e}},pa=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=na}={})=>{const s=(0,oe.e)(e),i=Oi(r),o=Rs(t,[],i);return xs(s,o,{state:{specObj:i}}),qs(o.element,n,{toolboxCreator:la,visitorOptions:{keyMap:sa,nodeTypeGetter:ra}})},ha=e=>(t,n={})=>pa(t,{specPath:e,...n});fi.refract=ha(["visitors","document","objects","JSONSchema","$visitor"]),_i.refract=ha(["visitors","document","objects","JSONReference","$visitor"]),yi.refract=ha(["visitors","document","objects","Media","$visitor"]),wi.refract=ha(["visitors","document","objects","LinkDescription","$visitor"]);const ma=class extends fi{constructor(e,t,n){super(e,t,n),this.element="parameter",this.classes.push("json-schema-draft-4")}get idProp(){throw new hi("idProp getter in Parameter class is not not supported.")}set idProp(e){throw new hi("idProp setter in Parameter class is not not supported.")}get $schema(){throw new hi("$schema getter in Parameter class is not not supported.")}set $schema(e){throw new hi("$schema setter in Parameter class is not not supported.")}get additionalItems(){throw new hi("additionalItems getter in Parameter class is not not supported.")}set additionalItems(e){throw new hi("additionalItems setter in Parameter class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new hi("maxProperties getter in Parameter class is not not supported.")}set maxProperties(e){throw new hi("maxProperties setter in Parameter class is not not supported.")}get minProperties(){throw new hi("minProperties getter in Parameter class is not not supported.")}set minProperties(e){throw new hi("minProperties setter in Parameter class is not not supported.")}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){throw new hi("properties getter in Parameter class is not not supported.")}set properties(e){throw new hi("properties setter in Parameter class is not not supported.")}get additionalProperties(){throw new hi("additionalProperties getter in Parameter class is not not supported.")}set additionalProperties(e){throw new hi("additionalProperties setter in Parameter class is not not supported.")}get patternProperties(){throw new hi("patternProperties getter in Parameter class is not not supported.")}set patternProperties(e){throw new hi("patternProperties setter in Parameter class is not not supported.")}get dependencies(){throw new hi("dependencies getter in Parameter class is not not supported.")}set dependencies(e){throw new hi("dependencies setter in Parameter class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new hi("allOf getter in Parameter class is not not supported.")}set allOf(e){throw new hi("allOf setter in Parameter class is not not supported.")}get anyOf(){throw new hi("anyOf getter in Parameter class is not not supported.")}set anyOf(e){throw new hi("anyOf setter in Parameter class is not not supported.")}get oneOf(){throw new hi("oneOf getter in Parameter class is not not supported.")}set oneOf(e){throw new hi("oneOf setter in Parameter class is not not supported.")}get not(){throw new hi("not getter in Parameter class is not not supported.")}set not(e){throw new hi("not setter in Parameter class is not not supported.")}get definitions(){throw new hi("definitions getter in Parameter class is not not supported.")}set definitions(e){throw new hi("definitions setter in Parameter class is not not supported.")}get title(){throw new hi("title getter in Parameter class is not not supported.")}set title(e){throw new hi("title setter in Parameter class is not not supported.")}get description(){return this.get("description")}set description(e){this.set("description,",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){throw new hi("base getter in Parameter class is not not supported.")}set base(e){throw new hi("base setter in Parameter class is not not supported.")}get links(){throw new hi("links getter in Parameter class is not not supported.")}set links(e){throw new hi("links setter in Parameter class is not not supported.")}get media(){throw new hi("media getter in Parameter class is not not supported.")}set media(e){throw new hi("media setter in Parameter class is not not supported.")}get readOnly(){throw new hi("readOnly getter in Parameter class is not not supported.")}set readOnly(e){throw new hi("readOnly setter in Parameter class is not not supported.")}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 schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const fa=class extends fi{constructor(e,t,n){super(e,t,n),this.element="items",this.classes.push("json-schema-draft-4")}get idProp(){throw new hi("idProp getter in Items class is not not supported.")}set idProp(e){throw new hi("idProp setter in Items class is not not supported.")}get $schema(){throw new hi("$schema getter in Items class is not not supported.")}set $schema(e){throw new hi("$schema setter in Items class is not not supported.")}get additionalItems(){throw new hi("additionalItems getter in Items class is not not supported.")}set additionalItems(e){throw new hi("additionalItems setter in Items class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new hi("maxProperties getter in Items class is not not supported.")}set maxProperties(e){throw new hi("maxProperties setter in Items class is not not supported.")}get minProperties(){throw new hi("minProperties getter in Items class is not not supported.")}set minProperties(e){throw new hi("minProperties setter in Items class is not not supported.")}get required(){throw new hi("required getter in Items class is not not supported.")}set required(e){throw new hi("required setter in Items class is not not supported.")}get properties(){throw new hi("properties getter in Items class is not not supported.")}set properties(e){throw new hi("properties setter in Items class is not not supported.")}get additionalProperties(){throw new hi("additionalProperties getter in Items class is not not supported.")}set additionalProperties(e){throw new hi("additionalProperties setter in Items class is not not supported.")}get patternProperties(){throw new hi("patternProperties getter in Items class is not not supported.")}set patternProperties(e){throw new hi("patternProperties setter in Items class is not not supported.")}get dependencies(){throw new hi("dependencies getter in Items class is not not supported.")}set dependencies(e){throw new hi("dependencies setter in Items class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new hi("allOf getter in Items class is not not supported.")}set allOf(e){throw new hi("allOf setter in Items class is not not supported.")}get anyOf(){throw new hi("anyOf getter in Items class is not not supported.")}set anyOf(e){throw new hi("anyOf setter in Items class is not not supported.")}get oneOf(){throw new hi("oneOf getter in Items class is not not supported.")}set oneOf(e){throw new hi("oneOf setter in Items class is not not supported.")}get not(){throw new hi("not getter in Items class is not not supported.")}set not(e){throw new hi("not setter in Items class is not not supported.")}get definitions(){throw new hi("definitions getter in Items class is not not supported.")}set definitions(e){throw new hi("definitions setter in Items class is not not supported.")}get title(){throw new hi("title getter in Items class is not not supported.")}set title(e){throw new hi("title setter in Items class is not not supported.")}get description(){throw new hi("description getter in Items class is not not supported.")}set description(e){throw new hi("description setter in Items class is not not supported.")}get base(){throw new hi("base getter in Items class is not not supported.")}set base(e){throw new hi("base setter in Items class is not not supported.")}get links(){throw new hi("links getter in Items class is not not supported.")}set links(e){throw new hi("links setter in Items class is not not supported.")}get media(){throw new hi("media getter in Items class is not not supported.")}set media(e){throw new hi("media setter in Items class is not not supported.")}get readOnly(){throw new hi("readOnly getter in Items class is not not supported.")}set readOnly(e){throw new hi("readOnly setter in Items class is not not supported.")}};class da extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const _a=da;class ga extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}const ya=ga;class va extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="headers"}}const wa=va;class ba extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="example"}}const Ea=ba;const xa=class extends fi{constructor(e,t,n){super(e,t,n),this.element="header",this.classes.push("json-schema-draft-4")}get idProp(){throw new hi("idProp getter in Header class is not not supported.")}set idProp(e){throw new hi("idProp setter in Header class is not not supported.")}get $schema(){throw new hi("$schema getter in Header class is not not supported.")}set $schema(e){throw new hi("$schema setter in Header class is not not supported.")}get additionalItems(){throw new hi("additionalItems getter in Header class is not not supported.")}set additionalItems(e){throw new hi("additionalItems setter in Header class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new hi("maxProperties getter in Header class is not not supported.")}set maxProperties(e){throw new hi("maxProperties setter in Header class is not not supported.")}get minProperties(){throw new hi("minProperties getter in Header class is not not supported.")}set minProperties(e){throw new hi("minProperties setter in Header class is not not supported.")}get required(){throw new hi("required getter in Header class is not not supported.")}set required(e){throw new hi("required setter in Header class is not not supported.")}get properties(){throw new hi("properties getter in Header class is not not supported.")}set properties(e){throw new hi("properties setter in Header class is not not supported.")}get additionalProperties(){throw new hi("additionalProperties getter in Header class is not not supported.")}set additionalProperties(e){throw new hi("additionalProperties setter in Header class is not not supported.")}get patternProperties(){throw new hi("patternProperties getter in Header class is not not supported.")}set patternProperties(e){throw new hi("patternProperties setter in Header class is not not supported.")}get dependencies(){throw new hi("dependencies getter in Header class is not not supported.")}set dependencies(e){throw new hi("dependencies setter in Header class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new hi("allOf getter in Header class is not not supported.")}set allOf(e){throw new hi("allOf setter in Header class is not not supported.")}get anyOf(){throw new hi("anyOf getter in Header class is not not supported.")}set anyOf(e){throw new hi("anyOf setter in Header class is not not supported.")}get oneOf(){throw new hi("oneOf getter in Header class is not not supported.")}set oneOf(e){throw new hi("oneOf setter in Header class is not not supported.")}get not(){throw new hi("not getter in Header class is not not supported.")}set not(e){throw new hi("not setter in Header class is not not supported.")}get definitions(){throw new hi("definitions getter in Header class is not not supported.")}set definitions(e){throw new hi("definitions setter in Header class is not not supported.")}get title(){throw new hi("title getter in Header class is not not supported.")}set title(e){throw new hi("title setter in Header class is not not supported.")}get base(){throw new hi("base getter in Header class is not not supported.")}set base(e){throw new hi("base setter in Header class is not not supported.")}get links(){throw new hi("links getter in Header class is not not supported.")}set links(e){throw new hi("links setter in Header class is not not supported.")}get media(){throw new hi("media getter in Header class is not not supported.")}set media(e){throw new hi("media setter in Header class is not not supported.")}get readOnly(){throw new hi("readOnly getter in Header class is not not supported.")}set readOnly(e){throw new hi("readOnly setter in Header class is not not supported.")}};class Sa extends oe.Sh{constructor(e,t,n){super(e,t,n),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 Pa=Sa;class ja extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Oa=ja;const Aa=class extends fi{constructor(e,t,n){super(e,t,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new hi("idProp getter in Schema class is not not supported.")}set idProp(e){throw new hi("idProp setter in Schema class is not not supported.")}get $schema(){throw new hi("$schema getter in Schema class is not not supported.")}set $schema(e){throw new hi("$schema setter in Schema class is not not supported.")}get additionalItems(){throw new hi("additionalItems getter in Schema class is not not supported.")}set additionalItems(e){throw new hi("additionalItems setter in Schema class is not not supported.")}get patternProperties(){throw new hi("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new hi("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new hi("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new hi("dependencies setter in Schema class is not not supported.")}get anyOf(){throw new hi("anyOf getter in Schema class is not not supported.")}set anyOf(e){throw new hi("anyOf setter in Schema class is not not supported.")}get oneOf(){throw new hi("oneOf getter in Schema class is not not supported.")}set oneOf(e){throw new hi("oneOf setter in Schema class is not not supported.")}get not(){throw new hi("not getter in Schema class is not not supported.")}set not(e){throw new hi("not setter in Schema class is not not supported.")}get definitions(){throw new hi("definitions getter in Schema class is not not supported.")}set definitions(e){throw new hi("definitions setter in Schema class is not not supported.")}get base(){throw new hi("base getter in Schema class is not not supported.")}set base(e){throw new hi("base setter in Schema class is not not supported.")}get links(){throw new hi("links getter in Schema class is not not supported.")}set links(e){throw new hi("links setter in Schema class is not not supported.")}get media(){throw new hi("media getter in Schema class is not not supported.")}set media(e){throw new hi("media setter in Schema class is not not supported.")}};class ka extends oe.Sh{constructor(e,t,n){super(e,t,n),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 Ia=ka;class Ma extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="definitions"}}const Na=Ma;class Ta extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="parametersDefinitions"}}const $a=Ta;class Ra extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="responsesDefinitions"}}const Fa=Ra;class Ca extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="securityDefinitions"}}const qa=Ca;class Da extends oe.Sh{constructor(e,t,n){super(e,t,n),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 flow(){return this.get("flow")}set flow(e){this.set("flow",e)}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 scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const La=Da;class Va extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="scopes"}}const Ba=Va;class Ua extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="securityRequirement"}}const za=Ua;const Ha=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Bi(t.meta,e.meta),us(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Bi(t.attributes,e.attributes))}};const Ga=class extends Ha{enter(e){return this.element=ds(e),sr}},Ka=(e,t,n=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of n)delete r[e];Object.defineProperties(e,r)},Wa=(e,t=[e])=>{const n=Object.getPrototypeOf(e);return null===n?t:Wa(n,[...t,n])},Ja=(e,t,n=[])=>{var r;const s=null!==(r=((...e)=>{if(0===e.length)return;let t;const n=e.map((e=>Wa(e)));for(;n.every((e=>e.length>0));){const e=n.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(s),o=Wa(s);for(let t of e){let e=Wa(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(Ka(i,r,["constructor",...n]),o.push(r))}}return i.constructor=t,i},Ya=e=>e.filter(((t,n)=>e.indexOf(t)==n)),Za=(e,t)=>{const n=t.map((e=>Wa(e)));let r=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=n[i][r];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return n[i][0]}r++}},Xa=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,n)=>Object.getOwnPropertyDescriptor(Za(n,e)||{},n),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(n,r)=>void 0!==Za(r,e)||void 0!==t[r],get:(n,r)=>(Za(r,e)||t)[r],set(t,n,r){const s=Za(n,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[n]=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)))))}),Qa=null,ec="copy",tc="copy",nc="deep",rc=new WeakMap,sc=e=>rc.get(e),ic=(e,t)=>{var n,r;const s=Ya([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=Ya([...null!==(n=null==e?void 0:e[o])&&void 0!==n?n:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},oc=(e,t)=>{var n,r,s,i;return{property:ic(null!==(n=null==e?void 0:e.property)&&void 0!==n?n:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:ic(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},ac=(e,t)=>{var n,r,s,i,o,a;return{class:Ya([...null!==(n=null==e?void 0:e.class)&&void 0!==n?n:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:oc(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:oc(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},cc=new Map,uc=(...e)=>{const t=((...e)=>{var t;const n=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const s=[...Wa(e.prototype).map((e=>e.constructor)),...null!==(t=sc(e))&&void 0!==t?t:[]].filter((e=>!n.has(e)));for(let e of s)r.add(e);n.add(e),r.delete(e)}return[...n]})(...e).map((e=>cc.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>ac(e,t)))},lc=e=>{let t=cc.get(e);return t||(t={},cc.set(e,t)),t};function pc(...e){var t,n,r;const s=e.map((e=>e.prototype)),i=Qa;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t={[i]:function(...t){for(let n of e)n.apply(this,t)}};s.push(t)}function o(...t){for(const n of e)Ka(this,new n(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===tc?Ja(s,o):(a=s,c=o,Xa([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===ec?Ja(e,null,["prototype"]):Xa(e,Function.prototype));let u=o;if("none"!==nc){const s="deep"===nc?uc(...e):((...e)=>{const t=e.map((e=>lc(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>ac(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}hc(null!==(n=null==s?void 0:s.static)&&void 0!==n?n:{},u),hc(null!==(r=null==s?void 0:s.instance)&&void 0!==r?r:{},u.prototype)}var l,p;return l=u,p=e,rc.set(l,p),u}const hc=(e,t)=>{const n=e.property,r=e.method;if(n)for(let e in n)for(let r of n[e])r(t,e);if(r)for(let e in r)for(let n of r[e])n(t,e,Object.getOwnPropertyDescriptor(t,e))};const mc=class extends Ha{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Gi(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=$e(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Re(Je,["visitors",...e],this.specObj)?$e(["visitors",...e],this.specObj):$e(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n);return r instanceof Ga&&(null==r?void 0:r.constructor)===Ga?ds(t):(xs(t,r,n),r.element)}};var fc=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?qr(n):n},e}();function dc(e){return function(t){return new fc(e,t)}}const _c=c(j(["take"],dc,(function(e,t){return ge(0,e<0?1/0:e,t)})));const gc=c((function(e,t){return te(_c(e.length,t),e)})),yc=e=>Jr(e.key)&&gc("x-",Fi(e.key)),vc=e=>Qr(e)&&e.hasKey("$ref");const wc=class extends mc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=yc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Jr(r)&&n.includes(Fi(r))&&!this.ignoredFields.includes(Fi(r))){const n=this.toRefractedElement([...t,"fixedFields",Fi(r)],e),i=new oe.Pr(ds(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(Fi(r))||this.element.content.push(ds(s))})),this.copyMetaAndAttributes(e,this.element),sr}};class bc extends(pc(wc,Ga)){constructor(e){super(e),this.element=new Js,this.specPath=ne(["document","objects","Swagger"]),this.canSupportSpecificationExtensions=!0}}const Ec=bc;class xc extends(pc(mc,Ga)){StringElement(e){const t=new Zs(Fi(e));return this.copyMetaAndAttributes(e,t),this.element=t,sr}}const Sc=xc;const Pc=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-host"),t}};const jc=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-base-path"),t}};class Oc extends oe.wE{static primaryClass="swagger-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(Oc.primaryClass)}}const Ac=Oc;const kc=class extends Ga{constructor(e){super(e),this.element=new Ac}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Ic extends oe.wE{static primaryClass="swagger-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(Ic.primaryClass)}}const Mc=Ic;const Nc=class extends Ga{constructor(e){super(e),this.element=new Mc}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Tc extends oe.wE{static primaryClass="swagger-produces";constructor(e,t,n){super(e,t,n),this.classes.push(Tc.primaryClass)}}const $c=Tc;const Rc=class extends Ga{constructor(e){super(e),this.element=new $c}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Fc extends oe.wE{static primaryClass="swagger-security";constructor(e,t,n){super(e,t,n),this.classes.push(Fc.primaryClass),this.classes.push("security")}}const Cc=Fc;class qc extends(pc(mc,Ga)){constructor(e){super(e),this.element=new Cc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}const Dc=qc;class Lc extends oe.wE{static primaryClass="swagger-tags";constructor(e,t,n){super(e,t,n),this.classes.push(Lc.primaryClass)}}const Vc=Lc;class Bc extends(pc(mc,Ga)){constructor(e){super(e),this.element=new Vc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}const Uc=Bc;class zc extends(pc(wc,Ga)){constructor(e){super(e),this.element=new Qs,this.specPath=ne(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Hc=zc;const Gc=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Kc extends(pc(wc,Ga)){constructor(e){super(e),this.element=new ti,this.specPath=ne(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Wc=Kc;class Jc extends(pc(wc,Ga)){constructor(e){super(e),this.element=new ri,this.specPath=ne(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Yc=Jc;const Zc=class extends mc{specPath;ignoredFields;fieldPatternPredicate=bo;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=yc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof n&&(this.fieldPatternPredicate=n),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){return e.forEach(((e,t,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else if(!this.ignoredFields.includes(Fi(t))&&this.fieldPatternPredicate(Fi(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new oe.Pr(ds(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Fi(t))||this.element.content.push(ds(n))})),this.copyMetaAndAttributes(e,this.element),sr}},Xc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Js||e(r)&&t("swagger",r)&&n("object",r))),Qc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Zs||e(r)&&t("swaggerVersion",r)&&n("string",r))),eu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Qs||e(r)&&t("info",r)&&n("object",r))),tu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ri||e(r)&&t("license",r)&&n("object",r))),nu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ti||e(r)&&t("contact",r)&&n("object",r))),ru=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ii||e(r)&&t("paths",r)&&n("object",r))),su=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ai||e(r)&&t("pathItem",r)&&n("object",r))),iu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ui||e(r)&&t("operation",r)&&n("object",r))),ou=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof pi||e(r)&&t("externalDocumentation",r)&&n("object",r))),au=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ma||e(r)&&t("parameter",r)&&n("object",r))),cu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof fa||e(r)&&t("items",r)&&n("object",r))),uu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof _a||e(r)&&t("responses",r)&&n("object",r))),lu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ya||e(r)&&t("response",r)&&n("object",r))),pu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof wa||e(r)&&t("headers",r)&&n("object",r))),hu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ea||e(r)&&t("example",r)&&n("object",r))),mu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof xa||e(r)&&t("header",r)&&n("object",r))),fu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Pa||e(r)&&t("tag",r)&&n("object",r))),du=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Oa||e(r)&&t("reference",r)&&n("object",r))),_u=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Aa||e(r)&&t("schema",r)&&n("object",r))),gu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ia||e(r)&&t("xml",r)&&n("object",r))),yu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Fa||e(r)&&t("responsesDefinitions",r)&&n("object",r))),vu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof qa||e(r)&&t("securityDefinitions",r)&&n("object",r))),wu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Na||e(r)&&t("definitions",r)&&n("object",r))),bu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof $a||e(r)&&t("parametersDefinitions",r)&&n("object",r))),Eu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof La||e(r)&&t("securityScheme",r)&&n("object",r))),xu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ba||e(r)&&t("scopes",r)&&n("object",r))),Su=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof za||e(r)&&t("securityRequirement",r)&&n("object",r)));class Pu extends(pc(Zc,Ga)){element;constructor(e){super(e),this.element=new ii,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=ki}ObjectElement(e){const t=Zc.prototype.ObjectElement.call(this,e);return this.element.filter(su).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",ds(t))})),t}}const ju=Pu;class Ou extends(pc(wc,Ga)){constructor(e){super(e),this.element=new ai,this.specPath=ne(["document","objects","PathItem"])}ObjectElement(e){const t=wc.prototype.ObjectElement.call(this,e);return this.element.filter(iu).forEach(((e,t)=>{const n=ds(t);n.content=Fi(n).toUpperCase(),e.setMetaProperty("http-method",n)})),Jr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Au=Ou;const ku=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Iu extends oe.wE{static primaryClass="path-item-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(Iu.primaryClass),this.classes.push("parameters")}}const Mu=Iu;class Nu extends(pc(mc,Ga)){constructor(e){super(e),this.element=new Mu}ArrayElement(e){return e.forEach((e=>{const t=vc(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);du(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const Tu=Nu;class $u extends(pc(wc,Ga)){constructor(e){super(e),this.element=new ui,this.specPath=ne(["document","objects","Operation"])}}const Ru=$u;class Fu extends oe.wE{static primaryClass="operation-tags";constructor(e,t,n){super(e,t,n),this.classes.push(Fu.primaryClass),this.classes.push("tags")}}const Cu=Fu;const qu=class extends Ga{constructor(e){super(e),this.element=new Cu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Du extends oe.wE{static primaryClass="operation-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(Du.primaryClass)}}const Lu=Du;const Vu=class extends Ga{constructor(e){super(e),this.element=new Lu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Bu extends oe.wE{static primaryClass="operation-produces";constructor(e,t,n){super(e,t,n),this.classes.push(Bu.primaryClass)}}const Uu=Bu;const zu=class extends Ga{constructor(e){super(e),this.element=new Uu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Hu extends oe.wE{static primaryClass="operation-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(Hu.primaryClass),this.classes.push("parameters")}}const Gu=Hu;class Ku extends(pc(mc,Ga)){constructor(e){super(e),this.element=new Gu}ArrayElement(e){return e.forEach((e=>{const t=vc(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);du(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const Wu=Ku;class Ju extends oe.wE{static primaryClass="operation-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(Ju.primaryClass)}}const Yu=Ju;const Zu=class extends Ga{constructor(e){super(e),this.element=new Yu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Xu extends oe.wE{static primaryClass="operation-security";constructor(e,t,n){super(e,t,n),this.classes.push(Xu.primaryClass),this.classes.push("security")}}const Qu=Xu;class el extends(pc(mc,Ga)){constructor(e){super(e),this.element=new Qu}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}const tl=el;class nl extends(pc(wc,Ga)){constructor(e){super(e),this.element=new pi,this.specPath=ne(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const rl=nl;class sl extends(pc(wc,Ga)){constructor(e){super(e),this.element=new ma,this.specPath=ne(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}}const il=sl;class ol extends(pc(wc,Ga)){specPath;canSupportSpecificationExtensions;constructor(e){super(e),this.element=new fa,this.specPath=ne(["document","objects","Items"]),this.canSupportSpecificationExtensions=!0}}const al=ol;const cl=c((function(e,t){if(n=e,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Ne(e));var n;return St(e).test(t)}));function ul(e){return"[object Number]"===Object.prototype.toString.call(e)}const ll=c((function(e,t){if(!ul(e)||!ul(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n}));function pl(e,t,n){var r,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?e in n._items[s]||(t&&(n._items[s][e]=!0),!1):(t&&(n._items[s]={},n._items[s][e]=!0),!1);case"boolean":if(s in n._items){var i=e?1:0;return!!n._items[s][i]||(t&&(n._items[s][i]=!0),!1)}return t&&(n._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?!!Ee(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1);case"undefined":return!!n._items[s]||(t&&(n._items[s]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in n._items?!!Ee(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1)}}const hl=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!pl(e,!0,this)},e.prototype.has=function(e){return pl(e,!1,this)},e}();const ml=c((function(e,t){for(var n=[],r=0,s=e.length,i=t.length,o=new hl,a=0;a<i;a+=1)o.add(t[a]);for(;r<s;)o.add(e[r])&&(n[n.length]=e[r]),r+=1;return n}));class fl extends(pc(wc,Zc)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...n}){super({...n}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...ml(e.keys(),t)],wc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Zc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return sr}}const dl=fl;class _l extends(pc(dl,Ga)){constructor(e){super(e),this.element=new _a,this.specPathFixedFields=ne(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>vc(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=cl(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${ll(100,600).join("|")})$`))}ObjectElement(e){const t=dl.prototype.ObjectElement.call(this,e);return this.element.filter(du).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(lu).forEach(((e,t)=>{const n=ds(t);this.fieldPatternPredicate(Fi(n))&&e.setMetaProperty("http-status-code",n)})),t}}const gl=_l;const yl=class extends mc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Bo(e,ne(t),re))),n=Qo(t)(e);return this.element=this.toRefractedElement(n,e),sr}};class vl extends(pc(yl,Ga)){constructor(e){super(e),this.alternator=[{predicate:vc,specPath:["document","objects","Reference"]},{predicate:ki,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=yl.prototype.enter.call(this,e);return du(this.element)?this.element.setMetaProperty("referenced-element","response"):lu(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const wl=vl;class bl extends(pc(wc,Ga)){constructor(e){super(e),this.element=new ya,this.specPath=ne(["document","objects","Response"]),this.canSupportSpecificationExtensions=!0}}const El=bl;const xl=class extends Zc{constructor(e){super(e),this.fieldPatternPredicate=wo}};class Sl extends(pc(xl,Ga)){constructor(e){super(e),this.element=new wa,this.specPath=ne(["document","objects","Header"]),this.canSupportSpecificationExtensions=!1}}const Pl=Sl;class jl extends(pc(xl,Ga)){constructor(e){super(e),this.element=new Ea,this.specPath=ne(["value"]),this.canSupportSpecificationExtensions=!1}}const Ol=jl;class Al extends(pc(wc,Ga)){constructor(e){super(e),this.element=new xa,this.specPath=ne(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const kl=Al;class Il extends(pc(wc,Ga)){constructor(e){super(e),this.element=new Pa,this.specPath=ne(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Ml=Il;class Nl extends(pc(wc,Ga)){constructor(e){super(e),this.element=new Oa,this.specPath=ne(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=wc.prototype.ObjectElement.call(this,e);return Jr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Tl=Nl;const $l=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Rl extends(pc(wc,Ga)){constructor(e){super(e),this.element=new Aa,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Fl=Rl,{allOf:Cl}=na.visitors.document.objects.JSONSchema.fixedFields,ql=Cl.compose({methods:{ArrayElement(e){const t=Cl.compose.methods.ArrayElement.call(this,e);return this.element.filter(oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Dl}=na.visitors.document.objects.JSONSchema.fixedFields,Ll=Dl.compose({methods:{ObjectElement(e){const t=Dl.compose.methods.ObjectElement.call(this,e);return oa(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){const t=Dl.compose.methods.ArrayElement.call(this,e);return this.element.filter(oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{properties:Vl}=na.visitors.document.objects.JSONSchema.fixedFields,Bl=Vl.compose({methods:{ObjectElement(e){const t=Vl.compose.methods.ObjectElement.call(this,e);return this.element.filter(oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{JSONSchemaOrJSONReferenceVisitor:Ul}=na.visitors,zl=Ul.compose({methods:{ObjectElement(e){const t=Ul.compose.methods.enter.call(this,e);return oa(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}});class Hl extends(pc(wc,Ga)){constructor(e){super(e),this.element=new Ia,this.specPath=ne(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Gl=Hl;class Kl extends(pc(xl,Ga)){constructor(e){super(e),this.element=new Na,this.specPath=e=>ao(e)?["document","objects","JSONReference"]:["document","objects","Schema"]}ObjectElement(e){const t=xl.prototype.ObjectElement.call(this,e);return this.element.filter(oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Wl=Kl;class Jl extends(pc(xl,Ga)){constructor(e){super(e),this.element=new Fa,this.specPath=ne(["document","objects","Response"])}}const Yl=Jl;class Zl extends(pc(xl,Ga)){constructor(e){super(e),this.element=new $a,this.specPath=ne(["document","objects","Parameter"])}}const Xl=Zl;class Ql extends(pc(xl,Ga)){element;constructor(e){super(e),this.element=new qa,this.specPath=ne(["document","objects","SecurityScheme"])}}const ep=Ql;class tp extends(pc(wc,Ga)){constructor(e){super(e),this.element=new La,this.specPath=ne(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const np=tp;class rp extends(pc(xl,Ga)){constructor(e){super(e),this.element=new Ba,this.specPath=ne(["value"]),this.canSupportSpecificationExtensions=!0}}const sp=rp;class ip extends(pc(xl,Ga)){constructor(e){super(e),this.element=new za,this.specPath=ne(["value"])}}const op=ip;const ap=class extends mc{MemberElement(e){return this.element=ds(e),this.element.classes.push("specification-extension"),sr}},{fixedFields:cp}=na.visitors.document.objects.JSONSchema,up={visitors:{value:Ga,document:{objects:{JSONReference:na.visitors.document.objects.JSONReference,JSONSchema:{$ref:"#/visitors/document/objects/Schema"},Swagger:{$visitor:Ec,fixedFields:{swagger:Sc,info:{$ref:"#/visitors/document/objects/Info"},host:Pc,basePath:jc,schemes:kc,consumes:Nc,produces:Rc,paths:{$ref:"#/visitors/document/objects/Paths"},definitions:{$ref:"#/visitors/document/objects/Definitions"},parameters:{$ref:"#/visitors/document/objects/ParametersDefinitions"},responses:{$ref:"#/visitors/document/objects/ResponsesDefinitions"},securityDefinitions:{$ref:"#/visitors/document/objects/SecurityDefinitions"},security:Dc,tags:Uc,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Hc,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:Gc}},Contact:{$visitor:Wc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Yc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Paths:{$visitor:ju},PathItem:{$visitor:Au,fixedFields:{$ref:ku,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"},parameters:Tu}},Operation:{$visitor:Ru,fixedFields:{tags:qu,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},consumes:Vu,produces:zu,parameters:Wu,responses:{$ref:"#/visitors/document/objects/Responses"},schemes:Zu,deprecated:{$ref:"#/visitors/value"},security:tl}},ExternalDocumentation:{$visitor:rl,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:il,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:cp.description,required:cp.required,schema:zl,type:cp.type,format:cp.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:cp.default,maximum:cp.maximum,exclusiveMaximum:cp.exclusiveMaximum,minimum:cp.minimum,exclusiveMinimum:cp.exclusiveMinimum,maxLength:cp.maxLength,minLength:cp.minLength,pattern:cp.pattern,maxItems:cp.maxItems,minItems:cp.minItems,uniqueItems:cp.uniqueItems,enum:cp.enum,multipleOf:cp.multipleOf}},Items:{$visitor:al,fixedFields:{type:cp.type,format:cp.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:cp.default,maximum:cp.maximum,exclusiveMaximum:cp.exclusiveMaximum,minimum:cp.minimum,exclusiveMinimum:cp.exclusiveMinimum,maxLength:cp.maxLength,minLength:cp.minLength,pattern:cp.pattern,maxItems:cp.maxItems,minItems:cp.minItems,uniqueItems:cp.uniqueItems,enum:cp.enum,multipleOf:cp.multipleOf}},Responses:{$visitor:gl,fixedFields:{default:wl}},Response:{$visitor:El,fixedFields:{description:{$ref:"#/visitors/value"},schema:zl,headers:{$ref:"#/visitors/document/objects/Headers"},examples:{$ref:"#/visitors/document/objects/Example"}}},Headers:{$visitor:Pl},Example:{$visitor:Ol},Header:{$visitor:kl,fixedFields:{description:cp.description,type:cp.type,format:cp.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:cp.default,maximum:cp.maximum,exclusiveMaximum:cp.exclusiveMaximum,minimum:cp.minimum,exclusiveMinimum:cp.exclusiveMinimum,maxLength:cp.maxLength,minLength:cp.minLength,pattern:cp.pattern,maxItems:cp.maxItems,minItems:cp.minItems,uniqueItems:cp.uniqueItems,enum:cp.enum,multipleOf:cp.multipleOf}},Tag:{$visitor:Ml,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Tl,fixedFields:{$ref:$l}},Schema:{$visitor:Fl,fixedFields:{format:cp.format,title:cp.title,description:cp.description,default:cp.default,multipleOf:cp.multipleOf,maximum:cp.maximum,exclusiveMaximum:cp.exclusiveMaximum,minimum:cp.minimum,exclusiveMinimum:cp.exclusiveMinimum,maxLength:cp.maxLength,minLength:cp.minLength,pattern:cp.pattern,maxItems:cp.maxItems,minItems:cp.minItems,uniqueItems:cp.uniqueItems,maxProperties:cp.maxProperties,minProperties:cp.minProperties,required:cp.required,enum:cp.enum,type:cp.type,readOnly:cp.readOnly,items:Ll,allOf:ql,properties:Bl,additionalProperties:zl,discriminator:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},XML:{$visitor:Gl,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},Definitions:{$visitor:Wl},ParametersDefinitions:{$visitor:Xl},ResponsesDefinitions:{$visitor:Yl},SecurityDefinitions:{$visitor:ep},SecurityScheme:{$visitor:np,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},flow:{$ref:"#/visitors/value"},authorizationUrl:{$ref:"#/visitors/value"},token:{$ref:"#/visitors/value"},scopes:{$ref:"#/visitors/document/objects/Scopes"}}},Scopes:{$visitor:sp},SecurityRequirement:{$visitor:op}},extension:{$visitor:ap}}}},lp=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},pp={SwaggerElement:["content"],InfoElement:["content"],ContactElement:["content"],LicenseElement:["content"],PathsElement:["content"],PathItemElement:["content"],OperationElement:["content"],ExternalDocumentationElement:["content"],ParameterElement:["content"],ItemsElement:["content"],ExampleElement:["content"],ResponsesElement:["content"],ResponseElement:["content"],HeadersElement:["content"],HeaderElement:["content"],TagElement:["content"],ReferenceElement:["content"],JSONReferenceElement:["content"],SchemaElement:["content"],XmlElement:["content"],DefinitionsElement:["content"],ParametersDefinitionsElement:["content"],ResponsesDefinitionsElement:["content"],SecurityDefinitionsElement:["content"],SecuritySchemeElement:["content"],ScopesElement:["content"],SecurityRequirementElement:["content"],...Es},hp={namespace:e=>{const{base:t}=e;return t.register("swagger",Js),t.register("swaggerVersion",Zs),t.register("info",Qs),t.register("contact",ti),t.register("license",ri),t.register("paths",ii),t.register("pathItem",ai),t.register("operation",ui),t.register("externalDocumentation",pi),t.register("parameter",ma),t.register("items",fa),t.register("responses",_a),t.register("response",ya),t.register("headers",wa),t.register("example",Ea),t.register("header",xa),t.register("tag",Pa),t.register("reference",Oa),t.register("schema",Aa),t.register("xml",Ia),t.register("definitions",Na),t.register("parametersDefinitions",$a),t.register("responsesDefinitions",Fa),t.register("securityDefinitions",qa),t.register("securityScheme",La),t.register("scopes",Ba),t.register("securityRequirement",za),t}},mp=()=>{const e=lt(hp);return{predicates:{...s,...i,isStringElement:Jr},namespace:e}},fp=(e,{specPath:t=["visitors","document","objects","Swagger","$visitor"],plugins:n=[]}={})=>{const r=(0,oe.e)(e),s=Oi(up),i=new($e(t,s))({specObj:s});return xs(r,i),qs(i.element,n,{toolboxCreator:mp,visitorOptions:{keyMap:pp,nodeTypeGetter:lp}})},dp=e=>(t,n={})=>fp(t,{specPath:e,...n});Js.refract=dp(["visitors","document","objects","Swagger","$visitor"]),Zs.refract=dp(["visitors","document","objects","SwaggerVersion","$visitor"]),Qs.refract=dp(["visitors","document","objects","Info","$visitor"]),ti.refract=dp(["visitors","document","objects","Contact","$visitor"]),ri.refract=dp(["visitors","document","objects","License","$visitor"]),ii.refract=dp(["visitors","document","objects","Paths","$visitor"]),ai.refract=dp(["visitors","document","objects","PathItem","$visitor"]),ui.refract=dp(["visitors","document","objects","Operation","$visitor"]),pi.refract=dp(["visitors","document","objects","ExternalDocumentation","$visitor"]),ma.refract=dp(["visitors","document","objects","Parameter","$visitor"]),fa.refract=dp(["visitors","document","objects","Items","$visitor"]),_a.refract=dp(["visitors","document","objects","Responses","$visitor"]),ya.refract=dp(["visitors","document","objects","Response","$visitor"]),wa.refract=dp(["visitors","document","objects","Headers","$visitor"]),Ea.refract=dp(["visitors","document","objects","Example","$visitor"]),xa.refract=dp(["visitors","document","objects","Header","$visitor"]),Pa.refract=dp(["visitors","document","objects","Tag","$visitor"]),Oa.refract=dp(["visitors","document","objects","Reference","$visitor"]),Aa.refract=dp(["visitors","document","objects","Schema","$visitor"]),Ia.refract=dp(["visitors","document","objects","XML","$visitor"]),Na.refract=dp(["visitors","document","objects","Definitions","$visitor"]),$a.refract=dp(["visitors","document","objects","ParametersDefinitions","$visitor"]),Fa.refract=dp(["visitors","document","objects","ResponsesDefinitions","$visitor"]),qa.refract=dp(["visitors","document","objects","SecurityDefinitions","$visitor"]),La.refract=dp(["visitors","document","objects","SecurityScheme","$visitor"]),Ba.refract=dp(["visitors","document","objects","Scopes","$visitor"]),za.refract=dp(["visitors","document","objects","SecurityRequirement","$visitor"]);const _p=m(-1);const gp=class extends hi{};const yp=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new gp("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new gp("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new gp("latest method in MediaTypes class is not yet implemented.")}};class vp extends yp{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2.0",t="generic"){const n="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(n)))||this.unknownMediaType}latest(e="generic"){return _p(this.filterByFormat(e))}}const wp=new vp("application/vnd.oai.openapi;version=2.0","application/vnd.oai.openapi+json;version=2.0","application/vnd.oai.openapi+yaml;version=2.0"),bp=new vp(...wp.filterByFormat("generic"),...wp.filterByFormat("yaml")),Ep=/(?<YAML>^(["']?)swagger\2\s*:\s*(["'])(?<version_yaml>2\.0)\3(?:\s+|$))|(?<JSON>"swagger"\s*:\s*"(?<version_json>2\.0)")/m,xp=async e=>Ep.test(e)&&await(async e=>{try{return"ERROR"!==(await xt(e)).rootNode.type}catch{return!1}})(e),Sp=async(e,t={})=>{const n=d({},"refractorOpts",t),r=g(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1}={})=>{const n=await xt(e);return Ks(n,{sourceMap:t})})(e,r),{result:i}=s;if(ie(i)){const e=Js.refract(i,n);e.classes.push("result"),s.replaceResult(e)}return s},Pp=lt(hp)})(),r})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiYaml2=t():e.apidomParserAdapterOpenApiYaml2=t()}(self,(()=>(()=>{var e={3103:(e,t,n)=>{var r=n(4715)(n(8942),"DataView");e.exports=r},5098:(e,t,n)=>{var r=n(3305),s=n(9361),i=n(1112),o=n(5276),a=n(5071);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1386:(e,t,n)=>{var r=n(2393),s=n(2049),i=n(7144),o=n(7452),a=n(3964);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9770:(e,t,n)=>{var r=n(4715)(n(8942),"Map");e.exports=r},8250:(e,t,n)=>{var r=n(9753),s=n(5681),i=n(88),o=n(4732),a=n(9068);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9413:(e,t,n)=>{var r=n(4715)(n(8942),"Promise");e.exports=r},4512:(e,t,n)=>{var r=n(4715)(n(8942),"Set");e.exports=r},3212:(e,t,n)=>{var r=n(8250),s=n(1877),i=n(8006);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},1340:(e,t,n)=>{var r=n(1386),s=n(4103),i=n(1779),o=n(4162),a=n(7462),c=n(6638);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},5650:(e,t,n)=>{var r=n(8942).Symbol;e.exports=r},1623:(e,t,n)=>{var r=n(8942).Uint8Array;e.exports=r},9270:(e,t,n)=>{var r=n(4715)(n(8942),"WeakMap");e.exports=r},9847:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}},358:(e,t,n)=>{var r=n(6137),s=n(3283),i=n(3142),o=n(5853),a=n(9632),c=n(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&s(e),p=!n&&!l&&o(e),h=!n&&!l&&!p&&c(e),m=n||l||p||h,f=m?r(e.length,String):[],d=f.length;for(var _ in e)!t&&!u.call(e,_)||m&&("length"==_||p&&("offset"==_||"parent"==_)||h&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||a(_,d))||f.push(_);return f}},1129:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}},6465:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},7034:(e,t,n)=>{var r=n(6285);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},8244:(e,t,n)=>{var r=n(1129),s=n(3142);e.exports=function(e,t,n){var i=t(e);return s(e)?i:r(i,n(e))}},7379:(e,t,n)=>{var r=n(5650),s=n(8870),i=n(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)?s(e):i(e)}},6027:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return s(e)&&"[object Arguments]"==r(e)}},4687:(e,t,n)=>{var r=n(353),s=n(547);e.exports=function e(t,n,i,o,a){return t===n||(null==t||null==n||!s(t)&&!s(n)?t!=t&&n!=n:r(t,n,i,o,e,a))}},353:(e,t,n)=>{var r=n(1340),s=n(3934),i=n(8861),o=n(1182),a=n(8486),c=n(3142),u=n(5853),l=n(8666),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,_,g){var y=c(e),v=c(t),w=y?h:a(e),b=v?h:a(t),E=(w=w==p?m:w)==m,x=(b=b==p?m:b)==m,S=w==b;if(S&&u(e)){if(!u(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||l(e)?s(e,t,n,d,_,g):i(e,t,w,n,d,_,g);if(!(1&n)){var P=E&&f.call(e,"__wrapped__"),j=x&&f.call(t,"__wrapped__");if(P||j){var O=P?e.value():e,A=j?t.value():t;return g||(g=new r),_(O,A,n,d,g)}}return!!S&&(g||(g=new r),o(e,t,n,d,_,g))}},9624:(e,t,n)=>{var r=n(3655),s=n(4759),i=n(1580),o=n(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,h=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(r(e)?h:a).test(o(e))}},674:(e,t,n)=>{var r=n(7379),s=n(5387),i=n(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[r(e)]}},195:(e,t,n)=>{var r=n(4882),s=n(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return s(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6137:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);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,n)=>{var r=n(8942)["__core-js_shared__"];e.exports=r},3934:(e,t,n)=>{var r=n(3212),s=n(6465),i=n(5568);e.exports=function(e,t,n,o,a,c){var u=1&n,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var f=-1,d=!0,_=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++f<l;){var g=e[f],y=t[f];if(o)var v=u?o(y,g,f,t,e,c):o(g,y,f,e,t,c);if(void 0!==v){if(v)continue;d=!1;break}if(_){if(!s(t,(function(e,t){if(!i(_,t)&&(g===e||a(g,e,n,o,c)))return _.push(t)}))){d=!1;break}}else if(g!==y&&!a(g,y,n,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},8861:(e,t,n)=>{var r=n(5650),s=n(1623),i=n(6285),o=n(3934),a=n(5894),c=n(7447),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,p,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=a;case"[object Set]":var f=1&r;if(m||(m=c),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;r|=2,h.set(e,t);var _=o(m(e),m(t),r,u,p,h);return h.delete(e),_;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},1182:(e,t,n)=>{var r=n(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,a){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var p=l;p--;){var h=u[p];if(!(c?h in t:s.call(t,h)))return!1}var m=a.get(e),f=a.get(t);if(m&&f)return m==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var _=c;++p<l;){var g=e[h=u[p]],y=t[h];if(i)var v=c?i(y,g,h,t,e,a):i(g,y,h,e,t,a);if(!(void 0===v?g===y||o(g,y,n,i,a):v)){d=!1;break}_||(_="constructor"==h)}if(d&&!_){var w=e.constructor,b=t.constructor;w==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(d=!1)}return a.delete(e),a.delete(t),d}},4967:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},393:(e,t,n)=>{var r=n(8244),s=n(7979),i=n(1211);e.exports=function(e){return r(e,i,s)}},4700:(e,t,n)=>{var r=n(9067);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},4715:(e,t,n)=>{var r=n(9624),s=n(155);e.exports=function(e,t){var n=s(e,t);return r(n)?n:void 0}},8870:(e,t,n)=>{var r=n(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var s=o.call(e);return r&&(t?e[a]=n:delete e[a]),s}},7979:(e,t,n)=>{var r=n(9847),s=n(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)})))}:s;e.exports=a},8486:(e,t,n)=>{var r=n(3103),s=n(9770),i=n(9413),o=n(4512),a=n(9270),c=n(7379),u=n(4066),l="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=u(r),_=u(s),g=u(i),y=u(o),v=u(a),w=c;(r&&w(new r(new ArrayBuffer(1)))!=f||s&&w(new s)!=l||i&&w(i.resolve())!=p||o&&w(new o)!=h||a&&w(new a)!=m)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return f;case _:return l;case g:return p;case y:return h;case v:return m}return t}),e.exports=w},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,n)=>{var r=n(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,n)=>{var r=n(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0}},5276:(e,t,n)=>{var r=n(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}},5071:(e,t,n)=>{var r=n(4497);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},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,n)=>{var r,s=n(1950),i=(r=/[^.]+$/.exec(s&&s.keys&&s.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 n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,n)=>{var r=n(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():s.call(t,n,1),--this.size,!0)}},7144:(e,t,n)=>{var r=n(7034);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7452:(e,t,n)=>{var r=n(7034);e.exports=function(e){return r(this.__data__,e)>-1}},3964:(e,t,n)=>{var r=n(7034);e.exports=function(e,t){var n=this.__data__,s=r(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}},9753:(e,t,n)=>{var r=n(5098),s=n(1386),i=n(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||s),string:new r}}},5681:(e,t,n)=>{var r=n(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,n)=>{var r=n(4700);e.exports=function(e){return r(this,e).get(e)}},4732:(e,t,n)=>{var r=n(4700);e.exports=function(e){return r(this,e).has(e)}},9068:(e,t,n)=>{var r=n(4700);e.exports=function(e,t){var n=r(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},4497:(e,t,n)=>{var r=n(4715)(Object,"create");e.exports=r},8121:(e,t,n)=>{var r=n(3766)(Object.keys,Object);e.exports=r},2306:(e,t,n)=>{e=n.nmd(e);var r=n(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&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(n){return e(t(n))}}},8942:(e,t,n)=>{var r=n(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=r||s||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},7447:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},4103:(e,t,n)=>{var r=n(1386);e.exports=function(){this.__data__=new r,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},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,n)=>{var r=n(1386),s=n(9770),i=n(8250);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.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,n)=>{var r=n(6027),s=n(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,n)=>{var r=n(3655),s=n(5387);e.exports=function(e){return null!=e&&s(e.length)&&!r(e)}},2563:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==r(e)}},5853:(e,t,n)=>{e=n.nmd(e);var r=n(8942),s=n(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)||s;e.exports=c},6343:(e,t,n)=>{var r=n(4687);e.exports=function(e,t){return r(e,t)}},3655:(e,t,n)=>{var r=n(7379),s=n(1580);e.exports=function(e){if(!s(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,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return"number"==typeof e||s(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,n)=>{var r=n(7379),s=n(3142),i=n(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==r(e)}},8666:(e,t,n)=>{var r=n(674),s=n(9460),i=n(2306),o=i&&i.isTypedArray,a=o?s(o):r;e.exports=a},1211:(e,t,n)=>{var r=n(358),s=n(195),i=n(6529);e.exports=function(e){return i(e)?r(e):s(e)}},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,n)=>{const r=n(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5735:(e,t,n)=>{const r=n(9310),s=n(8138),i=n(986),o=n(2563),a=n(1580),c=n(394),u=n(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(r,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],s=this.elementDetection[n][1];if(r(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},3311:(e,t,n)=>{const r=n(1517),s=n(4123);class i extends s{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(e,t){return new i(this.elements.filter((n=>e.bind(t)(n.value,n.key,n))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,n)=>{const r=n(8631),s=n(3004),i=n(8712),o=n(2536),a=n(2555),c=n(9796),u=n(7309),l=n(5642),p=n(9620),h=n(593),m=n(4123),f=n(3311),d=n(2322);function _(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 s;if(Array.isArray(e))return new c(e.map(_));if("object"==typeof e){return new l(e)}return e}r.prototype.ObjectElement=l,r.prototype.RefElement=h,r.prototype.MemberElement=u,r.prototype.refract=_,m.prototype.refract=_,e.exports={Element:r,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:h,refract:_,ArraySlice:m,ObjectSlice:f,KeyValuePair:d}},9620:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),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,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),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,n)=>{const r=n(5735),s=n(7547);t.g$=r,t.KeyValuePair=n(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,n(394),n(3148)},9796:(e,t,n)=>{const r=n(1517),s=n(8631),i=n(4123);class o extends s{constructor(e,t,n){super(e||[],t,n),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 n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t<this.length;t+=1){const n=this.content[t];r="object"===this.primitive()?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach(((n,r)=>{e.bind(t)(n,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 n=t||{},r=!!n.recursive,s=void 0===n.results?[]:n.results;return this.forEach(((t,n,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:r}),e(t,n,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,n)=>{const r=n(6343),s=n(2322),i=n(4123);class o{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let n=new i;const r=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===t&&e.push(n);const i=n.findRecursive(t);return i&&i.reduce(r,e),n.content instanceof s&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),e.isEmpty||(n=n.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],s=n.indexOf(r);if(-1===s)return!1;n=n.splice(0,s)}return!0}))),n}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 s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7309:(e,t,n)=>{const r=n(2322),s=n(8631);e.exports=class extends s{constructor(e,t,n,s){super(new r,n,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},3004:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}},5642:(e,t,n)=>{const r=n(1517),s=n(1580),i=n(9796),o=n(7309),a=n(3311);e.exports=class extends i{constructor(e,t,n){super(e||[],t,n),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((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const n=e,r=this.getMember(n);return r?r.value=t:this.content.push(new o(n,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((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,s,i)=>{const o=e.bind(t)(r,s,i);o&&n.push(o)})),n}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((n=>e.bind(t)(n.value,n.key,n)))}}},8712:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,n)=>{const r=n(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 n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(n.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&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);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)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}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(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let s=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]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==n.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const s=new t(r);s.element=n.element,e.push(s)}))}));const s=e.shift();n.content=s?s.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}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,n)=>{if(e){const r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),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 n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),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,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},8357:e=>{!function(){"use strict";var t,n,r,s,i,o="properties",a="deepProperties",c="propertyDescriptors",u="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",h="configuration",m="deepConfiguration",f="deepProps",d="deepStatics",_="deepConf",g="initializers",y="methods",v="composers",w="compose";function b(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function E(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var x=E.bind(0,(function(e,t){if(t)for(var n=b(t),r=0;r<n.length;r+=1)Object.defineProperty(e,n[r],Object.getOwnPropertyDescriptor(t,n[r]));return e}));function S(e){return"function"==typeof e}function P(e){return e&&"object"==typeof e||S(e)}function j(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var O=E.bind(0,(function e(n,r){if(r===t)return n;if(Array.isArray(r))return(Array.isArray(n)?n:[]).concat(r);if(!j(r))return r;for(var s,i,o=b(r),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(r,s)).hasOwnProperty("value")?i.value!==t&&(n[s]=e(j(n[s])||Array.isArray(r[s])?n[s]:{},r[s])):Object.defineProperty(n,s,i);return n}));function A(){return(n=Array.prototype.concat.apply([],arguments).filter((function(e,t,n){return S(e)&&n.indexOf(e)===t}))).length?n:t}function k(e,t){function r(n,r){P(t[n])&&(P(e[n])||(e[n]={}),(r||x)(e[n],t[n]))}function s(r){(n=A(e[r],t[r]))&&(e[r]=n)}return t&&P(t=t[w]||t)&&(r(y),r(o),r(a,O),r(c),r(u),r(l,O),r(p),r(h),r(m,O),s(g),s(v)),e}function I(){return function(e){return n=function e(n){var r,s,i=e[w]||{},u={__proto__:i[y]},l=i[g],p=Array.prototype.slice.apply(arguments),h=i[a];if(h&&O(u,h),(h=i[o])&&x(u,h),(h=i[c])&&Object.defineProperties(u,h),!l||!l.length)return u;for(n===t&&(n={}),i=0;i<l.length;)S(r=l[i++])&&(u=(s=r.call(u,n,{instance:u,stamp:e,args:p}))===t?u:s);return u},(r=e[l])&&O(n,r),(r=e[u])&&x(n,r),(r=e[p])&&Object.defineProperties(n,r),r=S(n[w])?n[w]:I,x(n[w]=function(){return r.apply(this,arguments)},e),n}(Array.prototype.concat.apply([this],arguments).reduce(k,{}))}function M(e){return S(e)&&S(e[w])}var N={};function T(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((n=this)&&n[w]||r).call(n,s)}}N[y]=T(y,x),N[o]=N.props=T(o,x),N[g]=N.init=T(g,A),N[v]=T(v,A),N[a]=N[f]=T(a,O),N[u]=N.statics=T(u,x),N[l]=N[d]=T(l,O),N[h]=N.conf=T(h,x),N[m]=N[_]=T(m,O),N[c]=T(c,x),N[p]=T(p,x),r=N[w]=x((function(){for(var e,b,E=0,S=[],j=arguments,k=this;E<j.length;)P(e=j[E++])&&S.push(M(e)?e:((s={})[y]=(b=e)[y]||t,r=b.props,s[o]=P((n=b[o])||r)?x({},r,n):t,s[g]=A(b.init,b[g]),s[v]=A(b[v]),r=b[f],s[a]=P((n=b[a])||r)?O({},r,n):t,s[c]=b[c],r=b.statics,s[u]=P((n=b[u])||r)?x({},r,n):t,r=b[d],s[l]=P((n=b[l])||r)?O({},r,n):t,n=b[p],s[p]=P((r=b.name&&{name:{value:b.name}})||n)?x({},n,r):t,r=b.conf,s[h]=P((n=b[h])||r)?x({},r,n):t,r=b[_],s[m]=P((n=b[m])||r)?O({},r,n):t,s));if(e=I.apply(k||i,S),k&&S.unshift(k),Array.isArray(j=e[w][v]))for(E=0;E<j.length;)e=M(k=j[E++]({stamp:e,composables:S}))?k:e;return e}),N),N.create=function(){return this.apply(t,arguments)},(s={})[u]=N,i=I(s),r[w]=r.bind(),r.version="4.3.2","object"!=typeof t?e.exports=r:self.stampit=r}()},8583:(e,t)=>{"use strict";var n;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"}(n=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[n.MalformedUnicode,"malformed Unicode character escape sequence"],[n.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[n.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[n.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[n.EndOfString,"malformed escape sequence at end of string"]])},6850:(e,t,n)=>{"use strict";t.MH=void 0;const r=n(8583);function s(e,t,n){const s=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(s)||void 0!==n&&n!==e.length)throw new SyntaxError(r.errorMessages.get(t));return s}function i(e,t){const n=s(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=s(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(n,e)}return String.fromCharCode(n)}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,n,a,c,u,l,p,h,m){if(void 0!==n)return"\\";if(void 0!==a)return function(e){const t=s(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 n=s(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(n)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==u)return i(u,l);if(void 0!==p)return i(p);if("0"===h)return"\0";if(void 0!==h)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const n=parseInt(e,8);return String.fromCharCode(n)}(h,!t);if(void 0!==m)return f=m,o.get(f)||f;var f;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=c},3833:(e,t,n)=>{var r=void 0!==r?r:{},s=function(){var t,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(r=Object.assign({},r,o),t=new Promise((t=>{var o,a={};for(o in r)r.hasOwnProperty(o)&&(a[o]=r[o]);var c,u,l,p,h=[],m="./this.program",f=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var d,_,g,y,v,w="";c?(w=p?n(4142).dirname(w)+"/":"//",d=function(e,t){return y||(y=n(3078)),v||(v=n(4142)),e=v.normalize(e),y.readFileSync(e,t?null:"utf8")},g=function(e){var t=d(e,!0);return t.buffer||(t=new Uint8Array(t)),T(t.buffer),t},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),h=process.argv.slice(2),e.exports=r,f=function(e){process.exit(e)},r.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=function(e){return read(e)}),g=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(T("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?h=scriptArgs:void 0!==arguments&&(h=arguments),"function"==typeof quit&&(f=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||p)&&(p?w=self.location.href:void 0!==s&&s.currentScript&&(w=s.currentScript.src),w=0!==w.indexOf("blob:")?w.substr(0,w.lastIndexOf("/")+1):"",d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(g=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)}),r.print||console.log.bind(console);var b=r.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(r[o]=a[o]);a=null,r.arguments&&(h=r.arguments),r.thisProgram&&(m=r.thisProgram),r.quit&&(f=r.quit);var E,x=16,S=[];function P(e,t){if(!E){E=new WeakMap;for(var n=0;n<Y.length;n++){var r=Y.get(n);r&&E.set(r,n)}}if(E.has(e))return E.get(e);var s=function(){if(S.length)return S.pop();try{Y.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Y.length-1}();try{Y.set(s,e)}catch(n){if(!(n instanceof TypeError))throw n;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var n={i:"i32",j:"i64",f:"f32",d:"f64"},r={parameters:[],results:"v"==t[0]?[]:[n[t[0]]]},s=1;s<t.length;++s)r.parameters.push(n[t[s]]);return new WebAssembly.Function(r,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(c[a[s]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);Y.set(s,i)}return E.set(e,s),s}var j,O=r.dynamicLibraries||[];r.wasmBinary&&(j=r.wasmBinary);var A,k=r.noExitRuntime||!0;function I(e,t,n,r){switch("*"===(n=n||"i8").charAt(n.length-1)&&(n="i32"),n){case"i1":case"i8":F[e>>0]=t;break;case"i16":C[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":le=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],q[e>>2]=le[0],q[e+4>>2]=le[1];break;case"float":D[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ae("invalid type for setValue: "+n)}}function M(e,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return F[e>>0];case"i16":return C[e>>1];case"i32":case"i64":return q[e>>2];case"float":return D[e>>2];case"double":return L[e>>3];default:ae("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ae("no native wasm support detected");var N=!1;function T(e,t){e||ae("Assertion failed: "+t)}var $,F,R,C,q,D,L,V="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(e,t,n){for(var r=t+n,s=t;e[s]&&!(s>=r);)++s;if(s-t>16&&e.subarray&&V)return V.decode(e.subarray(t,s));for(var i="";t<s;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function U(e,t){return e?B(R,e,t):""}function z(e,t,n,r){if(!(r>0))return 0;for(var s=n,i=n+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)),a<=127){if(n>=i)break;t[n++]=a}else if(a<=2047){if(n+1>=i)break;t[n++]=192|a>>6,t[n++]=128|63&a}else if(a<=65535){if(n+2>=i)break;t[n++]=224|a>>12,t[n++]=128|a>>6&63,t[n++]=128|63&a}else{if(n+3>=i)break;t[n++]=240|a>>18,t[n++]=128|a>>12&63,t[n++]=128|a>>6&63,t[n++]=128|63&a}}return t[n]=0,n-s}function H(e,t,n){return z(e,R,t,n)}function G(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}function K(e){var t=G(e)+1,n=Ue(t);return z(e,F,n,t),n}function W(e){$=e,r.HEAP8=F=new Int8Array(e),r.HEAP16=C=new Int16Array(e),r.HEAP32=q=new Int32Array(e),r.HEAPU8=R=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=new Uint32Array(e),r.HEAPF32=D=new Float32Array(e),r.HEAPF64=L=new Float64Array(e)}var J=r.INITIAL_MEMORY||33554432;(A=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:J/65536,maximum:32768}))&&($=A.buffer),J=$.byteLength,W($);var Y=new WebAssembly.Table({initial:17,element:"anyfunc"}),Z=[],X=[],Q=[],ee=[],te=!1,ne=0,re=null,se=null;function ie(e){ne++,r.monitorRunDependencies&&r.monitorRunDependencies(ne)}function oe(e){if(ne--,r.monitorRunDependencies&&r.monitorRunDependencies(ne),0==ne&&(null!==re&&(clearInterval(re),re=null),se)){var t=se;se=null,t()}}function ae(e){throw r.onAbort&&r.onAbort(e),b(e+=""),N=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}r.preloadedImages={},r.preloadedAudios={},r.preloadedWasm={};var ce,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function he(e){return e.startsWith("file://")}function me(e){try{if(e==ce&&j)return new Uint8Array(j);if(g)return g(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return r.locateFile?r.locateFile(e,w):w+e}(ce));var fe={},de={get:function(e,t){return fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),fe[t]}};function _e(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?Y.get(n)():Y.get(n)(t.arg):n(void 0===t.arg?null:t.arg)}else t(r)}}function ge(e){var t=0;function n(){for(var n=0,r=1;;){var s=e[t++];if(n+=(127&s)*r,r*=128,!(128&s))break}return n}if(e instanceof WebAssembly.Module){var r=WebAssembly.Module.customSections(e,"dylink");T(0!=r.length,"need dylink section"),e=new Int8Array(r[0])}else T(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===e[8],"need the dylink section to be first"),t=9,n(),T(6===e[t]),T(e[++t]==="d".charCodeAt(0)),T(e[++t]==="y".charCodeAt(0)),T(e[++t]==="l".charCodeAt(0)),T(e[++t]==="i".charCodeAt(0)),T(e[++t]==="n".charCodeAt(0)),T(e[++t]==="k".charCodeAt(0)),t++;var s={};s.memorySize=n(),s.memoryAlign=n(),s.tableSize=n(),s.tableAlign=n();var i=n();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=n(),c=e.subarray(t,t+a);t+=a;var u=B(c,0);s.neededDynlibs.push(u)}return s}var ye=0;function ve(){return k||ye>0}function we(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function be(e,t){for(var n in e)if(e.hasOwnProperty(n)){qe.hasOwnProperty(n)||(qe[n]=e[n]);var s=we(n);r.hasOwnProperty(s)||(r[s]=e[n])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xe=5250880;function Se(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Pe(e,t){var n={};for(var r in e){var s=e[r];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),n[r]=s}return function(e){for(var t in e)if(!Se(t)){var n=!1,r=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],n=!0),fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(n||0==fe[t].value)&&("function"==typeof r?fe[t].value=P(r):"number"==typeof r?fe[t].value=r:b("unhandled export type for `"+t+"`: "+typeof r))}}(n),n}function je(e,t){var n,s;return t&&(n=qe["orig$"+e]),n||(n=qe[e]),n||(n=r[we(e)]),!n&&e.startsWith("invoke_")&&(s=e.split("_")[1],n=function(){var e=Ve();try{return function(e,t,n){return e.includes("j")?function(e,t,n){var s=r["dynCall_"+e];return n&&n.length?s.apply(null,[t].concat(n)):s.call(null,t)}(e,t,n):Y.get(t).apply(null,n)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Be(e),t!==t+0&&"longjmp"!==t)throw t;ze(1,0)}}),n}function Oe(e,t){var n=ge(e);function r(){var r=Math.pow(2,n.memoryAlign);r=Math.max(r,x);var s,i,o,a=(s=function(e){if(te)return De(e);var t=xe,n=t+e+15&-16;return xe=n,fe.__heap_base.value=n,t}(n.memorySize+r),(i=r)||(i=x),Math.ceil(s/i)*i),c=Y.length;Y.grow(n.tableSize);for(var u=a;u<a+n.memorySize;u++)F[u]=0;for(u=c;u<c+n.tableSize;u++)Y.set(u,null);var l=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return a;case"__table_base":return c}return t in qe?qe[t]:(t in e||(e[t]=function(){return n||(n=function(e){var t=je(e,!1);return t||(t=o[e]),t}(t)),n.apply(null,arguments)}),e[t]);var n}}),p={"GOT.mem":new Proxy({},de),"GOT.func":new Proxy({},de),env:l,wasi_snapshot_preview1:l};function h(e){for(var r=0;r<n.tableSize;r++){var s=Y.get(c+r);s&&E.set(s,c+r)}o=Pe(e.exports,a),t.allowUndefined||ke();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():X.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var m=new WebAssembly.Instance(e,p);return Promise.resolve(h(m))}return WebAssembly.instantiate(e,p).then((function(e){return h(e.instance)}))}var f=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return h(m=new WebAssembly.Instance(f,p))}return t.loadAsync?n.neededDynlibs.reduce((function(e,n){return e.then((function(){return Ae(n,t)}))}),Promise.resolve()).then((function(){return r()})):(n.neededDynlibs.forEach((function(e){Ae(e,t)})),r())}function Ae(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:r.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var n,s=Ee.loadedLibNames[e];if(s)return n=Ee.loadedLibs[s],t.global&&!n.global&&(n.global=!0,"loading"!==n.module&&be(n.module)),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,t.loadAsync?Promise.resolve(s):s;function i(e){if(t.fs){var n=t.fs.readFile(e,{encoding:"binary"});return n instanceof Uint8Array||(n=new Uint8Array(n)),t.loadAsync?Promise.resolve(n):n}return t.loadAsync?(r=e,fetch(r,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+r+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):g(e);var r}function o(){if(void 0!==r.preloadedWasm&&void 0!==r.preloadedWasm[e]){var n=r.preloadedWasm[e];return t.loadAsync?Promise.resolve(n):n}return t.loadAsync?i(e).then((function(e){return Oe(e,t)})):Oe(i(e),t)}function a(e){n.global&&be(e),n.module=e}return s=Ee.nextHandle++,n={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=s,Ee.loadedLibs[s]=n,t.loadAsync?o().then((function(e){return a(e),s})):(a(o()),s)}function ke(){for(var e in fe)if(0==fe[e].value){var t=je(e,!0);"function"==typeof t?fe[e].value=P(t,t.sig):"number"==typeof t?fe[e].value=t:T(!1,"bad export type for `"+e+"`: "+typeof t)}}r.___heap_base=xe;var Ie,Me=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Ne(){ae()}r._abort=Ne,Ne.sig="v",Ie=c?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Te(e,t){var n;if(0===e)n=Date.now();else{if(1!==e&&4!==e)return 28,q[Le()>>2]=28,-1;n=Ie()}return q[t>>2]=n/1e3|0,q[t+4>>2]=n%1e3*1e3*1e3|0,0}function $e(e){try{return A.grow(e-$.byteLength+65535>>>16),W(A.buffer),1}catch(e){}}function Fe(e){We(e)}function Re(e){}Te.sig="iii",Fe.sig="vi",Re.sig="vi";var Ce,qe={__heap_base:xe,__indirect_function_table:Y,__memory_base:1024,__stack_pointer:Me,__table_base:1,abort:Ne,clock_gettime:Te,emscripten_memcpy_big:function(e,t,n){R.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=R.length;if((e>>>=0)>2147483648)return!1;for(var r=1;r<=4;r*=2){var s=n*(1+.2/r);if(s=Math.min(s,e+100663296),$e(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Fe,memory:A,setTempRet0:Re,tree_sitter_log_callback:function(e,t){if(ut){const n=U(t);ut(n,0!==e)}},tree_sitter_parse_callback:function(e,t,n,r,s){var i=ct(t,{row:n,column:r});"string"==typeof i?(I(s,i.length,"i32"),function(e,t,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=(n-=2)<2*e.length?n/2:e.length,s=0;s<r;++s){var i=e.charCodeAt(s);C[t>>1]=i,t+=2}C[t>>1]=0}(i,e,10240)):I(s,0,"i32")}},De=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,de),"GOT.func":new Proxy(qe,de)};function t(e,t){var n=e.exports;n=Pe(n,1024),r.asm=n;var s,i=ge(t);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),be(n),s=r.asm.__wasm_call_ctors,X.unshift(s),oe()}function n(e){t(e.instance,e.module)}function s(t){return function(){if(!j&&(l||p)){if("function"==typeof fetch&&!he(ce))return fetch(ce,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ce+"'";return e.arrayBuffer()})).catch((function(){return me(ce)}));if(_)return new Promise((function(e,t){_(ce,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return me(ce)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){b("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){return b("Module.instantiateWasm callback failed with error: "+e),!1}j||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||he(ce)||"function"!=typeof fetch?s(n):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return b("wasm streaming compile failed: "+e),b("falling back to ArrayBuffer instantiation"),s(n)}))}))}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r._malloc=function(){return(De=r._malloc=r.asm.malloc).apply(null,arguments)}),Le=(r._calloc=function(){return(r._calloc=r.asm.calloc).apply(null,arguments)},r._realloc=function(){return(r._realloc=r.asm.realloc).apply(null,arguments)},r._free=function(){return(r._free=r.asm.free).apply(null,arguments)},r._ts_language_symbol_count=function(){return(r._ts_language_symbol_count=r.asm.ts_language_symbol_count).apply(null,arguments)},r._ts_language_version=function(){return(r._ts_language_version=r.asm.ts_language_version).apply(null,arguments)},r._ts_language_field_count=function(){return(r._ts_language_field_count=r.asm.ts_language_field_count).apply(null,arguments)},r._ts_language_symbol_name=function(){return(r._ts_language_symbol_name=r.asm.ts_language_symbol_name).apply(null,arguments)},r._ts_language_symbol_for_name=function(){return(r._ts_language_symbol_for_name=r.asm.ts_language_symbol_for_name).apply(null,arguments)},r._ts_language_symbol_type=function(){return(r._ts_language_symbol_type=r.asm.ts_language_symbol_type).apply(null,arguments)},r._ts_language_field_name_for_id=function(){return(r._ts_language_field_name_for_id=r.asm.ts_language_field_name_for_id).apply(null,arguments)},r._memcpy=function(){return(r._memcpy=r.asm.memcpy).apply(null,arguments)},r._ts_parser_delete=function(){return(r._ts_parser_delete=r.asm.ts_parser_delete).apply(null,arguments)},r._ts_parser_reset=function(){return(r._ts_parser_reset=r.asm.ts_parser_reset).apply(null,arguments)},r._ts_parser_set_language=function(){return(r._ts_parser_set_language=r.asm.ts_parser_set_language).apply(null,arguments)},r._ts_parser_timeout_micros=function(){return(r._ts_parser_timeout_micros=r.asm.ts_parser_timeout_micros).apply(null,arguments)},r._ts_parser_set_timeout_micros=function(){return(r._ts_parser_set_timeout_micros=r.asm.ts_parser_set_timeout_micros).apply(null,arguments)},r._memmove=function(){return(r._memmove=r.asm.memmove).apply(null,arguments)},r._memcmp=function(){return(r._memcmp=r.asm.memcmp).apply(null,arguments)},r._ts_query_new=function(){return(r._ts_query_new=r.asm.ts_query_new).apply(null,arguments)},r._ts_query_delete=function(){return(r._ts_query_delete=r.asm.ts_query_delete).apply(null,arguments)},r._iswspace=function(){return(r._iswspace=r.asm.iswspace).apply(null,arguments)},r._iswalnum=function(){return(r._iswalnum=r.asm.iswalnum).apply(null,arguments)},r._ts_query_pattern_count=function(){return(r._ts_query_pattern_count=r.asm.ts_query_pattern_count).apply(null,arguments)},r._ts_query_capture_count=function(){return(r._ts_query_capture_count=r.asm.ts_query_capture_count).apply(null,arguments)},r._ts_query_string_count=function(){return(r._ts_query_string_count=r.asm.ts_query_string_count).apply(null,arguments)},r._ts_query_capture_name_for_id=function(){return(r._ts_query_capture_name_for_id=r.asm.ts_query_capture_name_for_id).apply(null,arguments)},r._ts_query_string_value_for_id=function(){return(r._ts_query_string_value_for_id=r.asm.ts_query_string_value_for_id).apply(null,arguments)},r._ts_query_predicates_for_pattern=function(){return(r._ts_query_predicates_for_pattern=r.asm.ts_query_predicates_for_pattern).apply(null,arguments)},r._ts_tree_copy=function(){return(r._ts_tree_copy=r.asm.ts_tree_copy).apply(null,arguments)},r._ts_tree_delete=function(){return(r._ts_tree_delete=r.asm.ts_tree_delete).apply(null,arguments)},r._ts_init=function(){return(r._ts_init=r.asm.ts_init).apply(null,arguments)},r._ts_parser_new_wasm=function(){return(r._ts_parser_new_wasm=r.asm.ts_parser_new_wasm).apply(null,arguments)},r._ts_parser_enable_logger_wasm=function(){return(r._ts_parser_enable_logger_wasm=r.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},r._ts_parser_parse_wasm=function(){return(r._ts_parser_parse_wasm=r.asm.ts_parser_parse_wasm).apply(null,arguments)},r._ts_language_type_is_named_wasm=function(){return(r._ts_language_type_is_named_wasm=r.asm.ts_language_type_is_named_wasm).apply(null,arguments)},r._ts_language_type_is_visible_wasm=function(){return(r._ts_language_type_is_visible_wasm=r.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},r._ts_tree_root_node_wasm=function(){return(r._ts_tree_root_node_wasm=r.asm.ts_tree_root_node_wasm).apply(null,arguments)},r._ts_tree_edit_wasm=function(){return(r._ts_tree_edit_wasm=r.asm.ts_tree_edit_wasm).apply(null,arguments)},r._ts_tree_get_changed_ranges_wasm=function(){return(r._ts_tree_get_changed_ranges_wasm=r.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},r._ts_tree_cursor_new_wasm=function(){return(r._ts_tree_cursor_new_wasm=r.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},r._ts_tree_cursor_delete_wasm=function(){return(r._ts_tree_cursor_delete_wasm=r.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},r._ts_tree_cursor_reset_wasm=function(){return(r._ts_tree_cursor_reset_wasm=r.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_first_child_wasm=function(){return(r._ts_tree_cursor_goto_first_child_wasm=r.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_next_sibling_wasm=function(){return(r._ts_tree_cursor_goto_next_sibling_wasm=r.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_parent_wasm=function(){return(r._ts_tree_cursor_goto_parent_wasm=r.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_type_id_wasm=function(){return(r._ts_tree_cursor_current_node_type_id_wasm=r.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_named_wasm=function(){return(r._ts_tree_cursor_current_node_is_named_wasm=r.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_missing_wasm=function(){return(r._ts_tree_cursor_current_node_is_missing_wasm=r.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_id_wasm=function(){return(r._ts_tree_cursor_current_node_id_wasm=r.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},r._ts_tree_cursor_start_position_wasm=function(){return(r._ts_tree_cursor_start_position_wasm=r.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},r._ts_tree_cursor_end_position_wasm=function(){return(r._ts_tree_cursor_end_position_wasm=r.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},r._ts_tree_cursor_start_index_wasm=function(){return(r._ts_tree_cursor_start_index_wasm=r.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},r._ts_tree_cursor_end_index_wasm=function(){return(r._ts_tree_cursor_end_index_wasm=r.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},r._ts_tree_cursor_current_field_id_wasm=function(){return(r._ts_tree_cursor_current_field_id_wasm=r.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_wasm=function(){return(r._ts_tree_cursor_current_node_wasm=r.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},r._ts_node_symbol_wasm=function(){return(r._ts_node_symbol_wasm=r.asm.ts_node_symbol_wasm).apply(null,arguments)},r._ts_node_child_count_wasm=function(){return(r._ts_node_child_count_wasm=r.asm.ts_node_child_count_wasm).apply(null,arguments)},r._ts_node_named_child_count_wasm=function(){return(r._ts_node_named_child_count_wasm=r.asm.ts_node_named_child_count_wasm).apply(null,arguments)},r._ts_node_child_wasm=function(){return(r._ts_node_child_wasm=r.asm.ts_node_child_wasm).apply(null,arguments)},r._ts_node_named_child_wasm=function(){return(r._ts_node_named_child_wasm=r.asm.ts_node_named_child_wasm).apply(null,arguments)},r._ts_node_child_by_field_id_wasm=function(){return(r._ts_node_child_by_field_id_wasm=r.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},r._ts_node_next_sibling_wasm=function(){return(r._ts_node_next_sibling_wasm=r.asm.ts_node_next_sibling_wasm).apply(null,arguments)},r._ts_node_prev_sibling_wasm=function(){return(r._ts_node_prev_sibling_wasm=r.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},r._ts_node_next_named_sibling_wasm=function(){return(r._ts_node_next_named_sibling_wasm=r.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},r._ts_node_prev_named_sibling_wasm=function(){return(r._ts_node_prev_named_sibling_wasm=r.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},r._ts_node_parent_wasm=function(){return(r._ts_node_parent_wasm=r.asm.ts_node_parent_wasm).apply(null,arguments)},r._ts_node_descendant_for_index_wasm=function(){return(r._ts_node_descendant_for_index_wasm=r.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_index_wasm=function(){return(r._ts_node_named_descendant_for_index_wasm=r.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_descendant_for_position_wasm=function(){return(r._ts_node_descendant_for_position_wasm=r.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_position_wasm=function(){return(r._ts_node_named_descendant_for_position_wasm=r.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_start_point_wasm=function(){return(r._ts_node_start_point_wasm=r.asm.ts_node_start_point_wasm).apply(null,arguments)},r._ts_node_end_point_wasm=function(){return(r._ts_node_end_point_wasm=r.asm.ts_node_end_point_wasm).apply(null,arguments)},r._ts_node_start_index_wasm=function(){return(r._ts_node_start_index_wasm=r.asm.ts_node_start_index_wasm).apply(null,arguments)},r._ts_node_end_index_wasm=function(){return(r._ts_node_end_index_wasm=r.asm.ts_node_end_index_wasm).apply(null,arguments)},r._ts_node_to_string_wasm=function(){return(r._ts_node_to_string_wasm=r.asm.ts_node_to_string_wasm).apply(null,arguments)},r._ts_node_children_wasm=function(){return(r._ts_node_children_wasm=r.asm.ts_node_children_wasm).apply(null,arguments)},r._ts_node_named_children_wasm=function(){return(r._ts_node_named_children_wasm=r.asm.ts_node_named_children_wasm).apply(null,arguments)},r._ts_node_descendants_of_type_wasm=function(){return(r._ts_node_descendants_of_type_wasm=r.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},r._ts_node_is_named_wasm=function(){return(r._ts_node_is_named_wasm=r.asm.ts_node_is_named_wasm).apply(null,arguments)},r._ts_node_has_changes_wasm=function(){return(r._ts_node_has_changes_wasm=r.asm.ts_node_has_changes_wasm).apply(null,arguments)},r._ts_node_has_error_wasm=function(){return(r._ts_node_has_error_wasm=r.asm.ts_node_has_error_wasm).apply(null,arguments)},r._ts_node_is_missing_wasm=function(){return(r._ts_node_is_missing_wasm=r.asm.ts_node_is_missing_wasm).apply(null,arguments)},r._ts_query_matches_wasm=function(){return(r._ts_query_matches_wasm=r.asm.ts_query_matches_wasm).apply(null,arguments)},r._ts_query_captures_wasm=function(){return(r._ts_query_captures_wasm=r.asm.ts_query_captures_wasm).apply(null,arguments)},r._iswdigit=function(){return(r._iswdigit=r.asm.iswdigit).apply(null,arguments)},r._iswalpha=function(){return(r._iswalpha=r.asm.iswalpha).apply(null,arguments)},r._iswlower=function(){return(r._iswlower=r.asm.iswlower).apply(null,arguments)},r._towupper=function(){return(r._towupper=r.asm.towupper).apply(null,arguments)},r.___errno_location=function(){return(Le=r.___errno_location=r.asm.__errno_location).apply(null,arguments)}),Ve=(r._memchr=function(){return(r._memchr=r.asm.memchr).apply(null,arguments)},r._strlen=function(){return(r._strlen=r.asm.strlen).apply(null,arguments)},r.stackSave=function(){return(Ve=r.stackSave=r.asm.stackSave).apply(null,arguments)}),Be=r.stackRestore=function(){return(Be=r.stackRestore=r.asm.stackRestore).apply(null,arguments)},Ue=r.stackAlloc=function(){return(Ue=r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},ze=r._setThrew=function(){return(ze=r._setThrew=r.asm.setThrew).apply(null,arguments)};function He(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=r.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},r.__Znwm=function(){return(r.__Znwm=r.asm._Znwm).apply(null,arguments)},r.__ZdlPv=function(){return(r.__ZdlPv=r.asm._ZdlPv).apply(null,arguments)},r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=r.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},r._orig$ts_parser_timeout_micros=function(){return(r._orig$ts_parser_timeout_micros=r.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},r._orig$ts_parser_set_timeout_micros=function(){return(r._orig$ts_parser_set_timeout_micros=r.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},r.allocate=function(e,t){var n;return n=1==t?Ue(e.length):De(e.length),e.subarray||e.slice?R.set(e,n):R.set(new Uint8Array(e),n),n},se=function e(){Ce||Ke(),Ce||(se=e)};var Ge=!1;function Ke(e){function t(){Ce||(Ce=!0,r.calledRun=!0,N||(te=!0,_e(X),_e(Q),r.onRuntimeInitialized&&r.onRuntimeInitialized(),Je&&function(e){var t=r._main;if(t){var n=(e=e||[]).length+1,s=Ue(4*(n+1));q[s>>2]=K(m);for(var i=1;i<n;i++)q[(s>>2)+i]=K(e[i-1]);q[(s>>2)+n]=0;try{We(t(n,s),!0)}catch(e){if(e instanceof He)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),b("exception thrown: "+o),f(1,e)}}}(e),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)e=r.postRun.shift(),ee.unshift(e);var e;_e(ee)}()))}e=e||h,ne>0||!Ge&&(function(){if(O.length){if(!g)return ie(),void O.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),ke()}));O.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),ke()}else ke()}(),Ge=!0,ne>0)||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),Z.unshift(e);var e;_e(Z)}(),ne>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}function We(e,t){t&&ve()&&0===e||(ve()||(r.onExit&&r.onExit(e),N=!0),f(e,new He(e)))}if(r.run=Ke,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();var Je=!0;r.noInitialRun&&(Je=!1),Ke();const Ye=r,Ze={},Xe=4,Qe=5*Xe,et=2*Xe,tt=2*Xe+2*et,nt={row:0,column:0},rt=/[\w-.]*/g,st=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=Ye._ts_init(),it=M(at,"i32"),ot=M(at+Xe,"i32")}initialize(){Ye._ts_parser_new_wasm(),this[0]=M(at,"i32"),this[1]=M(at+Xe,"i32")}delete(){Ye._ts_parser_delete(this[0]),Ye._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==ft)throw new Error("Argument must be a Language");{t=e[0];const n=Ye._ts_language_version(t);if(n<ot||it<n)throw new Error(`Incompatible language version ${n}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ye._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,n){if("string"==typeof e)ct=(t,n,r)=>e.slice(t,r);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=e}this.logCallback?(ut=this.logCallback,Ye._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,Ye._ts_parser_enable_logger_wasm(this[0],0));let r=0,s=0;if(n&&n.includedRanges){r=n.includedRanges.length;let e=s=Ye._calloc(r,tt);for(let t=0;t<r;t++)jt(e,n.includedRanges[t]),e+=tt}const i=Ye._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,r);if(!i)throw ct=null,ut=null,new Error("Parsing failed");const o=new pt(Ze,i,this.language,ct);return ct=null,ut=null,o}reset(){Ye._ts_parser_reset(this[0])}setTimeoutMicros(e){Ye._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ye._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class pt{constructor(e,t,n,r){yt(e),this[0]=t,this.language=n,this.textCallback=r}copy(){const e=Ye._ts_tree_copy(this[0]);return new pt(Ze,e,this.language,this.textCallback)}delete(){Ye._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=at;St(t,e.startPosition),St(t+=et,e.oldEndPosition),St(t+=et,e.newEndPosition),I(t+=et,e.startIndex,"i32"),I(t+=Xe,e.oldEndIndex,"i32"),I(t+=Xe,e.newEndIndex,"i32"),t+=Xe}(e),Ye._ts_tree_edit_wasm(this[0])}get rootNode(){return Ye._ts_tree_root_node_wasm(this[0]),bt(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ye._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=M(at,"i32"),n=M(at+Xe,"i32"),r=new Array(t);if(t>0){let e=n;for(let n=0;n<t;n++)r[n]=Ot(e),e+=tt;Ye._free(n)}return r}}class ht{constructor(e,t){yt(e),this.tree=t}get typeId(){return wt(this),Ye._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return wt(this),Ye._ts_node_end_point_wasm(this.tree[0]),Pt(at)}get endIndex(){return wt(this),Ye._ts_node_end_index_wasm(this.tree[0])}get text(){return _t(this.tree,this.startIndex,this.endIndex)}isNamed(){return wt(this),1===Ye._ts_node_is_named_wasm(this.tree[0])}hasError(){return wt(this),1===Ye._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return wt(this),1===Ye._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return wt(this),1===Ye._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return wt(this),Ye._ts_node_child_wasm(this.tree[0],e),bt(this.tree)}namedChild(e){return wt(this),Ye._ts_node_named_child_wasm(this.tree[0],e),bt(this.tree)}childForFieldId(e){return wt(this),Ye._ts_node_child_by_field_id_wasm(this.tree[0],e),bt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return wt(this),Ye._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return wt(this),Ye._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){wt(this),Ye._ts_node_children_wasm(this.tree[0]);const e=M(at,"i32"),t=M(at+Xe,"i32");if(this._children=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._children[t]=bt(this.tree,n),n+=Qe;Ye._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){wt(this),Ye._ts_node_named_children_wasm(this.tree[0]);const e=M(at,"i32"),t=M(at+Xe,"i32");if(this._namedChildren=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._namedChildren[t]=bt(this.tree,n),n+=Qe;Ye._free(t)}}return this._namedChildren}descendantsOfType(e,t,n){Array.isArray(e)||(e=[e]),t||(t=nt),n||(n=nt);const r=[],s=this.tree.language.types;for(let t=0,n=s.length;t<n;t++)e.includes(s[t])&&r.push(t);const i=Ye._malloc(Xe*r.length);for(let e=0,t=r.length;e<t;e++)I(i+e*Xe,r[e],"i32");wt(this),Ye._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,t.row,t.column,n.row,n.column);const o=M(at,"i32"),a=M(at+Xe,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=bt(this.tree,e),e+=Qe}return Ye._free(a),Ye._free(i),c}get nextSibling(){return wt(this),Ye._ts_node_next_sibling_wasm(this.tree[0]),bt(this.tree)}get previousSibling(){return wt(this),Ye._ts_node_prev_sibling_wasm(this.tree[0]),bt(this.tree)}get nextNamedSibling(){return wt(this),Ye._ts_node_next_named_sibling_wasm(this.tree[0]),bt(this.tree)}get previousNamedSibling(){return wt(this),Ye._ts_node_prev_named_sibling_wasm(this.tree[0]),bt(this.tree)}get parent(){return wt(this),Ye._ts_node_parent_wasm(this.tree[0]),bt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");wt(this);let n=at+Qe;return I(n,e,"i32"),I(n+Xe,t,"i32"),Ye._ts_node_descendant_for_index_wasm(this.tree[0]),bt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");wt(this);let n=at+Qe;return I(n,e,"i32"),I(n+Xe,t,"i32"),Ye._ts_node_named_descendant_for_index_wasm(this.tree[0]),bt(this.tree)}descendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");wt(this);let n=at+Qe;return St(n,e),St(n+et,t),Ye._ts_node_descendant_for_position_wasm(this.tree[0]),bt(this.tree)}namedDescendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");wt(this);let n=at+Qe;return St(n,e),St(n+et,t),Ye._ts_node_named_descendant_for_position_wasm(this.tree[0]),bt(this.tree)}walk(){return wt(this),Ye._ts_tree_cursor_new_wasm(this.tree[0]),new mt(Ze,this.tree)}toString(){wt(this);const e=Ye._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var n=R[e++>>0];if(!n)return t;t+=String.fromCharCode(n)}}(e);return Ye._free(e),t}}class mt{constructor(e,t){yt(e),this.tree=t,xt(this)}delete(){Et(this),Ye._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){wt(e),Et(this,at+Qe),Ye._ts_tree_cursor_reset_wasm(this.tree[0]),xt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Et(this),Ye._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Et(this),Ye._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Et(this),1===Ye._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Et(this),1===Ye._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Et(this);const e=Ye._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ye._ts_tree_cursor_end_index_wasm(this.tree[0]);return _t(this.tree,e,t)}get startPosition(){return Et(this),Ye._ts_tree_cursor_start_position_wasm(this.tree[0]),Pt(at)}get endPosition(){return Et(this),Ye._ts_tree_cursor_end_position_wasm(this.tree[0]),Pt(at)}get startIndex(){return Et(this),Ye._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Et(this),Ye._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Et(this),Ye._ts_tree_cursor_current_node_wasm(this.tree[0]),bt(this.tree)}currentFieldId(){return Et(this),Ye._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Et(this);const e=Ye._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xt(this),1===e}gotoNextSibling(){Et(this);const e=Ye._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xt(this),1===e}gotoParent(){Et(this);const e=Ye._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xt(this),1===e}}class ft{constructor(e,t){yt(e),this[0]=t,this.types=new Array(Ye._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ye._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=U(Ye._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ye._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ye._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?U(t):null}}get version(){return Ye._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const n=G(e),r=Ye._malloc(n+1);H(e,r,n+1);const s=Ye._ts_language_symbol_for_name(this[0],r,n,t);return Ye._free(r),s||null}get nodeTypeCount(){return Ye._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ye._ts_language_symbol_name(this[0],e);return t?U(t):null}nodeTypeIsNamed(e){return!!Ye._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ye._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=G(e),n=Ye._malloc(t+1);H(e,n,t+1);const r=Ye._ts_query_new(this[0],n,t,at,at+Xe);if(!r){const t=M(at+Xe,"i32"),r=U(n,M(at,"i32")).length,s=e.substr(r,100).split("\n")[0];let i,o=s.match(rt)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${r}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${r}: '${s}'...`),o=""}throw i.index=r,i.length=o.length,Ye._free(n),i}const s=Ye._ts_query_string_count(r),i=Ye._ts_query_capture_count(r),o=Ye._ts_query_pattern_count(r),a=new Array(i),c=new Array(s);for(let e=0;e<i;e++){const t=Ye._ts_query_capture_name_for_id(r,e,at),n=M(at,"i32");a[e]=U(t,n)}for(let e=0;e<s;e++){const t=Ye._ts_query_string_value_for_id(r,e,at),n=M(at,"i32");c[e]=U(t,n)}const u=new Array(o),l=new Array(o),p=new Array(o),h=new Array(o),m=new Array(o);for(let e=0;e<o;e++){const t=Ye._ts_query_predicates_for_pattern(r,e,at),n=M(at,"i32");h[e]=[],m[e]=[];const s=[];let i=t;for(let t=0;t<n;t++){const t=M(i,"i32"),n=M(i+=Xe,"i32");if(i+=Xe,1===t)s.push({type:"capture",name:a[n]});else if(2===t)s.push({type:"string",value:c[n]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let n=!0;switch(t){case"not-eq?":n=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,r=s[2].name;m[e].push((function(e){let s,i;for(const n of e)n.name===t&&(s=n.node),n.name===r&&(i=n.node);return void 0===s||void 0===i||s.text===i.text===n}))}else{const t=s[1].name,r=s[2].value;m[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===r===n;return!0}))}break;case"not-match?":n=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const r=s[1].name,i=new RegExp(s[2].value);m[e].push((function(e){for(const t of e)if(t.name===r)return i.test(t.node.text)===n;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:p;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;default:h[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ye._free(n),new dt(Ze,r,a,m,h,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=n(3078);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const n=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${n}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:Oe;return t.then((e=>r(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),n=t.find((e=>st.test(e)&&!e.includes("external_scanner_")));n||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[n]();return new ft(Ze,r)}))}}class dt{constructor(e,t,n,r,s,i,o,a){yt(e),this[0]=t,this.captureNames=n,this.textPredicates=r,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ye._ts_query_delete(this[0]),this[0]=0}matches(e,t,n,r){t||(t=nt),n||(n=nt),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");wt(e),Ye._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,s);const i=M(at,"i32"),o=M(at+Xe,"i32"),a=M(at+2*Xe,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let t=0;t<i;t++){const n=M(l,"i32"),r=M(l+=Xe,"i32");l+=Xe;const s=new Array(r);if(l=gt(this,e.tree,l,s),this.textPredicates[n].every((e=>e(s)))){c[u++]={pattern:n,captures:s};const e=this.setProperties[n];e&&(c[t].setProperties=e);const r=this.assertedProperties[n];r&&(c[t].assertedProperties=r);const i=this.refutedProperties[n];i&&(c[t].refutedProperties=i)}}return c.length=u,Ye._free(o),c}captures(e,t,n,r){t||(t=nt),n||(n=nt),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");wt(e),Ye._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,s);const i=M(at,"i32"),o=M(at+Xe,"i32"),a=M(at+2*Xe,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=M(l,"i32"),n=M(l+=Xe,"i32"),r=M(l+=Xe,"i32");if(l+=Xe,u.length=n,l=gt(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[r],n=this.setProperties[t];n&&(e.setProperties=n);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ye._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function _t(e,t,n){const r=n-t;let s=e.textCallback(t,null,n);for(t+=s.length;t<n;){const r=e.textCallback(t,null,n);if(!(r&&r.length>0))break;t+=r.length,s+=r}return t>n&&(s=s.slice(0,r)),s}function gt(e,t,n,r){for(let s=0,i=r.length;s<i;s++){const i=M(n,"i32"),o=bt(t,n+=Xe);n+=Qe,r[s]={name:e.captureNames[i],node:o}}return n}function yt(e){if(e!==Ze)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function wt(e){let t=at;I(t,e.id,"i32"),I(t+=Xe,e.startIndex,"i32"),I(t+=Xe,e.startPosition.row,"i32"),I(t+=Xe,e.startPosition.column,"i32"),I(t+=Xe,e[0],"i32")}function bt(e,t=at){const n=M(t,"i32");if(0===n)return null;const r=M(t+=Xe,"i32"),s=M(t+=Xe,"i32"),i=M(t+=Xe,"i32"),o=M(t+=Xe,"i32"),a=new ht(Ze,e);return a.id=n,a.startIndex=r,a.startPosition={row:s,column:i},a[0]=o,a}function Et(e,t=at){I(t+0*Xe,e[0],"i32"),I(t+1*Xe,e[1],"i32"),I(t+2*Xe,e[2],"i32")}function xt(e){e[0]=M(at+0*Xe,"i32"),e[1]=M(at+1*Xe,"i32"),e[2]=M(at+2*Xe,"i32")}function St(e,t){I(e,t.row,"i32"),I(e+Xe,t.column,"i32")}function Pt(e){return{row:M(e,"i32"),column:M(e+Xe,"i32")}}function jt(e,t){St(e,t.startPosition),St(e+=et,t.endPosition),I(e+=et,t.startIndex,"i32"),I(e+=Xe,t.endIndex,"i32"),e+=Xe}function Ot(e){const t={};return t.startPosition=Pt(e),e+=et,t.endPosition=Pt(e),e+=et,t.startIndex=M(e,"i32"),e+=Xe,t.endIndex=M(e,"i32"),t}for(const e of Object.getOwnPropertyNames(lt.prototype))Object.defineProperty(i.prototype,e,{value:lt.prototype[e],enumerable:!1,writable:!1});i.Language=ft,r.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=s},3078:()=>{},4142:()=>{},1212:(e,t,n)=>{e.exports=n(8411)},7202:(e,t,n)=>{"use strict";var r=n(239);e.exports=r},6656:(e,t,n)=>{"use strict";n(484),n(5695),n(6138),n(9828),n(3832);var r=n(8099);e.exports=r.AggregateError},8411:(e,t,n)=>{"use strict";e.exports=n(8337)},8337:(e,t,n)=>{"use strict";n(5442);var r=n(7202);e.exports=r},814:(e,t,n)=>{"use strict";var r=n(2769),s=n(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not a function")}},1966:(e,t,n)=>{"use strict";var r=n(2937),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,n)=>{"use strict";var r=n(262),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not an object")}},1005:(e,t,n)=>{"use strict";var r=n(3273),s=n(4574),i=n(8130),o=function(e){return function(t,n,o){var a,c=r(t),u=i(c),l=s(o,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,n)=>{"use strict";var r=n(6100),s=r({}.toString),i=r("".slice);e.exports=function(e){return i(s(e),8,-1)}},8407:(e,t,n)=>{"use strict";var r=n(4904),s=n(2769),i=n(9932),o=n(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?n:c?i(t):"Object"===(r=i(t))&&s(t.callee)?"Arguments":r}},7464:(e,t,n)=>{"use strict";var r=n(701),s=n(5691),i=n(4543),o=n(9989);e.exports=function(e,t,n){for(var a=s(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];r(e,p)||n&&r(n,p)||c(e,p,u(t,p))}}},2871:(e,t,n)=>{"use strict";var r=n(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,n)=>{"use strict";var r=n(5024),s=n(9989),i=n(480);e.exports=r?function(e,t,n){return s.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,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,n)=>{"use strict";var r=n(3999);e.exports=function(e,t,n,s){return s&&s.enumerable?e[t]=n:r(e,t,n),e}},7525:(e,t,n)=>{"use strict";var r=n(1063),s=Object.defineProperty;e.exports=function(e,t){try{s(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},5024:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,n)=>{"use strict";var r=n(1063),s=n(262),i=r.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7868:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(e,t,n)=>{"use strict";var r,s,i=n(1063),o=n(7868),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(s=+r[1]),e.exports=s},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(e,t,n)=>{"use strict";var r=n(6100),s=Error,i=r("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},4279:(e,t,n)=>{"use strict";var r=n(3999),s=n(3885),i=n(5791),o=Error.captureStackTrace;e.exports=function(e,t,n,a){i&&(o?o(e,t):r(e,"stack",s(n,a)))}},5791:(e,t,n)=>{"use strict";var r=n(1203),s=n(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9098:(e,t,n)=>{"use strict";var r=n(1063),s=n(7013),i=n(9344),o=n(2769),a=n(4543).f,c=n(8696),u=n(8099),l=n(4572),p=n(3999),h=n(701),m=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,s,f,d,_,g,y,v,w,b=e.target,E=e.global,x=e.stat,S=e.proto,P=E?r:x?r[b]:r[b]&&r[b].prototype,j=E?u:u[b]||p(u,b,{})[b],O=j.prototype;for(d in t)s=!(n=c(E?d:b+(x?".":"#")+d,e.forced))&&P&&h(P,d),g=j[d],s&&(y=e.dontCallGetSet?(w=a(P,d))&&w.value:P[d]),_=s&&y?y:t[d],(n||S||typeof g!=typeof _)&&(v=e.bind&&s?l(_,r):e.wrap&&s?m(_):S&&o(_)?i(_):_,(e.sham||_&&_.sham||g&&g.sham)&&p(v,"sham",!0),p(j,d,v),S&&(h(u,f=b+"Prototype")||p(u,f,{}),p(u[f],d,_),e.real&&O&&(n||!O[d])&&p(O,d,_)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,n)=>{"use strict";var r=n(9344),s=n(814),i=n(1780),o=r(r.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype.call;e.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},3410:(e,t,n)=>{"use strict";var r=n(5024),s=n(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3574:(e,t,n)=>{"use strict";var r=n(6100),s=n(814);e.exports=function(e,t,n){try{return r(s(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},9344:(e,t,n)=>{"use strict";var r=n(9932),s=n(6100);e.exports=function(e){if("Function"===r(e))return s(e)}},6100:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,n)=>{"use strict";var r=n(8099),s=n(1063),i=n(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(s[e]):r[e]&&r[e][t]||s[e]&&s[e][t]}},967:(e,t,n)=>{"use strict";var r=n(8407),s=n(4674),i=n(3057),o=n(6625),a=n(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[r(e)]}},1613:(e,t,n)=>{"use strict";var r=n(4713),s=n(814),i=n(7235),o=n(459),a=n(967),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(s(n))return i(r(n,e));throw new c(o(e)+" is not iterable")}},4674:(e,t,n)=>{"use strict";var r=n(814),s=n(3057);e.exports=function(e,t){var n=e[t];return s(n)?void 0:r(n)}},1063:function(e,t,n){"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 n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,n)=>{"use strict";var r=n(6100),s=n(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,n)=>{"use strict";var r=n(1003);e.exports=r("document","documentElement")},9665:(e,t,n)=>{"use strict";var r=n(5024),s=n(1203),i=n(9619);e.exports=!r&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,n)=>{"use strict";var r=n(6100),s=n(1203),i=n(9932),o=Object,a=r("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},3507:(e,t,n)=>{"use strict";var r=n(2769),s=n(262),i=n(3491);e.exports=function(e,t,n){var o,a;return i&&r(o=t.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},8148:(e,t,n)=>{"use strict";var r=n(262),s=n(3999);e.exports=function(e,t){r(t)&&"cause"in t&&s(e,"cause",t.cause)}},8417:(e,t,n)=>{"use strict";var r,s,i,o=n(1314),a=n(1063),c=n(262),u=n(3999),l=n(701),p=n(3753),h=n(4275),m=n(5241),f="Object already initialized",d=a.TypeError,_=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new _);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new d(f);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=h("state");m[y]=!0,r=function(e,t){if(l(e,y))throw new d(f);return t.facade=e,u(e,y,t),t},s=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:r,get:s,has:i,enforce:function(e){return i(e)?s(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return n}}}},2877:(e,t,n)=>{"use strict";var r=n(8655),s=n(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696:(e,t,n)=>{"use strict";var r=n(1203),s=n(2769),i=/#|\.prototype\./,o=function(e,t){var n=c[a(e)];return n===l||n!==u&&(s(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,n)=>{"use strict";var r=n(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},2937:(e,t,n)=>{"use strict";var r=n(262);e.exports=function(e){return r(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,n)=>{"use strict";var r=n(1003),s=n(2769),i=n(4317),o=n(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&i(t.prototype,a(e))}},208:(e,t,n)=>{"use strict";var r=n(4572),s=n(4713),i=n(7235),o=n(459),a=n(2877),c=n(8130),u=n(4317),l=n(1613),p=n(967),h=n(1743),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},d=f.prototype;e.exports=function(e,t,n){var _,g,y,v,w,b,E,x=n&&n.that,S=!(!n||!n.AS_ENTRIES),P=!(!n||!n.IS_RECORD),j=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),A=r(t,x),k=function(e){return _&&h(_,"normal",e),new f(!0,e)},I=function(e){return S?(i(e),O?A(e[0],e[1],k):A(e[0],e[1])):O?A(e,k):A(e)};if(P)_=e.iterator;else if(j)_=e;else{if(!(g=p(e)))throw new m(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((w=I(e[y]))&&u(d,w))return w;return new f(!1)}_=l(e,g)}for(b=P?e.next:_.next;!(E=s(b,_)).done;){try{w=I(E.value)}catch(e){h(_,"throw",e)}if("object"==typeof w&&w&&u(d,w))return w}return new f(!1)}},1743:(e,t,n)=>{"use strict";var r=n(4713),s=n(7235),i=n(4674);e.exports=function(e,t,n){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw n;if(a)throw o;return s(o),n}},1926:(e,t,n)=>{"use strict";var r=n(2621).IteratorPrototype,s=n(5780),i=n(480),o=n(1811),a=n(6625),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=s(r,{next:i(+!u,n)}),o(e,l,!1,!0),a[l]=c,e}},164:(e,t,n)=>{"use strict";var r=n(9098),s=n(4713),i=n(4871),o=n(3410),a=n(2769),c=n(1926),u=n(3671),l=n(3491),p=n(1811),h=n(3999),m=n(3508),f=n(8655),d=n(6625),_=n(2621),g=o.PROPER,y=o.CONFIGURABLE,v=_.IteratorPrototype,w=_.BUGGY_SAFARI_ITERATORS,b=f("iterator"),E="keys",x="values",S="entries",P=function(){return this};e.exports=function(e,t,n,o,f,_,j){c(n,t,o);var O,A,k,I=function(e){if(e===f&&F)return F;if(!w&&e&&e in T)return T[e];switch(e){case E:case x:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",N=!1,T=e.prototype,$=T[b]||T["@@iterator"]||f&&T[f],F=!w&&$||I(f),R="Array"===t&&T.entries||$;if(R&&(O=u(R.call(new e)))!==Object.prototype&&O.next&&(i||u(O)===v||(l?l(O,v):a(O[b])||m(O,b,P)),p(O,M,!0,!0),i&&(d[M]=P)),g&&f===x&&$&&$.name!==x&&(!i&&y?h(T,"name",x):(N=!0,F=function(){return s($,this)})),f)if(A={values:I(x),keys:_?F:I(E),entries:I(S)},j)for(k in A)(w||N||!(k in T))&&m(T,k,A[k]);else r({target:t,proto:!0,forced:w||N},A);return i&&!j||T[b]===F||m(T,b,F,{name:f}),d[t]=F,A}},2621:(e,t,n)=>{"use strict";var r,s,i,o=n(1203),a=n(2769),c=n(262),u=n(5780),l=n(3671),p=n(3508),h=n(8655),m=n(4871),f=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(r=s):d=!0),!c(r)||o((function(){var e={};return r[f].call(e)!==e}))?r={}:m&&(r=u(r)),a(r[f])||p(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},6625:e=>{"use strict";e.exports={}},8130:(e,t,n)=>{"use strict";var r=n(8146);e.exports=function(e){return r(e.length)}},5777:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},4879:(e,t,n)=>{"use strict";var r=n(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},5780:(e,t,n)=>{"use strict";var r,s=n(7235),i=n(7389),o=n(9683),a=n(5241),c=n(3489),u=n(9619),l=n(4275),p="prototype",h="script",m=l("IE_PROTO"),f=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},_=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g="undefined"!=typeof document?document.domain&&r?_(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):_(r);for(var s=o.length;s--;)delete g[p][o[s]];return g()};a[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[p]=s(e),n=new f,f[p]=null,n[m]=e):n=g(),void 0===t?n:i.f(n,t)}},7389:(e,t,n)=>{"use strict";var r=n(5024),s=n(1330),i=n(9989),o=n(7235),a=n(3273),c=n(8364);t.f=r&&!s?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,n=s[l++],r[n]);return e}},9989:(e,t,n)=>{"use strict";var r=n(5024),s=n(9665),i=n(1330),o=n(7235),a=n(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",m="writable";t.f=r?i?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&m in n&&!n[m]){var r=l(e,t);r&&r[m]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:p in n?n[p]:r[p],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=a(t),o(n),s)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4543:(e,t,n)=>{"use strict";var r=n(5024),s=n(4713),i=n(7161),o=n(480),a=n(3273),c=n(5341),u=n(701),l=n(9665),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},5116:(e,t,n)=>{"use strict";var r=n(8600),s=n(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,n)=>{"use strict";var r=n(701),s=n(2769),i=n(2137),o=n(4275),a=n(2871),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var n=t.constructor;return s(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},4317:(e,t,n)=>{"use strict";var r=n(6100);e.exports=r({}.isPrototypeOf)},8600:(e,t,n)=>{"use strict";var r=n(6100),s=n(701),i=n(3273),o=n(1005).indexOf,a=n(5241),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!s(a,n)&&s(r,n)&&c(l,n);for(;t.length>u;)s(r,n=t[u++])&&(~o(l,n)||c(l,n));return l}},8364:(e,t,n)=>{"use strict";var r=n(8600),s=n(9683);e.exports=Object.keys||function(e){return r(e,s)}},7161:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},3491:(e,t,n)=>{"use strict";var r=n(3574),s=n(7235),i=n(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return s(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},9559:(e,t,n)=>{"use strict";var r=n(4904),s=n(8407);e.exports=r?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(e,t,n)=>{"use strict";var r=n(4713),s=n(2769),i=n(262),o=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&s(n=e.toString)&&!i(a=r(n,e)))return a;if(s(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&s(n=e.toString)&&!i(a=r(n,e)))return a;throw new o("Can't convert object to primitive value")}},5691:(e,t,n)=>{"use strict";var r=n(1003),s=n(6100),i=n(5116),o=n(7313),a=n(7235),c=s([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?c(t,n(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,n)=>{"use strict";var r=n(9989).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},5426:(e,t,n)=>{"use strict";var r=n(3057),s=TypeError;e.exports=function(e){if(r(e))throw new s("Can't call method on "+e);return e}},1811:(e,t,n)=>{"use strict";var r=n(4904),s=n(9989).f,i=n(3999),o=n(701),a=n(9559),c=n(8655)("toStringTag");e.exports=function(e,t,n,u){var l=n?e:e&&e.prototype;l&&(o(l,c)||s(l,c,{configurable:!0,value:t}),u&&!r&&i(l,"toString",a))}},4275:(e,t,n)=>{"use strict";var r=n(8141),s=n(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3753:(e,t,n)=>{"use strict";var r=n(1063),s=n(7525),i="__core-js_shared__",o=r[i]||s(i,{});e.exports=o},8141:(e,t,n)=>{"use strict";var r=n(4871),s=n(3753);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5571:(e,t,n)=>{"use strict";var r=n(6100),s=n(9903),i=n(1139),o=n(5426),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,p=i(o(t)),h=s(n),m=p.length;return h<0||h>=m?e?"":void 0:(r=c(p,h))<55296||r>56319||h+1===m||(l=c(p,h+1))<56320||l>57343?e?a(p,h):r:e?u(p,h,h+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4603:(e,t,n)=>{"use strict";var r=n(4432),s=n(1203),i=n(1063).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4574:(e,t,n)=>{"use strict";var r=n(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):i(n,t)}},3273:(e,t,n)=>{"use strict";var r=n(1395),s=n(5426);e.exports=function(e){return r(s(e))}},9903:(e,t,n)=>{"use strict";var r=n(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8146:(e,t,n)=>{"use strict";var r=n(9903),s=Math.min;e.exports=function(e){var t=r(e);return t>0?s(t,9007199254740991):0}},2137:(e,t,n)=>{"use strict";var r=n(5426),s=Object;e.exports=function(e){return s(r(e))}},493:(e,t,n)=>{"use strict";var r=n(4713),s=n(262),i=n(6281),o=n(4674),a=n(9258),c=n(8655),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var n,c=o(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!s(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5341:(e,t,n)=>{"use strict";var r=n(493),s=n(6281);e.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},4904:(e,t,n)=>{"use strict";var r={};r[n(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},1139:(e,t,n)=>{"use strict";var r=n(8407),s=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,n)=>{"use strict";var r=n(6100),s=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},7460:(e,t,n)=>{"use strict";var r=n(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,n)=>{"use strict";var r=n(5024),s=n(1203);e.exports=r&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,n)=>{"use strict";var r=n(1063),s=n(2769),i=r.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8655:(e,t,n)=>{"use strict";var r=n(1063),s=n(8141),i=n(701),o=n(1268),a=n(4603),c=n(7460),u=r.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},6453:(e,t,n)=>{"use strict";var r=n(1003),s=n(701),i=n(3999),o=n(4317),a=n(3491),c=n(7464),u=n(5516),l=n(3507),p=n(4879),h=n(8148),m=n(4279),f=n(5024),d=n(4871);e.exports=function(e,t,n,_){var g="stackTraceLimit",y=_?2:1,v=e.split("."),w=v[v.length-1],b=r.apply(null,v);if(b){var E=b.prototype;if(!d&&s(E,"cause")&&delete E.cause,!n)return b;var x=r("Error"),S=t((function(e,t){var n=p(_?t:e,void 0),r=_?new b(e):new b;return void 0!==n&&i(r,"message",n),m(r,S,r.stack,2),this&&o(E,this)&&l(r,this,S),arguments.length>y&&h(r,arguments[y]),r}));if(S.prototype=E,"Error"!==w?a?a(S,x):c(S,x,{name:!0}):f&&g in b&&(u(S,b,g),u(S,b,"prepareStackTrace")),c(S,b),!d)try{E.name!==w&&i(E,"name",w),E.constructor=S}catch(e){}return S}}},6138:(e,t,n)=>{"use strict";var r=n(9098),s=n(1003),i=n(7013),o=n(1203),a=n(6453),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,n){return i(e,this,arguments)}}),l,!0)})},3085:(e,t,n)=>{"use strict";var r=n(9098),s=n(4317),i=n(3671),o=n(3491),a=n(7464),c=n(5780),u=n(3999),l=n(480),p=n(8148),h=n(4279),m=n(208),f=n(4879),d=n(8655)("toStringTag"),_=Error,g=[].push,y=function(e,t){var n,r=s(v,this);o?n=o(new _,r?i(this):v):(n=r?this:c(v),u(n,d,"Error")),void 0!==t&&u(n,"message",f(t)),h(n,y,n.stack,1),arguments.length>2&&p(n,arguments[2]);var a=[];return m(e,g,{that:a}),u(n,"errors",a),n};o?o(y,_):a(y,_,{name:!0});var v=y.prototype=c(_.prototype,{constructor:l(1,y),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},5695:(e,t,n)=>{"use strict";n(3085)},9828:(e,t,n)=>{"use strict";var r=n(3273),s=n(8137),i=n(6625),o=n(8417),a=n(9989).f,c=n(164),u=n(877),l=n(4871),p=n(5024),h="Array Iterator",m=o.set,f=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){m(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},484:(e,t,n)=>{"use strict";var r=n(9098),s=n(1063),i=n(7013),o=n(6453),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=o(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},p=function(e,t){if(c&&c[e]){var n={};n[e]=o(a+"."+e,t,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},3832:(e,t,n)=>{"use strict";var r=n(5571).charAt,s=n(1139),i=n(8417),o=n(164),a=n(877),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:s(e),index:0})}),(function(){var e,t=l(this),n=t.string,s=t.index;return s>=n.length?a(void 0,!0):(e=r(n,s),t.index+=e.length,a(e,!1))}))},5442:(e,t,n)=>{"use strict";n(5695)},85:(e,t,n)=>{"use strict";n(9828);var r=n(1100),s=n(1063),i=n(1811),o=n(6625);for(var a in r)i(s[a],a),o[a]=o.Array},239:(e,t,n)=>{"use strict";n(5442);var r=n(6656);n(85),e.exports=r}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var r={};return(()=>{"use strict";n.r(r),n.d(r,{detect:()=>xp,detectionRegExp:()=>Ep,mediaTypes:()=>bp,namespace:()=>Pp,parse:()=>Sp});var e={};n.r(e),n.d(e,{hasElementSourceMap:()=>us,includesClasses:()=>ps,includesSymbols:()=>ls,isAnnotationElement:()=>ss,isArrayElement:()=>es,isBooleanElement:()=>Xr,isCommentElement:()=>is,isElement:()=>Wr,isLinkElement:()=>ns,isMemberElement:()=>ts,isNullElement:()=>Zr,isNumberElement:()=>Yr,isObjectElement:()=>Qr,isParseResultElement:()=>os,isPrimitiveElement:()=>cs,isRefElement:()=>rs,isSourceMapElement:()=>as,isStringElement:()=>Jr});var t={};n.r(t),n.d(t,{isJSONReferenceElement:()=>oa,isJSONSchemaElement:()=>ia,isLinkDescriptionElement:()=>ca,isMediaElement:()=>aa});var s={};n.r(s),n.d(s,{isReferenceLikeElement:()=>vc,isSwaggerExtension:()=>yc});var i={};function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function a(e){return function t(n){return 0===arguments.length||o(n)?t:e.apply(this,arguments)}}function c(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return o(n)?t:a((function(t){return e(n,t)}));default:return o(n)&&o(r)?t:o(n)?a((function(t){return e(t,r)})):o(r)?a((function(t){return e(n,t)})):e(n,r)}}}function u(e){return function t(n,r,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:c((function(t,r){return e(n,t,r)}));case 2:return o(n)&&o(r)?t:o(n)?c((function(t,n){return e(t,r,n)})):o(r)?c((function(t,r){return e(n,t,r)})):a((function(t){return e(n,r,t)}));default:return o(n)&&o(r)&&o(s)?t:o(n)&&o(r)?c((function(t,n){return e(t,n,s)})):o(n)&&o(s)?c((function(t,n){return e(t,r,n)})):o(r)&&o(s)?c((function(t,r){return e(n,t,r)})):o(n)?a((function(t){return e(t,r,s)})):o(r)?a((function(t){return e(n,t,s)})):o(s)?a((function(t){return e(n,r,t)})):e(n,r,s)}}}n.r(i),n.d(i,{isContactElement:()=>nu,isDefinitionsElement:()=>wu,isExampleElement:()=>hu,isExternalDocumentationElement:()=>ou,isHeaderElement:()=>mu,isHeadersElement:()=>pu,isInfoElement:()=>eu,isItemsElement:()=>cu,isLicenseElement:()=>tu,isOperationElement:()=>iu,isParameterElement:()=>au,isParametersDefinitionsElement:()=>bu,isPathItemElement:()=>su,isPathsElement:()=>ru,isReferenceElement:()=>du,isResponseElement:()=>lu,isResponsesDefinitionsElement:()=>yu,isResponsesElement:()=>uu,isSchemaElement:()=>_u,isScopesElement:()=>xu,isSecurityDefinitionsElement:()=>vu,isSecurityRequirementElement:()=>Su,isSecuritySchemeElement:()=>Eu,isSwaggerElement:()=>Xc,isSwaggerVersionElement:()=>Qc,isTagElement:()=>fu,isXmlElement:()=>gu});const l=c((function(e,t){return null==t||t!=t?e:t})),p=Number.isInteger||function(e){return e<<0===e};function h(e){return"[object String]"===Object.prototype.toString.call(e)}const m=c((function(e,t){var n=e<0?t.length+e:e;return h(t)?t.charAt(n):t[n]}));const f=c((function(e,t){if(null!=t)return p(e)?m(e,t):t[e]}));const d=u((function(e,t,n){return l(e,f(t,n))}));var _=c((function(e,t){for(var n={},r={},s=0,i=e.length;s<i;)r[e[s]]=1,s+=1;for(var o in t)r.hasOwnProperty(o)||(n[o]=t[o]);return n}));const g=_;function y(e,t,n){for(var r=0,s=n.length;r<s;)t=e(t,n[r]),r+=1;return t}const v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const w=a((function(e){return!!v(e)||!!e&&("object"==typeof e&&(!h(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var b="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function E(e,t,n){return function(r,s,i){if(w(i))return e(r,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(r,s,i,"fantasy-land/reduce");if(null!=i[b])return n(r,s,i[b]());if("function"==typeof i.next)return n(r,s,i);if("function"==typeof i.reduce)return t(r,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function x(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function S(e,t,n,r){return n[r](e,t)}const P=E(y,S,x);function j(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!v(r)){for(var s=0;s<e.length;){if("function"==typeof r[e[s]])return r[e[s]].apply(r,Array.prototype.slice.call(arguments,0,-1));s+=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 n.apply(this,arguments)}}function O(e,t){for(var n=0,r=t.length,s=Array(r);n<r;)s[n]=e(t[n]),n+=1;return s}const A=function(){return this.xf["@@transducer/init"]()},k=function(e){return this.xf["@@transducer/result"](e)};var I=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const M=function(e){return function(t){return new I(e,t)}};function N(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,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,s){return t.apply(this,arguments)};case 5:return function(e,n,r,s,i){return t.apply(this,arguments)};case 6:return function(e,n,r,s,i,o){return t.apply(this,arguments)};case 7:return function(e,n,r,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,n,r,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,n,r,s,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,n,r,s,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function T(e,t,n){return function(){for(var r=[],s=0,i=e,a=0,c=!1;a<t.length||s<arguments.length;){var u;a<t.length&&(!o(t[a])||s>=arguments.length)?u=t[a]:(u=arguments[s],s+=1),r[a]=u,o(u)?c=!0:i-=1,a+=1}return!c&&i<=0?n.apply(this,r):N(Math.max(0,i),T(e,r,n))}}const $=c((function(e,t){return 1===e?a(t):N(e,T(e,[],t))}));function F(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var R=Object.prototype.toString;const C=function(){return"[object Arguments]"===R.call(arguments)?function(e){return"[object Arguments]"===R.call(e)}:function(e){return F("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),D=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(){return arguments.propertyIsEnumerable("length")}(),V=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},B="function"!=typeof Object.keys||L?a((function(e){if(Object(e)!==e)return[];var t,n,r=[],s=L&&C(e);for(t in e)!F(t,e)||s&&"length"===t||(r[r.length]=t);if(q)for(n=D.length-1;n>=0;)F(t=D[n],e)&&!V(r,t)&&(r[r.length]=t),n-=1;return r})):a((function(e){return Object(e)!==e?[]:Object.keys(e)}));const U=B;const z=c(j(["fantasy-land/map","map"],M,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return $(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return y((function(n,r){return n[r]=e(t[r]),n}),{},U(t));default:return O(e,t)}})));const H=c((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:P((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,s=t.length,i=[];for(n=0;n<r;)i[i.length]=e[n],n+=1;for(n=0;n<s;)i[i.length]=t[n],n+=1;return i}(e,z(n,t))}),[],e)}));const G=c((function(e,t){var n=$(e,t);return $(e,(function(){return y(H,z(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const K=a((function(e){return G(e.length,e)}));const W=K(a((function(e){return!e})));function J(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Y(e,t,n){for(var r=0,s=n.length;r<s;){if(e(t,n[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 X=a((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Q(e,t,n,r){var s=J(e);function i(e,t){return ee(e,t,n.slice(),r.slice())}return!Y((function(e,t){return!Y(i,t,e)}),J(t),s)}function ee(e,t,n,r){if(Z(e,t))return!0;var s,i,o=X(e);if(o!==X(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!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=n.length-1;a>=0;){if(n[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Q(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&Q(e.values(),t.values(),n.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=U(e);if(c.length!==U(t).length)return!1;var u=n.concat([e]),l=r.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!F(p,t)||!ee(t[p],e[p],u,l))return!1;a-=1}return!0}const te=c((function(e,t){return ee(e,t,[],[])}));const ne=a((function(e){return function(){return e}}));const re=ne(void 0);const se=te(re());const ie=W(se);var oe=n(8326);function ae(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ce(e,t,n){for(var r=0,s=n.length;r<s;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const ue=c((function(e,t){return N(e.length,(function(){return e.apply(t,arguments)}))}));function le(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function pe(e,t,n,r){return e["@@transducer/result"](n[r](ue(e["@@transducer/step"],e),t))}const he=E(ce,pe,le);var me=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function fe(e){return new me(e)}const de=u((function(e,t,n){return he("function"==typeof e?fe(e):e,t,n)}));function _e(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return v(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}const ge=u(_e("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})));const ye=a(_e("tail",ge(1,1/0)));function ve(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return N(arguments[0].length,de(ae,arguments[0],ye(arguments)))}var we=function(e,t){switch(arguments.length){case 0:return we;case 1:return function t(n){return 0===arguments.length?t:Z(e,n)};default:return Z(e,t)}};const be=we;function Ee(e,t){return function(e,t,n){var r,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(s=e[n])&&1/s===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(s=e[n])&&s!=s)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(te(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function xe(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 Se=function(e){return(e<10?"0":"")+e};const Pe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Se(e.getUTCMonth()+1)+"-"+Se(e.getUTCDate())+"T"+Se(e.getUTCHours())+":"+Se(e.getUTCMinutes())+":"+Se(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function je(e){return"[object Object]"===Object.prototype.toString.call(e)}var Oe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ae(e){return function(t){return new Oe(e,t)}}const ke=c(j(["fantasy-land/filter","filter"],Ae,(function(e,t){return je(t)?y((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},U(t)):function(e,t){for(var n=0,r=t.length,s=[];n<r;)e(t[n])&&(s[s.length]=t[n]),n+=1;return s}(e,t)})));const Ie=c((function(e,t){return ke((n=e,function(){return!n.apply(this,arguments)}),t);var n}));function Me(e,t){var n=function(n){var r=t.concat([e]);return Ee(n,r)?"<Circular>":Me(n,r)},r=function(e,t){return O((function(t){return xe(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+O(n,e).join(", ")+"))";case"[object Array]":return"["+O(n,e).concat(r(e,Ie((function(e){return/^\d+$/.test(e)}),U(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):xe(Pe(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":xe(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+r(e,U(e)).join(", ")+"}"}}const Ne=a((function(e){return Me(e,[])}));const Te=c((function(e,t){return e.map((function(e){for(var n,r=t,s=0;s<e.length;){if(null==r)return;n=e[s],r=p(n)?m(n,r):r[n],s+=1}return r}))}));const $e=c((function(e,t){return Te([e],t)[0]}));const Fe=u((function(e,t,n){return e($e(t,n))}));function Re(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ce=c((function(e,t){return e&&t}));const qe=c((function(e,t){return Re(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:K(Ce)(e,t)}));const De=te(null);const Le=W(De);function Ve(e){return Ve="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},Ve(e)}const Be=function(e){return"object"===Ve(e)};const Ue=$(1,qe(Le,Be));const ze=c((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var s=n(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=Ne(e),o=n(i,Ne(t));return void 0!==o&&o===i?e:t}));const He=c((function(e,t){return z(f(e),t)}));const Ge=a((function(e){return $(de(ze,0,He("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const Ke=$(1,ve(X,be("GeneratorFunction")));const We=$(1,ve(X,be("AsyncFunction")));const Je=Ge([ve(X,be("Function")),Ke,We]);var Ye=ve(X,be("Object")),Ze=ve(Ne,te(Ne(Object))),Xe=Fe(qe(Je,Ze),["constructor"]);const Qe=$(1,(function(e){if(!Ue(e)||!Ye(e))return!1;var t=Object.getPrototypeOf(e);return!!De(t)||Xe(t)}));class et extends oe.Om{constructor(e,t,n){super(e,t,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const tt=et;class nt extends oe.Om{constructor(e,t,n){super(e,t,n),this.element="comment"}}const rt=nt;class st extends oe.wE{constructor(e,t,n){super(e,t,n),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(se(t))return!1;const n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}}const it=st;class ot extends oe.wE{constructor(e,t,n){super(e,t,n),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new oe.wE([e.start.row,e.start.column,e.start.char]),n=new oe.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),n.classes.push("position"),this.push(t).push(n)}}const at=ot;class ct extends oe.g${constructor(){super(),this.register("annotation",tt),this.register("comment",rt),this.register("parseResult",it),this.register("sourceMap",at)}}const ut=new ct,lt=e=>{const t=new ct;return Qe(e)&&t.use(e),t},pt=ut;const ht=$(1,ve(X,be("String"))),mt=n.p+"23aac571c96605dc25219087ad291441.wasm",ft=globalThis.fetch;Je(ft)&&(globalThis.fetch=(...e)=>ht(e[0])&&e[0].endsWith("tree-sitter.wasm")?ft.apply(globalThis,[mt,ye(e)]):ft.apply(globalThis,e));var dt=n(3833),_t=n(1212);const gt=class extends _t{constructor(e,t,n){if(super(e,t,n),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!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:e}=n;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class yt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(gt,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 vt=yt,wt=n.p+"d396281e11774e0afa7a40d620779b6d.wasm";let bt=null,Et=null;const xt=async e=>{if(null===bt&&null===Et)Et=dt.init().then((()=>dt.Language.load(wt))).then((e=>{const t=new dt;return t.setLanguage(e),t})).finally((()=>{Et=null})),bt=await Et;else if(null===bt&&null!==Et)bt=await Et;else if(null===bt)throw new vt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return bt.parse(e)};function St(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function Pt(e,t,n){if(n||(n=new jt),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var r=function(r){var s=n.get(e);if(s)return s;for(var i in n.set(e,r),e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t?Pt(e[i],!0,n):e[i]);return r};switch(X(e)){case"Object":return r(Object.create(Object.getPrototypeOf(e)));case"Array":return r([]);case"Date":return new Date(e.valueOf());case"RegExp":return St(e);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 jt=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const n=this.hash(e);let r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const n=this.map[t];for(let t=0;t<n.length;t+=1){const r=n[t];if(r[0]===e)return r[1]}}return}const t=this.hash(e),n=this.map[t];if(n)for(let t=0;t<n.length;t+=1){const r=n[t];if(r[0]===e)return r[1]}},e}();const Ot=a((function(e){return null!=e&&"function"==typeof e.clone?e.clone():Pt(e,!0)}));const At=class extends vt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}};const kt=class extends At{};const It=class extends kt{};const Mt=class extends It{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 Nt=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:n=!1}={}){this.type=this.constructor.type,this.isMissing=n,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const n=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,n)})),e}};let Tt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const $t=class extends Nt{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...n}){super({...n}),this.explicitName=e,this.kind=t}};const Ft=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Rt=class extends Ft{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Tt.Mapping}};const Ct=class extends Ft{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Tt.Sequence}};const qt=class extends Ft{static uri="tag:yaml.org,2002:str"};const Dt=u((function(e,t,n){return l(e,$e(t,n))}));const Lt=a((function(e){return $(e.length,e)}));var Vt="\t\n\v\f\r \u2028\u2029\ufeff";const Bt=a("function"==typeof String.prototype.trim&&!Vt.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Vt+"]["+Vt+"]*"),n=new RegExp("["+Vt+"]["+Vt+"]*$");return e.replace(t,"").replace(n,"")});const Ut=c((function(e,t){return $(e+1,(function(){var n=arguments[e];if(null!=n&&Re(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ne(n)+' does not have a method named "'+t+'"')}))}));const zt=Ut(1,"split");const Ht=Ut(1,"join");const Gt=a((function(e){return h(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Kt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return ve.apply(this,Gt(arguments))}const Wt=$(4,(function(e,t,n,r){return he(e("function"==typeof t?fe(t):t),n,r)}));const Jt=c((function(e,t){if(v(e)){if(v(t))return e.concat(t);throw new TypeError(Ne(t)+" is not an array")}if(h(e)){if(h(t))return e+t;throw new TypeError(Ne(t)+" is not a string")}if(null!=e&&Re(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&Re(e.concat))return e.concat(t);throw new TypeError(Ne(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Yt=te("");const Zt=c((function(e,t){return $(de(ze,0,He("length",t)),(function(){var n=arguments,r=this;return e.apply(r,O((function(e){return e.apply(r,n)}),t))}))}));function Xt(e){return e}const Qt=a(Xt);const en=$(1,ve(X,be("Number")));var tn=qe(en,isFinite);var nn=$(1,tn);const rn=Je(Number.isFinite)?$(1,ue(Number.isFinite,Number)):nn;var sn=qe(rn,Zt(te,[Math.floor,Qt]));var on=$(1,sn);const an=Je(Number.isInteger)?$(1,ue(Number.isInteger,Number)):on;const cn=a((function(e){return $(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))}));const un=W(rn);const ln=$(1,qe(en,c((function(e,t){return e>t}))(0)));var pn=Lt((function(e,t){var n=Number(t);if(n!==t&&(n=0),ln(n))throw new RangeError("repeat count must be non-negative");if(un(n))throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0===e.length||0===n)return"";if(e.length*n>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*n;n=Math.floor(Math.log(n)/Math.log(2));for(var s=e;n;)s+=e,n-=1;return s+=s.substring(0,r-s.length)})),hn=cn(Ut(1,"repeat"));const mn=Je(String.prototype.repeat)?hn:pn;const fn=u((function(e,t,n){return n.replace(e,t)}));var dn=fn(/[\s\uFEFF\xA0]+$/,""),_n=Ut(0,"trimEnd");const gn=Je(String.prototype.trimEnd)?_n:dn;var yn=fn(/^[\s\uFEFF\xA0]+/,""),vn=Ut(0,"trimStart");const wn=Je(String.prototype.trimStart)?vn:yn;var bn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function En(e){return function(t){return new bn(e,t)}}const xn=c(j(["dropWhile"],En,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return ge(n,1/0,t)})));const Sn=cn(c(Ee));const Pn=Lt((function(e,t){return ve(zt(""),xn(Sn(e)),Ht(""))(t)}));const jn=cn(Jt);var On=n(6850);const An=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,kn=e=>{const t=(e=>{const t=e.match(An),n=Dt("",["groups","indentation"],t);return Yt(n)?void 0:parseInt(n,10)})(e);if(an(t))return mn(" ",t);const n=Dt("",[1],e.split("\n")),r=Dt(0,["groups","indentation","length"],n.match(/^(?<indentation>[ ]*)/));return mn(" ",r)},In=e=>{const t=e.match(An),n=Dt("",["groups","chomping"],t);return Yt(n)?void 0:n},Mn=(e,t)=>se(e)?`${gn(t)}\n`:"-"===e?gn(t):t,Nn=e=>e.replace(/\r\n/g,"\n"),Tn=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,n)=>t?e:` ${n.trimStart()}`)).replace(/[\n]{2}/g,"\n"),$n=Lt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Fn=ve(Nn,Bt,Tn,zt("\n"),z(wn),Ht("\n")),Rn=ve(Nn,Bt,Tn,zt("\n"),z(wn),Ht("\n"),$n("'")),Cn=ve(Nn,Bt,(e=>e.replace(/\\\n\s*/g,"")),Tn,On.MH,zt("\n"),z(wn),Ht("\n"),$n('"'));let qn=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}({}),Dn=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Ln=class{static test(e){return e.tag.kind===Tt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const n=e.clone();return e.style===qn.Plain?t=Fn(e.content):e.style===qn.SingleQuoted?t=Rn(e.content):e.style===qn.DoubleQuoted?t=Cn(e.content):e.style===qn.Literal?t=(e=>{const t=kn(e),n=In(e),r=Nn(e),s=ye(r.split("\n")),i=Kt(z(Pn(t)),z(jn("\n"))),o=Wt(i,Jt,"",s);return Mn(n,o)})(e.content):e.style===qn.Folded&&(t=(e=>{const t=kn(e),n=In(e),r=Nn(e),s=ye(r.split("\n")),i=Kt(z(Pn(t)),z(jn("\n"))),o=Wt(i,Jt,"",s),a=Tn(o);return Mn(n,a)})(e.content)),n.content=t,n}static resolve(e){return e}};const Vn=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Rt),this.registerTag(new Ct),this.registerTag(new qt)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Tt.Scalar?t=qt.uri:e.tag.kind===Tt.Sequence?t=Ct.uri:e.tag.kind===Tt.Mapping&&(t=Rt.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 n=e;Ln.test(e)&&(n=Ln.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new Mt(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Ot(e.tag.position),node:e.clone()});if(!r.test(n))throw new Mt(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Ot(e.tag.position),nodeCanonicalContent:n.content,node:e.clone()});return r.resolve(n)}};const Bn=class extends Ft{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,n=e.clone();return n.content=t,n}};const Un=class extends Ft{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),n=e.clone();return n.content=t,n}};const zn=class extends Ft{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),n=e.clone();return n.content=t,n}};const Hn=class extends Ft{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 Gn=class extends Vn{constructor(){super(),this.registerTag(new Bn,!0),this.registerTag(new Un,!0),this.registerTag(new zn,!0),this.registerTag(new Hn,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===Tt.Sequence)t=Ct.uri;else if(e.tag.kind===Tt.Mapping)t=Rt.uri;else if(e.tag.kind===Tt.Scalar){const n=this.tags.find((t=>t.test(e)));t=(null==n?void 0:n.tag)||"?"}return t}};const Kn=class extends Nt{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:n,styleGroup:r,...s}){super({...s}),this.anchor=e,this.tag=t,this.style=n,this.styleGroup=r}};const Wn=class extends Kn{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Jn=class extends kt{},Yn=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Zn=e=>Yn("mapping",e),Xn=e=>Yn("sequence",e),Qn=e=>Yn("keyValuePair",e),er=e=>Yn("scalar",e),tr=e=>Yn("alias",e);const nr=class{addAnchor(e){if(!(e=>Yn("anchor",e))(e.anchor))throw new Jn("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Wn({content:e.content,style:qn.Plain,styleGroup:Dn.Flow})}},rr=(e,t,n)=>{const r=e[t];if(null!=r){if(!n&&"function"==typeof r)return r;const e=n?r.leave:r.enter;if("function"==typeof e)return e}else{const r=n?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},sr={},ir=e=>null==e?void 0:e.type,or=e=>"string"==typeof ir(e),ar=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),cr=(e,{visitFnGetter:t=rr,nodeTypeGetter:n=ir,breakSymbol:r=sr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,...l){let p=u,h=!1;for(let m=0;m<e.length;m+=1)if(c[m]===a){const a=t(e[m],n(p),!1);if("function"==typeof a){const t=a.call(e[m],p,...l);if("function"==typeof(null==t?void 0:t.then))throw new At("Async visitor not supported in sync mode",{visitor:e[m],visitFn:a});if(t===i)c[m]=u;else if(t===r)c[m]=r;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,h=!0}}}}return h?p:void 0},leave(s,...o){for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],n(s),!0);if("function"==typeof a){const t=a.call(e[u],s,...o);if("function"==typeof(null==t?void 0:t.then))throw new At("Async visitor not supported in sync mode",{visitor:e[u],visitFn:a});if(t===r)c[u]=r;else if(void 0!==t&&t!==i)return t}}else c[u]===s&&(c[u]=a)}}};cr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=rr,nodeTypeGetter:n=ir,breakSymbol:r=sr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(u,...l){let p=u,h=!1;for(let m=0;m<e.length;m+=1)if(c[m]===a){const a=t(e[m],n(p),!1);if("function"==typeof a){const t=await a.call(e[m],p,...l);if(t===i)c[m]=u;else if(t===r)c[m]=r;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,h=!0}}}}return h?p:void 0},async leave(s,...o){for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],n(s),!0);if("function"==typeof a){const t=await a.call(e[u],s,...o);if(t===r)c[u]=r;else if(void 0!==t&&t!==i)return t}}else c[u]===s&&(c[u]=a)}}};const ur=(e,t,{keyMap:n=null,state:r={},breakSymbol:s=sr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=rr,nodeTypeGetter:c=ir,nodePredicate:u=or,nodeCloneFn:l=ar,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],g=-1,y=[],v=e;const w=[],b=[];do{g+=1;const e=g===_.length;let n;const S=e&&0!==y.length;if(e){if(n=0===b.length?void 0:w.pop(),v=f,f=b.pop(),S)if(d){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;n===i?(v.splice(r,1),e+=1):v[r]=n}}else{v=l(v);for(const[e,t]of y)v[e]=t}g=m.index,_=m.keys,y=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?g:_[g],v=f[n],v===i||void 0===v)continue;w.push(n)}let P;if(!Array.isArray(v)){var E;if(!u(v))throw new At(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&b.includes(v)){w.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;P=i.call(t,v,n,f,w,b)}if("function"==typeof(null===(E=P)||void 0===E?void 0:E.then))throw new At("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(P===s)break;if(P===o){if(!e){w.pop();continue}}else if(void 0!==P&&(y.push([n,P]),!e)){if(!u(P)){w.pop();continue}v=P}}var x;if(void 0===P&&S&&y.push([n,v]),!e)m={inArray:d,index:g,keys:_,edits:y,prev:m},d=Array.isArray(v),_=d?v:null!==(x=h[c(v)])&&void 0!==x?x:[],g=-1,y=[],f!==i&&void 0!==f&&b.push(f),f=v}while(void 0!==m);return 0!==y.length?y[y.length-1][1]:e};ur[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:s=sr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=rr,nodeTypeGetter:c=ir,nodePredicate:u=or,nodeCloneFn:l=ar,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],g=-1,y=[],v=e;const w=[],b=[];do{g+=1;const e=g===_.length;let n;const x=e&&0!==y.length;if(e){if(n=0===b.length?void 0:w.pop(),v=f,f=b.pop(),x)if(d){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;n===i?(v.splice(r,1),e+=1):v[r]=n}}else{v=l(v);for(const[e,t]of y)v[e]=t}g=m.index,_=m.keys,y=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?g:_[g],v=f[n],v===i||void 0===v)continue;w.push(n)}let S;if(!Array.isArray(v)){if(!u(v))throw new At(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&b.includes(v)){w.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;S=await i.call(t,v,n,f,w,b)}if(S===s)break;if(S===o){if(!e){w.pop();continue}}else if(void 0!==S&&(y.push([n,S]),!e)){if(!u(S)){w.pop();continue}v=S}}var E;if(void 0===S&&x&&y.push([n,v]),!e)m={inArray:d,index:g,keys:_,edits:y,prev:m},d=Array.isArray(v),_=d?v:null!==(E=h[c(v)])&&void 0!==E?E:[],g=-1,y=[],f!==i&&void 0!==f&&b.push(f),f=v}while(void 0!==m);return 0!==y.length?y[y.length-1][1]:e};class lr{static type="point";type=lr.type;row;column;char;constructor({row:e,column:t,char:n}){this.row=e,this.column=t,this.char=n}}class pr{static type="position";type=pr.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const hr=pr;const mr=class extends Nt{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class fr extends Nt{static type="stream"}Object.defineProperty(fr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Yn("document",e))(e)||(e=>Yn("comment",e))(e))):[]},enumerable:!0});const dr=fr;const _r=m(0);const gr=class extends Nt{static type="parseResult";get rootNode(){return _r(this.children)}};const yr="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),n=1,r=arguments.length;n<r;){var s=arguments[n];if(null!=s)for(var i in s)F(i,s)&&(t[i]=s[i]);n+=1}return t};const vr=c((function(e,t){return yr({},e,t)}));const wr=class extends Nt{static type="directive";name;parameters;constructor({name:e,parameters:t,...n}){super({...n}),this.name=e,this.parameters=vr({version:void 0,handle:void 0,prefix:void 0},t)}};const br=class extends Nt{static type="document"};const Er=class extends Kn{};class xr extends Er{static type="mapping"}Object.defineProperty(xr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Qn):[]},enumerable:!0});const Sr=xr;class Pr extends Nt{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(Pr.prototype,{key:{get(){return this.children.filter((e=>er(e)||Zn(e)||Xn(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>er(e)||Zn(e)||Xn(e)||tr(e))(t)))[0]},enumerable:!0}});const jr=Pr;class Or extends Er{static type="sequence"}Object.defineProperty(Or.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Xn(e)||Zn(e)||er(e)||tr(e))):[]},enumerable:!0});const Ar=Or;const kr=class extends Nt{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Ir=class extends Nt{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Mr=class extends Nt{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const Nr=class extends Nt{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...n}={}){super({...n}),this.value=e,this.isUnexpected=t}};const Tr=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"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},$r={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Fr=e=>Array.isArray(e)||or(e);class Rr{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 lr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),n=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new hr({start:t,end:n})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new mr({name:t.text,position:Rr.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,n=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?Tt.Mapping:e.type.endsWith("sequence")?Tt.Sequence:Tt.Scalar,s=t?Rr.toPosition(t):void 0;return new $t({explicitName:n,kind:r,position:s})}schema;referenceManager;stream={enter:e=>{const t=Rr.toPosition(e);return new dr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new gr({children:[e]})};yaml_directive={enter:e=>{var t;const n=Rr.toPosition(e),r=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new wr({position:n,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:e=>{const t=Rr.toPosition(e),n=e.children[0],r=e.children[1],s=new wr({position:t,name:"%TAG",parameters:{handle:null==n?void 0:n.text,prefix:null==r?void 0:r.text}});return this.schema.registerTagDirective(s),s}};reserved_directive={enter:e=>{const t=Rr.toPosition(e),n=e.children[0],r=e.children[1],s=e.children[2];return new wr({position:t,name:null==n?void 0:n.text,parameters:{handle:null==r?void 0:r.text,prefix:null==s?void 0:s.text}})}};document={enter:e=>{const t=Rr.toPosition(e);return new br({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(Rr.isScalar(t)||Rr.isMapping(t)||Rr.isSequence(t))return e.children;const n=new lr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),r=new Wn({content:"",anchor:Rr.kindNodeToYamlAnchor(t),tag:Rr.kindNodeToYamlTag(t),position:new hr({start:n,end:n}),styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(r),[...e.children,r]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=new Sr({children:e.children,position:t,anchor:r,tag:n,styleGroup:Dn.Block,style:qn.NextLine,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};block_mapping_pair={enter:e=>{const t=Rr.toPosition(e),n=[...e.children];if(Rr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);n.unshift(t)}if(Rr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);n.push(t)}return new jr({children:n,position:t,styleGroup:Dn.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=new Sr({children:e.children,position:t,anchor:r,tag:n,styleGroup:Dn.Flow,style:qn.Explicit,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};flow_pair={enter:e=>{const t=Rr.toPosition(e),n=[...e.children];if(Rr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);n.unshift(t)}if(Rr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);n.push(t)}return new jr({children:n,position:t,styleGroup:Dn.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=new Ar({children:e.children,position:t,anchor:r,tag:n,styleGroup:Dn.Block,style:qn.NextLine});return this.registerAnchor(s),this.schema.resolve(s)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new Wn({content:"",tag:new $t({explicitName:"?",kind:Tt.Scalar}),position:new hr({start:t,end:t}),styleGroup:Dn.Flow,style:qn.Plain})]}};flow_sequence={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=new Ar({children:e.children.flat(),position:t,anchor:r,tag:n,styleGroup:Dn.Flow,style:qn.Explicit});return this.registerAnchor(s),this.schema.resolve(s)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(s),this.schema.resolve(s)}};single_quote_scalar={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Flow,style:qn.SingleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};double_quote_scalar={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Flow,style:qn.DoubleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};block_scalar={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=e.text.startsWith("|")?qn.Literal:e.text.startsWith(">")?qn.Folded:qn.Plain,i=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Block,style:s});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:e=>new kr({content:e.text})};alias={enter:e=>{const t=new Ir({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Tr&&!e.isNamed){const t=Rr.toPosition(e),n=e.type||e.text,{isMissing:r}=e;return new Mr({value:n,position:t,isMissing:r})}}ERROR(e,t,n,r){const s=Rr.toPosition(e),i=new Nr({children:e.children,position:s,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===r.length?new gr({children:[i]}):i}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new lr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:n}=e,r=(null==n?void 0:n.children)||[],s=r.find(Rr.isKind("tag")),i=r.find(Rr.isKind("anchor")),o=new $t(void 0!==s?{explicitName:s.text,kind:Tt.Scalar,position:Rr.toPosition(s)}:{explicitName:"?",kind:Tt.Scalar}),a=void 0!==i?new mr({name:i.text,position:Rr.toPosition(i)}):void 0,c=new Wn({content:"",position:new hr({start:t,end:t}),tag:o,anchor:a,styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(c),c}createKeyValuePairEmptyValue(e){const t=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:n}=e,r=(null==n?void 0:n.children)||[],s=r.find(Rr.isKind("tag")),i=r.find(Rr.isKind("anchor")),o=new $t(void 0!==s?{explicitName:s.text,kind:Tt.Scalar,position:Rr.toPosition(s)}:{explicitName:"?",kind:Tt.Scalar}),a=void 0!==i?new mr({name:i.text,position:Rr.toPosition(i)}):void 0,c=new Wn({content:"",position:new hr({start:t,end:t}),tag:o,anchor:a,styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(c),c}}const Cr=Rr;function qr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Dr=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=qr(this.xf["@@transducer/step"](e,!1))),e},e}();function Lr(e){return function(t){return new Dr(e,t)}}const Vr=c(j(["all"],Lr,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}))),Br=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ur=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,zr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Hr=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof oe.wE)&&t.classes.includes(e),Gr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Kr=e=>e({hasMethod:Br,hasBasicElementProps:Ur,primitiveEq:zr,isElementType:Gr,hasClass:Hr}),Wr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.Hg||e(n)&&t(void 0,n))),Jr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.Om||e(n)&&t("string",n))),Yr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.kT||e(n)&&t("number",n))),Zr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.Os||e(n)&&t("null",n))),Xr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.bd||e(n)&&t("boolean",n))),Qr=Kr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof oe.Sh||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),es=Kr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof oe.wE&&!(r instanceof oe.Sh)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),ts=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.Pr||e(r)&&t("member",r)&&n(void 0,r))),ns=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.Ft||e(r)&&t("link",r)&&n(void 0,r))),rs=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.sI||e(r)&&t("ref",r)&&n(void 0,r))),ss=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof tt||e(r)&&t("annotation",r)&&n("array",r))),is=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof rt||e(r)&&t("comment",r)&&n("string",r))),os=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof it||e(r)&&t("parseResult",r)&&n("array",r))),as=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof at||e(r)&&t("sourceMap",r)&&n("array",r))),cs=e=>Gr("object",e)||Gr("array",e)||Gr("boolean",e)||Gr("number",e)||Gr("string",e)||Gr("null",e)||Gr("member",e),us=e=>as(e.meta.get("sourceMap")),ls=(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!es(n)&&Vr(Sn(n.toValue()),e)},ps=(e,t)=>0===e.length||Vr(Sn(t.classes.toValue()),e);const hs=class extends At{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const ms=class extends hs{};const fs=class extends hs{},ds=(e,t={})=>{const{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof oe.KeyValuePair){const{key:t,value:s}=e,i=Wr(t)?ds(t,r):t,o=Wr(s)?ds(s,r):s,a=new oe.KeyValuePair(i,o);return n.set(e,a),a}if(e instanceof oe.ot){const t=e=>ds(e,r),s=[...e].map(t),i=new oe.ot(s);return n.set(e,i),i}if(e instanceof oe.G6){const t=e=>ds(e,r),s=[...e].map(t),i=new oe.G6(s);return n.set(e,i),i}if(Wr(e)){const t=ys(e);if(n.set(e,t),e.content)if(Wr(e.content))t.content=ds(e.content,r);else if(e.content instanceof oe.KeyValuePair)t.content=ds(e.content,r);else if(Array.isArray(e.content)){const n=e=>ds(e,r);t.content=e.content.map(n)}else t.content=e.content;else t.content=e.content;return t}throw new ms("Value provided to cloneDeep function couldn't be cloned",{value:e})};ds.safe=e=>{try{return ds(e)}catch{return e}};const _s=e=>{const{key:t,value:n}=e;return new oe.KeyValuePair(t,n)},gs=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=ds(e.meta)),e.attributes.length>0&&(t._attributes=ds(e.attributes)),Wr(e.content)){const n=e.content;t.content=gs(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof oe.KeyValuePair?t.content=_s(e.content):t.content=e.content;return t},ys=e=>{if(e instanceof oe.KeyValuePair)return _s(e);if(e instanceof oe.ot)return(e=>{const t=[...e];return new oe.ot(t)})(e);if(e instanceof oe.G6)return(e=>{const t=[...e];return new oe.G6(t)})(e);if(Wr(e))return gs(e);throw new fs("Value provided to cloneShallow function couldn't be cloned",{value:e})};ys.safe=e=>{try{return ys(e)}catch{return e}};const vs=e=>Qr(e)?"ObjectElement":es(e)?"ArrayElement":ts(e)?"MemberElement":Jr(e)?"StringElement":Xr(e)?"BooleanElement":Yr(e)?"NumberElement":Zr(e)?"NullElement":ns(e)?"LinkElement":rs(e)?"RefElement":void 0,ws=e=>Wr(e)?ys(e):ar(e),bs=ve(vs,ht),Es={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const xs=(e,t,{keyMap:n=Es,...r}={})=>ur(e,t,{keyMap:n,nodeTypeGetter:vs,nodePredicate:bs,nodeCloneFn:ws,...r});xs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=Es,...r}={})=>ur[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:vs,nodePredicate:bs,nodeCloneFn:ws,...r});const Ss=u((function(e,t,n){var r,s={};for(r in n=n||{},t=t||{})F(r,t)&&(s[r]=F(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)F(r,n)&&!F(r,s)&&(s[r]=n[r]);return s}));const Ps=u((function e(t,n,r){return Ss((function(n,r,s){return je(r)&&je(s)?e(t,r,s):t(n,r,s)}),n,r)}));const js=c((function(e,t){return Ps((function(e,t,n){return n}),e,t)}));const Os=ge(0,-1);const As=c((function(e,t){return e.apply(this,t)}));const ks=W(Je);var Is=a((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():v(e)?[]:h(e)?"":je(e)?{}:C(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Ms=Is;const Ns=a((function(e){return null!=e&&te(e,Ms(e))}));const Ts=$(1,Je(Array.isArray)?Array.isArray:ve(X,be("Array")));const $s=qe(Ts,Ns);const Fs=$(3,(function(e,t,n){var r=$e(e,n),s=$e(Os(e),n);if(!ks(r)&&!$s(e)){var i=ue(r,s);return As(i,t)}})),Rs=()=>({predicates:{...e},namespace:pt}),Cs={toolboxCreator:Rs,visitorOptions:{nodeTypeGetter:vs,exposeEdits:!0}},qs=(e,t,n={})=>{if(0===t.length)return e;const r=js(Cs,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),a=t.map((e=>e(o))),c=cr(a.map(d({},"visitor")),{...i});a.forEach(Fs(["pre"],[]));const u=xs(e,c,i);return a.forEach(Fs(["post"],[])),u};qs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,n={})=>{if(0===t.length)return e;const r=js(Cs,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),a=t.map((e=>e(o))),c=cr[Symbol.for("nodejs.util.promisify.custom")],u=xs[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(d({},"visitor")),{...i});await Promise.allSettled(a.map(Fs(["pre"],[])));const p=await u(e,l,i);return await Promise.allSettled(a.map(Fs(["post"],[]))),p};const Ds=(e,{Type:t,plugins:n=[]})=>{const r=new t(e);return Wr(e)&&(e.meta.length>0&&(r.meta=ds(e.meta)),e.attributes.length>0&&(r.attributes=ds(e.attributes))),qs(r,n,{toolboxCreator:Rs,visitorOptions:{nodeTypeGetter:vs}})},Ls=e=>(t,n={})=>Ds(t,{...n,Type:e});oe.Sh.refract=Ls(oe.Sh),oe.wE.refract=Ls(oe.wE),oe.Om.refract=Ls(oe.Om),oe.bd.refract=Ls(oe.bd),oe.Os.refract=Ls(oe.Os),oe.kT.refract=Ls(oe.kT),oe.Ft.refract=Ls(oe.Ft),oe.sI.refract=Ls(oe.sI),tt.refract=Ls(tt),rt.refract=Ls(rt),it.refract=Ls(it),at.refract=Ls(at);const Vs={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...Es},Bs=e=>Wr(e)?vs(e):ir(e),Us=e=>Wr(e)||or(e)||Array.isArray(e);const zs=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new it;t._content=e.children.flat(1);const n=t.findElements(cs);if(n.length>0){n[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=lt()}comment(e){if(0===this.processedDocumentCount){const t=new rt(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,n=this.processedDocumentCount>=1;if(t){const t=new tt("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 n?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new oe.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new oe.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 oe.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===qn.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})`,n=new tt(t);n.classes.push("warning"),this.maybeAddSourceMap(e,n),this.annotations.push(n)}return null}error(e,t,n,r){const s=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new tt(s);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new it;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const n=new at;n.position=e.position,n.astNode=e,t.meta.set("sourceMap",n)}};class Hs{cursor;constructor(e){this.cursor=e}stream(){return new Tr(this.cursor)}yaml_directive(){return new Tr(this.cursor)}tag_directive(){return new Tr(this.cursor)}reserved_directive(){return new Tr(this.cursor)}document(){return new Tr(this.cursor)}block_node(){return new Tr(this.cursor).setFieldName(this.cursor)}flow_node(){return new Tr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Tr(this.cursor)}block_mapping_pair(){return new Tr(this.cursor)}flow_mapping(){return new Tr(this.cursor)}flow_pair(){return new Tr(this.cursor)}block_sequence(){return new Tr(this.cursor)}block_sequence_item(){return new Tr(this.cursor)}flow_sequence(){return new Tr(this.cursor)}plain_scalar(){return new Tr(this.cursor)}single_quote_scalar(){return new Tr(this.cursor)}double_quote_scalar(){return new Tr(this.cursor)}block_scalar(){return new Tr(this.cursor)}ERROR(){return new Tr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Tr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Hs(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Hs(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Gs=Hs,Ks=(e,{sourceMap:t=!1}={})=>{const n=e.walk(),r=new Gs(n),[s]=Array.from(r),i=new Cr,o=new zs,a=new Gn,c=new nr,u=ur(s,i,{keyMap:$r,nodePredicate:Fr,state:{schema:a,sourceMap:t,referenceManager:c}});return ur(u.rootNode,o,{keyMap:Vs,nodeTypeGetter:Bs,nodePredicate:Us,state:{sourceMap:t}})};class Ws extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="swagger",this.classes.push("api")}get swagger(){return this.get("swagger")}set swagger(e){this.set("swagger",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get host(){return this.get("host")}set host(e){this.set("host",e)}get basePath(){return this.get("basePath")}set basePath(e){this.set("basePath",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get consumes(){return this.get("consumes")}set consumes(e){this.set("consumes",e)}get produces(){return this.get("produces")}set produces(e){this.set("produces",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get securityDefinitions(){return this.get("securityDefinitions")}set securityDefinitions(e){this.set("securityDefinitions",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 Js=Ws;class Ys extends oe.Om{constructor(e,t,n){super(e,t,n),this.element="swaggerVersion",this.classes.push("spec-version"),this.classes.push("version")}}const Zs=Ys;class Xs extends oe.Sh{constructor(e,t,n){super(e,t,n),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 Qs=Xs;class ei extends oe.Sh{constructor(e,t,n){super(e,t,n),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 ti=ei;class ni extends oe.Sh{constructor(e,t,n){super(e,t,n),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 ri=ni;class si extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="paths"}}const ii=si;class oi extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",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 parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const ai=oi;class ci extends oe.Sh{constructor(e,t,n){super(e,t,n),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 responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}}const ui=ci;class li extends oe.Sh{constructor(e,t,n){super(e,t,n),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 pi=li;const hi=class extends vt{};class mi extends oe.Sh{constructor(e,t,n){super(e,t,n),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 fi=mi;class di extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const _i=di;class gi extends oe.Sh{constructor(e,t,n){super(e,t,n),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 yi=gi;class vi extends oe.Sh{constructor(e,t,n){super(e,t,n),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 wi=vi;const bi=c((function(e,t){return y((function(n,r){return n[r]=e(t[r],r,t),n}),{},U(t))}));const Ei=a((function(e){return null==e}));const xi=c((function(e,t){if(0===e.length||Ei(t))return!1;for(var n=t,r=0;r<e.length;){if(Ei(n)||!F(e[r],n))return!1;n=n[e[r]],r+=1}return!0}));var Si=c((function(e,t){return xi([e],t)}));const Pi=Si;const ji=u((function(e,t,n){return e(f(t,n))})),Oi=(e,t)=>{const n=l(e,t);return bi((e=>{if(Qe(e)&&Pi("$ref",e)&&ji(ht,"$ref",e)){const t=$e(["$ref"],e),r=Pn("#/",t);return $e(r.split("/"),n)}return Qe(e)?Oi(e,n):e}),e)};var Ai=n(8357);const ki=function(){return!0},Ii=e=>"string"==typeof(null==e?void 0:e.type)?e.type:vs(e),Mi={EphemeralObject:["content"],EphemeralArray:["content"],...Es},Ni=(e,t,{keyMap:n=Mi,...r}={})=>xs(e,t,{keyMap:n,nodeTypeGetter:Ii,nodePredicate:ki,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});Ni[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Mi,...n}={})=>xs[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Ii,nodePredicate:ki,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});const Ti=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 $i=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 Fi{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new $i(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 Ti(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 n;const r=t[3];return"EphemeralObject"===(null===(n=r[r.length-1])||void 0===n?void 0:n.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Jr(e.href)?e.href.toValue():""}}const Ri=e=>Wr(e)?Jr(e)||Yr(e)||Xr(e)||Zr(e)?e.toValue():Ni(e,new Fi):e,Ci=e=>{const t=e.meta.length>0?ds(e.meta):void 0,n=e.attributes.length>0?ds(e.attributes):void 0;return new e.constructor(void 0,t,n)},qi=(e,t)=>t.clone&&t.isMergeableElement(e)?Bi(Ci(e),e,t):e,Di=e=>"function"!=typeof e.customMetaMerge?e=>ds(e):e.customMetaMerge,Li=e=>"function"!=typeof e.customAttributesMerge?e=>ds(e):e.customAttributesMerge,Vi={clone:!0,isMergeableElement:e=>Qr(e)||es(e),arrayElementMerge:(e,t,n)=>e.concat(t)["fantasy-land/map"]((e=>qi(e,n))),objectElementMerge:(e,t,n)=>{const r=Qr(e)?Ci(e):Ci(t);return Qr(e)&&e.forEach(((e,t,s)=>{const i=ys(s);i.value=qi(e,n),r.content.push(i)})),t.forEach(((t,s,i)=>{const o=Ri(s);let a;if(Qr(e)&&e.hasKey(o)&&n.isMergeableElement(t)){const r=e.get(o);a=ys(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Bi;const n=t.customMerge(e,t);return"function"==typeof n?n:Bi})(s,n)(r,t)}else a=ys(i),a.value=qi(t,n);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function Bi(e,t,n){var r,s,i;const o={...Vi,...n};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:Vi.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:Vi.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:Vi.objectElementMerge;const a=es(t);if(!(a===es(e)))return qi(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=Di(o)(e.meta,t.meta),c.attributes=Li(o)(e.attributes,t.attributes),c}Bi.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new oe.Sh:e.reduce(((e,n)=>Bi(e,n,t)),Ci(e[0]))};const Ui=Ai({props:{element:null},methods:{copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Bi(t.meta,e.meta),us(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Bi(t.attributes,e.attributes))}}}),zi=Ai(Ui,{methods:{enter(e){return this.element=ds(e),sr}}});const Hi=ne(re());const Gi=c((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})),Ki=Ai(Ui,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return Gi(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=$e(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Fe(Je,["visitors",...e],this.specObj)?$e(["visitors",...e],this.specObj):$e(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})},toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n),s=Object.getPrototypeOf(r);return se(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?ds(t):(xs(t,r,n),r.element)}}}),Wi=Ai(Ki,{props:{specPath:Hi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Jr(r)&&n.includes(Ri(r))&&!this.ignoredFields.includes(Ri(r))){const n=this.toRefractedElement([...t,"fixedFields",Ri(r)],e),i=new oe.Pr(ds(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ri(r))||this.element.content.push(ds(s))})),this.copyMetaAndAttributes(e,this.element),sr}}}),Ji=Ai(Wi,zi,{props:{specPath:ne(["document","objects","JSONSchema"])},init(){this.element=new fi}}),Yi=zi,Zi=zi,Xi=zi,Qi=zi,eo=zi,to=zi,no=zi,ro=zi,so=zi,io=zi,oo=Ai({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),ao=e=>Qr(e)&&e.hasKey("$ref"),co=Ai(Ki,oo,zi,{methods:{ObjectElement(e){const t=ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),sr},ArrayElement(e){return this.element=new oe.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}}),uo=zi,lo=zi,po=zi,ho=zi,mo=zi,fo=Ai(zi,{methods:{ArrayElement(e){return this.element=ds(e),this.element.classes.push("json-schema-required"),sr}}});const _o=a((function(e){return $(de(ze,0,He("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const go=c((function(e,t){return e||t}));const yo=W($(1,qe(Le,c((function(e,t){return Re(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:K(go)(e,t)}))(Be,Je))));const vo=W(Ns);const wo=_o([ht,yo,vo]);const bo=function(){return!1},Eo=Ai(Ki,{props:{fieldPatternPredicate:bo,specPath:Hi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,n)=>{if(!this.ignoredFields.includes(Ri(t))&&this.fieldPatternPredicate(Ri(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new oe.Pr(ds(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ri(t))||this.element.content.push(ds(n))})),this.copyMetaAndAttributes(e,this.element),sr}}}),xo=Ai(Eo,{props:{fieldPatternPredicate:wo}}),So=Ai(xo,oo,zi,{props:{specPath:e=>ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-properties")}}),Po=Ai(xo,oo,zi,{props:{specPath:e=>ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-patternProperties")}}),jo=Ai(xo,oo,zi,{props:{specPath:e=>ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-dependencies")}}),Oo=Ai(zi,{methods:{ArrayElement(e){return this.element=ds(e),this.element.classes.push("json-schema-enum"),sr}}}),Ao=Ai(zi,{methods:{StringElement(e){return this.element=ds(e),this.element.classes.push("json-schema-type"),sr},ArrayElement(e){return this.element=ds(e),this.element.classes.push("json-schema-type"),sr}}}),ko=Ai(Ki,oo,zi,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}}),Io=Ai(Ki,oo,zi,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}}),Mo=Ai(Ki,oo,zi,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}}),No=Ai(xo,oo,zi,{props:{specPath:e=>ao(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-definitions")}}),To=zi,$o=zi,Fo=zi,Ro=zi,Co=zi,qo=Ai(Ki,oo,zi,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}}),Do=zi,Lo=Ai(Wi,zi,{props:{specPath:ne(["document","objects","JSONReference"])},init(){this.element=new _i},methods:{ObjectElement(e){const t=Wi.compose.methods.ObjectElement.call(this,e);return Jr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Vo=Ai(zi,{methods:{StringElement(e){return this.element=ds(e),this.element.classes.push("reference-value"),sr}}});const Bo=u((function(e,t,n){return $(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))}));const Uo=a((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}}));var zo=c((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Ho=zo;const Go=a(qr);const Ko=W(Ei);const Wo=qe(Ts,vo);function Jo(e){return function(e){if(Array.isArray(e))return Yo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Yo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Zo=ve(Ho(Uo((function(e,t){return e.length>t.length}))),_r,f("length")),Xo=Lt((function(e,t,n){var r=n.apply(void 0,Jo(e));return Ko(r)?Go(r):t}));const Qo=Bo(Wo,(function(e){var t=Zo(e);return $(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return de(Xo(n),void 0,e)}))}),re),ea=Ai(Ki,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Bo(e,ne(t),re))),n=Qo(t)(e);return this.element=this.toRefractedElement(n,e),sr}}}),ta=Ai(ea,{props:{alternator:[{predicate:ao,specPath:["document","objects","JSONReference"]},{predicate:ki,specPath:["document","objects","JSONSchema"]}]}}),na={visitors:{value:zi,JSONSchemaOrJSONReferenceVisitor:ta,document:{objects:{JSONSchema:{$visitor:Ji,fixedFields:{id:Yi,$schema:Zi,multipleOf:Xi,maximum:Qi,exclusiveMaximum:eo,minimum:to,exclusiveMinimum:no,maxLength:ro,minLength:so,pattern:io,additionalItems:ta,items:co,maxItems:uo,minItems:lo,uniqueItems:po,maxProperties:ho,minProperties:mo,required:fo,properties:So,additionalProperties:ta,patternProperties:Po,dependencies:jo,enum:Oo,type:Ao,allOf:ko,anyOf:Io,oneOf:Mo,not:ta,definitions:No,title:To,description:$o,default:Fo,format:Ro,base:Co,links:qo,media:{$ref:"#/visitors/document/objects/Media"},readOnly:Do}},JSONReference:{$visitor:Lo,fixedFields:{$ref:Vo}},Media:{$visitor:Ai(Wi,zi,{props:{specPath:ne(["document","objects","Media"])},init(){this.element=new yi}}),fixedFields:{binaryEncoding:zi,type:zi}},LinkDescription:{$visitor:Ai(Wi,zi,{props:{specPath:ne(["document","objects","LinkDescription"])},init(){this.element=new wi}}),fixedFields:{href:zi,rel:zi,title:zi,targetSchema:ta,mediaType:zi,method:zi,encType:zi,schema:ta}}}}}},ra=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},sa={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Es},ia=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof fi||e(r)&&t("JSONSchemaDraft4",r)&&n("object",r))),oa=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof _i||e(r)&&t("JSONReference",r)&&n("object",r))),aa=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof yi||e(r)&&t("media",r)&&n("object",r))),ca=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof wi||e(r)&&t("linkDescription",r)&&n("object",r))),ua={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",fi),t.register("jSONReference",_i),t.register("media",yi),t.register("linkDescription",wi),t}},la=()=>{const e=lt(ua);return{predicates:{...t,isStringElement:Jr},namespace:e}},pa=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=na}={})=>{const s=(0,oe.e)(e),i=Oi(r),o=Fs(t,[],i);return xs(s,o,{state:{specObj:i}}),qs(o.element,n,{toolboxCreator:la,visitorOptions:{keyMap:sa,nodeTypeGetter:ra}})},ha=e=>(t,n={})=>pa(t,{specPath:e,...n});fi.refract=ha(["visitors","document","objects","JSONSchema","$visitor"]),_i.refract=ha(["visitors","document","objects","JSONReference","$visitor"]),yi.refract=ha(["visitors","document","objects","Media","$visitor"]),wi.refract=ha(["visitors","document","objects","LinkDescription","$visitor"]);const ma=class extends fi{constructor(e,t,n){super(e,t,n),this.element="parameter",this.classes.push("json-schema-draft-4")}get idProp(){throw new hi("idProp getter in Parameter class is not not supported.")}set idProp(e){throw new hi("idProp setter in Parameter class is not not supported.")}get $schema(){throw new hi("$schema getter in Parameter class is not not supported.")}set $schema(e){throw new hi("$schema setter in Parameter class is not not supported.")}get additionalItems(){throw new hi("additionalItems getter in Parameter class is not not supported.")}set additionalItems(e){throw new hi("additionalItems setter in Parameter class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new hi("maxProperties getter in Parameter class is not not supported.")}set maxProperties(e){throw new hi("maxProperties setter in Parameter class is not not supported.")}get minProperties(){throw new hi("minProperties getter in Parameter class is not not supported.")}set minProperties(e){throw new hi("minProperties setter in Parameter class is not not supported.")}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){throw new hi("properties getter in Parameter class is not not supported.")}set properties(e){throw new hi("properties setter in Parameter class is not not supported.")}get additionalProperties(){throw new hi("additionalProperties getter in Parameter class is not not supported.")}set additionalProperties(e){throw new hi("additionalProperties setter in Parameter class is not not supported.")}get patternProperties(){throw new hi("patternProperties getter in Parameter class is not not supported.")}set patternProperties(e){throw new hi("patternProperties setter in Parameter class is not not supported.")}get dependencies(){throw new hi("dependencies getter in Parameter class is not not supported.")}set dependencies(e){throw new hi("dependencies setter in Parameter class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new hi("allOf getter in Parameter class is not not supported.")}set allOf(e){throw new hi("allOf setter in Parameter class is not not supported.")}get anyOf(){throw new hi("anyOf getter in Parameter class is not not supported.")}set anyOf(e){throw new hi("anyOf setter in Parameter class is not not supported.")}get oneOf(){throw new hi("oneOf getter in Parameter class is not not supported.")}set oneOf(e){throw new hi("oneOf setter in Parameter class is not not supported.")}get not(){throw new hi("not getter in Parameter class is not not supported.")}set not(e){throw new hi("not setter in Parameter class is not not supported.")}get definitions(){throw new hi("definitions getter in Parameter class is not not supported.")}set definitions(e){throw new hi("definitions setter in Parameter class is not not supported.")}get title(){throw new hi("title getter in Parameter class is not not supported.")}set title(e){throw new hi("title setter in Parameter class is not not supported.")}get description(){return this.get("description")}set description(e){this.set("description,",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){throw new hi("base getter in Parameter class is not not supported.")}set base(e){throw new hi("base setter in Parameter class is not not supported.")}get links(){throw new hi("links getter in Parameter class is not not supported.")}set links(e){throw new hi("links setter in Parameter class is not not supported.")}get media(){throw new hi("media getter in Parameter class is not not supported.")}set media(e){throw new hi("media setter in Parameter class is not not supported.")}get readOnly(){throw new hi("readOnly getter in Parameter class is not not supported.")}set readOnly(e){throw new hi("readOnly setter in Parameter class is not not supported.")}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 schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const fa=class extends fi{constructor(e,t,n){super(e,t,n),this.element="items",this.classes.push("json-schema-draft-4")}get idProp(){throw new hi("idProp getter in Items class is not not supported.")}set idProp(e){throw new hi("idProp setter in Items class is not not supported.")}get $schema(){throw new hi("$schema getter in Items class is not not supported.")}set $schema(e){throw new hi("$schema setter in Items class is not not supported.")}get additionalItems(){throw new hi("additionalItems getter in Items class is not not supported.")}set additionalItems(e){throw new hi("additionalItems setter in Items class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new hi("maxProperties getter in Items class is not not supported.")}set maxProperties(e){throw new hi("maxProperties setter in Items class is not not supported.")}get minProperties(){throw new hi("minProperties getter in Items class is not not supported.")}set minProperties(e){throw new hi("minProperties setter in Items class is not not supported.")}get required(){throw new hi("required getter in Items class is not not supported.")}set required(e){throw new hi("required setter in Items class is not not supported.")}get properties(){throw new hi("properties getter in Items class is not not supported.")}set properties(e){throw new hi("properties setter in Items class is not not supported.")}get additionalProperties(){throw new hi("additionalProperties getter in Items class is not not supported.")}set additionalProperties(e){throw new hi("additionalProperties setter in Items class is not not supported.")}get patternProperties(){throw new hi("patternProperties getter in Items class is not not supported.")}set patternProperties(e){throw new hi("patternProperties setter in Items class is not not supported.")}get dependencies(){throw new hi("dependencies getter in Items class is not not supported.")}set dependencies(e){throw new hi("dependencies setter in Items class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new hi("allOf getter in Items class is not not supported.")}set allOf(e){throw new hi("allOf setter in Items class is not not supported.")}get anyOf(){throw new hi("anyOf getter in Items class is not not supported.")}set anyOf(e){throw new hi("anyOf setter in Items class is not not supported.")}get oneOf(){throw new hi("oneOf getter in Items class is not not supported.")}set oneOf(e){throw new hi("oneOf setter in Items class is not not supported.")}get not(){throw new hi("not getter in Items class is not not supported.")}set not(e){throw new hi("not setter in Items class is not not supported.")}get definitions(){throw new hi("definitions getter in Items class is not not supported.")}set definitions(e){throw new hi("definitions setter in Items class is not not supported.")}get title(){throw new hi("title getter in Items class is not not supported.")}set title(e){throw new hi("title setter in Items class is not not supported.")}get description(){throw new hi("description getter in Items class is not not supported.")}set description(e){throw new hi("description setter in Items class is not not supported.")}get base(){throw new hi("base getter in Items class is not not supported.")}set base(e){throw new hi("base setter in Items class is not not supported.")}get links(){throw new hi("links getter in Items class is not not supported.")}set links(e){throw new hi("links setter in Items class is not not supported.")}get media(){throw new hi("media getter in Items class is not not supported.")}set media(e){throw new hi("media setter in Items class is not not supported.")}get readOnly(){throw new hi("readOnly getter in Items class is not not supported.")}set readOnly(e){throw new hi("readOnly setter in Items class is not not supported.")}};class da extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const _a=da;class ga extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}const ya=ga;class va extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="headers"}}const wa=va;class ba extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="example"}}const Ea=ba;const xa=class extends fi{constructor(e,t,n){super(e,t,n),this.element="header",this.classes.push("json-schema-draft-4")}get idProp(){throw new hi("idProp getter in Header class is not not supported.")}set idProp(e){throw new hi("idProp setter in Header class is not not supported.")}get $schema(){throw new hi("$schema getter in Header class is not not supported.")}set $schema(e){throw new hi("$schema setter in Header class is not not supported.")}get additionalItems(){throw new hi("additionalItems getter in Header class is not not supported.")}set additionalItems(e){throw new hi("additionalItems setter in Header class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new hi("maxProperties getter in Header class is not not supported.")}set maxProperties(e){throw new hi("maxProperties setter in Header class is not not supported.")}get minProperties(){throw new hi("minProperties getter in Header class is not not supported.")}set minProperties(e){throw new hi("minProperties setter in Header class is not not supported.")}get required(){throw new hi("required getter in Header class is not not supported.")}set required(e){throw new hi("required setter in Header class is not not supported.")}get properties(){throw new hi("properties getter in Header class is not not supported.")}set properties(e){throw new hi("properties setter in Header class is not not supported.")}get additionalProperties(){throw new hi("additionalProperties getter in Header class is not not supported.")}set additionalProperties(e){throw new hi("additionalProperties setter in Header class is not not supported.")}get patternProperties(){throw new hi("patternProperties getter in Header class is not not supported.")}set patternProperties(e){throw new hi("patternProperties setter in Header class is not not supported.")}get dependencies(){throw new hi("dependencies getter in Header class is not not supported.")}set dependencies(e){throw new hi("dependencies setter in Header class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new hi("allOf getter in Header class is not not supported.")}set allOf(e){throw new hi("allOf setter in Header class is not not supported.")}get anyOf(){throw new hi("anyOf getter in Header class is not not supported.")}set anyOf(e){throw new hi("anyOf setter in Header class is not not supported.")}get oneOf(){throw new hi("oneOf getter in Header class is not not supported.")}set oneOf(e){throw new hi("oneOf setter in Header class is not not supported.")}get not(){throw new hi("not getter in Header class is not not supported.")}set not(e){throw new hi("not setter in Header class is not not supported.")}get definitions(){throw new hi("definitions getter in Header class is not not supported.")}set definitions(e){throw new hi("definitions setter in Header class is not not supported.")}get title(){throw new hi("title getter in Header class is not not supported.")}set title(e){throw new hi("title setter in Header class is not not supported.")}get base(){throw new hi("base getter in Header class is not not supported.")}set base(e){throw new hi("base setter in Header class is not not supported.")}get links(){throw new hi("links getter in Header class is not not supported.")}set links(e){throw new hi("links setter in Header class is not not supported.")}get media(){throw new hi("media getter in Header class is not not supported.")}set media(e){throw new hi("media setter in Header class is not not supported.")}get readOnly(){throw new hi("readOnly getter in Header class is not not supported.")}set readOnly(e){throw new hi("readOnly setter in Header class is not not supported.")}};class Sa extends oe.Sh{constructor(e,t,n){super(e,t,n),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 Pa=Sa;class ja extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Oa=ja;const Aa=class extends fi{constructor(e,t,n){super(e,t,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new hi("idProp getter in Schema class is not not supported.")}set idProp(e){throw new hi("idProp setter in Schema class is not not supported.")}get $schema(){throw new hi("$schema getter in Schema class is not not supported.")}set $schema(e){throw new hi("$schema setter in Schema class is not not supported.")}get additionalItems(){throw new hi("additionalItems getter in Schema class is not not supported.")}set additionalItems(e){throw new hi("additionalItems setter in Schema class is not not supported.")}get patternProperties(){throw new hi("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new hi("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new hi("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new hi("dependencies setter in Schema class is not not supported.")}get anyOf(){throw new hi("anyOf getter in Schema class is not not supported.")}set anyOf(e){throw new hi("anyOf setter in Schema class is not not supported.")}get oneOf(){throw new hi("oneOf getter in Schema class is not not supported.")}set oneOf(e){throw new hi("oneOf setter in Schema class is not not supported.")}get not(){throw new hi("not getter in Schema class is not not supported.")}set not(e){throw new hi("not setter in Schema class is not not supported.")}get definitions(){throw new hi("definitions getter in Schema class is not not supported.")}set definitions(e){throw new hi("definitions setter in Schema class is not not supported.")}get base(){throw new hi("base getter in Schema class is not not supported.")}set base(e){throw new hi("base setter in Schema class is not not supported.")}get links(){throw new hi("links getter in Schema class is not not supported.")}set links(e){throw new hi("links setter in Schema class is not not supported.")}get media(){throw new hi("media getter in Schema class is not not supported.")}set media(e){throw new hi("media setter in Schema class is not not supported.")}};class ka extends oe.Sh{constructor(e,t,n){super(e,t,n),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 Ia=ka;class Ma extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="definitions"}}const Na=Ma;class Ta extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="parametersDefinitions"}}const $a=Ta;class Fa extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="responsesDefinitions"}}const Ra=Fa;class Ca extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="securityDefinitions"}}const qa=Ca;class Da extends oe.Sh{constructor(e,t,n){super(e,t,n),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 flow(){return this.get("flow")}set flow(e){this.set("flow",e)}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 scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const La=Da;class Va extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="scopes"}}const Ba=Va;class Ua extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="securityRequirement"}}const za=Ua;const Ha=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Bi(t.meta,e.meta),us(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Bi(t.attributes,e.attributes))}};const Ga=class extends Ha{enter(e){return this.element=ds(e),sr}},Ka=(e,t,n=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of n)delete r[e];Object.defineProperties(e,r)},Wa=(e,t=[e])=>{const n=Object.getPrototypeOf(e);return null===n?t:Wa(n,[...t,n])},Ja=(e,t,n=[])=>{var r;const s=null!==(r=((...e)=>{if(0===e.length)return;let t;const n=e.map((e=>Wa(e)));for(;n.every((e=>e.length>0));){const e=n.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(s),o=Wa(s);for(let t of e){let e=Wa(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(Ka(i,r,["constructor",...n]),o.push(r))}}return i.constructor=t,i},Ya=e=>e.filter(((t,n)=>e.indexOf(t)==n)),Za=(e,t)=>{const n=t.map((e=>Wa(e)));let r=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=n[i][r];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return n[i][0]}r++}},Xa=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,n)=>Object.getOwnPropertyDescriptor(Za(n,e)||{},n),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(n,r)=>void 0!==Za(r,e)||void 0!==t[r],get:(n,r)=>(Za(r,e)||t)[r],set(t,n,r){const s=Za(n,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[n]=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)))))}),Qa=null,ec="copy",tc="copy",nc="deep",rc=new WeakMap,sc=e=>rc.get(e),ic=(e,t)=>{var n,r;const s=Ya([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=Ya([...null!==(n=null==e?void 0:e[o])&&void 0!==n?n:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},oc=(e,t)=>{var n,r,s,i;return{property:ic(null!==(n=null==e?void 0:e.property)&&void 0!==n?n:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:ic(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},ac=(e,t)=>{var n,r,s,i,o,a;return{class:Ya([...null!==(n=null==e?void 0:e.class)&&void 0!==n?n:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:oc(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:oc(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},cc=new Map,uc=(...e)=>{const t=((...e)=>{var t;const n=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const s=[...Wa(e.prototype).map((e=>e.constructor)),...null!==(t=sc(e))&&void 0!==t?t:[]].filter((e=>!n.has(e)));for(let e of s)r.add(e);n.add(e),r.delete(e)}return[...n]})(...e).map((e=>cc.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>ac(e,t)))},lc=e=>{let t=cc.get(e);return t||(t={},cc.set(e,t)),t};function pc(...e){var t,n,r;const s=e.map((e=>e.prototype)),i=Qa;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t={[i]:function(...t){for(let n of e)n.apply(this,t)}};s.push(t)}function o(...t){for(const n of e)Ka(this,new n(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===tc?Ja(s,o):(a=s,c=o,Xa([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===ec?Ja(e,null,["prototype"]):Xa(e,Function.prototype));let u=o;if("none"!==nc){const s="deep"===nc?uc(...e):((...e)=>{const t=e.map((e=>lc(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>ac(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}hc(null!==(n=null==s?void 0:s.static)&&void 0!==n?n:{},u),hc(null!==(r=null==s?void 0:s.instance)&&void 0!==r?r:{},u.prototype)}var l,p;return l=u,p=e,rc.set(l,p),u}const hc=(e,t)=>{const n=e.property,r=e.method;if(n)for(let e in n)for(let r of n[e])r(t,e);if(r)for(let e in r)for(let n of r[e])n(t,e,Object.getOwnPropertyDescriptor(t,e))};const mc=class extends Ha{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Gi(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=$e(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Fe(Je,["visitors",...e],this.specObj)?$e(["visitors",...e],this.specObj):$e(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n);return r instanceof Ga&&(null==r?void 0:r.constructor)===Ga?ds(t):(xs(t,r,n),r.element)}};var fc=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?qr(n):n},e}();function dc(e){return function(t){return new fc(e,t)}}const _c=c(j(["take"],dc,(function(e,t){return ge(0,e<0?1/0:e,t)})));const gc=c((function(e,t){return te(_c(e.length,t),e)})),yc=e=>Jr(e.key)&&gc("x-",Ri(e.key)),vc=e=>Qr(e)&&e.hasKey("$ref");const wc=class extends mc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=yc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Jr(r)&&n.includes(Ri(r))&&!this.ignoredFields.includes(Ri(r))){const n=this.toRefractedElement([...t,"fixedFields",Ri(r)],e),i=new oe.Pr(ds(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(Ri(r))||this.element.content.push(ds(s))})),this.copyMetaAndAttributes(e,this.element),sr}};class bc extends(pc(wc,Ga)){constructor(e){super(e),this.element=new Js,this.specPath=ne(["document","objects","Swagger"]),this.canSupportSpecificationExtensions=!0}}const Ec=bc;class xc extends(pc(mc,Ga)){StringElement(e){const t=new Zs(Ri(e));return this.copyMetaAndAttributes(e,t),this.element=t,sr}}const Sc=xc;const Pc=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-host"),t}};const jc=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-base-path"),t}};class Oc extends oe.wE{static primaryClass="swagger-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(Oc.primaryClass)}}const Ac=Oc;const kc=class extends Ga{constructor(e){super(e),this.element=new Ac}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Ic extends oe.wE{static primaryClass="swagger-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(Ic.primaryClass)}}const Mc=Ic;const Nc=class extends Ga{constructor(e){super(e),this.element=new Mc}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Tc extends oe.wE{static primaryClass="swagger-produces";constructor(e,t,n){super(e,t,n),this.classes.push(Tc.primaryClass)}}const $c=Tc;const Fc=class extends Ga{constructor(e){super(e),this.element=new $c}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Rc extends oe.wE{static primaryClass="swagger-security";constructor(e,t,n){super(e,t,n),this.classes.push(Rc.primaryClass),this.classes.push("security")}}const Cc=Rc;class qc extends(pc(mc,Ga)){constructor(e){super(e),this.element=new Cc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}const Dc=qc;class Lc extends oe.wE{static primaryClass="swagger-tags";constructor(e,t,n){super(e,t,n),this.classes.push(Lc.primaryClass)}}const Vc=Lc;class Bc extends(pc(mc,Ga)){constructor(e){super(e),this.element=new Vc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}const Uc=Bc;class zc extends(pc(wc,Ga)){constructor(e){super(e),this.element=new Qs,this.specPath=ne(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Hc=zc;const Gc=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Kc extends(pc(wc,Ga)){constructor(e){super(e),this.element=new ti,this.specPath=ne(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Wc=Kc;class Jc extends(pc(wc,Ga)){constructor(e){super(e),this.element=new ri,this.specPath=ne(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Yc=Jc;const Zc=class extends mc{specPath;ignoredFields;fieldPatternPredicate=bo;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=yc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof n&&(this.fieldPatternPredicate=n),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){return e.forEach(((e,t,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else if(!this.ignoredFields.includes(Ri(t))&&this.fieldPatternPredicate(Ri(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new oe.Pr(ds(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ri(t))||this.element.content.push(ds(n))})),this.copyMetaAndAttributes(e,this.element),sr}},Xc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Js||e(r)&&t("swagger",r)&&n("object",r))),Qc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Zs||e(r)&&t("swaggerVersion",r)&&n("string",r))),eu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Qs||e(r)&&t("info",r)&&n("object",r))),tu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ri||e(r)&&t("license",r)&&n("object",r))),nu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ti||e(r)&&t("contact",r)&&n("object",r))),ru=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ii||e(r)&&t("paths",r)&&n("object",r))),su=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ai||e(r)&&t("pathItem",r)&&n("object",r))),iu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ui||e(r)&&t("operation",r)&&n("object",r))),ou=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof pi||e(r)&&t("externalDocumentation",r)&&n("object",r))),au=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ma||e(r)&&t("parameter",r)&&n("object",r))),cu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof fa||e(r)&&t("items",r)&&n("object",r))),uu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof _a||e(r)&&t("responses",r)&&n("object",r))),lu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ya||e(r)&&t("response",r)&&n("object",r))),pu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof wa||e(r)&&t("headers",r)&&n("object",r))),hu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ea||e(r)&&t("example",r)&&n("object",r))),mu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof xa||e(r)&&t("header",r)&&n("object",r))),fu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Pa||e(r)&&t("tag",r)&&n("object",r))),du=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Oa||e(r)&&t("reference",r)&&n("object",r))),_u=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Aa||e(r)&&t("schema",r)&&n("object",r))),gu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ia||e(r)&&t("xml",r)&&n("object",r))),yu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ra||e(r)&&t("responsesDefinitions",r)&&n("object",r))),vu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof qa||e(r)&&t("securityDefinitions",r)&&n("object",r))),wu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Na||e(r)&&t("definitions",r)&&n("object",r))),bu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof $a||e(r)&&t("parametersDefinitions",r)&&n("object",r))),Eu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof La||e(r)&&t("securityScheme",r)&&n("object",r))),xu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ba||e(r)&&t("scopes",r)&&n("object",r))),Su=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof za||e(r)&&t("securityRequirement",r)&&n("object",r)));class Pu extends(pc(Zc,Ga)){element;constructor(e){super(e),this.element=new ii,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=ki}ObjectElement(e){const t=Zc.prototype.ObjectElement.call(this,e);return this.element.filter(su).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",ds(t))})),t}}const ju=Pu;class Ou extends(pc(wc,Ga)){constructor(e){super(e),this.element=new ai,this.specPath=ne(["document","objects","PathItem"])}ObjectElement(e){const t=wc.prototype.ObjectElement.call(this,e);return this.element.filter(iu).forEach(((e,t)=>{const n=ds(t);n.content=Ri(n).toUpperCase(),e.setMetaProperty("http-method",n)})),Jr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Au=Ou;const ku=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Iu extends oe.wE{static primaryClass="path-item-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(Iu.primaryClass),this.classes.push("parameters")}}const Mu=Iu;class Nu extends(pc(mc,Ga)){constructor(e){super(e),this.element=new Mu}ArrayElement(e){return e.forEach((e=>{const t=vc(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);du(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const Tu=Nu;class $u extends(pc(wc,Ga)){constructor(e){super(e),this.element=new ui,this.specPath=ne(["document","objects","Operation"])}}const Fu=$u;class Ru extends oe.wE{static primaryClass="operation-tags";constructor(e,t,n){super(e,t,n),this.classes.push(Ru.primaryClass),this.classes.push("tags")}}const Cu=Ru;const qu=class extends Ga{constructor(e){super(e),this.element=new Cu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Du extends oe.wE{static primaryClass="operation-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(Du.primaryClass)}}const Lu=Du;const Vu=class extends Ga{constructor(e){super(e),this.element=new Lu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Bu extends oe.wE{static primaryClass="operation-produces";constructor(e,t,n){super(e,t,n),this.classes.push(Bu.primaryClass)}}const Uu=Bu;const zu=class extends Ga{constructor(e){super(e),this.element=new Uu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Hu extends oe.wE{static primaryClass="operation-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(Hu.primaryClass),this.classes.push("parameters")}}const Gu=Hu;class Ku extends(pc(mc,Ga)){constructor(e){super(e),this.element=new Gu}ArrayElement(e){return e.forEach((e=>{const t=vc(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);du(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const Wu=Ku;class Ju extends oe.wE{static primaryClass="operation-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(Ju.primaryClass)}}const Yu=Ju;const Zu=class extends Ga{constructor(e){super(e),this.element=new Yu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Xu extends oe.wE{static primaryClass="operation-security";constructor(e,t,n){super(e,t,n),this.classes.push(Xu.primaryClass),this.classes.push("security")}}const Qu=Xu;class el extends(pc(mc,Ga)){constructor(e){super(e),this.element=new Qu}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}const tl=el;class nl extends(pc(wc,Ga)){constructor(e){super(e),this.element=new pi,this.specPath=ne(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const rl=nl;class sl extends(pc(wc,Ga)){constructor(e){super(e),this.element=new ma,this.specPath=ne(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}}const il=sl;class ol extends(pc(wc,Ga)){specPath;canSupportSpecificationExtensions;constructor(e){super(e),this.element=new fa,this.specPath=ne(["document","objects","Items"]),this.canSupportSpecificationExtensions=!0}}const al=ol;const cl=c((function(e,t){if(n=e,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Ne(e));var n;return St(e).test(t)}));function ul(e){return"[object Number]"===Object.prototype.toString.call(e)}const ll=c((function(e,t){if(!ul(e)||!ul(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n}));function pl(e,t,n){var r,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?e in n._items[s]||(t&&(n._items[s][e]=!0),!1):(t&&(n._items[s]={},n._items[s][e]=!0),!1);case"boolean":if(s in n._items){var i=e?1:0;return!!n._items[s][i]||(t&&(n._items[s][i]=!0),!1)}return t&&(n._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?!!Ee(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1);case"undefined":return!!n._items[s]||(t&&(n._items[s]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in n._items?!!Ee(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1)}}const hl=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!pl(e,!0,this)},e.prototype.has=function(e){return pl(e,!1,this)},e}();const ml=c((function(e,t){for(var n=[],r=0,s=e.length,i=t.length,o=new hl,a=0;a<i;a+=1)o.add(t[a]);for(;r<s;)o.add(e[r])&&(n[n.length]=e[r]),r+=1;return n}));class fl extends(pc(wc,Zc)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...n}){super({...n}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...ml(e.keys(),t)],wc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Zc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return sr}}const dl=fl;class _l extends(pc(dl,Ga)){constructor(e){super(e),this.element=new _a,this.specPathFixedFields=ne(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>vc(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=cl(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${ll(100,600).join("|")})$`))}ObjectElement(e){const t=dl.prototype.ObjectElement.call(this,e);return this.element.filter(du).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(lu).forEach(((e,t)=>{const n=ds(t);this.fieldPatternPredicate(Ri(n))&&e.setMetaProperty("http-status-code",n)})),t}}const gl=_l;const yl=class extends mc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Bo(e,ne(t),re))),n=Qo(t)(e);return this.element=this.toRefractedElement(n,e),sr}};class vl extends(pc(yl,Ga)){constructor(e){super(e),this.alternator=[{predicate:vc,specPath:["document","objects","Reference"]},{predicate:ki,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=yl.prototype.enter.call(this,e);return du(this.element)?this.element.setMetaProperty("referenced-element","response"):lu(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const wl=vl;class bl extends(pc(wc,Ga)){constructor(e){super(e),this.element=new ya,this.specPath=ne(["document","objects","Response"]),this.canSupportSpecificationExtensions=!0}}const El=bl;const xl=class extends Zc{constructor(e){super(e),this.fieldPatternPredicate=wo}};class Sl extends(pc(xl,Ga)){constructor(e){super(e),this.element=new wa,this.specPath=ne(["document","objects","Header"]),this.canSupportSpecificationExtensions=!1}}const Pl=Sl;class jl extends(pc(xl,Ga)){constructor(e){super(e),this.element=new Ea,this.specPath=ne(["value"]),this.canSupportSpecificationExtensions=!1}}const Ol=jl;class Al extends(pc(wc,Ga)){constructor(e){super(e),this.element=new xa,this.specPath=ne(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const kl=Al;class Il extends(pc(wc,Ga)){constructor(e){super(e),this.element=new Pa,this.specPath=ne(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Ml=Il;class Nl extends(pc(wc,Ga)){constructor(e){super(e),this.element=new Oa,this.specPath=ne(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=wc.prototype.ObjectElement.call(this,e);return Jr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Tl=Nl;const $l=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Fl extends(pc(wc,Ga)){constructor(e){super(e),this.element=new Aa,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Rl=Fl,{allOf:Cl}=na.visitors.document.objects.JSONSchema.fixedFields,ql=Cl.compose({methods:{ArrayElement(e){const t=Cl.compose.methods.ArrayElement.call(this,e);return this.element.filter(oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Dl}=na.visitors.document.objects.JSONSchema.fixedFields,Ll=Dl.compose({methods:{ObjectElement(e){const t=Dl.compose.methods.ObjectElement.call(this,e);return oa(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){const t=Dl.compose.methods.ArrayElement.call(this,e);return this.element.filter(oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{properties:Vl}=na.visitors.document.objects.JSONSchema.fixedFields,Bl=Vl.compose({methods:{ObjectElement(e){const t=Vl.compose.methods.ObjectElement.call(this,e);return this.element.filter(oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{JSONSchemaOrJSONReferenceVisitor:Ul}=na.visitors,zl=Ul.compose({methods:{ObjectElement(e){const t=Ul.compose.methods.enter.call(this,e);return oa(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}});class Hl extends(pc(wc,Ga)){constructor(e){super(e),this.element=new Ia,this.specPath=ne(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Gl=Hl;class Kl extends(pc(xl,Ga)){constructor(e){super(e),this.element=new Na,this.specPath=e=>ao(e)?["document","objects","JSONReference"]:["document","objects","Schema"]}ObjectElement(e){const t=xl.prototype.ObjectElement.call(this,e);return this.element.filter(oa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Wl=Kl;class Jl extends(pc(xl,Ga)){constructor(e){super(e),this.element=new Ra,this.specPath=ne(["document","objects","Response"])}}const Yl=Jl;class Zl extends(pc(xl,Ga)){constructor(e){super(e),this.element=new $a,this.specPath=ne(["document","objects","Parameter"])}}const Xl=Zl;class Ql extends(pc(xl,Ga)){element;constructor(e){super(e),this.element=new qa,this.specPath=ne(["document","objects","SecurityScheme"])}}const ep=Ql;class tp extends(pc(wc,Ga)){constructor(e){super(e),this.element=new La,this.specPath=ne(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const np=tp;class rp extends(pc(xl,Ga)){constructor(e){super(e),this.element=new Ba,this.specPath=ne(["value"]),this.canSupportSpecificationExtensions=!0}}const sp=rp;class ip extends(pc(xl,Ga)){constructor(e){super(e),this.element=new za,this.specPath=ne(["value"])}}const op=ip;const ap=class extends mc{MemberElement(e){return this.element=ds(e),this.element.classes.push("specification-extension"),sr}},{fixedFields:cp}=na.visitors.document.objects.JSONSchema,up={visitors:{value:Ga,document:{objects:{JSONReference:na.visitors.document.objects.JSONReference,JSONSchema:{$ref:"#/visitors/document/objects/Schema"},Swagger:{$visitor:Ec,fixedFields:{swagger:Sc,info:{$ref:"#/visitors/document/objects/Info"},host:Pc,basePath:jc,schemes:kc,consumes:Nc,produces:Fc,paths:{$ref:"#/visitors/document/objects/Paths"},definitions:{$ref:"#/visitors/document/objects/Definitions"},parameters:{$ref:"#/visitors/document/objects/ParametersDefinitions"},responses:{$ref:"#/visitors/document/objects/ResponsesDefinitions"},securityDefinitions:{$ref:"#/visitors/document/objects/SecurityDefinitions"},security:Dc,tags:Uc,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Hc,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:Gc}},Contact:{$visitor:Wc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Yc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Paths:{$visitor:ju},PathItem:{$visitor:Au,fixedFields:{$ref:ku,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"},parameters:Tu}},Operation:{$visitor:Fu,fixedFields:{tags:qu,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},consumes:Vu,produces:zu,parameters:Wu,responses:{$ref:"#/visitors/document/objects/Responses"},schemes:Zu,deprecated:{$ref:"#/visitors/value"},security:tl}},ExternalDocumentation:{$visitor:rl,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:il,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:cp.description,required:cp.required,schema:zl,type:cp.type,format:cp.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:cp.default,maximum:cp.maximum,exclusiveMaximum:cp.exclusiveMaximum,minimum:cp.minimum,exclusiveMinimum:cp.exclusiveMinimum,maxLength:cp.maxLength,minLength:cp.minLength,pattern:cp.pattern,maxItems:cp.maxItems,minItems:cp.minItems,uniqueItems:cp.uniqueItems,enum:cp.enum,multipleOf:cp.multipleOf}},Items:{$visitor:al,fixedFields:{type:cp.type,format:cp.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:cp.default,maximum:cp.maximum,exclusiveMaximum:cp.exclusiveMaximum,minimum:cp.minimum,exclusiveMinimum:cp.exclusiveMinimum,maxLength:cp.maxLength,minLength:cp.minLength,pattern:cp.pattern,maxItems:cp.maxItems,minItems:cp.minItems,uniqueItems:cp.uniqueItems,enum:cp.enum,multipleOf:cp.multipleOf}},Responses:{$visitor:gl,fixedFields:{default:wl}},Response:{$visitor:El,fixedFields:{description:{$ref:"#/visitors/value"},schema:zl,headers:{$ref:"#/visitors/document/objects/Headers"},examples:{$ref:"#/visitors/document/objects/Example"}}},Headers:{$visitor:Pl},Example:{$visitor:Ol},Header:{$visitor:kl,fixedFields:{description:cp.description,type:cp.type,format:cp.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:cp.default,maximum:cp.maximum,exclusiveMaximum:cp.exclusiveMaximum,minimum:cp.minimum,exclusiveMinimum:cp.exclusiveMinimum,maxLength:cp.maxLength,minLength:cp.minLength,pattern:cp.pattern,maxItems:cp.maxItems,minItems:cp.minItems,uniqueItems:cp.uniqueItems,enum:cp.enum,multipleOf:cp.multipleOf}},Tag:{$visitor:Ml,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Tl,fixedFields:{$ref:$l}},Schema:{$visitor:Rl,fixedFields:{format:cp.format,title:cp.title,description:cp.description,default:cp.default,multipleOf:cp.multipleOf,maximum:cp.maximum,exclusiveMaximum:cp.exclusiveMaximum,minimum:cp.minimum,exclusiveMinimum:cp.exclusiveMinimum,maxLength:cp.maxLength,minLength:cp.minLength,pattern:cp.pattern,maxItems:cp.maxItems,minItems:cp.minItems,uniqueItems:cp.uniqueItems,maxProperties:cp.maxProperties,minProperties:cp.minProperties,required:cp.required,enum:cp.enum,type:cp.type,readOnly:cp.readOnly,items:Ll,allOf:ql,properties:Bl,additionalProperties:zl,discriminator:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},XML:{$visitor:Gl,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},Definitions:{$visitor:Wl},ParametersDefinitions:{$visitor:Xl},ResponsesDefinitions:{$visitor:Yl},SecurityDefinitions:{$visitor:ep},SecurityScheme:{$visitor:np,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},flow:{$ref:"#/visitors/value"},authorizationUrl:{$ref:"#/visitors/value"},token:{$ref:"#/visitors/value"},scopes:{$ref:"#/visitors/document/objects/Scopes"}}},Scopes:{$visitor:sp},SecurityRequirement:{$visitor:op}},extension:{$visitor:ap}}}},lp=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},pp={SwaggerElement:["content"],InfoElement:["content"],ContactElement:["content"],LicenseElement:["content"],PathsElement:["content"],PathItemElement:["content"],OperationElement:["content"],ExternalDocumentationElement:["content"],ParameterElement:["content"],ItemsElement:["content"],ExampleElement:["content"],ResponsesElement:["content"],ResponseElement:["content"],HeadersElement:["content"],HeaderElement:["content"],TagElement:["content"],ReferenceElement:["content"],JSONReferenceElement:["content"],SchemaElement:["content"],XmlElement:["content"],DefinitionsElement:["content"],ParametersDefinitionsElement:["content"],ResponsesDefinitionsElement:["content"],SecurityDefinitionsElement:["content"],SecuritySchemeElement:["content"],ScopesElement:["content"],SecurityRequirementElement:["content"],...Es},hp={namespace:e=>{const{base:t}=e;return t.register("swagger",Js),t.register("swaggerVersion",Zs),t.register("info",Qs),t.register("contact",ti),t.register("license",ri),t.register("paths",ii),t.register("pathItem",ai),t.register("operation",ui),t.register("externalDocumentation",pi),t.register("parameter",ma),t.register("items",fa),t.register("responses",_a),t.register("response",ya),t.register("headers",wa),t.register("example",Ea),t.register("header",xa),t.register("tag",Pa),t.register("reference",Oa),t.register("schema",Aa),t.register("xml",Ia),t.register("definitions",Na),t.register("parametersDefinitions",$a),t.register("responsesDefinitions",Ra),t.register("securityDefinitions",qa),t.register("securityScheme",La),t.register("scopes",Ba),t.register("securityRequirement",za),t}},mp=()=>{const e=lt(hp);return{predicates:{...s,...i,isStringElement:Jr},namespace:e}},fp=(e,{specPath:t=["visitors","document","objects","Swagger","$visitor"],plugins:n=[]}={})=>{const r=(0,oe.e)(e),s=Oi(up),i=new($e(t,s))({specObj:s});return xs(r,i),qs(i.element,n,{toolboxCreator:mp,visitorOptions:{keyMap:pp,nodeTypeGetter:lp}})},dp=e=>(t,n={})=>fp(t,{specPath:e,...n});Js.refract=dp(["visitors","document","objects","Swagger","$visitor"]),Zs.refract=dp(["visitors","document","objects","SwaggerVersion","$visitor"]),Qs.refract=dp(["visitors","document","objects","Info","$visitor"]),ti.refract=dp(["visitors","document","objects","Contact","$visitor"]),ri.refract=dp(["visitors","document","objects","License","$visitor"]),ii.refract=dp(["visitors","document","objects","Paths","$visitor"]),ai.refract=dp(["visitors","document","objects","PathItem","$visitor"]),ui.refract=dp(["visitors","document","objects","Operation","$visitor"]),pi.refract=dp(["visitors","document","objects","ExternalDocumentation","$visitor"]),ma.refract=dp(["visitors","document","objects","Parameter","$visitor"]),fa.refract=dp(["visitors","document","objects","Items","$visitor"]),_a.refract=dp(["visitors","document","objects","Responses","$visitor"]),ya.refract=dp(["visitors","document","objects","Response","$visitor"]),wa.refract=dp(["visitors","document","objects","Headers","$visitor"]),Ea.refract=dp(["visitors","document","objects","Example","$visitor"]),xa.refract=dp(["visitors","document","objects","Header","$visitor"]),Pa.refract=dp(["visitors","document","objects","Tag","$visitor"]),Oa.refract=dp(["visitors","document","objects","Reference","$visitor"]),Aa.refract=dp(["visitors","document","objects","Schema","$visitor"]),Ia.refract=dp(["visitors","document","objects","XML","$visitor"]),Na.refract=dp(["visitors","document","objects","Definitions","$visitor"]),$a.refract=dp(["visitors","document","objects","ParametersDefinitions","$visitor"]),Ra.refract=dp(["visitors","document","objects","ResponsesDefinitions","$visitor"]),qa.refract=dp(["visitors","document","objects","SecurityDefinitions","$visitor"]),La.refract=dp(["visitors","document","objects","SecurityScheme","$visitor"]),Ba.refract=dp(["visitors","document","objects","Scopes","$visitor"]),za.refract=dp(["visitors","document","objects","SecurityRequirement","$visitor"]);const _p=m(-1);const gp=class extends hi{};const yp=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new gp("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new gp("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new gp("latest method in MediaTypes class is not yet implemented.")}};class vp extends yp{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2.0",t="generic"){const n="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(n)))||this.unknownMediaType}latest(e="generic"){return _p(this.filterByFormat(e))}}const wp=new vp("application/vnd.oai.openapi;version=2.0","application/vnd.oai.openapi+json;version=2.0","application/vnd.oai.openapi+yaml;version=2.0"),bp=new vp(...wp.filterByFormat("generic"),...wp.filterByFormat("yaml")),Ep=/(?<YAML>^(["']?)swagger\2\s*:\s*(["'])(?<version_yaml>2\.0)\3(?:\s+|$))|(?<JSON>"swagger"\s*:\s*"(?<version_json>2\.0)")/m,xp=async e=>Ep.test(e)&&await(async e=>{try{return"ERROR"!==(await xt(e)).rootNode.type}catch{return!1}})(e),Sp=async(e,t={})=>{const n=d({},"refractorOpts",t),r=g(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1}={})=>{const n=await xt(e);return Ks(n,{sourceMap:t})})(e,r),{result:i}=s;if(ie(i)){const e=Js.refract(i,n);e.classes.push("result"),s.replaceResult(e)}return s},Pp=lt(hp)})(),r})()));
|