@swagger-api/apidom-parser-adapter-api-design-systems-yaml 0.93.0 → 0.94.0

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(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apidomParserAdapterApiDesignSystemsYaml=e():t.apidomParserAdapterApiDesignSystemsYaml=e()}(self,(()=>(()=>{var t={9515:(t,e,n)=>{var r=n(8761)(n(7772),"DataView");t.exports=r},9612:(t,e,n)=>{var r=n(2118),s=n(6909),i=n(8138),o=n(4174),a=n(7942);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];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,t.exports=c},235:(t,e,n)=>{var r=n(3945),s=n(1846),i=n(8028),o=n(2344),a=n(4769);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];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,t.exports=c},326:(t,e,n)=>{var r=n(8761)(n(7772),"Map");t.exports=r},6738:(t,e,n)=>{var r=n(2411),s=n(6417),i=n(6928),o=n(9493),a=n(4150);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];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,t.exports=c},2760:(t,e,n)=>{var r=n(8761)(n(7772),"Promise");t.exports=r},2143:(t,e,n)=>{var r=n(8761)(n(7772),"Set");t.exports=r},5386:(t,e,n)=>{var r=n(6738),s=n(2842),i=n(2482);function o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,t.exports=o},6571:(t,e,n)=>{var r=n(235),s=n(5243),i=n(2858),o=n(4417),a=n(8605),c=n(1418);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,t.exports=u},857:(t,e,n)=>{var r=n(7772).Symbol;t.exports=r},9162:(t,e,n)=>{var r=n(7772).Uint8Array;t.exports=r},3215:(t,e,n)=>{var r=n(8761)(n(7772),"WeakMap");t.exports=r},7552:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,s=0,i=[];++n<r;){var o=t[n];e(o,n,t)&&(i[s++]=o)}return i}},1634:(t,e,n)=>{var r=n(6473),s=n(9631),i=n(6152),o=n(3226),a=n(9045),c=n(7598),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),l=!n&&s(t),p=!n&&!l&&o(t),f=!n&&!l&&!p&&c(t),h=n||l||p||f,_=h?r(t.length,String):[],d=_.length;for(var m in t)!e&&!u.call(t,m)||h&&("length"==m||p&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,d))||_.push(m);return _}},5067:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,s=t.length;++n<r;)t[s+n]=e[n];return t}},7064:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},2218:(t,e,n)=>{var r=n(1225);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},1897:(t,e,n)=>{var r=n(5067),s=n(6152);t.exports=function(t,e,n){var i=e(t);return s(t)?i:r(i,n(t))}},3366:(t,e,n)=>{var r=n(857),s=n(2107),i=n(7157),o=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?s(t):i(t)}},5183:(t,e,n)=>{var r=n(3366),s=n(5125);t.exports=function(t){return s(t)&&"[object Arguments]"==r(t)}},8746:(t,e,n)=>{var r=n(1952),s=n(5125);t.exports=function t(e,n,i,o,a){return e===n||(null==e||null==n||!s(e)&&!s(n)?e!=e&&n!=n:r(e,n,i,o,t,a))}},1952:(t,e,n)=>{var r=n(6571),s=n(4871),i=n(1491),o=n(7416),a=n(940),c=n(6152),u=n(3226),l=n(7598),p="[object Arguments]",f="[object Array]",h="[object Object]",_=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,m,y){var g=c(t),v=c(e),b=g?f:a(t),w=v?f:a(e),E=(b=b==p?h:b)==h,x=(w=w==p?h:w)==h,S=b==w;if(S&&u(t)){if(!u(e))return!1;g=!0,E=!1}if(S&&!E)return y||(y=new r),g||l(t)?s(t,e,n,d,m,y):i(t,e,b,n,d,m,y);if(!(1&n)){var A=E&&_.call(t,"__wrapped__"),j=x&&_.call(e,"__wrapped__");if(A||j){var O=A?t.value():t,P=j?e.value():e;return y||(y=new r),m(O,P,n,d,y)}}return!!S&&(y||(y=new r),o(t,e,n,d,m,y))}},6840:(t,e,n)=>{var r=n(1049),s=n(7394),i=n(9259),o=n(7035),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||s(t))&&(r(t)?f:a).test(o(t))}},5522:(t,e,n)=>{var r=n(3366),s=n(1158),i=n(5125),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,t.exports=function(t){return i(t)&&s(t.length)&&!!o[r(t)]}},6411:(t,e,n)=>{var r=n(6001),s=n(4248),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return s(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},6473:t=>{t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},7826:t=>{t.exports=function(t){return function(e){return t(e)}}},9950:t=>{t.exports=function(t,e){return t.has(e)}},4019:(t,e,n)=>{var r=n(7772)["__core-js_shared__"];t.exports=r},4871:(t,e,n)=>{var r=n(5386),s=n(7064),i=n(9950);t.exports=function(t,e,n,o,a,c){var u=1&n,l=t.length,p=e.length;if(l!=p&&!(u&&p>l))return!1;var f=c.get(t),h=c.get(e);if(f&&h)return f==e&&h==t;var _=-1,d=!0,m=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++_<l;){var y=t[_],g=e[_];if(o)var v=u?o(g,y,_,e,t,c):o(y,g,_,t,e,c);if(void 0!==v){if(v)continue;d=!1;break}if(m){if(!s(e,(function(t,e){if(!i(m,e)&&(y===t||a(y,t,n,o,c)))return m.push(e)}))){d=!1;break}}else if(y!==g&&!a(y,g,n,o,c)){d=!1;break}}return c.delete(t),c.delete(e),d}},1491:(t,e,n)=>{var r=n(857),s=n(9162),i=n(1225),o=n(4871),a=n(5179),c=n(4207),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;t.exports=function(t,e,n,r,u,p,f){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new s(t),new s(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=a;case"[object Set]":var _=1&r;if(h||(h=c),t.size!=e.size&&!_)return!1;var d=f.get(t);if(d)return d==e;r|=2,f.set(t,e);var m=o(h(t),h(e),r,u,p,f);return f.delete(t),m;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},7416:(t,e,n)=>{var r=n(3483),s=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,o,a){var c=1&n,u=r(t),l=u.length;if(l!=r(e).length&&!c)return!1;for(var p=l;p--;){var f=u[p];if(!(c?f in e:s.call(e,f)))return!1}var h=a.get(t),_=a.get(e);if(h&&_)return h==e&&_==t;var d=!0;a.set(t,e),a.set(e,t);for(var m=c;++p<l;){var y=t[f=u[p]],g=e[f];if(i)var v=c?i(g,y,f,e,t,a):i(y,g,f,t,e,a);if(!(void 0===v?y===g||o(y,g,n,i,a):v)){d=!1;break}m||(m="constructor"==f)}if(d&&!m){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(t),a.delete(e),d}},1242:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},3483:(t,e,n)=>{var r=n(1897),s=n(633),i=n(249);t.exports=function(t){return r(t,i,s)}},7937:(t,e,n)=>{var r=n(8304);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},8761:(t,e,n)=>{var r=n(6840),s=n(8109);t.exports=function(t,e){var n=s(t,e);return r(n)?n:void 0}},2107:(t,e,n)=>{var r=n(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var s=o.call(t);return r&&(e?t[a]=n:delete t[a]),s}},633:(t,e,n)=>{var r=n(7552),s=n(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(t){return null==t?[]:(t=Object(t),r(o(t),(function(e){return i.call(t,e)})))}:s;t.exports=a},940:(t,e,n)=>{var r=n(9515),s=n(326),i=n(2760),o=n(2143),a=n(3215),c=n(3366),u=n(7035),l="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",_="[object DataView]",d=u(r),m=u(s),y=u(i),g=u(o),v=u(a),b=c;(r&&b(new r(new ArrayBuffer(1)))!=_||s&&b(new s)!=l||i&&b(i.resolve())!=p||o&&b(new o)!=f||a&&b(new a)!=h)&&(b=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return _;case m:return l;case y:return p;case g:return f;case v:return h}return e}),t.exports=b},8109:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},2118:(t,e,n)=>{var r=n(9191);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},6909:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},8138:(t,e,n)=>{var r=n(9191),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(e,t)?e[t]:void 0}},4174:(t,e,n)=>{var r=n(9191),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:s.call(e,t)}},7942:(t,e,n)=>{var r=n(9191);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},9045:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},8304:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7394:(t,e,n)=>{var r,s=n(4019),i=(r=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},6001:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},3945:t=>{t.exports=function(){this.__data__=[],this.size=0}},1846:(t,e,n)=>{var r=n(2218),s=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():s.call(e,n,1),--this.size,!0)}},8028:(t,e,n)=>{var r=n(2218);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},2344:(t,e,n)=>{var r=n(2218);t.exports=function(t){return r(this.__data__,t)>-1}},4769:(t,e,n)=>{var r=n(2218);t.exports=function(t,e){var n=this.__data__,s=r(n,t);return s<0?(++this.size,n.push([t,e])):n[s][1]=e,this}},2411:(t,e,n)=>{var r=n(9612),s=n(235),i=n(326);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||s),string:new r}}},6417:(t,e,n)=>{var r=n(7937);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6928:(t,e,n)=>{var r=n(7937);t.exports=function(t){return r(this,t).get(t)}},9493:(t,e,n)=>{var r=n(7937);t.exports=function(t){return r(this,t).has(t)}},4150:(t,e,n)=>{var r=n(7937);t.exports=function(t,e){var n=r(this,t),s=n.size;return n.set(t,e),this.size+=n.size==s?0:1,this}},5179:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},9191:(t,e,n)=>{var r=n(8761)(Object,"create");t.exports=r},4248:(t,e,n)=>{var r=n(241)(Object.keys,Object);t.exports=r},4146:(t,e,n)=>{t=n.nmd(t);var r=n(1242),s=e&&!e.nodeType&&e,i=s&&t&&!t.nodeType&&t,o=i&&i.exports===s&&r.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a},7157:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},241:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},7772:(t,e,n)=>{var r=n(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=r||s||Function("return this")();t.exports=i},2842:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2482:t=>{t.exports=function(t){return this.__data__.has(t)}},4207:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},5243:(t,e,n)=>{var r=n(235);t.exports=function(){this.__data__=new r,this.size=0}},2858:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},4417:t=>{t.exports=function(t){return this.__data__.get(t)}},8605:t=>{t.exports=function(t){return this.__data__.has(t)}},1418:(t,e,n)=>{var r=n(235),s=n(326),i=n(6738);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!s||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(t,e),this.size=n.size,this}},7035:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1225:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},9631:(t,e,n)=>{var r=n(5183),s=n(5125),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return s(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},6152:t=>{var e=Array.isArray;t.exports=e},7878:(t,e,n)=>{var r=n(1049),s=n(1158);t.exports=function(t){return null!=t&&s(t.length)&&!r(t)}},4335:(t,e,n)=>{var r=n(3366),s=n(5125);t.exports=function(t){return!0===t||!1===t||s(t)&&"[object Boolean]"==r(t)}},3226:(t,e,n)=>{t=n.nmd(t);var r=n(7772),s=n(6330),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;t.exports=c},8149:(t,e,n)=>{var r=n(8746);t.exports=function(t,e){return r(t,e)}},1049:(t,e,n)=>{var r=n(3366),s=n(9259);t.exports=function(t){if(!s(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1158:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5877:t=>{t.exports=function(t){return null===t}},537:(t,e,n)=>{var r=n(3366),s=n(5125);t.exports=function(t){return"number"==typeof t||s(t)&&"[object Number]"==r(t)}},9259:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},5125:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},5505:(t,e,n)=>{var r=n(3366),s=n(6152),i=n(5125);t.exports=function(t){return"string"==typeof t||!s(t)&&i(t)&&"[object String]"==r(t)}},7598:(t,e,n)=>{var r=n(5522),s=n(7826),i=n(4146),o=i&&i.isTypedArray,a=o?s(o):r;t.exports=a},249:(t,e,n)=>{var r=n(1634),s=n(6411),i=n(7878);t.exports=function(t){return i(t)?r(t):s(t)}},1570:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},981:t=>{t.exports=function(){return[]}},6330:t=>{t.exports=function(){return!1}},1178:(t,e,n)=>{const r=n(1570);function s(t){return"string"==typeof t?e=>e.element===t:t.constructor&&t.extend?e=>e instanceof t:t}class i{constructor(t){this.elements=t||[]}toValue(){return this.elements.map((t=>t.toValue()))}map(t,e){return this.elements.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const n=[];return this.forEach((r=>{const s=t.bind(e)(r);s&&n.push(s)})),n}filter(t,e){return t=s(t),new i(this.elements.filter(t,e))}reject(t,e){return t=s(t),new i(this.elements.filter(r(t),e))}find(t,e){return t=s(t),this.elements.find(t,e)}forEach(t,e){this.elements.forEach(t,e)}reduce(t,e){return this.elements.reduce(t,e)}includes(t){return this.elements.some((e=>e.equals(t)))}shift(){return this.elements.shift()}unshift(t){this.elements.unshift(this.refract(t))}push(t){return this.elements.push(this.refract(t)),this}add(t){this.push(t)}get(t){return this.elements[t]}getValue(t){const e=this.elements[t];if(e)return e.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]()}),t.exports=i},3026:t=>{class e{constructor(t,e){this.key=t,this.value=e}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}t.exports=e},5140:(t,e,n)=>{const r=n(5877),s=n(5505),i=n(537),o=n(4335),a=n(9259),c=n(2947),u=n(3756);class l{constructor(t){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,t&&t.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(t){return t.namespace&&t.namespace({base:this}),t.load&&t.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(t,e){return this._elements=void 0,this.elementMap[t]=e,this}unregister(t){return this._elements=void 0,delete this.elementMap[t],this}detect(t,e,n){return void 0===n||n?this.elementDetection.unshift([t,e]):this.elementDetection.push([t,e]),this}toElement(t){if(t instanceof this.Element)return t;let e;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],s=this.elementDetection[n][1];if(r(t)){e=new s(t);break}}return e}getElementClass(t){const e=this.elementMap[t];return void 0===e?this.Element:e}fromRefract(t){return this.serialiser.deserialise(t)}toRefract(t){return this.serialiser.serialise(t)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((t=>{const e=t[0].toUpperCase()+t.substr(1);this._elements[e]=this.elementMap[t]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,t.exports=l},3853:(t,e,n)=>{const r=n(1570),s=n(1178);class i extends s{map(t,e){return this.elements.map((n=>t.bind(e)(n.value,n.key,n)))}filter(t,e){return new i(this.elements.filter((n=>t.bind(e)(n.value,n.key,n))))}reject(t,e){return this.filter(r(t.bind(e)))}forEach(t,e){return this.elements.forEach(((n,r)=>{t.bind(e)(n.value,n.key,n,r)}))}keys(){return this.map(((t,e)=>e.toValue()))}values(){return this.map((t=>t.toValue()))}}t.exports=i},3756:(t,e,n)=>{const r=n(6420),s=n(4152),i=n(9542),o=n(3710),a=n(3312),c=n(1641),u=n(8858),l=n(3860),p=n(5202),f=n(2320),h=n(1178),_=n(3853),d=n(3026);function m(t){if(t instanceof r)return t;if("string"==typeof t)return new i(t);if("number"==typeof t)return new o(t);if("boolean"==typeof t)return new a(t);if(null===t)return new s;if(Array.isArray(t))return new c(t.map(m));if("object"==typeof t){return new l(t)}return t}r.prototype.ObjectElement=l,r.prototype.RefElement=f,r.prototype.MemberElement=u,r.prototype.refract=m,h.prototype.refract=m,t.exports={Element:r,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:f,refract:m,ArraySlice:h,ObjectSlice:_,KeyValuePair:d}},5202:(t,e,n)=>{const r=n(6420);t.exports=class extends r{constructor(t,e,n){super(t||[],e,n),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(t){this.attributes.set("relation",t)}get href(){return this.attributes.get("href")}set href(t){this.attributes.set("href",t)}}},2320:(t,e,n)=>{const r=n(6420);t.exports=class extends r{constructor(t,e,n){super(t||[],e,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(t){this.attributes.set("path",t)}}},7952:(t,e,n)=>{const r=n(5140),s=n(3756);e.lS=r,e.KeyValuePair=n(3026),e.O4=s.ArraySlice,e.rm=s.ObjectSlice,e.W_=s.Element,e.RP=s.StringElement,e.VL=s.NumberElement,e.hh=s.BooleanElement,e.zr=s.NullElement,e.ON=s.ArrayElement,e.Sb=s.ObjectElement,e.c6=s.MemberElement,e.tK=s.RefElement,e.EA=s.LinkElement,e.Qc=s.refract,n(2947),n(8910)},1641:(t,e,n)=>{const r=n(1570),s=n(6420),i=n(1178);class o extends s{constructor(t,e,n){super(t||[],e,n),this.element="array"}primitive(){return"array"}get(t){return this.content[t]}getValue(t){const e=this.get(t);if(e)return e.toValue()}getIndex(t){return this.content[t]}set(t,e){return this.content[t]=this.refract(e),this}remove(t){const e=this.content.splice(t,1);return e.length?e[0]:null}map(t,e){return this.content.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const n=[];return this.forEach((r=>{const s=t.bind(e)(r);s&&n.push(s)})),n}filter(t,e){return new i(this.content.filter(t,e))}reject(t,e){return this.filter(r(t),e)}reduce(t,e){let n,r;void 0!==e?(n=0,r=this.refract(e)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let e=n;e<this.length;e+=1){const n=this.content[e];r="object"===this.primitive()?this.refract(t(r,n.value,n.key,n,this)):this.refract(t(r,n,e,this))}return r}forEach(t,e){this.content.forEach(((n,r)=>{t.bind(e)(n,this.refract(r))}))}shift(){return this.content.shift()}unshift(t){this.content.unshift(this.refract(t))}push(t){return this.content.push(this.refract(t)),this}add(t){this.push(t)}findElements(t,e){const n=e||{},r=!!n.recursive,s=void 0===n.results?[]:n.results;return this.forEach(((e,n,i)=>{r&&void 0!==e.findElements&&e.findElements(t,{results:s,recursive:r}),t(e,n,i)&&s.push(e)})),s}find(t){return new i(this.findElements(t,{recursive:!0}))}findByElement(t){return this.find((e=>e.element===t))}findByClass(t){return this.find((e=>e.classes.includes(t)))}getById(t){return this.find((e=>e.id.toValue()===t)).first}includes(t){return this.content.some((e=>e.equals(t)))}contains(t){return this.includes(t)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(t){return new this.constructor(this.content.concat(t.content))}"fantasy-land/concat"(t){return this.concat(t)}"fantasy-land/map"(t){return new this.constructor(this.map(t))}"fantasy-land/chain"(t){return this.map((e=>t(e)),this).reduce(((t,e)=>t.concat(e)),this.empty())}"fantasy-land/filter"(t){return new this.constructor(this.content.filter(t))}"fantasy-land/reduce"(t,e){return this.content.reduce(t,e)}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]()}),t.exports=o},3312:(t,e,n)=>{const r=n(6420);t.exports=class extends r{constructor(t,e,n){super(t,e,n),this.element="boolean"}primitive(){return"boolean"}}},6420:(t,e,n)=>{const r=n(8149),s=n(3026),i=n(1178);class o{constructor(t,e,n){e&&(this.meta=e),n&&(this.attributes=n),this.content=t}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((t=>{t.parent=this,t.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const t=new this.constructor;return t.element=this.element,this.meta.length&&(t._meta=this.meta.clone()),this.attributes.length&&(t._attributes=this.attributes.clone()),this.content?this.content.clone?t.content=this.content.clone():Array.isArray(this.content)?t.content=this.content.map((t=>t.clone())):t.content=this.content:t.content=this.content,t}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((t=>t.toValue()),this):this.content}toRef(t){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const e=new this.RefElement(this.id.toValue());return t&&(e.path=t),e}findRecursive(...t){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 e=t.pop();let n=new i;const r=(t,e)=>(t.push(e),t),o=(t,n)=>{n.element===e&&t.push(n);const i=n.findRecursive(e);return i&&i.reduce(r,t),n.content instanceof s&&(n.content.key&&o(t,n.content.key),n.content.value&&o(t,n.content.value)),t};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),t.isEmpty||(n=n.filter((e=>{let n=e.parents.map((t=>t.element));for(const e in t){const r=t[e],s=n.indexOf(r);if(-1===s)return!1;n=n.splice(0,s)}return!0}))),n}set(t){return this.content=t,this}equals(t){return r(this.toValue(),t)}getMetaProperty(t,e){if(!this.meta.hasKey(t)){if(this.isFrozen){const t=this.refract(e);return t.freeze(),t}this.meta.set(t,e)}return this.meta.get(t)}setMetaProperty(t,e){this.meta.set(t,e)}get element(){return this._storedElement||"element"}set element(t){this._storedElement=t}get content(){return this._content}set content(t){if(t instanceof o)this._content=t;else if(t instanceof i)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof s)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._meta=new this.ObjectElement}return this._meta}set meta(t){t instanceof this.ObjectElement?this._meta=t:this.meta.set(t||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._attributes=new this.ObjectElement}return this._attributes}set attributes(t){t instanceof this.ObjectElement?this._attributes=t:this.attributes.set(t||{})}get id(){return this.getMetaProperty("id","")}set id(t){this.setMetaProperty("id",t)}get classes(){return this.getMetaProperty("classes",[])}set classes(t){this.setMetaProperty("classes",t)}get title(){return this.getMetaProperty("title","")}set title(t){this.setMetaProperty("title",t)}get description(){return this.getMetaProperty("description","")}set description(t){this.setMetaProperty("description",t)}get links(){return this.getMetaProperty("links",[])}set links(t){this.setMetaProperty("links",t)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:t}=this;const e=new i;for(;t;)e.push(t),t=t.parent;return e}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const t=new i([this.content.key]);return this.content.value&&t.push(this.content.value),t}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const t=new i;return this.children.forEach((e=>{t.push(e),e.recursiveChildren.forEach((e=>{t.push(e)}))})),t}}t.exports=o},8858:(t,e,n)=>{const r=n(3026),s=n(6420);t.exports=class extends s{constructor(t,e,n,s){super(new r,n,s),this.element="member",this.key=t,this.value=e}get key(){return this.content.key}set key(t){this.content.key=this.refract(t)}get value(){return this.content.value}set value(t){this.content.value=this.refract(t)}}},4152:(t,e,n)=>{const r=n(6420);t.exports=class extends r{constructor(t,e,n){super(t||null,e,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(t,e,n)=>{const r=n(6420);t.exports=class extends r{constructor(t,e,n){super(t,e,n),this.element="number"}primitive(){return"number"}}},3860:(t,e,n)=>{const r=n(1570),s=n(9259),i=n(1641),o=n(8858),a=n(3853);t.exports=class extends i{constructor(t,e,n){super(t||[],e,n),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((t,e)=>(t[e.key.toValue()]=e.value?e.value.toValue():void 0,t)),{})}get(t){const e=this.getMember(t);if(e)return e.value}getMember(t){if(void 0!==t)return this.content.find((e=>e.key.toValue()===t))}remove(t){let e=null;return this.content=this.content.filter((n=>n.key.toValue()!==t||(e=n,!1))),e}getKey(t){const e=this.getMember(t);if(e)return e.key}set(t,e){if(s(t))return Object.keys(t).forEach((e=>{this.set(e,t[e])})),this;const n=t,r=this.getMember(n);return r?r.value=e:this.content.push(new o(n,e)),this}keys(){return this.content.map((t=>t.key.toValue()))}values(){return this.content.map((t=>t.value.toValue()))}hasKey(t){return this.content.some((e=>e.key.equals(t)))}items(){return this.content.map((t=>[t.key.toValue(),t.value.toValue()]))}map(t,e){return this.content.map((n=>t.bind(e)(n.value,n.key,n)))}compactMap(t,e){const n=[];return this.forEach(((r,s,i)=>{const o=t.bind(e)(r,s,i);o&&n.push(o)})),n}filter(t,e){return new a(this.content).filter(t,e)}reject(t,e){return this.filter(r(t),e)}forEach(t,e){return this.content.forEach((n=>t.bind(e)(n.value,n.key,n)))}}},9542:(t,e,n)=>{const r=n(6420);t.exports=class extends r{constructor(t,e,n){super(t,e,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(t,e,n)=>{const r=n(2947);t.exports=class extends r{serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);let e;t._attributes&&t.attributes.get("variable")&&(e=t.attributes.get("variable"));const n={element:t.element};t._meta&&t._meta.length>0&&(n.meta=this.serialiseObject(t.meta));const r="enum"===t.element||-1!==t.attributes.keys().indexOf("enumerations");if(r){const e=this.enumSerialiseAttributes(t);e&&(n.attributes=e)}else if(t._attributes&&t._attributes.length>0){let{attributes:r}=t;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===t.element&&e&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(t,n);else if(this[`${t.element}SerialiseContent`])n.content=this[`${t.element}SerialiseContent`](t,n);else if(void 0!==t.content){let r;e&&t.content.key?(r=t.content.clone(),r.key.attributes.set("variable",e),r=this.serialiseContent(r)):r=this.serialiseContent(t.content),this.shouldSerialiseContent(t,r)&&(n.content=r)}else this.shouldSerialiseContent(t,t.content)&&t instanceof this.namespace.elements.Array&&(n.content=[]);return n}shouldSerialiseContent(t,e){return"parseResult"===t.element||"httpRequest"===t.element||"httpResponse"===t.element||"category"===t.element||"link"===t.element||void 0!==e&&(!Array.isArray(e)||0!==e.length)}refSerialiseContent(t,e){return delete e.attributes,{href:t.toValue(),path:t.path.toValue()}}sourceMapSerialiseContent(t){return t.toValue()}dataStructureSerialiseContent(t){return[this.serialiseContent(t.content)]}enumSerialiseAttributes(t){const e=t.attributes.clone(),n=e.remove("enumerations")||new this.namespace.elements.Array([]),r=e.get("default");let s=e.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),e.set("default",new this.namespace.elements.Array([r.content]))),s.forEach((t=>{t.content&&t.content.element&&t.content.attributes.remove("typeAttributes")})),t.content&&0!==n.length&&s.unshift(t.content),s=s.map((t=>t instanceof this.namespace.elements.Array?[t]:new this.namespace.elements.Array([t.content]))),s.length&&e.set("samples",s),e.length>0)return this.serialiseObject(e)}enumSerialiseContent(t){if(t._attributes){const e=t.attributes.get("enumerations");if(e&&e.length>0)return e.content.map((t=>{const e=t.clone();return e.attributes.remove("typeAttributes"),this.serialise(e)}))}if(t.content){const e=t.content.clone();return e.attributes.remove("typeAttributes"),[this.serialise(e)]}return[]}deserialise(t){if("string"==typeof t)return new this.namespace.elements.String(t);if("number"==typeof t)return new this.namespace.elements.Number(t);if("boolean"==typeof t)return new this.namespace.elements.Boolean(t);if(null===t)return new this.namespace.elements.Null;if(Array.isArray(t))return new this.namespace.elements.Array(t.map(this.deserialise,this));const e=this.namespace.getElementClass(t.element),n=new e;n.element!==t.element&&(n.element=t.element),t.meta&&this.deserialiseObject(t.meta,n.meta),t.attributes&&this.deserialiseObject(t.attributes,n.attributes);const r=this.deserialiseContent(t.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let t=n.attributes.get("samples");if(n.attributes.remove("samples"),t){const r=t;t=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const s=new e(r);s.element=n.element,t.push(s)}))}));const s=t.shift();n.content=s?s.content:void 0,n.attributes.set("samples",t)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const t=new e(r);t.element=n.element,n.attributes.set("default",t)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const t=n.attributes.get("meta");t&&(n.attributes.set("metadata",t),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(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}return t&&t.map?t.map(this.serialise,this):t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}shouldRefract(t){return!!(t._attributes&&t.attributes.keys().length||t._meta&&t.meta.keys().length)||"enum"!==t.element&&(t.element!==t.primitive()||"member"===t.element)}convertKeyToRefract(t,e){return this.shouldRefract(e)?this.serialise(e):"enum"===e.element?this.serialiseEnum(e):"array"===e.element?e.map((e=>this.shouldRefract(e)||"default"===t?this.serialise(e):"array"===e.element||"object"===e.element||"enum"===e.element?e.children.map((t=>this.serialise(t))):e.toValue())):"object"===e.element?(e.content||[]).map(this.serialise,this):e.toValue()}serialiseEnum(t){return t.children.map((t=>this.serialise(t)))}serialiseObject(t){const e={};return t.forEach(((t,n)=>{if(t){const r=n.toValue();e[r]=this.convertKeyToRefract(r,t)}})),e}deserialiseObject(t,e){Object.keys(t).forEach((n=>{e.set(n,this.deserialise(t[n]))}))}}},2947:t=>{t.exports=class{constructor(t){this.namespace=t||new this.Namespace}serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);const e={element:t.element};t._meta&&t._meta.length>0&&(e.meta=this.serialiseObject(t.meta)),t._attributes&&t._attributes.length>0&&(e.attributes=this.serialiseObject(t.attributes));const n=this.serialiseContent(t.content);return void 0!==n&&(e.content=n),e}deserialise(t){if(!t.element)throw new Error("Given value is not an object containing an element name");const e=new(this.namespace.getElementClass(t.element));e.element!==t.element&&(e.element=t.element),t.meta&&this.deserialiseObject(t.meta,e.meta),t.attributes&&this.deserialiseObject(t.attributes,e.attributes);const n=this.deserialiseContent(t.content);return void 0===n&&null!==e.content||(e.content=n),e}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}if(t&&t.map){if(0===t.length)return;return t.map(this.serialise,this)}return t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}serialiseObject(t){const e={};if(t.forEach(((t,n)=>{t&&(e[n.toValue()]=this.serialise(t))})),0!==Object.keys(e).length)return e}deserialiseObject(t,e){Object.keys(t).forEach((n=>{e.set(n,this.deserialise(t[n]))}))}}},2396:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0,function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"}(n=e.ErrorType||(e.ErrorType={})),e.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"]])},2770:(t,e,n)=>{"use strict";e.S6=void 0;const r=n(2396);function s(t,e,n){const s=function(t){return t.match(/[^a-f0-9]/i)?NaN:parseInt(t,16)}(t);if(Number.isNaN(s)||void 0!==n&&n!==t.length)throw new SyntaxError(r.errorMessages.get(e));return s}function i(t,e){const n=s(t,r.ErrorType.MalformedUnicode,4);if(void 0!==e){const t=s(e,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(n,t)}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(t,e=!1){return t.replace(a,(function(t,n,a,c,u,l,p,f,h){if(void 0!==n)return"\\";if(void 0!==a)return function(t){const e=s(t,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}(a);if(void 0!==c)return function(t){if("{"!==(e=t).charAt(0)||"}"!==e.charAt(e.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var e;const n=s(t.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(n)}catch(t){throw t instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):t}}(c);if(void 0!==u)return i(u,l);if(void 0!==p)return i(p);if("0"===f)return"\0";if(void 0!==f)return function(t,e=!1){if(e)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const n=parseInt(t,8);return String.fromCharCode(n)}(f,!e);if(void 0!==h)return _=h,o.get(_)||_;var _;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}e.S6=c},9794:(t,e,n)=>{var r=void 0!==r?r:{},s=function(){var e,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 e||(r=Object.assign({},r,o),e=new Promise((e=>{var o,a={};for(o in r)r.hasOwnProperty(o)&&(a[o]=r[o]);var c,u,l,p,f=[],h="./this.program",_=function(t,e){throw e};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,m,y,g,v,b="";c?(b=p?n(6287).dirname(b)+"/":"//",d=function(t,e){return g||(g=n(5530)),v||(v=n(6287)),t=v.normalize(t),g.readFileSync(t,e?null:"utf8")},y=function(t){var e=d(t,!0);return e.buffer||(e=new Uint8Array(e)),T(e.buffer),e},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),f=process.argv.slice(2),t.exports=r,_=function(t){process.exit(t)},r.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=function(t){return read(t)}),y=function(t){var e;return"function"==typeof readbuffer?new Uint8Array(readbuffer(t)):(T("object"==typeof(e=read(t,"binary"))),e)},"undefined"!=typeof scriptArgs?f=scriptArgs:void 0!==arguments&&(f=arguments),"function"==typeof quit&&(_=function(t){quit(t)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||p)&&(p?b=self.location.href:void 0!==s&&s.currentScript&&(b=s.currentScript.src),b=0!==b.indexOf("blob:")?b.substr(0,b.lastIndexOf("/")+1):"",d=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},p&&(y=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),m=function(t,e,n){var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?e(r.response):n()},r.onerror=n,r.send(null)}),r.print||console.log.bind(console);var w=r.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(r[o]=a[o]);a=null,r.arguments&&(f=r.arguments),r.thisProgram&&(h=r.thisProgram),r.quit&&(_=r.quit);var E,x=16,S=[];function A(t,e){if(!E){E=new WeakMap;for(var n=0;n<H.length;n++){var r=H.get(n);r&&E.set(r,n)}}if(E.has(t))return E.get(t);var s=function(){if(S.length)return S.pop();try{H.grow(1)}catch(t){if(!(t instanceof RangeError))throw t;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return H.length-1}();try{H.set(s,t)}catch(n){if(!(n instanceof TypeError))throw n;var i=function(t,e){if("function"==typeof WebAssembly.Function){for(var n={i:"i32",j:"i64",f:"f32",d:"f64"},r={parameters:[],results:"v"==e[0]?[]:[n[e[0]]]},s=1;s<e.length;++s)r.parameters.push(n[e[s]]);return new WebAssembly.Function(r,t)}var i=[1,0,1,96],o=e.slice(0,1),a=e.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:t}}).exports.f}(t,e);H.set(s,i)}return E.set(t,s),s}var j,O=r.dynamicLibraries||[];r.wasmBinary&&(j=r.wasmBinary);var P,k=r.noExitRuntime||!0;function N(t,e,n,r){switch("*"===(n=n||"i8").charAt(n.length-1)&&(n="i32"),n){case"i1":case"i8":R[t>>0]=e;break;case"i16":q[t>>1]=e;break;case"i32":L[t>>2]=e;break;case"i64":lt=[e>>>0,(ut=e,+Math.abs(ut)>=1?ut>0?(0|Math.min(+Math.floor(ut/4294967296),4294967295))>>>0:~~+Math.ceil((ut-+(~~ut>>>0))/4294967296)>>>0:0)],L[t>>2]=lt[0],L[t+4>>2]=lt[1];break;case"float":V[t>>2]=e;break;case"double":D[t>>3]=e;break;default:at("invalid type for setValue: "+n)}}function M(t,e,n){switch("*"===(e=e||"i8").charAt(e.length-1)&&(e="i32"),e){case"i1":case"i8":return R[t>>0];case"i16":return q[t>>1];case"i32":case"i64":return L[t>>2];case"float":return V[t>>2];case"double":return D[t>>3];default:at("invalid type for getValue: "+e)}return null}"object"!=typeof WebAssembly&&at("no native wasm support detected");var I=!1;function T(t,e){t||at("Assertion failed: "+e)}var C,R,F,q,L,V,D,$="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(t,e,n){for(var r=e+n,s=e;t[s]&&!(s>=r);)++s;if(s-e>16&&t.subarray&&$)return $.decode(t.subarray(e,s));for(var i="";e<s;){var o=t[e++];if(128&o){var a=63&t[e++];if(192!=(224&o)){var c=63&t[e++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&t[e++])<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function z(t,e){return t?B(F,t,e):""}function U(t,e,n,r){if(!(r>0))return 0;for(var s=n,i=n+r-1,o=0;o<t.length;++o){var a=t.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),a<=127){if(n>=i)break;e[n++]=a}else if(a<=2047){if(n+1>=i)break;e[n++]=192|a>>6,e[n++]=128|63&a}else if(a<=65535){if(n+2>=i)break;e[n++]=224|a>>12,e[n++]=128|a>>6&63,e[n++]=128|63&a}else{if(n+3>=i)break;e[n++]=240|a>>18,e[n++]=128|a>>12&63,e[n++]=128|a>>6&63,e[n++]=128|63&a}}return e[n]=0,n-s}function G(t,e,n){return U(t,F,e,n)}function K(t){for(var e=0,n=0;n<t.length;++n){var r=t.charCodeAt(n);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function W(t){var e=K(t)+1,n=zt(e);return U(t,R,n,e),n}function Z(t){C=t,r.HEAP8=R=new Int8Array(t),r.HEAP16=q=new Int16Array(t),r.HEAP32=L=new Int32Array(t),r.HEAPU8=F=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=V=new Float32Array(t),r.HEAPF64=D=new Float64Array(t)}var Y=r.INITIAL_MEMORY||33554432;(P=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:Y/65536,maximum:32768}))&&(C=P.buffer),Y=C.byteLength,Z(C);var H=new WebAssembly.Table({initial:17,element:"anyfunc"}),Q=[],X=[],J=[],tt=[],et=!1,nt=0,rt=null,st=null;function it(t){nt++,r.monitorRunDependencies&&r.monitorRunDependencies(nt)}function ot(t){if(nt--,r.monitorRunDependencies&&r.monitorRunDependencies(nt),0==nt&&(null!==rt&&(clearInterval(rt),rt=null),st)){var e=st;st=null,e()}}function at(t){throw r.onAbort&&r.onAbort(t),w(t+=""),I=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}r.preloadedImages={},r.preloadedAudios={},r.preloadedWasm={};var ct,ut,lt;function pt(t){return t.startsWith("data:application/octet-stream;base64,")}function ft(t){return t.startsWith("file://")}function ht(t){try{if(t==ct&&j)return new Uint8Array(j);if(y)return y(t);throw"both async and sync fetching of the wasm failed"}catch(t){at(t)}}pt(ct="tree-sitter.wasm")||(ct=function(t){return r.locateFile?r.locateFile(t,b):b+t}(ct));var _t={},dt={get:function(t,e){return _t[e]||(_t[e]=new WebAssembly.Global({value:"i32",mutable:!0})),_t[e]}};function mt(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?H.get(n)():H.get(n)(e.arg):n(void 0===e.arg?null:e.arg)}else e(r)}}function yt(t){var e=0;function n(){for(var n=0,r=1;;){var s=t[e++];if(n+=(127&s)*r,r*=128,!(128&s))break}return n}if(t instanceof WebAssembly.Module){var r=WebAssembly.Module.customSections(t,"dylink");T(0!=r.length,"need dylink section"),t=new Int8Array(r[0])}else T(1836278016==new Uint32Array(new Uint8Array(t.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===t[8],"need the dylink section to be first"),e=9,n(),T(6===t[e]),T(t[++e]==="d".charCodeAt(0)),T(t[++e]==="y".charCodeAt(0)),T(t[++e]==="l".charCodeAt(0)),T(t[++e]==="i".charCodeAt(0)),T(t[++e]==="n".charCodeAt(0)),T(t[++e]==="k".charCodeAt(0)),e++;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=t.subarray(e,e+a);e+=a;var u=B(c,0);s.neededDynlibs.push(u)}return s}var gt=0;function vt(){return k||gt>0}function bt(t){return 0==t.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(t)?t:"_"+t}function wt(t,e){for(var n in t)if(t.hasOwnProperty(n)){Lt.hasOwnProperty(n)||(Lt[n]=t[n]);var s=bt(n);r.hasOwnProperty(s)||(r[s]=t[n])}}var Et={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xt=5250880;function St(t){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(t)}function At(t,e){var n={};for(var r in t){var s=t[r];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=e),n[r]=s}return function(t){for(var e in t)if(!St(e)){var n=!1,r=t[e];e.startsWith("orig$")&&(e=e.split("$")[1],n=!0),_t[e]||(_t[e]=new WebAssembly.Global({value:"i32",mutable:!0})),(n||0==_t[e].value)&&("function"==typeof r?_t[e].value=A(r):"number"==typeof r?_t[e].value=r:w("unhandled export type for `"+e+"`: "+typeof r))}}(n),n}function jt(t,e){var n,s;return e&&(n=Lt["orig$"+t]),n||(n=Lt[t]),n||(n=r[bt(t)]),!n&&t.startsWith("invoke_")&&(s=t.split("_")[1],n=function(){var t=$t();try{return function(t,e,n){return t.includes("j")?function(t,e,n){var s=r["dynCall_"+t];return n&&n.length?s.apply(null,[e].concat(n)):s.call(null,e)}(t,e,n):H.get(e).apply(null,n)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(e){if(Bt(t),e!==e+0&&"longjmp"!==e)throw e;Ut(1,0)}}),n}function Ot(t,e){var n=yt(t);function r(){var r=Math.pow(2,n.memoryAlign);r=Math.max(r,x);var s,i,o,a=(s=function(t){if(et)return Vt(t);var e=xt,n=e+t+15&-16;return xt=n,_t.__heap_base.value=n,e}(n.memorySize+r),(i=r)||(i=x),Math.ceil(s/i)*i),c=H.length;H.grow(n.tableSize);for(var u=a;u<a+n.memorySize;u++)R[u]=0;for(u=c;u<c+n.tableSize;u++)H.set(u,null);var l=new Proxy({},{get:function(t,e){switch(e){case"__memory_base":return a;case"__table_base":return c}return e in Lt?Lt[e]:(e in t||(t[e]=function(){return n||(n=function(t){var e=jt(t,!1);return e||(e=o[t]),e}(e)),n.apply(null,arguments)}),t[e]);var n}}),p={"GOT.mem":new Proxy({},dt),"GOT.func":new Proxy({},dt),env:l,wasi_snapshot_preview1:l};function f(t){for(var r=0;r<n.tableSize;r++){var s=H.get(c+r);s&&E.set(s,c+r)}o=At(t.exports,a),e.allowUndefined||kt();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(et?i():X.push(i)),o}if(e.loadAsync){if(t instanceof WebAssembly.Module){var h=new WebAssembly.Instance(t,p);return Promise.resolve(f(h))}return WebAssembly.instantiate(t,p).then((function(t){return f(t.instance)}))}var _=t instanceof WebAssembly.Module?t:new WebAssembly.Module(t);return f(h=new WebAssembly.Instance(_,p))}return e.loadAsync?n.neededDynlibs.reduce((function(t,n){return t.then((function(){return Pt(n,e)}))}),Promise.resolve()).then((function(){return r()})):(n.neededDynlibs.forEach((function(t){Pt(t,e)})),r())}function Pt(t,e){"__main__"!=t||Et.loadedLibNames[t]||(Et.loadedLibs[-1]={refcount:1/0,name:"__main__",module:r.asm,global:!0},Et.loadedLibNames.__main__=-1),e=e||{global:!0,nodelete:!0};var n,s=Et.loadedLibNames[t];if(s)return n=Et.loadedLibs[s],e.global&&!n.global&&(n.global=!0,"loading"!==n.module&&wt(n.module)),e.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,e.loadAsync?Promise.resolve(s):s;function i(t){if(e.fs){var n=e.fs.readFile(t,{encoding:"binary"});return n instanceof Uint8Array||(n=new Uint8Array(n)),e.loadAsync?Promise.resolve(n):n}return e.loadAsync?(r=t,fetch(r,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load binary file at '"+r+"'";return t.arrayBuffer()})).then((function(t){return new Uint8Array(t)}))):y(t);var r}function o(){if(void 0!==r.preloadedWasm&&void 0!==r.preloadedWasm[t]){var n=r.preloadedWasm[t];return e.loadAsync?Promise.resolve(n):n}return e.loadAsync?i(t).then((function(t){return Ot(t,e)})):Ot(i(t),e)}function a(t){n.global&&wt(t),n.module=t}return s=Et.nextHandle++,n={refcount:e.nodelete?1/0:1,name:t,module:"loading",global:e.global},Et.loadedLibNames[t]=s,Et.loadedLibs[s]=n,e.loadAsync?o().then((function(t){return a(t),s})):(a(o()),s)}function kt(){for(var t in _t)if(0==_t[t].value){var e=jt(t,!0);"function"==typeof e?_t[t].value=A(e,e.sig):"number"==typeof e?_t[t].value=e:T(!1,"bad export type for `"+t+"`: "+typeof e)}}r.___heap_base=xt;var Nt,Mt=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function It(){at()}r._abort=It,It.sig="v",Nt=c?function(){var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Tt(t,e){var n;if(0===t)n=Date.now();else{if(1!==t&&4!==t)return 28,L[Dt()>>2]=28,-1;n=Nt()}return L[e>>2]=n/1e3|0,L[e+4>>2]=n%1e3*1e3*1e3|0,0}function Ct(t){try{return P.grow(t-C.byteLength+65535>>>16),Z(P.buffer),1}catch(t){}}function Rt(t){Zt(t)}function Ft(t){}Tt.sig="iii",Rt.sig="vi",Ft.sig="vi";var qt,Lt={__heap_base:xt,__indirect_function_table:H,__memory_base:1024,__stack_pointer:Mt,__table_base:1,abort:It,clock_gettime:Tt,emscripten_memcpy_big:function(t,e,n){F.copyWithin(t,e,e+n)},emscripten_resize_heap:function(t){var e,n=F.length;if((t>>>=0)>2147483648)return!1;for(var r=1;r<=4;r*=2){var s=n*(1+.2/r);if(s=Math.min(s,t+100663296),Ct(Math.min(2147483648,((e=Math.max(t,s))%65536>0&&(e+=65536-e%65536),e))))return!0}return!1},exit:Rt,memory:P,setTempRet0:Ft,tree_sitter_log_callback:function(t,e){if(ue){const n=z(e);ue(n,0!==t)}},tree_sitter_parse_callback:function(t,e,n,r,s){var i=ce(e,{row:n,column:r});"string"==typeof i?(N(s,i.length,"i32"),function(t,e,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=(n-=2)<2*t.length?n/2:t.length,s=0;s<r;++s){var i=t.charCodeAt(s);q[e>>1]=i,e+=2}q[e>>1]=0}(i,t,10240)):N(s,0,"i32")}},Vt=(function(){var t={env:Lt,wasi_snapshot_preview1:Lt,"GOT.mem":new Proxy(Lt,dt),"GOT.func":new Proxy(Lt,dt)};function e(t,e){var n=t.exports;n=At(n,1024),r.asm=n;var s,i=yt(e);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),wt(n),s=r.asm.__wasm_call_ctors,X.unshift(s),ot()}function n(t){e(t.instance,t.module)}function s(e){return function(){if(!j&&(l||p)){if("function"==typeof fetch&&!ft(ct))return fetch(ct,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+ct+"'";return t.arrayBuffer()})).catch((function(){return ht(ct)}));if(m)return new Promise((function(t,e){m(ct,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return ht(ct)}))}().then((function(e){return WebAssembly.instantiate(e,t)})).then(e,(function(t){w("failed to asynchronously prepare wasm: "+t),at(t)}))}if(it(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(t){return w("Module.instantiateWasm callback failed with error: "+t),!1}j||"function"!=typeof WebAssembly.instantiateStreaming||pt(ct)||ft(ct)||"function"!=typeof fetch?s(n):fetch(ct,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(n,(function(t){return w("wasm streaming compile failed: "+t),w("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(Vt=r._malloc=r.asm.malloc).apply(null,arguments)}),Dt=(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(Dt=r.___errno_location=r.asm.__errno_location).apply(null,arguments)}),$t=(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($t=r.stackSave=r.asm.stackSave).apply(null,arguments)}),Bt=r.stackRestore=function(){return(Bt=r.stackRestore=r.asm.stackRestore).apply(null,arguments)},zt=r.stackAlloc=function(){return(zt=r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},Ut=r._setThrew=function(){return(Ut=r._setThrew=r.asm.setThrew).apply(null,arguments)};function Gt(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}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(t,e){var n;return n=1==e?zt(t.length):Vt(t.length),t.subarray||t.slice?F.set(t,n):F.set(new Uint8Array(t),n),n},st=function t(){qt||Wt(),qt||(st=t)};var Kt=!1;function Wt(t){function e(){qt||(qt=!0,r.calledRun=!0,I||(et=!0,mt(X),mt(J),r.onRuntimeInitialized&&r.onRuntimeInitialized(),Yt&&function(t){var e=r._main;if(e){var n=(t=t||[]).length+1,s=zt(4*(n+1));L[s>>2]=W(h);for(var i=1;i<n;i++)L[(s>>2)+i]=W(t[i-1]);L[(s>>2)+n]=0;try{Zt(e(n,s),!0)}catch(t){if(t instanceof Gt)return;if("unwind"==t)return;var o=t;t&&"object"==typeof t&&t.stack&&(o=[t,t.stack]),w("exception thrown: "+o),_(1,t)}}}(t),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),tt.unshift(t);var t;mt(tt)}()))}t=t||f,nt>0||!Kt&&(function(){if(O.length){if(!y)return it(),void O.reduce((function(t,e){return t.then((function(){return Pt(e,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){ot(),kt()}));O.forEach((function(t){Pt(t,{global:!0,nodelete:!0,allowUndefined:!0})})),kt()}else kt()}(),Kt=!0,nt>0)||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),Q.unshift(t);var t;mt(Q)}(),nt>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),e()}),1)):e()))}function Zt(t,e){e&&vt()&&0===t||(vt()||(r.onExit&&r.onExit(t),I=!0),_(t,new Gt(t)))}if(r.run=Wt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();var Yt=!0;r.noInitialRun&&(Yt=!1),Wt();const Ht=r,Qt={},Xt=4,Jt=5*Xt,te=2*Xt,ee=2*Xt+2*te,ne={row:0,column:0},re=/[\w-.]*/g,se=/^_?tree_sitter_\w+/;var ie,oe,ae,ce,ue;class le{static init(){ae=Ht._ts_init(),ie=M(ae,"i32"),oe=M(ae+Xt,"i32")}initialize(){Ht._ts_parser_new_wasm(),this[0]=M(ae,"i32"),this[1]=M(ae+Xt,"i32")}delete(){Ht._ts_parser_delete(this[0]),Ht._free(this[1]),this[0]=0,this[1]=0}setLanguage(t){let e;if(t){if(t.constructor!==_e)throw new Error("Argument must be a Language");{e=t[0];const n=Ht._ts_language_version(e);if(n<oe||ie<n)throw new Error(`Incompatible language version ${n}. Compatibility range ${oe} through ${ie}.`)}}else e=0,t=null;return this.language=t,Ht._ts_parser_set_language(this[0],e),this}getLanguage(){return this.language}parse(t,e,n){if("string"==typeof t)ce=(e,n,r)=>t.slice(e,r);else{if("function"!=typeof t)throw new Error("Argument must be a string or a function");ce=t}this.logCallback?(ue=this.logCallback,Ht._ts_parser_enable_logger_wasm(this[0],1)):(ue=null,Ht._ts_parser_enable_logger_wasm(this[0],0));let r=0,s=0;if(n&&n.includedRanges){r=n.includedRanges.length;let t=s=Ht._calloc(r,ee);for(let e=0;e<r;e++)je(t,n.includedRanges[e]),t+=ee}const i=Ht._ts_parser_parse_wasm(this[0],this[1],e?e[0]:0,s,r);if(!i)throw ce=null,ue=null,new Error("Parsing failed");const o=new pe(Qt,i,this.language,ce);return ce=null,ue=null,o}reset(){Ht._ts_parser_reset(this[0])}setTimeoutMicros(t){Ht._ts_parser_set_timeout_micros(this[0],t)}getTimeoutMicros(){return Ht._ts_parser_timeout_micros(this[0])}setLogger(t){if(t){if("function"!=typeof t)throw new Error("Logger callback must be a function")}else t=null;return this.logCallback=t,this}getLogger(){return this.logCallback}}class pe{constructor(t,e,n,r){ge(t),this[0]=e,this.language=n,this.textCallback=r}copy(){const t=Ht._ts_tree_copy(this[0]);return new pe(Qt,t,this.language,this.textCallback)}delete(){Ht._ts_tree_delete(this[0]),this[0]=0}edit(t){!function(t){let e=ae;Se(e,t.startPosition),Se(e+=te,t.oldEndPosition),Se(e+=te,t.newEndPosition),N(e+=te,t.startIndex,"i32"),N(e+=Xt,t.oldEndIndex,"i32"),N(e+=Xt,t.newEndIndex,"i32"),e+=Xt}(t),Ht._ts_tree_edit_wasm(this[0])}get rootNode(){return Ht._ts_tree_root_node_wasm(this[0]),we(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(t){if(t.constructor!==pe)throw new TypeError("Argument must be a Tree");Ht._ts_tree_get_changed_ranges_wasm(this[0],t[0]);const e=M(ae,"i32"),n=M(ae+Xt,"i32"),r=new Array(e);if(e>0){let t=n;for(let n=0;n<e;n++)r[n]=Oe(t),t+=ee;Ht._free(n)}return r}}class fe{constructor(t,e){ge(t),this.tree=e}get typeId(){return be(this),Ht._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return be(this),Ht._ts_node_end_point_wasm(this.tree[0]),Ae(ae)}get endIndex(){return be(this),Ht._ts_node_end_index_wasm(this.tree[0])}get text(){return me(this.tree,this.startIndex,this.endIndex)}isNamed(){return be(this),1===Ht._ts_node_is_named_wasm(this.tree[0])}hasError(){return be(this),1===Ht._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return be(this),1===Ht._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return be(this),1===Ht._ts_node_is_missing_wasm(this.tree[0])}equals(t){return this.id===t.id}child(t){return be(this),Ht._ts_node_child_wasm(this.tree[0],t),we(this.tree)}namedChild(t){return be(this),Ht._ts_node_named_child_wasm(this.tree[0],t),we(this.tree)}childForFieldId(t){return be(this),Ht._ts_node_child_by_field_id_wasm(this.tree[0],t),we(this.tree)}childForFieldName(t){const e=this.tree.language.fields.indexOf(t);if(-1!==e)return this.childForFieldId(e)}get childCount(){return be(this),Ht._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return be(this),Ht._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){be(this),Ht._ts_node_children_wasm(this.tree[0]);const t=M(ae,"i32"),e=M(ae+Xt,"i32");if(this._children=new Array(t),t>0){let n=e;for(let e=0;e<t;e++)this._children[e]=we(this.tree,n),n+=Jt;Ht._free(e)}}return this._children}get namedChildren(){if(!this._namedChildren){be(this),Ht._ts_node_named_children_wasm(this.tree[0]);const t=M(ae,"i32"),e=M(ae+Xt,"i32");if(this._namedChildren=new Array(t),t>0){let n=e;for(let e=0;e<t;e++)this._namedChildren[e]=we(this.tree,n),n+=Jt;Ht._free(e)}}return this._namedChildren}descendantsOfType(t,e,n){Array.isArray(t)||(t=[t]),e||(e=ne),n||(n=ne);const r=[],s=this.tree.language.types;for(let e=0,n=s.length;e<n;e++)t.includes(s[e])&&r.push(e);const i=Ht._malloc(Xt*r.length);for(let t=0,e=r.length;t<e;t++)N(i+t*Xt,r[t],"i32");be(this),Ht._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,e.row,e.column,n.row,n.column);const o=M(ae,"i32"),a=M(ae+Xt,"i32"),c=new Array(o);if(o>0){let t=a;for(let e=0;e<o;e++)c[e]=we(this.tree,t),t+=Jt}return Ht._free(a),Ht._free(i),c}get nextSibling(){return be(this),Ht._ts_node_next_sibling_wasm(this.tree[0]),we(this.tree)}get previousSibling(){return be(this),Ht._ts_node_prev_sibling_wasm(this.tree[0]),we(this.tree)}get nextNamedSibling(){return be(this),Ht._ts_node_next_named_sibling_wasm(this.tree[0]),we(this.tree)}get previousNamedSibling(){return be(this),Ht._ts_node_prev_named_sibling_wasm(this.tree[0]),we(this.tree)}get parent(){return be(this),Ht._ts_node_parent_wasm(this.tree[0]),we(this.tree)}descendantForIndex(t,e=t){if("number"!=typeof t||"number"!=typeof e)throw new Error("Arguments must be numbers");be(this);let n=ae+Jt;return N(n,t,"i32"),N(n+Xt,e,"i32"),Ht._ts_node_descendant_for_index_wasm(this.tree[0]),we(this.tree)}namedDescendantForIndex(t,e=t){if("number"!=typeof t||"number"!=typeof e)throw new Error("Arguments must be numbers");be(this);let n=ae+Jt;return N(n,t,"i32"),N(n+Xt,e,"i32"),Ht._ts_node_named_descendant_for_index_wasm(this.tree[0]),we(this.tree)}descendantForPosition(t,e=t){if(!ve(t)||!ve(e))throw new Error("Arguments must be {row, column} objects");be(this);let n=ae+Jt;return Se(n,t),Se(n+te,e),Ht._ts_node_descendant_for_position_wasm(this.tree[0]),we(this.tree)}namedDescendantForPosition(t,e=t){if(!ve(t)||!ve(e))throw new Error("Arguments must be {row, column} objects");be(this);let n=ae+Jt;return Se(n,t),Se(n+te,e),Ht._ts_node_named_descendant_for_position_wasm(this.tree[0]),we(this.tree)}walk(){return be(this),Ht._ts_tree_cursor_new_wasm(this.tree[0]),new he(Qt,this.tree)}toString(){be(this);const t=Ht._ts_node_to_string_wasm(this.tree[0]),e=function(t){for(var e="";;){var n=F[t++>>0];if(!n)return e;e+=String.fromCharCode(n)}}(t);return Ht._free(t),e}}class he{constructor(t,e){ge(t),this.tree=e,xe(this)}delete(){Ee(this),Ht._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(t){be(t),Ee(this,ae+Jt),Ht._ts_tree_cursor_reset_wasm(this.tree[0]),xe(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Ee(this),Ht._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Ee(this),Ht._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Ee(this),1===Ht._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Ee(this),1===Ht._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Ee(this);const t=Ht._ts_tree_cursor_start_index_wasm(this.tree[0]),e=Ht._ts_tree_cursor_end_index_wasm(this.tree[0]);return me(this.tree,t,e)}get startPosition(){return Ee(this),Ht._ts_tree_cursor_start_position_wasm(this.tree[0]),Ae(ae)}get endPosition(){return Ee(this),Ht._ts_tree_cursor_end_position_wasm(this.tree[0]),Ae(ae)}get startIndex(){return Ee(this),Ht._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Ee(this),Ht._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Ee(this),Ht._ts_tree_cursor_current_node_wasm(this.tree[0]),we(this.tree)}currentFieldId(){return Ee(this),Ht._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Ee(this);const t=Ht._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xe(this),1===t}gotoNextSibling(){Ee(this);const t=Ht._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xe(this),1===t}gotoParent(){Ee(this);const t=Ht._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xe(this),1===t}}class _e{constructor(t,e){ge(t),this[0]=e,this.types=new Array(Ht._ts_language_symbol_count(this[0]));for(let t=0,e=this.types.length;t<e;t++)Ht._ts_language_symbol_type(this[0],t)<2&&(this.types[t]=z(Ht._ts_language_symbol_name(this[0],t)));this.fields=new Array(Ht._ts_language_field_count(this[0])+1);for(let t=0,e=this.fields.length;t<e;t++){const e=Ht._ts_language_field_name_for_id(this[0],t);this.fields[t]=0!==e?z(e):null}}get version(){return Ht._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(t){const e=this.fields.indexOf(t);return-1!==e?e:null}fieldNameForId(t){return this.fields[t]||null}idForNodeType(t,e){const n=K(t),r=Ht._malloc(n+1);G(t,r,n+1);const s=Ht._ts_language_symbol_for_name(this[0],r,n,e);return Ht._free(r),s||null}get nodeTypeCount(){return Ht._ts_language_symbol_count(this[0])}nodeTypeForId(t){const e=Ht._ts_language_symbol_name(this[0],t);return e?z(e):null}nodeTypeIsNamed(t){return!!Ht._ts_language_type_is_named_wasm(this[0],t)}nodeTypeIsVisible(t){return!!Ht._ts_language_type_is_visible_wasm(this[0],t)}query(t){const e=K(t),n=Ht._malloc(e+1);G(t,n,e+1);const r=Ht._ts_query_new(this[0],n,e,ae,ae+Xt);if(!r){const e=M(ae+Xt,"i32"),r=z(n,M(ae,"i32")).length,s=t.substr(r,100).split("\n")[0];let i,o=s.match(re)[0];switch(e){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,Ht._free(n),i}const s=Ht._ts_query_string_count(r),i=Ht._ts_query_capture_count(r),o=Ht._ts_query_pattern_count(r),a=new Array(i),c=new Array(s);for(let t=0;t<i;t++){const e=Ht._ts_query_capture_name_for_id(r,t,ae),n=M(ae,"i32");a[t]=z(e,n)}for(let t=0;t<s;t++){const e=Ht._ts_query_string_value_for_id(r,t,ae),n=M(ae,"i32");c[t]=z(e,n)}const u=new Array(o),l=new Array(o),p=new Array(o),f=new Array(o),h=new Array(o);for(let t=0;t<o;t++){const e=Ht._ts_query_predicates_for_pattern(r,t,ae),n=M(ae,"i32");f[t]=[],h[t]=[];const s=[];let i=e;for(let e=0;e<n;e++){const e=M(i,"i32"),n=M(i+=Xt,"i32");if(i+=Xt,1===e)s.push({type:"capture",name:a[n]});else if(2===e)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 e=s[0].value;let n=!0;switch(e){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 e=s[1].name,r=s[2].name;h[t].push((function(t){let s,i;for(const n of t)n.name===e&&(s=n.node),n.name===r&&(i=n.node);return void 0===s||void 0===i||s.text===i.text===n}))}else{const e=s[1].name,r=s[2].value;h[t].push((function(t){for(const s of t)if(s.name===e)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);h[t].push((function(t){for(const e of t)if(e.name===r)return i.test(e.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((t=>"string"!==t.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[t]||(u[t]={}),u[t][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 \`#${e}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((t=>"string"!==t.type)))throw new Error(`Arguments to \`#${e}\` predicate must be a strings.".`);const o="is?"===e?l:p;o[t]||(o[t]={}),o[t][s[1].value]=s[2]?s[2].value:null;break;default:f[t].push({operator:e,operands:s.slice(1)})}s.length=0}}Object.freeze(u[t]),Object.freeze(l[t]),Object.freeze(p[t])}return Ht._free(n),new de(Qt,r,a,h,f,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(t){let e;if(t instanceof Uint8Array)e=Promise.resolve(t);else{const r=t;if("undefined"!=typeof process&&process.versions&&process.versions.node){const t=n(5530);e=Promise.resolve(t.readFileSync(r))}else e=fetch(r).then((t=>t.arrayBuffer().then((e=>{if(t.ok)return new Uint8Array(e);{const n=new TextDecoder("utf-8").decode(e);throw new Error(`Language.load failed with status ${t.status}.\n\n${n}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:Ot;return e.then((t=>r(t,{loadAsync:!0}))).then((t=>{const e=Object.keys(t),n=e.find((t=>se.test(t)&&!t.includes("external_scanner_")));n||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(e,null,2)}`);const r=t[n]();return new _e(Qt,r)}))}}class de{constructor(t,e,n,r,s,i,o,a){ge(t),this[0]=e,this.captureNames=n,this.textPredicates=r,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ht._ts_query_delete(this[0]),this[0]=0}matches(t,e,n,r){e||(e=ne),n||(n=ne),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");be(t),Ht._ts_query_matches_wasm(this[0],t.tree[0],e.row,e.column,n.row,n.column,s);const i=M(ae,"i32"),o=M(ae+Xt,"i32"),a=M(ae+2*Xt,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let e=0;e<i;e++){const n=M(l,"i32"),r=M(l+=Xt,"i32");l+=Xt;const s=new Array(r);if(l=ye(this,t.tree,l,s),this.textPredicates[n].every((t=>t(s)))){c[u++]={pattern:n,captures:s};const t=this.setProperties[n];t&&(c[e].setProperties=t);const r=this.assertedProperties[n];r&&(c[e].assertedProperties=r);const i=this.refutedProperties[n];i&&(c[e].refutedProperties=i)}}return c.length=u,Ht._free(o),c}captures(t,e,n,r){e||(e=ne),n||(n=ne),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");be(t),Ht._ts_query_captures_wasm(this[0],t.tree[0],e.row,e.column,n.row,n.column,s);const i=M(ae,"i32"),o=M(ae+Xt,"i32"),a=M(ae+2*Xt,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let e=0;e<i;e++){const e=M(l,"i32"),n=M(l+=Xt,"i32"),r=M(l+=Xt,"i32");if(l+=Xt,u.length=n,l=ye(this,t.tree,l,u),this.textPredicates[e].every((t=>t(u)))){const t=u[r],n=this.setProperties[e];n&&(t.setProperties=n);const s=this.assertedProperties[e];s&&(t.assertedProperties=s);const i=this.refutedProperties[e];i&&(t.refutedProperties=i),c.push(t)}}return Ht._free(o),c}predicatesForPattern(t){return this.predicates[t]}didExceedMatchLimit(){return this.exceededMatchLimit}}function me(t,e,n){const r=n-e;let s=t.textCallback(e,null,n);for(e+=s.length;e<n;){const r=t.textCallback(e,null,n);if(!(r&&r.length>0))break;e+=r.length,s+=r}return e>n&&(s=s.slice(0,r)),s}function ye(t,e,n,r){for(let s=0,i=r.length;s<i;s++){const i=M(n,"i32"),o=we(e,n+=Xt);n+=Jt,r[s]={name:t.captureNames[i],node:o}}return n}function ge(t){if(t!==Qt)throw new Error("Illegal constructor")}function ve(t){return t&&"number"==typeof t.row&&"number"==typeof t.column}function be(t){let e=ae;N(e,t.id,"i32"),N(e+=Xt,t.startIndex,"i32"),N(e+=Xt,t.startPosition.row,"i32"),N(e+=Xt,t.startPosition.column,"i32"),N(e+=Xt,t[0],"i32")}function we(t,e=ae){const n=M(e,"i32");if(0===n)return null;const r=M(e+=Xt,"i32"),s=M(e+=Xt,"i32"),i=M(e+=Xt,"i32"),o=M(e+=Xt,"i32"),a=new fe(Qt,t);return a.id=n,a.startIndex=r,a.startPosition={row:s,column:i},a[0]=o,a}function Ee(t,e=ae){N(e+0*Xt,t[0],"i32"),N(e+1*Xt,t[1],"i32"),N(e+2*Xt,t[2],"i32")}function xe(t){t[0]=M(ae+0*Xt,"i32"),t[1]=M(ae+1*Xt,"i32"),t[2]=M(ae+2*Xt,"i32")}function Se(t,e){N(t,e.row,"i32"),N(t+Xt,e.column,"i32")}function Ae(t){return{row:M(t,"i32"),column:M(t+Xt,"i32")}}function je(t,e){Se(t,e.startPosition),Se(t+=te,e.endPosition),N(t+=te,e.startIndex,"i32"),N(t+=Xt,e.endIndex,"i32"),t+=Xt}function Oe(t){const e={};return e.startPosition=Ae(t),t+=te,e.endPosition=Ae(t),t+=te,e.startIndex=M(t,"i32"),t+=Xt,e.endIndex=M(t,"i32"),e}for(const t of Object.getOwnPropertyNames(le.prototype))Object.defineProperty(i.prototype,t,{value:le.prototype[t],enumerable:!1,writable:!1});i.Language=_e,r.onRuntimeInitialized=()=>{le.init(),e()}})))}}return i}();t.exports=s},5530:()=>{},6287:()=>{},1427:(t,e,n)=>{t.exports=n(1125)},1681:(t,e,n)=>{"use strict";var r=n(7497);t.exports=r},3258:(t,e,n)=>{"use strict";n(2777),n(733),n(1835),n(6449),n(9383);var r=n(8422);t.exports=r.AggregateError},1125:(t,e,n)=>{"use strict";t.exports=n(3985)},3985:(t,e,n)=>{"use strict";n(3584);var r=n(1681);t.exports=r},5375:(t,e,n)=>{"use strict";var r=n(8563),s=n(5787),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(s(t)+" is not a function")}},692:(t,e,n)=>{"use strict";var r=n(8563),s=String,i=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw new i("Can't set "+s(t)+" as a prototype")}},7171:t=>{"use strict";t.exports=function(){}},457:(t,e,n)=>{"use strict";var r=n(8257),s=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(s(t)+" is not an object")}},3346:(t,e,n)=>{"use strict";var r=n(4312),s=n(1940),i=n(8960),o=function(t){return function(e,n,o){var a,c=r(e),u=i(c),l=s(o,u);if(t&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},88:(t,e,n)=>{"use strict";var r=n(8814),s=r({}.toString),i=r("".slice);t.exports=function(t){return i(s(t),8,-1)}},2327:(t,e,n)=>{"use strict";var r=n(6694),s=n(8563),i=n(88),o=n(379)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),o))?n:c?i(e):"Object"===(r=i(e))&&s(e.callee)?"Arguments":r}},1318:(t,e,n)=>{"use strict";var r=n(3941),s=n(5956),i=n(3335),o=n(4376);t.exports=function(t,e,n){for(var a=s(e),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];r(t,p)||n&&r(n,p)||c(t,p,u(e,p))}}},8536:(t,e,n)=>{"use strict";var r=n(2998);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},9497:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},1370:(t,e,n)=>{"use strict";var r=n(1815),s=n(4376),i=n(7971);t.exports=r?function(t,e,n){return s.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},7971:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4500:(t,e,n)=>{"use strict";var r=n(1370);t.exports=function(t,e,n,s){return s&&s.enumerable?t[e]=n:r(t,e,n),t}},8194:(t,e,n)=>{"use strict";var r=n(8426),s=Object.defineProperty;t.exports=function(t,e){try{s(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},1815:(t,e,n)=>{"use strict";var r=n(2998);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5361:t=>{"use strict";var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},6327:(t,e,n)=>{"use strict";var r=n(8426),s=n(8257),i=r.document,o=s(i)&&s(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},8987:t=>{"use strict";t.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}},9954:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},5057:(t,e,n)=>{"use strict";var r,s,i=n(8426),o=n(9954),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]),t.exports=s},8573:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4456:(t,e,n)=>{"use strict";var r=n(8814),s=Error,i=r("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);t.exports=function(t,e){if(c&&"string"==typeof t&&!s.prepareStackTrace)for(;e--;)t=i(t,a,"");return t}},4151:(t,e,n)=>{"use strict";var r=n(1370),s=n(4456),i=n(5111),o=Error.captureStackTrace;t.exports=function(t,e,n,a){i&&(o?o(t,e):r(t,"stack",s(n,a)))}},5111:(t,e,n)=>{"use strict";var r=n(2998),s=n(7971);t.exports=!r((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",s(1,7)),7!==t.stack)}))},9011:(t,e,n)=>{"use strict";var r=n(8426),s=n(4877),i=n(9730),o=n(8563),a=n(3335).f,c=n(8722),u=n(8422),l=n(1207),p=n(1370),f=n(3941),h=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return s(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,s,_,d,m,y,g,v,b,w=t.target,E=t.global,x=t.stat,S=t.proto,A=E?r:x?r[w]:(r[w]||{}).prototype,j=E?u:u[w]||p(u,w,{})[w],O=j.prototype;for(d in e)s=!(n=c(E?d:w+(x?".":"#")+d,t.forced))&&A&&f(A,d),y=j[d],s&&(g=t.dontCallGetSet?(b=a(A,d))&&b.value:A[d]),m=s&&g?g:e[d],s&&typeof y==typeof m||(v=t.bind&&s?l(m,r):t.wrap&&s?h(m):S&&o(m)?i(m):m,(t.sham||m&&m.sham||y&&y.sham)&&p(v,"sham",!0),p(j,d,v),S&&(f(u,_=w+"Prototype")||p(u,_,{}),p(u[_],d,m),t.real&&O&&(n||!O[d])&&p(O,d,m)))}},2998:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},4877:(t,e,n)=>{"use strict";var r=n(5083),s=Function.prototype,i=s.apply,o=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},1207:(t,e,n)=>{"use strict";var r=n(9730),s=n(5375),i=n(5083),o=r(r.bind);t.exports=function(t,e){return s(t),void 0===e?t:i?o(t,e):function(){return t.apply(e,arguments)}}},5083:(t,e,n)=>{"use strict";var r=n(2998);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},200:(t,e,n)=>{"use strict";var r=n(5083),s=Function.prototype.call;t.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},5339:(t,e,n)=>{"use strict";var r=n(1815),s=n(3941),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&o(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},2799:(t,e,n)=>{"use strict";var r=n(8814),s=n(5375);t.exports=function(t,e,n){try{return r(s(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},9730:(t,e,n)=>{"use strict";var r=n(88),s=n(8814);t.exports=function(t){if("Function"===r(t))return s(t)}},8814:(t,e,n)=>{"use strict";var r=n(5083),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);t.exports=r?o:function(t){return function(){return i.apply(t,arguments)}}},6589:(t,e,n)=>{"use strict";var r=n(8422),s=n(8426),i=n(8563),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(s[t]):r[t]&&r[t][e]||s[t]&&s[t][e]}},2630:(t,e,n)=>{"use strict";var r=n(2327),s=n(2833),i=n(5157),o=n(2444),a=n(379)("iterator");t.exports=function(t){if(!i(t))return s(t,a)||s(t,"@@iterator")||o[r(t)]}},1291:(t,e,n)=>{"use strict";var r=n(200),s=n(5375),i=n(457),o=n(5787),a=n(2630),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(s(n))return i(r(n,t));throw new c(o(t)+" is not iterable")}},2833:(t,e,n)=>{"use strict";var r=n(5375),s=n(5157);t.exports=function(t,e){var n=t[e];return s(n)?void 0:r(n)}},8426:function(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.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")()},3941:(t,e,n)=>{"use strict";var r=n(8814),s=n(8389),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(s(t),e)}},3006:t=>{"use strict";t.exports={}},4812:(t,e,n)=>{"use strict";var r=n(6589);t.exports=r("document","documentElement")},4632:(t,e,n)=>{"use strict";var r=n(1815),s=n(2998),i=n(6327);t.exports=!r&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6541:(t,e,n)=>{"use strict";var r=n(8814),s=n(2998),i=n(88),o=Object,a=r("".split);t.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):o(t)}:o},9330:(t,e,n)=>{"use strict";var r=n(8563),s=n(8257),i=n(8597);t.exports=function(t,e,n){var o,a;return i&&r(o=e.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},1609:(t,e,n)=>{"use strict";var r=n(8257),s=n(1370);t.exports=function(t,e){r(e)&&"cause"in e&&s(t,"cause",e.cause)}},8551:(t,e,n)=>{"use strict";var r,s,i,o=n(8268),a=n(8426),c=n(8257),u=n(1370),l=n(3941),p=n(6028),f=n(5430),h=n(3006),_="Object already initialized",d=a.TypeError,m=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,r=function(t,e){if(y.has(t))throw new d(_);return e.facade=t,y.set(t,e),e},s=function(t){return y.get(t)||{}},i=function(t){return y.has(t)}}else{var g=f("state");h[g]=!0,r=function(t,e){if(l(t,g))throw new d(_);return e.facade=t,u(t,g,e),e},s=function(t){return l(t,g)?t[g]:{}},i=function(t){return l(t,g)}}t.exports={set:r,get:s,has:i,enforce:function(t){return i(t)?s(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=s(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}},2576:(t,e,n)=>{"use strict";var r=n(379),s=n(2444),i=r("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||o[i]===t)}},8563:(t,e,n)=>{"use strict";var r=n(5361),s=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===s}:function(t){return"function"==typeof t}},8722:(t,e,n)=>{"use strict";var r=n(2998),s=n(8563),i=/#|\.prototype\./,o=function(t,e){var n=c[a(t)];return n===l||n!==u&&(s(e)?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},5157:t=>{"use strict";t.exports=function(t){return null==t}},8257:(t,e,n)=>{"use strict";var r=n(8563),s=n(5361),i=s.all;t.exports=s.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===i}:function(t){return"object"==typeof t?null!==t:r(t)}},7736:t=>{"use strict";t.exports=!0},6753:(t,e,n)=>{"use strict";var r=n(6589),s=n(8563),i=n(7367),o=n(9378),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return s(e)&&i(e.prototype,a(t))}},3490:(t,e,n)=>{"use strict";var r=n(1207),s=n(200),i=n(457),o=n(5787),a=n(2576),c=n(8960),u=n(7367),l=n(1291),p=n(2630),f=n(6889),h=TypeError,_=function(t,e){this.stopped=t,this.result=e},d=_.prototype;t.exports=function(t,e,n){var m,y,g,v,b,w,E,x=n&&n.that,S=!(!n||!n.AS_ENTRIES),A=!(!n||!n.IS_RECORD),j=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),P=r(e,x),k=function(t){return m&&f(m,"normal",t),new _(!0,t)},N=function(t){return S?(i(t),O?P(t[0],t[1],k):P(t[0],t[1])):O?P(t,k):P(t)};if(A)m=t.iterator;else if(j)m=t;else{if(!(y=p(t)))throw new h(o(t)+" is not iterable");if(a(y)){for(g=0,v=c(t);v>g;g++)if((b=N(t[g]))&&u(d,b))return b;return new _(!1)}m=l(t,y)}for(w=A?t.next:m.next;!(E=s(w,m)).done;){try{b=N(E.value)}catch(t){f(m,"throw",t)}if("object"==typeof b&&b&&u(d,b))return b}return new _(!1)}},6889:(t,e,n)=>{"use strict";var r=n(200),s=n(457),i=n(2833);t.exports=function(t,e,n){var o,a;s(t);try{if(!(o=i(t,"return"))){if("throw"===e)throw n;return n}o=r(o,t)}catch(t){a=!0,o=t}if("throw"===e)throw n;if(a)throw o;return s(o),n}},7323:(t,e,n)=>{"use strict";var r=n(374).IteratorPrototype,s=n(1504),i=n(7971),o=n(9468),a=n(2444),c=function(){return this};t.exports=function(t,e,n,u){var l=e+" Iterator";return t.prototype=s(r,{next:i(+!u,n)}),o(t,l,!1,!0),a[l]=c,t}},5994:(t,e,n)=>{"use strict";var r=n(9011),s=n(200),i=n(7736),o=n(5339),a=n(8563),c=n(7323),u=n(9814),l=n(8597),p=n(9468),f=n(1370),h=n(4500),_=n(379),d=n(2444),m=n(374),y=o.PROPER,g=o.CONFIGURABLE,v=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=_("iterator"),E="keys",x="values",S="entries",A=function(){return this};t.exports=function(t,e,n,o,_,m,j){c(n,e,o);var O,P,k,N=function(t){if(t===_&&R)return R;if(!b&&t&&t in T)return T[t];switch(t){case E:case x:case S:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",I=!1,T=t.prototype,C=T[w]||T["@@iterator"]||_&&T[_],R=!b&&C||N(_),F="Array"===e&&T.entries||C;if(F&&(O=u(F.call(new t)))!==Object.prototype&&O.next&&(i||u(O)===v||(l?l(O,v):a(O[w])||h(O,w,A)),p(O,M,!0,!0),i&&(d[M]=A)),y&&_===x&&C&&C.name!==x&&(!i&&g?f(T,"name",x):(I=!0,R=function(){return s(C,this)})),_)if(P={values:N(x),keys:m?R:N(E),entries:N(S)},j)for(k in P)(b||I||!(k in T))&&h(T,k,P[k]);else r({target:e,proto:!0,forced:b||I},P);return i&&!j||T[w]===R||h(T,w,R,{name:_}),d[e]=R,P}},374:(t,e,n)=>{"use strict";var r,s,i,o=n(2998),a=n(8563),c=n(8257),u=n(1504),l=n(9814),p=n(4500),f=n(379),h=n(7736),_=f("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(r=s):d=!0),!c(r)||o((function(){var t={};return r[_].call(t)!==t}))?r={}:h&&(r=u(r)),a(r[_])||p(r,_,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},2444:t=>{"use strict";t.exports={}},8960:(t,e,n)=>{"use strict";var r=n(9261);t.exports=function(t){return r(t.length)}},5703:t=>{"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},5517:(t,e,n)=>{"use strict";var r=n(4809);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},1504:(t,e,n)=>{"use strict";var r,s=n(457),i=n(8253),o=n(8573),a=n(3006),c=n(4812),u=n(6327),l=n(5430),p="prototype",f="script",h=l("IE_PROTO"),_=function(){},d=function(t){return"<"+f+">"+t+"</"+f+">"},m=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;y="undefined"!=typeof document?document.domain&&r?m(r):(e=u("iframe"),n="java"+f+":",e.style.display="none",c.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):m(r);for(var s=o.length;s--;)delete y[p][o[s]];return y()};a[h]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(_[p]=s(t),n=new _,_[p]=null,n[h]=t):n=y(),void 0===e?n:i.f(n,e)}},8253:(t,e,n)=>{"use strict";var r=n(1815),s=n(4210),i=n(4376),o=n(457),a=n(4312),c=n(4230);e.f=r&&!s?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),s=c(e),u=s.length,l=0;u>l;)i.f(t,n=s[l++],r[n]);return t}},4376:(t,e,n)=>{"use strict";var r=n(1815),s=n(4632),i=n(4210),o=n(457),a=n(9722),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",f="configurable",h="writable";e.f=r?i?function(t,e,n){if(o(t),e=a(e),o(n),"function"==typeof t&&"prototype"===e&&"value"in n&&h in n&&!n[h]){var r=l(t,e);r&&r[h]&&(t[e]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:p in n?n[p]:r[p],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(o(t),e=a(e),o(n),s)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},3335:(t,e,n)=>{"use strict";var r=n(1815),s=n(200),i=n(2886),o=n(7971),a=n(4312),c=n(9722),u=n(3941),l=n(4632),p=Object.getOwnPropertyDescriptor;e.f=r?p:function(t,e){if(t=a(t),e=c(e),l)try{return p(t,e)}catch(t){}if(u(t,e))return o(!s(i.f,t,e),t[e])}},4243:(t,e,n)=>{"use strict";var r=n(4062),s=n(8573).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,s)}},2306:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},9814:(t,e,n)=>{"use strict";var r=n(3941),s=n(8563),i=n(8389),o=n(5430),a=n(8536),c=o("IE_PROTO"),u=Object,l=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=i(t);if(r(e,c))return e[c];var n=e.constructor;return s(n)&&e instanceof n?n.prototype:e instanceof u?l:null}},7367:(t,e,n)=>{"use strict";var r=n(8814);t.exports=r({}.isPrototypeOf)},4062:(t,e,n)=>{"use strict";var r=n(8814),s=n(3941),i=n(4312),o=n(3346).indexOf,a=n(3006),c=r([].push);t.exports=function(t,e){var n,r=i(t),u=0,l=[];for(n in r)!s(a,n)&&s(r,n)&&c(l,n);for(;e.length>u;)s(r,n=e[u++])&&(~o(l,n)||c(l,n));return l}},4230:(t,e,n)=>{"use strict";var r=n(4062),s=n(8573);t.exports=Object.keys||function(t){return r(t,s)}},2886:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);e.f=s?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},8597:(t,e,n)=>{"use strict";var r=n(2799),s=n(457),i=n(692);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return s(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},3024:(t,e,n)=>{"use strict";var r=n(6694),s=n(2327);t.exports=r?{}.toString:function(){return"[object "+s(this)+"]"}},2483:(t,e,n)=>{"use strict";var r=n(200),s=n(8563),i=n(8257),o=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&s(n=t.toString)&&!i(a=r(n,t)))return a;if(s(n=t.valueOf)&&!i(a=r(n,t)))return a;if("string"!==e&&s(n=t.toString)&&!i(a=r(n,t)))return a;throw new o("Can't convert object to primitive value")}},5956:(t,e,n)=>{"use strict";var r=n(6589),s=n(8814),i=n(4243),o=n(2306),a=n(457),c=s([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?c(e,n(t)):e}},8422:t=>{"use strict";t.exports={}},3142:(t,e,n)=>{"use strict";var r=n(4376).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},8280:(t,e,n)=>{"use strict";var r=n(5157),s=TypeError;t.exports=function(t){if(r(t))throw new s("Can't call method on "+t);return t}},9468:(t,e,n)=>{"use strict";var r=n(6694),s=n(4376).f,i=n(1370),o=n(3941),a=n(3024),c=n(379)("toStringTag");t.exports=function(t,e,n,u){if(t){var l=n?t:t.prototype;o(l,c)||s(l,c,{configurable:!0,value:e}),u&&!r&&i(l,"toString",a)}}},5430:(t,e,n)=>{"use strict";var r=n(3771),s=n(9216),i=r("keys");t.exports=function(t){return i[t]||(i[t]=s(t))}},6028:(t,e,n)=>{"use strict";var r=n(8426),s=n(8194),i="__core-js_shared__",o=r[i]||s(i,{});t.exports=o},3771:(t,e,n)=>{"use strict";var r=n(7736),s=n(6028);(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.3",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE",source:"https://github.com/zloirock/core-js"})},7415:(t,e,n)=>{"use strict";var r=n(8814),s=n(1061),i=n(4809),o=n(8280),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(t){return function(e,n){var r,l,p=i(o(e)),f=s(n),h=p.length;return f<0||f>=h?t?"":void 0:(r=c(p,f))<55296||r>56319||f+1===h||(l=c(p,f+1))<56320||l>57343?t?a(p,f):r:t?u(p,f,f+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},3772:(t,e,n)=>{"use strict";var r=n(5057),s=n(2998),i=n(8426).String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1940:(t,e,n)=>{"use strict";var r=n(1061),s=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?s(n+e,0):i(n,e)}},4312:(t,e,n)=>{"use strict";var r=n(6541),s=n(8280);t.exports=function(t){return r(s(t))}},1061:(t,e,n)=>{"use strict";var r=n(5703);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},9261:(t,e,n)=>{"use strict";var r=n(1061),s=Math.min;t.exports=function(t){return t>0?s(r(t),9007199254740991):0}},8389:(t,e,n)=>{"use strict";var r=n(8280),s=Object;t.exports=function(t){return s(r(t))}},6561:(t,e,n)=>{"use strict";var r=n(200),s=n(8257),i=n(6753),o=n(2833),a=n(2483),c=n(379),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!s(t)||i(t))return t;var n,c=o(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!s(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},9722:(t,e,n)=>{"use strict";var r=n(6561),s=n(6753);t.exports=function(t){var e=r(t,"string");return s(e)?e:e+""}},6694:(t,e,n)=>{"use strict";var r={};r[n(379)("toStringTag")]="z",t.exports="[object z]"===String(r)},4809:(t,e,n)=>{"use strict";var r=n(2327),s=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},5787:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9216:(t,e,n)=>{"use strict";var r=n(8814),s=0,i=Math.random(),o=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++s+i,36)}},9378:(t,e,n)=>{"use strict";var r=n(3772);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4210:(t,e,n)=>{"use strict";var r=n(1815),s=n(2998);t.exports=r&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8268:(t,e,n)=>{"use strict";var r=n(8426),s=n(8563),i=r.WeakMap;t.exports=s(i)&&/native code/.test(String(i))},379:(t,e,n)=>{"use strict";var r=n(8426),s=n(3771),i=n(3941),o=n(9216),a=n(3772),c=n(9378),u=r.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;t.exports=function(t){return i(l,t)||(l[t]=a&&i(u,t)?u[t]:p("Symbol."+t)),l[t]}},9791:(t,e,n)=>{"use strict";var r=n(6589),s=n(3941),i=n(1370),o=n(7367),a=n(8597),c=n(1318),u=n(3142),l=n(9330),p=n(5517),f=n(1609),h=n(4151),_=n(1815),d=n(7736);t.exports=function(t,e,n,m){var y="stackTraceLimit",g=m?2:1,v=t.split("."),b=v[v.length-1],w=r.apply(null,v);if(w){var E=w.prototype;if(!d&&s(E,"cause")&&delete E.cause,!n)return w;var x=r("Error"),S=e((function(t,e){var n=p(m?e:t,void 0),r=m?new w(t):new w;return void 0!==n&&i(r,"message",n),h(r,S,r.stack,2),this&&o(E,this)&&l(r,this,S),arguments.length>g&&f(r,arguments[g]),r}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):_&&y in w&&(u(S,w,y),u(S,w,"prepareStackTrace")),c(S,w),!d)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(t){}return S}}},1835:(t,e,n)=>{"use strict";var r=n(9011),s=n(6589),i=n(4877),o=n(2998),a=n(9791),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(t){return function(e,n){return i(t,this,arguments)}}),l,!0)})},1320:(t,e,n)=>{"use strict";var r=n(9011),s=n(7367),i=n(9814),o=n(8597),a=n(1318),c=n(1504),u=n(1370),l=n(7971),p=n(1609),f=n(4151),h=n(3490),_=n(5517),d=n(379)("toStringTag"),m=Error,y=[].push,g=function(t,e){var n,r=s(v,this);o?n=o(new m,r?i(this):v):(n=r?this:c(v),u(n,d,"Error")),void 0!==e&&u(n,"message",_(e)),f(n,g,n.stack,1),arguments.length>2&&p(n,arguments[2]);var a=[];return h(t,y,{that:a}),u(n,"errors",a),n};o?o(g,m):a(g,m,{name:!0});var v=g.prototype=c(m.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:g})},733:(t,e,n)=>{"use strict";n(1320)},6449:(t,e,n)=>{"use strict";var r=n(4312),s=n(7171),i=n(2444),o=n(8551),a=n(4376).f,c=n(5994),u=n(9497),l=n(7736),p=n(1815),f="Array Iterator",h=o.set,_=o.getterFor(f);t.exports=c(Array,"Array",(function(t,e){h(this,{type:f,target:r(t),index:0,kind:e})}),(function(){var t=_(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(e[n],!1)}return u([n,e[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(t){}},2777:(t,e,n)=>{"use strict";var r=n(9011),s=n(8426),i=n(4877),o=n(9791),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=o(t,e,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},p=function(t,e){if(c&&c[t]){var n={};n[t]=o(a+"."+t,e,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(t){return function(e){return i(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),l("URIError",(function(t){return function(e){return i(t,this,arguments)}})),p("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),p("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),p("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},9383:(t,e,n)=>{"use strict";var r=n(7415).charAt,s=n(4809),i=n(8551),o=n(5994),a=n(9497),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(t){u(this,{type:c,string:s(t),index:0})}),(function(){var t,e=l(this),n=e.string,s=e.index;return s>=n.length?a(void 0,!0):(t=r(n,s),e.index+=t.length,a(t,!1))}))},3584:(t,e,n)=>{"use strict";n(733)},6128:(t,e,n)=>{"use strict";n(6449);var r=n(8987),s=n(8426),i=n(2327),o=n(1370),a=n(2444),c=n(379)("toStringTag");for(var u in r){var l=s[u],p=l&&l.prototype;p&&i(p)!==c&&o(p,c,u),a[u]=a.Array}},7497:(t,e,n)=>{"use strict";n(3584);var r=n(3258);n(6128),t.exports=r}},e={};function n(r){var s=e[r];if(void 0!==s)return s.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;n.g.importScripts&&(t=n.g.location+"");var e=n.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&!t;)t=r[s--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=t})();var r={};return(()=>{"use strict";n.r(r),n.d(r,{detect:()=>Uo,detectionRegExp:()=>zo,mediaTypes:()=>Bo,namespace:()=>Ko,parse:()=>Go});var t={};n.r(t),n.d(t,{hasElementSourceMap:()=>Jr,includesClasses:()=>es,includesSymbols:()=>ts,isAnnotationElement:()=>Zr,isArrayElement:()=>Ur,isBooleanElement:()=>Br,isCommentElement:()=>Yr,isElement:()=>Lr,isLinkElement:()=>Kr,isMemberElement:()=>Gr,isNullElement:()=>$r,isNumberElement:()=>Dr,isObjectElement:()=>zr,isParseResultElement:()=>Hr,isPrimitiveElement:()=>Xr,isRefElement:()=>Wr,isSourceMapElement:()=>Qr,isStringElement:()=>Vr});var e={};function s(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function i(t){return function e(n){return 0===arguments.length||s(n)?e:t.apply(this,arguments)}}function o(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return s(n)?e:i((function(e){return t(n,e)}));default:return s(n)&&s(r)?e:s(n)?i((function(e){return t(e,r)})):s(r)?i((function(e){return t(n,e)})):t(n,r)}}}function a(t){return function e(n,r,a){switch(arguments.length){case 0:return e;case 1:return s(n)?e:o((function(e,r){return t(n,e,r)}));case 2:return s(n)&&s(r)?e:s(n)?o((function(e,n){return t(e,r,n)})):s(r)?o((function(e,r){return t(n,e,r)})):i((function(e){return t(n,r,e)}));default:return s(n)&&s(r)&&s(a)?e:s(n)&&s(r)?o((function(e,n){return t(e,n,a)})):s(n)&&s(a)?o((function(e,n){return t(e,r,n)})):s(r)&&s(a)?o((function(e,r){return t(n,e,r)})):s(n)?i((function(e){return t(e,r,a)})):s(r)?i((function(e){return t(n,e,a)})):s(a)?i((function(e){return t(n,r,e)})):t(n,r,a)}}}n.r(e),n.d(e,{isInfoElement:()=>Ao,isMainElement:()=>So,isPrincipleElement:()=>jo,isRequirementElement:()=>Oo,isRequirementLevelElement:()=>Po,isScenarioElement:()=>ko,isStandardElement:()=>No,isStandardIdentifierElement:()=>Mo});const c=o((function(t,e){return null==e||e!=e?t:e})),u=Number.isInteger||function(t){return t<<0===t};function l(t){return"[object String]"===Object.prototype.toString.call(t)}const p=o((function(t,e){var n=t<0?e.length+t:t;return l(e)?e.charAt(n):e[n]}));const f=o((function(t,e){if(null!=e)return u(t)?p(t,e):e[t]}));const h=a((function(t,e,n){return c(t,f(e,n))}));var _=o((function(t,e){for(var n={},r={},s=0,i=t.length;s<i;)r[t[s]]=1,s+=1;for(var o in e)r.hasOwnProperty(o)||(n[o]=e[o]);return n}));const d=_;function m(t,e,n){for(var r=0,s=n.length;r<s;)e=t(e,n[r]),r+=1;return e}const y=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};const g=i((function(t){return!!y(t)||!!t&&("object"==typeof t&&(!l(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));var v="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function b(t,e,n){return function(r,s,i){if(g(i))return t(r,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return e(r,s,i,"fantasy-land/reduce");if(null!=i[v])return n(r,s,i[v]());if("function"==typeof i.next)return n(r,s,i);if("function"==typeof i.reduce)return e(r,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function w(t,e,n){for(var r=n.next();!r.done;)e=t(e,r.value),r=n.next();return e}function E(t,e,n,r){return n[r](t,e)}const x=b(m,E,w);function S(t,e,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!y(r)){for(var s=0;s<t.length;){if("function"==typeof r[t[s]])return r[t[s]].apply(r,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(r))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function A(t,e){for(var n=0,r=e.length,s=Array(r);n<r;)s[n]=t(e[n]),n+=1;return s}const j=function(){return this.xf["@@transducer/init"]()},O=function(t){return this.xf["@@transducer/result"](t)};var P=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=j,t.prototype["@@transducer/result"]=O,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}();const k=function(t){return function(e){return new P(t,e)}};function N(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,s){return e.apply(this,arguments)};case 5:return function(t,n,r,s,i){return e.apply(this,arguments)};case 6:return function(t,n,r,s,i,o){return e.apply(this,arguments)};case 7:return function(t,n,r,s,i,o,a){return e.apply(this,arguments)};case 8:return function(t,n,r,s,i,o,a,c){return e.apply(this,arguments)};case 9:return function(t,n,r,s,i,o,a,c,u){return e.apply(this,arguments)};case 10:return function(t,n,r,s,i,o,a,c,u,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function M(t,e,n){return function(){for(var r=[],i=0,o=t,a=0,c=!1;a<e.length||i<arguments.length;){var u;a<e.length&&(!s(e[a])||i>=arguments.length)?u=e[a]:(u=arguments[i],i+=1),r[a]=u,s(u)?c=!0:o-=1,a+=1}return!c&&o<=0?n.apply(this,r):N(Math.max(0,o),M(t,r,n))}}const I=o((function(t,e){return 1===t?i(e):N(t,M(t,[],e))}));function T(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var C=Object.prototype.toString;const R=function(){return"[object Arguments]"===C.call(arguments)?function(t){return"[object Arguments]"===C.call(t)}:function(t){return T("callee",t)}}();var F=!{toString:null}.propertyIsEnumerable("toString"),q=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(){return arguments.propertyIsEnumerable("length")}(),V=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},D="function"!=typeof Object.keys||L?i((function(t){if(Object(t)!==t)return[];var e,n,r=[],s=L&&R(t);for(e in t)!T(e,t)||s&&"length"===e||(r[r.length]=e);if(F)for(n=q.length-1;n>=0;)T(e=q[n],t)&&!V(r,e)&&(r[r.length]=e),n-=1;return r})):i((function(t){return Object(t)!==t?[]:Object.keys(t)}));const $=D;const B=o(S(["fantasy-land/map","map"],k,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return I(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return m((function(n,r){return n[r]=t(e[r]),n}),{},$(e));default:return A(t,e)}})));const z=o((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(n){return t(n)(e(n))}:x((function(t,n){return function(t,e){var n;e=e||[];var r=(t=t||[]).length,s=e.length,i=[];for(n=0;n<r;)i[i.length]=t[n],n+=1;for(n=0;n<s;)i[i.length]=e[n],n+=1;return i}(t,B(n,e))}),[],t)}));const U=o((function(t,e){var n=I(t,e);return I(t,(function(){return m(z,B(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const G=i((function(t){return U(t.length,t)}));const K=G(i((function(t){return!t})));function W(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function Z(t,e,n){for(var r=0,s=n.length;r<s;){if(t(e,n[r]))return!0;r+=1}return!1}const Y="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};const H=i((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function Q(t,e,n,r){var s=W(t);function i(t,e){return X(t,e,n.slice(),r.slice())}return!Z((function(t,e){return!Z(i,e,t)}),W(e),s)}function X(t,e,n,r){if(Y(t,e))return!0;var s,i,o=H(t);if(o!==H(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(s=t.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!Y(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!Y(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var a=n.length-1;a>=0;){if(n[a]===t)return r[a]===e;a-=1}switch(o){case"Map":return t.size===e.size&&Q(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&Q(t.values(),e.values(),n.concat([t]),r.concat([e]));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=$(t);if(c.length!==$(e).length)return!1;var u=n.concat([t]),l=r.concat([e]);for(a=c.length-1;a>=0;){var p=c[a];if(!T(p,e)||!X(e[p],t[p],u,l))return!1;a-=1}return!0}const J=o((function(t,e){return X(t,e,[],[])}));const tt=i((function(t){return function(){return t}}));var et=tt(void 0);const nt=J(et());const rt=K(nt);var st=n(7952);function it(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function ot(t,e,n){for(var r=0,s=n.length;r<s;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}const at=o((function(t,e){return N(t.length,(function(){return t.apply(e,arguments)}))}));function ct(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function ut(t,e,n,r){return t["@@transducer/result"](n[r](at(t["@@transducer/step"],t),e))}const lt=b(ot,ut,ct);var pt=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();function ft(t){return new pt(t)}const ht=a((function(t,e,n){return lt("function"==typeof t?ft(t):t,e,n)}));function _t(t,e){return function(){var n=arguments.length;if(0===n)return e();var r=arguments[n-1];return y(r)||"function"!=typeof r[t]?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}const dt=a(_t("slice",(function(t,e,n){return Array.prototype.slice.call(n,t,e)})));const mt=i(_t("tail",dt(1,1/0)));function yt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return N(arguments[0].length,ht(it,arguments[0],mt(arguments)))}var gt=function(t,e){switch(arguments.length){case 0:return gt;case 1:return function e(n){return 0===arguments.length?e:Y(t,n)};default:return Y(t,e)}};const vt=gt;function bt(t,e){return function(t,e,n){var r,s;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;n<t.length;){if(0===(s=t[n])&&1/s===r)return n;n+=1}return-1}if(e!=e){for(;n<t.length;){if("number"==typeof(s=t[n])&&s!=s)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(null===e)return t.indexOf(e,n)}for(;n<t.length;){if(J(t[n],e))return n;n+=1}return-1}(e,t,0)>=0}function wt(t){return'"'+t.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 Et=function(t){return(t<10?"0":"")+t};const xt="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Et(t.getUTCMonth()+1)+"-"+Et(t.getUTCDate())+"T"+Et(t.getUTCHours())+":"+Et(t.getUTCMinutes())+":"+Et(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function St(t){return"[object Object]"===Object.prototype.toString.call(t)}var At=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=j,t.prototype["@@transducer/result"]=O,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function jt(t){return function(e){return new At(t,e)}}const Ot=o(S(["fantasy-land/filter","filter"],jt,(function(t,e){return St(e)?m((function(n,r){return t(e[r])&&(n[r]=e[r]),n}),{},$(e)):function(t,e){for(var n=0,r=e.length,s=[];n<r;)t(e[n])&&(s[s.length]=e[n]),n+=1;return s}(t,e)})));const Pt=o((function(t,e){return Ot((n=t,function(){return!n.apply(this,arguments)}),e);var n}));function kt(t,e){var n=function(n){var r=e.concat([t]);return bt(n,r)?"<Circular>":kt(n,r)},r=function(t,e){return A((function(e){return wt(e)+": "+n(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+A(n,t).join(", ")+"))";case"[object Array]":return"["+A(n,t).concat(r(t,Pt((function(t){return/^\d+$/.test(t)}),$(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):wt(xt(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+n(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+n(t.valueOf())+")":wt(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var s=t.toString();if("[object Object]"!==s)return s}return"{"+r(t,$(t)).join(", ")+"}"}}const Nt=i((function(t){return kt(t,[])}));const Mt=o((function(t,e){return t.map((function(t){for(var n,r=e,s=0;s<t.length;){if(null==r)return;n=t[s],r=u(n)?p(n,r):r[n],s+=1}return r}))}));const It=o((function(t,e){return Mt([t],e)[0]}));const Tt=a((function(t,e,n){return t(It(e,n))}));function Ct(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}const Rt=o((function(t,e){return t&&e}));const Ft=o((function(t,e){return Ct(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:G(Rt)(t,e)}));const qt=J(null);var Lt=K(qt);function Vt(t){return Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vt(t)}const Dt=I(1,Ft(Lt,(function(t){return"object"===Vt(t)})));const $t=o((function(t,e){if(t===e)return e;function n(t,e){if(t>e!=e>t)return e>t?e:t}var r=n(t,e);if(void 0!==r)return r;var s=n(typeof t,typeof e);if(void 0!==s)return s===typeof t?t:e;var i=Nt(t),o=n(i,Nt(e));return void 0!==o&&o===i?t:e}));const Bt=o((function(t,e){return B(f(t),e)}));const zt=i((function(t){return I(ht($t,0,Bt("length",t)),(function(){for(var e=0,n=t.length;e<n;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));const Ut=I(1,yt(H,vt("GeneratorFunction")));const Gt=I(1,yt(H,vt("AsyncFunction")));const Kt=zt([yt(H,vt("Function")),Ut,Gt]);var Wt=yt(H,vt("Object")),Zt=yt(Nt,J(Nt(Object))),Yt=Tt(Ft(Kt,Zt),["constructor"]);const Ht=I(1,(function(t){if(!Dt(t)||!Wt(t))return!1;var e=Object.getPrototypeOf(t);return!!qt(e)||Yt(e)}));class Qt extends st.RP{constructor(t,e,n){super(t,e,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}const Xt=Qt;class Jt extends st.RP{constructor(t,e,n){super(t,e,n),this.element="comment"}}const te=Jt;class ee extends st.ON{constructor(t,e,n){super(t,e,n),this.element="parseResult"}get api(){return this.children.filter((t=>t.classes.contains("api"))).first}get results(){return this.children.filter((t=>t.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((t=>"annotation"===t.element))}get warnings(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("warning")))}get errors(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("error")))}get isEmpty(){return this.children.reject((t=>"annotation"===t.element)).isEmpty}replaceResult(t){const{result:e}=this;if(nt(e))return!1;const n=this.content.findIndex((t=>t===e));return-1!==n&&(this.content[n]=t,!0)}}const ne=ee;class re extends st.ON{constructor(t,e,n){super(t,e,n),this.element="sourceMap"}get positionStart(){return this.children.filter((t=>t.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((t=>t.classes.contains("position"))).get(1)}set position(t){if(void 0===t)return;const e=new st.ON([t.start.row,t.start.column,t.start.char]),n=new st.ON([t.end.row,t.end.column,t.end.char]);e.classes.push("position"),n.classes.push("position"),this.push(e).push(n)}}const se=re;class ie extends st.lS{constructor(){super(),this.register("annotation",Xt),this.register("comment",te),this.register("parseResult",ne),this.register("sourceMap",se)}}const oe=new ie,ae=t=>{const e=new ie;return Ht(t)&&e.use(t),e},ce=oe;const ue=I(1,yt(H,vt("String"))),le=n.p+"23aac571c96605dc25219087ad291441.wasm",pe=globalThis.fetch;Kt(pe)&&(globalThis.fetch=(...t)=>ue(t[0])&&t[0].endsWith("tree-sitter.wasm")?pe.apply(globalThis,[le,mt(t)]):pe.apply(globalThis,t));var fe=n(9794),he=n(1427);const _e=class extends he{constructor(t,e,n){if(super(t,e,n),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!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:t}=n;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}};class de extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(_e,t)}constructor(t,e){if(super(t,e),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!=e&&"object"==typeof e&&Object.hasOwn(e,"cause")&&!("cause"in this)){const{cause:t}=e;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}}const me=de,ye=n.p+"d396281e11774e0afa7a40d620779b6d.wasm";let ge=null,ve=null;const be=async t=>{if(null===ge&&null===ve)ve=fe.init().then((()=>fe.Language.load(ye))).then((t=>{const e=new fe;return e.setLanguage(t),e})).finally((()=>{ve=null})),ge=await ve;else if(null===ge&&null!==ve)ge=await ve;else if(null===ge)throw new me("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return ge.parse(t)};function we(t,e,n){if(n||(n=new Ee),function(t){var e=typeof t;return null==t||"object"!=e&&"function"!=e}(t))return t;var r,s=function(r){var s=n.get(t);if(s)return s;for(var i in n.set(t,r),t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e?we(t[i],!0,n):t[i]);return r};switch(H(t)){case"Object":return s(Object.create(Object.getPrototypeOf(t)));case"Array":return s([]);case"Date":return new Date(t.valueOf());case"RegExp":return r=t,new RegExp(r.source,r.flags?r.flags:(r.global?"g":"")+(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.sticky?"y":"")+(r.unicode?"u":"")+(r.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}var Ee=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(t,e){const n=this.hash(t);let r=this.map[n];r||(this.map[n]=r=[]),r.push([t,e]),this.length+=1},t.prototype.hash=function(t){let e=[];for(var n in t)e.push(Object.prototype.toString.call(t[n]));return e.join()},t.prototype.get=function(t){if(this.length<=180){for(const e in this.map){const n=this.map[e];for(let e=0;e<n.length;e+=1){const r=n[e];if(r[0]===t)return r[1]}}return}const e=this.hash(t),n=this.map[e];if(n)for(let e=0;e<n.length;e+=1){const r=n[e];if(r[0]===t)return r[1]}},t}();const xe=i((function(t){return null!=t&&"function"==typeof t.clone?t.clone():we(t,!0)}));const Se=class extends me{constructor(t,e){if(super(t,e),null!=e&&"object"==typeof e){const{cause:t,...n}=e;Object.assign(this,n)}}};const Ae=class extends Se{};const je=class extends Ae{constructor(t,e){super(t,e),void 0!==e&&(this.specificTagName=e.specificTagName,this.explicitTagName=e.explicitTagName,this.tagKind=e.tagKind,this.tagPosition=e.tagPosition,this.nodeCanonicalContent=e.nodeCanonicalContent,this.node=e.node)}};const Oe=class{static type="node";type="node";constructor({children:t=[],position:e,isMissing:n=!1}={}){this.type=this.constructor.type,this.isMissing=n,this.children=t,this.position=e}clone(){const t=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((e=>{const n=Object.getOwnPropertyDescriptor(this,e);Object.defineProperty(t,e,n)})),t}};let Pe=function(t){return t.Scalar="Scalar",t.Sequence="Sequence",t.Mapping="Mapping",t}({});const ke=class extends Oe{static type="tag";constructor({explicitName:t,kind:e,...n}){super({...n}),this.explicitName=t,this.kind=e}};const Ne=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(t){return!0}resolve(t){return t}};const Me=class extends Ne{static uri="tag:yaml.org,2002:map";test(t){return t.tag.kind===Pe.Mapping}};const Ie=class extends Ne{static uri="tag:yaml.org,2002:seq";test(t){return t.tag.kind===Pe.Sequence}};const Te=class extends Ne{static uri="tag:yaml.org,2002:str"};const Ce=a((function(t,e,n){return c(t,It(e,n))}));const Re=i((function(t){return I(t.length,t)}));var Fe="\t\n\v\f\r                 \u2028\u2029\ufeff";const qe=i("function"==typeof String.prototype.trim&&!Fe.trim()&&"​".trim()?function(t){return t.trim()}:function(t){var e=new RegExp("^["+Fe+"]["+Fe+"]*"),n=new RegExp("["+Fe+"]["+Fe+"]*$");return t.replace(e,"").replace(n,"")});const Le=o((function(t,e){return I(t+1,(function(){var n=arguments[t];if(null!=n&&Ct(n[e]))return n[e].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(Nt(n)+' does not have a method named "'+e+'"')}))}));const Ve=Le(1,"split");const De=Le(1,"join");const $e=i((function(t){return l(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()}));function Be(){if(0===arguments.length)throw new Error("compose requires at least one argument");return yt.apply(this,$e(arguments))}const ze=I(4,(function(t,e,n,r){return lt(t("function"==typeof e?ft(e):e),n,r)}));const Ue=o((function(t,e){if(y(t)){if(y(e))return t.concat(e);throw new TypeError(Nt(e)+" is not an array")}if(l(t)){if(l(e))return t+e;throw new TypeError(Nt(e)+" is not a string")}if(null!=t&&Ct(t["fantasy-land/concat"]))return t["fantasy-land/concat"](e);if(null!=t&&Ct(t.concat))return t.concat(e);throw new TypeError(Nt(t)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Ge=J("");const Ke=o((function(t,e){return I(ht($t,0,Bt("length",e)),(function(){var n=arguments,r=this;return t.apply(r,A((function(t){return t.apply(r,n)}),e))}))}));function We(t){return t}const Ze=i(We);const Ye=I(1,yt(H,vt("Number")));var He=Ft(Ye,isFinite);var Qe=I(1,He);const Xe=Kt(Number.isFinite)?I(1,at(Number.isFinite,Number)):Qe;var Je=Ft(Xe,Ke(J,[Math.floor,Ze]));var tn=I(1,Je);const en=Kt(Number.isInteger)?I(1,at(Number.isInteger,Number)):tn;const nn=i((function(t){return I(t.length,(function(e,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=e,t.apply(this,r)}))}));const rn=K(Xe);const sn=I(1,Ft(Ye,o((function(t,e){return t>e}))(0)));var on=Re((function(t,e){var n=Number(e);if(n!==e&&(n=0),sn(n))throw new RangeError("repeat count must be non-negative");if(rn(n))throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0===t.length||0===n)return"";if(t.length*n>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=t.length*n;n=Math.floor(Math.log(n)/Math.log(2));for(var s=t;n;)s+=t,n-=1;return s+=s.substring(0,r-s.length)})),an=nn(Le(1,"repeat"));const cn=Kt(String.prototype.repeat)?an:on;const un=a((function(t,e,n){return n.replace(t,e)}));var ln=un(/[\s\uFEFF\xA0]+$/,""),pn=Le(0,"trimEnd");const fn=Kt(String.prototype.trimEnd)?pn:ln;var hn=un(/^[\s\uFEFF\xA0]+/,""),_n=Le(0,"trimStart");const dn=Kt(String.prototype.trimStart)?_n:hn;var mn=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=j,t.prototype["@@transducer/result"]=O,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},t}();function yn(t){return function(e){return new mn(t,e)}}const gn=o(S(["dropWhile"],yn,(function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return dt(n,1/0,e)})));const vn=nn(o(bt));const bn=Re((function(t,e){return yt(Ve(""),gn(vn(t)),De(""))(e)}));const wn=nn(Ue);var En=n(2770);const xn=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Sn=t=>{const e=(t=>{const e=t.match(xn),n=Ce("",["groups","indentation"],e);return Ge(n)?void 0:parseInt(n,10)})(t);if(en(e))return cn(" ",e);const n=Ce("",[1],t.split("\n")),r=Ce(0,["groups","indentation","length"],n.match(/^(?<indentation>[ ]*)/));return cn(" ",r)},An=t=>{const e=t.match(xn),n=Ce("",["groups","chomping"],e);return Ge(n)?void 0:n},jn=(t,e)=>nt(t)?`${fn(e)}\n`:"-"===t?fn(e):e,On=t=>t.replace(/\r\n/g,"\n"),Pn=t=>t.replace(/(\n)?\n([^\n]+)/g,((t,e,n)=>e?t:` ${n.trimStart()}`)).replace(/[\n]{2}/g,"\n"),kn=Re(((t,e)=>e.replace(new RegExp(`^${t}`),"").replace(new RegExp(`${t}$`),""))),Nn=yt(On,qe,Pn,Ve("\n"),B(dn),De("\n")),Mn=yt(On,qe,kn("'"),Pn,Ve("\n"),B(dn),De("\n")),In=yt(On,qe,kn('"'),(t=>t.replace(/\\\n\s*/g,"")),Pn,En.S6,Ve("\n"),B(dn),De("\n"));let Tn=function(t){return t.Plain="Plain",t.SingleQuoted="SingleQuoted",t.DoubleQuoted="DoubleQuoted",t.Literal="Literal",t.Folded="Folded",t.Explicit="Explicit",t.SinglePair="SinglePair",t.NextLine="NextLine",t.InLine="InLine",t}({}),Cn=function(t){return t.Flow="Flow",t.Block="Block",t}({});const Rn=class{static test(t){return t.tag.kind===Pe.Scalar&&"string"==typeof t.content}static canonicalFormat(t){let e=t.content;const n=t.clone();return t.style===Tn.Plain?e=Nn(t.content):t.style===Tn.SingleQuoted?e=Mn(t.content):t.style===Tn.DoubleQuoted?e=In(t.content):t.style===Tn.Literal?e=(t=>{const e=Sn(t),n=An(t),r=On(t),s=mt(r.split("\n")),i=Be(B(bn(e)),B(wn("\n"))),o=ze(i,Ue,"",s);return jn(n,o)})(t.content):t.style===Tn.Folded&&(e=(t=>{const e=Sn(t),n=An(t),r=On(t),s=mt(r.split("\n")),i=Be(B(bn(e)),B(wn("\n"))),o=ze(i,Ue,"",s),a=Pn(o);return jn(n,a)})(t.content)),n.content=e,n}static resolve(t){return t}};const Fn=class{constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Me),this.registerTag(new Ie),this.registerTag(new Te)}toSpecificTagName(t){let e=t.tag.explicitName;return"!"===t.tag.explicitName?t.tag.kind===Pe.Scalar?e=Te.uri:t.tag.kind===Pe.Sequence?e=Ie.uri:t.tag.kind===Pe.Mapping&&(e=Me.uri):t.tag.explicitName.startsWith("!<")?e=t.tag.explicitName.replace(/^!</,"").replace(/>$/,""):t.tag.explicitName.startsWith("!!")&&(e=`tag:yaml.org,2002:${t.tag.explicitName.replace(/^!!/,"")}`),e}registerTagDirective(t){this.tagDirectives.push({handle:t.parameters.handle,prefix:t.parameters.prefix})}registerTag(t,e=!1){return e?this.tags.unshift(t):this.tags.push(t),this}overrideTag(t){return this.tags=this.tags.filter((e=>e.tag===t.tag)),this.tags.push(t),this}resolve(t){const e=this.toSpecificTagName(t);if("?"===e)return t;let n=t;Rn.test(t)&&(n=Rn.canonicalFormat(t));const r=this.tags.find((t=>(null==t?void 0:t.tag)===e));if(void 0===r)throw new je(`Tag "${e}" was not recognized.`,{specificTagName:e,explicitTagName:t.tag.explicitName,tagKind:t.tag.kind,tagPosition:xe(t.tag.position),node:t.clone()});if(!r.test(n))throw new je(`Node couldn't be resolved against the tag "${e}"`,{specificTagName:e,explicitTagName:t.tag.explicitName,tagKind:t.tag.kind,tagPosition:xe(t.tag.position),nodeCanonicalContent:n.content,node:t.clone()});return r.resolve(n)}};const qn=class extends Ne{static uri="tag:yaml.org,2002:bool";test(t){return/^(true|false)$/.test(t.content)}resolve(t){const e="true"===t.content,n=t.clone();return n.content=e,n}};const Ln=class extends Ne{static uri="tag:yaml.org,2002:float";test(t){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(t.content)}resolve(t){const e=parseFloat(t.content),n=t.clone();return n.content=e,n}};const Vn=class extends Ne{static uri="tag:yaml.org,2002:int";test(t){return/^-?(0|[1-9][0-9]*)$/.test(t.content)}resolve(t){const e=parseInt(t.content,10),n=t.clone();return n.content=e,n}};const Dn=class extends Ne{static uri="tag:yaml.org,2002:null";test(t){return/^null$/.test(t.content)}resolve(t){const e=t.clone();return e.content=null,e}};const $n=class extends Fn{constructor(){super(),this.registerTag(new qn,!0),this.registerTag(new Ln,!0),this.registerTag(new Vn,!0),this.registerTag(new Dn,!0)}toSpecificTagName(t){let e=super.toSpecificTagName(t);if("?"===e)if(t.tag.vkind===Pe.Sequence)e=Ie.uri;else if(t.tag.kind===Pe.Mapping)e=Me.uri;else if(t.tag.kind===Pe.Scalar){const n=this.tags.find((e=>e.test(t)));e=(null==n?void 0:n.tag)||"?"}return e}},Bn=(t,e,n)=>{const r=t[e];if(null!=r){if(!n&&"function"==typeof r)return r;const t=n?r.leave:r.enter;if("function"==typeof t)return t}else{const r=n?t.leave:t.enter;if(null!=r){if("function"==typeof r)return r;const t=r[e];if("function"==typeof t)return t}}return null},zn={},Un=t=>null==t?void 0:t.type,Gn=t=>"string"==typeof Un(t),Kn=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),Wn=(t,e,{keyMap:n=null,state:r={},breakSymbol:s=zn,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Bn,nodeTypeGetter:c=Un,nodePredicate:u=Gn,nodeCloneFn:l=Kn,detectCycles:p=!0}={})=>{const f=n||{};let h,_,d=Array.isArray(t),m=[t],y=-1,g=[],v=t;const b=[],w=[];do{y+=1;const t=y===m.length;let n;const x=t&&0!==g.length;if(t){if(n=0===w.length?void 0:b.pop(),v=_,_=w.pop(),x)if(d){v=v.slice();let t=0;for(const[e,n]of g){const r=e-t;n===i?(v.splice(r,1),t+=1):v[r]=n}}else{v=l(v);for(const[t,e]of g)v[t]=e}y=h.index,m=h.keys,g=h.edits,d=h.inArray,h=h.prev}else if(_!==i&&void 0!==_){if(n=d?y:m[y],v=_[n],v===i||void 0===v)continue;b.push(n)}let S;if(!Array.isArray(v)){if(!u(v))throw new Se(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(e,c(v),t);if(i){for(const[t,n]of Object.entries(r))e[t]=n;S=i.call(e,v,n,_,b,w)}if(S===s)break;if(S===o){if(!t){b.pop();continue}}else if(void 0!==S&&(g.push([n,S]),!t)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&g.push([n,v]),!t)h={inArray:d,index:y,keys:m,edits:g,prev:h},d=Array.isArray(v),m=d?v:null!==(E=f[c(v)])&&void 0!==E?E:[],y=-1,g=[],_!==i&&void 0!==_&&w.push(_),_=v}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:t};Wn[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:n=null,state:r={},breakSymbol:s=zn,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Bn,nodeTypeGetter:c=Un,nodePredicate:u=Gn,nodeCloneFn:l=Kn,detectCycles:p=!0}={})=>{const f=n||{};let h,_,d=Array.isArray(t),m=[t],y=-1,g=[],v=t;const b=[],w=[];do{y+=1;const t=y===m.length;let n;const x=t&&0!==g.length;if(t){if(n=0===w.length?void 0:b.pop(),v=_,_=w.pop(),x)if(d){v=v.slice();let t=0;for(const[e,n]of g){const r=e-t;n===i?(v.splice(r,1),t+=1):v[r]=n}}else{v=l(v);for(const[t,e]of g)v[t]=e}y=h.index,m=h.keys,g=h.edits,d=h.inArray,h=h.prev}else if(_!==i&&void 0!==_){if(n=d?y:m[y],v=_[n],v===i||void 0===v)continue;b.push(n)}let S;if(!Array.isArray(v)){if(!u(v))throw new Se(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(e,c(v),t);if(i){for(const[t,n]of Object.entries(r))e[t]=n;S=await i.call(e,v,n,_,b,w)}if(S===s)break;if(S===o){if(!t){b.pop();continue}}else if(void 0!==S&&(g.push([n,S]),!t)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&g.push([n,v]),!t)h={inArray:d,index:y,keys:m,edits:g,prev:h},d=Array.isArray(v),m=d?v:null!==(E=f[c(v)])&&void 0!==E?E:[],y=-1,g=[],_!==i&&void 0!==_&&w.push(_),_=v}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:t};class Zn{static type="point";type=Zn.type;constructor({row:t,column:e,char:n}){this.row=t,this.column=e,this.char=n}}class Yn{static type="position";type=Yn.type;constructor({start:t,end:e}){this.start=t,this.end=e}}const Hn=Yn;const Qn=class extends Oe{static type="anchor";constructor({name:t,...e}){super({...e}),this.name=t}};const Xn=class extends Oe{constructor({anchor:t,tag:e,style:n,styleGroup:r,...s}){super({...s}),this.anchor=t,this.tag=e,this.style=n,this.styleGroup=r}};const Jn=class extends Xn{static type="scalar";constructor({content:t,...e}){super({...e}),this.content=t}},tr=(t,e)=>null!=e&&"object"==typeof e&&"type"in e&&e.type===t,er=t=>tr("mapping",t),nr=t=>tr("sequence",t),rr=t=>tr("keyValuePair",t),sr=t=>tr("scalar",t),ir=t=>tr("alias",t);class or extends Oe{static type="stream"}Object.defineProperty(or.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((t=>(t=>tr("document",t))(t)||(t=>tr("comment",t))(t))):[]},enumerable:!0});const ar=or;const cr=p(0);const ur=class extends Oe{static type="parseResult";get rootNode(){return cr(this.children)}};const lr="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1,r=arguments.length;n<r;){var s=arguments[n];if(null!=s)for(var i in s)T(i,s)&&(e[i]=s[i]);n+=1}return e};const pr=o((function(t,e){return lr({},t,e)}));const fr=class extends Oe{static type="directive";constructor({name:t,parameters:e,...n}){super({...n}),this.name=t,this.parameters=pr({version:void 0,handle:void 0,prefix:void 0},e)}};const hr=class extends Oe{static type="document"};const _r=class extends Xn{};class dr extends _r{static type="mapping"}Object.defineProperty(dr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(rr):[]},enumerable:!0});const mr=dr;class yr extends Oe{static type="keyValuePair";constructor({styleGroup:t,...e}){super({...e}),this.styleGroup=t}}Object.defineProperties(yr.prototype,{key:{get(){return this.children.filter((t=>sr(t)||er(t)||nr(t)))[0]},enumerable:!0},value:{get(){const{key:t,children:e}=this;return e.filter((e=>(e=>e!==t)(e)&&(t=>sr(t)||er(t)||nr(t)||ir(t))(e)))[0]},enumerable:!0}});const gr=yr;class vr extends _r{static type="sequence"}Object.defineProperty(vr.prototype,"content",{get(){const{children:t}=this;return Array.isArray(t)?t.filter((t=>nr(t)||er(t)||sr(t)||ir(t))):[]},enumerable:!0});const br=vr;const wr=class extends Oe{static type="comment";constructor({content:t,...e}){super({...e}),this.content=t}};const Er=class extends Oe{static type="literal";constructor({value:t,...e}={}){super({...e}),this.value=t}};const xr=class extends Oe{static type="error";constructor({value:t,isUnexpected:e=!1,...n}={}){super({...n}),this.value=t,this.isUnexpected=e}};const Sr=class{hasError=!1;children=[];constructor(t){this.type=t.nodeType,this.startPosition=t.startPosition,this.endPosition=t.endPosition,this.startIndex=t.startIndex,this.endIndex=t.endIndex,this.text=t.nodeText,this.isNamed=t.nodeIsNamed,this.isMissing=t.nodeIsMissing}get keyNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((t=>"key"===t.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((t=>"value"===t.fieldName))}get tag(){let{previousSibling:t}=this;for(;void 0!==t&&"tag"!==t.type;)({previousSibling:t}=t);return t}get anchor(){let{previousSibling:t}=this;for(;void 0!==t&&"anchor"!==t.type;)({previousSibling:t}=t);return t}get firstNamedChild(){return this.children.find((t=>t.isNamed))}setFieldName(t){return"function"==typeof t.currentFieldName?this.fieldName=t.currentFieldName():this.fieldName=t.currentFieldName,this}setHasError(t){return"function"==typeof t.currentNode?this.hasError=t.currentNode().hasError():this.hasError=t.currentNode.hasError(),this}setPreviousSibling(t){this.previousSibling=t}pushChildren(...t){this.children.push(...t)}},Ar={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},jr=t=>Array.isArray(t)||Gn(t);class Or{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(t){return e=>null!=e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.endsWith(t)}static toPosition(t){const e=new Zn({row:t.startPosition.row,column:t.startPosition.column,char:t.startIndex}),n=new Zn({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex});return new Hn({start:e,end:n})}static hasKeyValuePairEmptyKey(t){return("block_mapping_pair"===t.type||"flow_pair"===t.type)&&void 0===t.keyNode}static hasKeyValuePairEmptyValue(t){return("block_mapping_pair"===t.type||"flow_pair"===t.type)&&void 0===t.valueNode}static kindNodeToYamlTag(t){const{tag:e}=t,n=(null==e?void 0:e.text)||("plain_scalar"===t.type?"?":"!"),r=t.type.endsWith("mapping")?Pe.Mapping:t.type.endsWith("sequence")?Pe.Sequence:Pe.Scalar,s=e?Or.toPosition(e):void 0;return new ke({explicitName:n,kind:r,position:s})}static kindNodeToYamlAnchor(t){const{anchor:e}=t;if(void 0!==e)return new Qn({name:e.text,position:Or.toPosition(e)})}static createKeyValuePairEmptyKey(t){const e=new Zn({row:t.startPosition.row,column:t.startPosition.column,char:t.startIndex}),{keyNode:n}=t,r=(null==n?void 0:n.children)||[],s=r.find(Or.isKind("tag")),i=r.find(Or.isKind("anchor")),o=new ke(void 0!==s?{explicitName:s.text,kind:Pe.Scalar,position:Or.toPosition(s)}:{explicitName:"?",kind:Pe.Scalar}),a=void 0!==i?new Qn({name:i.text,position:Or.toPosition(i)}):void 0;return new Jn({content:"",position:new Hn({start:e,end:e}),tag:o,anchor:a,styleGroup:Cn.Flow,style:Tn.Plain})}static createKeyValuePairEmptyValue(t){const e=new Zn({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),{valueNode:n}=t,r=(null==n?void 0:n.children)||[],s=r.find(Or.isKind("tag")),i=r.find(Or.isKind("anchor")),o=new ke(void 0!==s?{explicitName:s.text,kind:Pe.Scalar,position:Or.toPosition(s)}:{explicitName:"?",kind:Pe.Scalar}),a=void 0!==i?new Qn({name:i.text,position:Or.toPosition(i)}):void 0;return new Jn({content:"",position:new Hn({start:e,end:e}),tag:o,anchor:a,styleGroup:Cn.Flow,style:Tn.Plain})}stream={enter:t=>{const e=Or.toPosition(t);return new ar({children:t.children,position:e,isMissing:t.isMissing})},leave:t=>new ur({children:[t]})};yaml_directive={enter:t=>{var e;const n=Or.toPosition(t),r=null==t||null===(e=t.firstNamedChild)||void 0===e?void 0:e.text;return new fr({position:n,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:t=>{const e=Or.toPosition(t),n=t.children[0],r=t.children[1],s=new fr({position:e,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:t=>{const e=Or.toPosition(t),n=t.children[0],r=t.children[1],s=t.children[2];return new fr({position:e,name:null==n?void 0:n.text,parameters:{handle:null==r?void 0:r.text,prefix:null==s?void 0:s.text}})}};document={enter:t=>{const e=Or.toPosition(t);return new hr({children:t.children,position:e,isMissing:t.isMissing})},leave:t=>{t.children=t.children.flat()}};block_node={enter:t=>t.children};flow_node={enter:t=>{const[e]=t.children.slice(-1);if(Or.isScalar(e)||Or.isMapping(e)||Or.isSequence(e))return t.children;const n=new Zn({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),r=new Jn({content:"",anchor:Or.kindNodeToYamlAnchor(e),tag:Or.kindNodeToYamlTag(e),position:new Hn({start:n,end:n}),styleGroup:Cn.Flow,style:Tn.Plain});return[...t.children,r]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:t=>{const e=Or.toPosition(t),n=Or.kindNodeToYamlTag(t),r=Or.kindNodeToYamlAnchor(t),s=new mr({children:t.children,position:e,anchor:r,tag:n,styleGroup:Cn.Block,style:Tn.NextLine,isMissing:t.isMissing});return this.schema.resolve(s)}};block_mapping_pair={enter:t=>{const e=Or.toPosition(t),n=[...t.children];if(Or.hasKeyValuePairEmptyKey(t)){const e=Or.createKeyValuePairEmptyKey(t);n.unshift(e)}if(Or.hasKeyValuePairEmptyValue(t)){const e=Or.createKeyValuePairEmptyValue(t);n.push(e)}return new gr({children:n,position:e,styleGroup:Cn.Block,isMissing:t.isMissing})}};flow_mapping={enter:t=>{const e=Or.toPosition(t),n=Or.kindNodeToYamlTag(t),r=Or.kindNodeToYamlAnchor(t),s=new mr({children:t.children,position:e,anchor:r,tag:n,styleGroup:Cn.Flow,style:Tn.Explicit,isMissing:t.isMissing});return this.schema.resolve(s)}};flow_pair={enter:t=>{const e=Or.toPosition(t),n=[...t.children];if(Or.hasKeyValuePairEmptyKey(t)){const e=Or.createKeyValuePairEmptyKey(t);n.unshift(e)}if(Or.hasKeyValuePairEmptyValue(t)){const e=Or.createKeyValuePairEmptyValue(t);n.push(e)}return new gr({children:n,position:e,styleGroup:Cn.Flow,isMissing:t.isMissing})}};keyValuePair={leave:t=>{t.children=t.children.flat()}};block_sequence={enter:t=>{const e=Or.toPosition(t),n=Or.kindNodeToYamlTag(t),r=Or.kindNodeToYamlAnchor(t),s=new br({children:t.children,position:e,anchor:r,tag:n,styleGroup:Cn.Block,style:Tn.NextLine});return this.schema.resolve(s)}};block_sequence_item={enter:t=>{if(t.children.length>1)return t.children;const e=new Zn({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex});return[new Jn({content:"",tag:new ke({explicitName:"?",kind:Pe.Scalar}),position:new Hn({start:e,end:e}),styleGroup:Cn.Flow,style:Tn.Plain})]}};flow_sequence={enter:t=>{const e=Or.toPosition(t),n=Or.kindNodeToYamlTag(t),r=Or.kindNodeToYamlAnchor(t),s=new br({children:t.children.flat(),position:e,anchor:r,tag:n,styleGroup:Cn.Flow,style:Tn.Explicit});return this.schema.resolve(s)}};sequence={leave:t=>{t.children=t.children.flat(1/0)}};plain_scalar={enter:t=>{const e=Or.toPosition(t),n=Or.kindNodeToYamlTag(t),r=Or.kindNodeToYamlAnchor(t),s=new Jn({content:t.text,anchor:r,tag:n,position:e,styleGroup:Cn.Flow,style:Tn.Plain});return this.schema.resolve(s)}};single_quote_scalar={enter:t=>{const e=Or.toPosition(t),n=Or.kindNodeToYamlTag(t),r=Or.kindNodeToYamlAnchor(t),s=new Jn({content:t.text,anchor:r,tag:n,position:e,styleGroup:Cn.Flow,style:Tn.SingleQuoted});return this.schema.resolve(s)}};double_quote_scalar={enter:t=>{const e=Or.toPosition(t),n=Or.kindNodeToYamlTag(t),r=Or.kindNodeToYamlAnchor(t),s=new Jn({content:t.text,anchor:r,tag:n,position:e,styleGroup:Cn.Flow,style:Tn.DoubleQuoted});return this.schema.resolve(s)}};block_scalar={enter:t=>{const e=Or.toPosition(t),n=Or.kindNodeToYamlTag(t),r=Or.kindNodeToYamlAnchor(t),s=t.text.startsWith("|")?Tn.Literal:t.text.startsWith(">")?Tn.Folded:Tn.Plain,i=new Jn({content:t.text,anchor:r,tag:n,position:e,styleGroup:Cn.Block,style:s});return this.schema.resolve(i)}};comment={enter:t=>new wr({content:t.text})};constructor(t){this.schema=t}enter(t){if(t instanceof Sr&&!t.isNamed){const e=Or.toPosition(t),n=t.type||t.text,{isMissing:r}=t;return new Er({value:n,position:e,isMissing:r})}}ERROR(t,e,n,r){const s=Or.toPosition(t),i=new xr({children:t.children,position:s,isUnexpected:!t.hasError,isMissing:t.isMissing,value:t.text});return 0===r.length?new ur({children:[i]}):i}}const Pr=Or;var kr=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=j,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var n;return this.f(e)||(this.all=!1,t=(n=this.xf["@@transducer/step"](t,!1))&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}),t},t}();function Nr(t){return function(e){return new kr(t,e)}}const Mr=o(S(["all"],Nr,(function(t,e){for(var n=0;n<e.length;){if(!t(e[n]))return!1;n+=1}return!0}))),Ir=(t,e)=>"object"==typeof e&&null!==e&&t in e&&"function"==typeof e[t],Tr=t=>"object"==typeof t&&null!=t&&"_storedElement"in t&&"string"==typeof t._storedElement&&"_content"in t,Cr=(t,e)=>"object"==typeof e&&null!==e&&"primitive"in e&&("function"==typeof e.primitive&&e.primitive()===t),Rr=(t,e)=>"object"==typeof e&&null!==e&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof st.ON)&&e.classes.includes(t),Fr=(t,e)=>"object"==typeof e&&null!==e&&"element"in e&&e.element===t,qr=t=>t({hasMethod:Ir,hasBasicElementProps:Tr,primitiveEq:Cr,isElementType:Fr,hasClass:Rr}),Lr=qr((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof st.W_||t(n)&&e(void 0,n))),Vr=qr((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof st.RP||t(n)&&e("string",n))),Dr=qr((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof st.VL||t(n)&&e("number",n))),$r=qr((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof st.zr||t(n)&&e("null",n))),Br=qr((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof st.hh||t(n)&&e("boolean",n))),zr=qr((({hasBasicElementProps:t,primitiveEq:e,hasMethod:n})=>r=>r instanceof st.Sb||t(r)&&e("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),Ur=qr((({hasBasicElementProps:t,primitiveEq:e,hasMethod:n})=>r=>r instanceof st.ON&&!(r instanceof st.Sb)||t(r)&&e("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),Gr=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof st.c6||t(r)&&e("member",r)&&n(void 0,r))),Kr=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof st.EA||t(r)&&e("link",r)&&n(void 0,r))),Wr=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof st.tK||t(r)&&e("ref",r)&&n(void 0,r))),Zr=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Xt||t(r)&&e("annotation",r)&&n("array",r))),Yr=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof te||t(r)&&e("comment",r)&&n("string",r))),Hr=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof ne||t(r)&&e("parseResult",r)&&n("array",r))),Qr=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof se||t(r)&&e("sourceMap",r)&&n("array",r))),Xr=t=>Fr("object",t)||Fr("array",t)||Fr("boolean",t)||Fr("number",t)||Fr("string",t)||Fr("null",t)||Fr("member",t),Jr=t=>Qr(t.meta.get("sourceMap")),ts=(t,e)=>{if(0===t.length)return!0;const n=e.attributes.get("symbols");return!!Ur(n)&&Mr(vn(n.toValue()),t)},es=(t,e)=>0===t.length||Mr(vn(e.classes.toValue()),t);const ns=class extends Se{constructor(t,e){super(t,e),void 0!==e&&(this.value=e.value)}};const rs=class extends ns{};const ss=class extends ns{},is=(t,e={})=>{const{visited:n=new WeakMap}=e,r={...e,visited:n};if(n.has(t))return n.get(t);if(t instanceof st.KeyValuePair){const{key:e,value:s}=t,i=Lr(e)?is(e,r):e,o=Lr(s)?is(s,r):s,a=new st.KeyValuePair(i,o);return n.set(t,a),a}if(t instanceof st.rm){const e=t=>is(t,r),s=[...t].map(e),i=new st.rm(s);return n.set(t,i),i}if(t instanceof st.O4){const e=t=>is(t,r),s=[...t].map(e),i=new st.O4(s);return n.set(t,i),i}if(Lr(t)){const e=cs(t);if(n.set(t,e),t.content)if(Lr(t.content))e.content=is(t.content,r);else if(t.content instanceof st.KeyValuePair)e.content=is(t.content,r);else if(Array.isArray(t.content)){const n=t=>is(t,r);e.content=t.content.map(n)}else e.content=t.content;else e.content=t.content;return e}throw new rs("Value provided to cloneDeep function couldn't be cloned",{value:t})};is.safe=t=>{try{return is(t)}catch{return t}};const os=t=>{const{key:e,value:n}=t;return new st.KeyValuePair(e,n)},as=t=>{const e=new t.constructor;if(e.element=t.element,t.meta.length>0&&(e._meta=is(t.meta)),t.attributes.length>0&&(e._attributes=is(t.attributes)),Lr(t.content)){const n=t.content;e.content=as(n)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof st.KeyValuePair?e.content=os(t.content):e.content=t.content;return e},cs=t=>{if(t instanceof st.KeyValuePair)return os(t);if(t instanceof st.rm)return(t=>{const e=[...t];return new st.rm(e)})(t);if(t instanceof st.O4)return(t=>{const e=[...t];return new st.O4(e)})(t);if(Lr(t))return as(t);throw new ss("Value provided to cloneShallow function couldn't be cloned",{value:t})};cs.safe=t=>{try{return cs(t)}catch{return t}};const us=t=>zr(t)?"ObjectElement":Ur(t)?"ArrayElement":Gr(t)?"MemberElement":Vr(t)?"StringElement":Br(t)?"BooleanElement":Dr(t)?"NumberElement":$r(t)?"NullElement":Kr(t)?"LinkElement":Wr(t)?"RefElement":void 0,ls=t=>Lr(t)?cs(t):Kn(t),ps=yt(us,ue),fs={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const hs=(t,e,{keyMap:n=fs,...r}={})=>Wn(t,e,{keyMap:n,nodeTypeGetter:us,nodePredicate:ps,nodeCloneFn:ls,...r});hs[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:n=fs,...r}={})=>Wn[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:n,nodeTypeGetter:us,nodePredicate:ps,nodeCloneFn:ls,...r});const _s=a((function(t,e,n){var r,s={};for(r in n=n||{},e=e||{})T(r,e)&&(s[r]=T(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)T(r,n)&&!T(r,s)&&(s[r]=n[r]);return s}));const ds=a((function t(e,n,r){return _s((function(n,r,s){return St(r)&&St(s)?t(e,r,s):e(n,r,s)}),n,r)}));const ms=o((function(t,e){return ds((function(t,e,n){return n}),t,e)}));const ys=dt(0,-1);const gs=o((function(t,e){return t.apply(this,e)}));const vs=K(Kt);var bs=i((function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():y(t)?[]:l(t)?"":St(t)?{}:R(t)?function(){return arguments}():function(t){var e=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===e||"[object Int8Array]"===e||"[object Uint8Array]"===e||"[object Int16Array]"===e||"[object Uint16Array]"===e||"[object Int32Array]"===e||"[object Uint32Array]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object BigInt64Array]"===e||"[object BigUint64Array]"===e}(t)?t.constructor.from(""):void 0}));const ws=bs;const Es=i((function(t){return null!=t&&J(t,ws(t))}));const xs=Ft(I(1,Kt(Array.isArray)?Array.isArray:yt(H,vt("Array"))),Es);const Ss=I(3,(function(t,e,n){var r=It(t,n),s=It(ys(t),n);if(!vs(r)&&!xs(t)){var i=at(r,s);return gs(i,e)}})),As=()=>({predicates:{...t},namespace:ce}),js={toolboxCreator:As,visitorOptions:{nodeTypeGetter:us,exposeEdits:!0}},Os=(t,e,n={})=>{if(0===e.length)return t;const r=ms(js,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),a=e.map((t=>t(o))),c=((t,{visitFnGetter:e=Bn,nodeTypeGetter:n=Un,breakSymbol:r=zn,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(t.length).fill(a);return{enter(u,...l){let p=u,f=!1;for(let h=0;h<t.length;h+=1)if(c[h]===a){const a=e(t[h],n(p),!1);if("function"==typeof a){const e=a.call(t[h],p,...l);if(e===i)c[h]=u;else if(e===r)c[h]=r;else{if(e===s)return e;if(void 0!==e){if(!o)return e;p=e,f=!0}}}}return f?p:void 0},leave(s,...o){for(let u=0;u<t.length;u+=1)if(c[u]===a){const a=e(t[u],n(s),!0);if("function"==typeof a){const e=a.call(t[u],s,...o);if(e===r)c[u]=r;else if(void 0!==e&&e!==i)return e}}else c[u]===s&&(c[u]=a)}}})(a.map(h({},"visitor")),{...i});a.forEach(Ss(["pre"],[]));const u=hs(t,c,i);return a.forEach(Ss(["post"],[])),u},Ps=(t,{Type:e,plugins:n=[]})=>{const r=new e(t);return Os(r,n,{toolboxCreator:As,visitorOptions:{nodeTypeGetter:us}})},ks=t=>(e,n={})=>Ps(e,{...n,Type:t});st.Sb.refract=ks(st.Sb),st.ON.refract=ks(st.ON),st.RP.refract=ks(st.RP),st.hh.refract=ks(st.hh),st.zr.refract=ks(st.zr),st.VL.refract=ks(st.VL),st.EA.refract=ks(st.EA),st.tK.refract=ks(st.tK),Xt.refract=ks(Xt),te.refract=ks(te),ne.refract=ks(ne),se.refract=ks(se);const Ns={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...fs},Ms=t=>Lr(t)?us(t):Un(t),Is=t=>Lr(t)||Gn(t)||Array.isArray(t);const Ts=class{sourceMap=!1;processedDocumentCount=0;stream={leave:t=>{const e=new ne;e._content=t.children.flat(1);const n=e.findElements(Xr);if(n.length>0){n[0].classes.push("result")}return this.annotations.forEach((t=>{e.push(t)})),this.annotations=[],e}};constructor(){this.annotations=[],this.namespace=ae()}comment(t){if(0===this.processedDocumentCount){const e=new te(t.content);return this.maybeAddSourceMap(t,e),e}return null}document(t){const e=1===this.processedDocumentCount,n=this.processedDocumentCount>=1;if(e){const e=new Xt("Only first document within YAML stream will be used. Rest will be discarded.");e.classes.push("warning"),this.maybeAddSourceMap(t,e),this.annotations.push(e)}return n?null:(this.processedDocumentCount+=1,t.children)}mapping(t){const e=new st.Sb;return e._content=t.children,this.maybeAddSourceMap(t,e),e}keyValuePair(t){const e=new st.c6;return e.content.key=t.key,e.content.value=t.value,this.maybeAddSourceMap(t,e),t.children.filter((t=>"error"===t.type)).forEach((e=>{this.error(e,t,[],[t])})),e}sequence(t){const e=new st.ON;return e._content=t.children,this.maybeAddSourceMap(t,e),e}scalar(t){const e=this.namespace.toElement(t.content);return""===t.content&&t.style===Tn.Plain&&(e.classes.push("yaml-e-node"),e.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(t,e),e}literal(t){if(t.isMissing){const e=`(Missing ${t.value})`,n=new Xt(e);n.classes.push("warning"),this.maybeAddSourceMap(t,n),this.annotations.push(n)}return null}error(t,e,n,r){const s=t.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new Xt(s);if(i.classes.push("error"),this.maybeAddSourceMap(t,i),0===r.length){const t=new ne;return t.push(i),t}return this.annotations.push(i),null}maybeAddSourceMap(t,e){if(!this.sourceMap)return;const n=new se;n.position=t.position,n.astNode=t,e.meta.set("sourceMap",n)}};class Cs{constructor(t){this.cursor=t}stream(){return new Sr(this.cursor)}yaml_directive(){return new Sr(this.cursor)}tag_directive(){return new Sr(this.cursor)}reserved_directive(){return new Sr(this.cursor)}document(){return new Sr(this.cursor)}block_node(){return new Sr(this.cursor).setFieldName(this.cursor)}flow_node(){return new Sr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Sr(this.cursor)}block_mapping_pair(){return new Sr(this.cursor)}flow_mapping(){return new Sr(this.cursor)}flow_pair(){return new Sr(this.cursor)}block_sequence(){return new Sr(this.cursor)}block_sequence_item(){return new Sr(this.cursor)}flow_sequence(){return new Sr(this.cursor)}plain_scalar(){return new Sr(this.cursor)}single_quote_scalar(){return new Sr(this.cursor)}double_quote_scalar(){return new Sr(this.cursor)}block_scalar(){return new Sr(this.cursor)}ERROR(){return new Sr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let t;if(t=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Sr(this.cursor),this.cursor.gotoFirstChild()){const[e]=new Cs(this.cursor);for(t.pushChildren(e);this.cursor.gotoNextSibling();){const e=Array.from(new Cs(this.cursor));t.pushChildren(...e)}t.children.reduce(((t,e)=>(e.setPreviousSibling(t),e)),void 0),this.cursor.gotoParent()}yield t}}const Rs=Cs,Fs=(t,{sourceMap:e=!1}={})=>{const n=t.walk(),r=new Rs(n),[s]=Array.from(r),i=new Pr,o=new Ts,a=new $n,c=Wn(s,i,{keyMap:Ar,nodePredicate:jr,state:{schema:a,sourceMap:e}});return Wn(c.rootNode,o,{keyMap:Ns,nodeTypeGetter:Ms,nodePredicate:Is,state:{sourceMap:e}})};const qs=o((function(t,e){return m((function(n,r){return n[r]=t(e[r],r,e),n}),{},$(e))}));const Ls=i((function(t){return null==t}));const Vs=o((function(t,e){if(0===t.length||Ls(e))return!1;for(var n=e,r=0;r<t.length;){if(Ls(n)||!T(t[r],n))return!1;n=n[t[r]],r+=1}return!0}));var Ds=o((function(t,e){return Vs([t],e)}));const $s=Ds;const Bs=a((function(t,e,n){return t(f(e,n))})),zs=(t,e)=>{const n=c(t,e);return qs((t=>{if(Ht(t)&&$s("$ref",t)&&Bs(ue,"$ref",t)){const e=It(["$ref"],t),r=bn("#/",e);return It(r.split("/"),n)}return Ht(t)?zs(t,n):t}),t)};const Us=class{copyMetaAndAttributes(t,e){Jr(t)&&e.meta.set("sourceMap",t.meta.get("sourceMap"))}};const Gs=class extends Us{enter(t){return this.element=is(t),zn}},Ks=(t,e,n=[])=>{const r=Object.getOwnPropertyDescriptors(e);for(let t of n)delete r[t];Object.defineProperties(t,r)},Ws=(t,e=[t])=>{const n=Object.getPrototypeOf(t);return null===n?e:Ws(n,[...e,n])},Zs=(t,e,n=[])=>{var r;const s=null!==(r=((...t)=>{if(0===t.length)return;let e;const n=t.map((t=>Ws(t)));for(;n.every((t=>t.length>0));){const t=n.map((t=>t.pop())),r=t[0];if(!t.every((t=>t===r)))break;e=r}return e})(...t))&&void 0!==r?r:Object.prototype,i=Object.create(s),o=Ws(s);for(let e of t){let t=Ws(e);for(let e=t.length-1;e>=0;e--){let r=t[e];-1===o.indexOf(r)&&(Ks(i,r,["constructor",...n]),o.push(r))}}return i.constructor=e,i},Ys=t=>t.filter(((e,n)=>t.indexOf(e)==n)),Hs=(t,e)=>{const n=e.map((t=>Ws(t)));let r=0,s=!0;for(;s;){s=!1;for(let i=e.length-1;i>=0;i--){const e=n[i][r];if(null!=e&&(s=!0,null!=Object.getOwnPropertyDescriptor(e,t)))return n[i][0]}r++}},Qs=(t,e=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>e,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(e,n)=>Object.getOwnPropertyDescriptor(Hs(n,t)||{},n),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(n,r)=>void 0!==Hs(r,t)||void 0!==e[r],get:(n,r)=>(Hs(r,t)||e)[r],set(e,n,r){const s=Hs(n,t);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:()=>t.map(Object.getOwnPropertyNames).reduce(((t,e)=>e.concat(t.filter((t=>e.indexOf(t)<0)))))}),Xs=null,Js="copy",ti="copy",ei="deep",ni=new Map,ri=t=>ni.get(t),si=(t,e)=>{var n,r;const s=Ys([...Object.getOwnPropertyNames(t),...Object.getOwnPropertyNames(e)]),i={};for(let o of s)i[o]=Ys([...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[],...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[]]);return i},ii=(t,e)=>{var n,r,s,i;return{property:si(null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{},null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{}),method:si(null!==(s=null==t?void 0:t.method)&&void 0!==s?s:{},null!==(i=null==e?void 0:e.method)&&void 0!==i?i:{})}},oi=(t,e)=>{var n,r,s,i,o,a;return{class:Ys([...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[],...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[]]),static:ii(null!==(s=null==t?void 0:t.static)&&void 0!==s?s:{},null!==(i=null==e?void 0:e.static)&&void 0!==i?i:{}),instance:ii(null!==(o=null==t?void 0:t.instance)&&void 0!==o?o:{},null!==(a=null==e?void 0:e.instance)&&void 0!==a?a:{})}},ai=new Map,ci=(...t)=>{const e=((...t)=>{var e;const n=new Set,r=new Set([...t]);for(;r.size>0;)for(let t of r){const s=[...Ws(t.prototype).map((t=>t.constructor)),...null!==(e=ri(t))&&void 0!==e?e:[]].filter((t=>!n.has(t)));for(let t of s)r.add(t);n.add(t),r.delete(t)}return[...n]})(...t).map((t=>ai.get(t))).filter((t=>!!t));return 0==e.length?{}:1==e.length?e[0]:e.reduce(((t,e)=>oi(t,e)))},ui=t=>{let e=ai.get(t);return e||(e={},ai.set(t,e)),e};function li(...t){var e,n,r;const s=t.map((t=>t.prototype)),i=Xs;if(null!==i){const t=s.map((t=>t[i])).filter((t=>"function"==typeof t)),e={[i]:function(...e){for(let n of t)n.apply(this,e)}};s.push(e)}function o(...e){for(const n of t)Ks(this,new n(...e));null!==i&&"function"==typeof this[i]&&this[i].apply(this,e)}var a,c;o.prototype="copy"===ti?Zs(s,o):(a=s,c=o,Qs([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Js?Zs(t,null,["prototype"]):Qs(t,Function.prototype));let u=o;if("none"!==ei){const s="deep"===ei?ci(...t):((...t)=>{const e=t.map((t=>ui(t)));return 0===e.length?{}:1===e.length?e[0]:e.reduce(((t,e)=>oi(t,e)))})(...t);for(let t of null!==(e=null==s?void 0:s.class)&&void 0!==e?e:[]){const e=t(u);e&&(u=e)}pi(null!==(n=null==s?void 0:s.static)&&void 0!==n?n:{},u),pi(null!==(r=null==s?void 0:s.instance)&&void 0!==r?r:{},u.prototype)}var l,p;return l=u,p=t,ni.set(l,p),u}const pi=(t,e)=>{const n=t.property,r=t.method;if(n)for(let t in n)for(let r of n[t])r(e,t);if(r)for(let t in r)for(let n of r[t])n(e,t,Object.getOwnPropertyDescriptor(e,t))};const fi=function(){return!0},hi=t=>"string"==typeof(null==t?void 0:t.type)?t.type:us(t),_i={EphemeralObject:["content"],EphemeralArray:["content"],...fs},di=(t,e,{keyMap:n=_i,...r}={})=>hs(t,e,{keyMap:n,nodeTypeGetter:hi,nodePredicate:fi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});di[Symbol.for("nodejs.util.promisify.custom")]=async(t,{keyMap:e=_i,...n}={})=>hs[Symbol.for("nodejs.util.promisify.custom")](t,visitor,{keyMap:e,nodeTypeGetter:hi,nodePredicate:fi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});const mi=class{type="EphemeralArray";content=[];reference=void 0;constructor(t){this.content=t,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const yi=class{type="EphemeralObject";content=[];reference=void 0;constructor(t){this.content=t,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class gi{ObjectElement={enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const e=new yi(t.content);return this.references.set(t,e),e}};EphemeralObject={leave:t=>t.toObject()};MemberElement={enter:t=>[t.key,t.value]};ArrayElement={enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const e=new mi(t.content);return this.references.set(t,e),e}};EphemeralArray={leave:t=>t.toArray()};references=new WeakMap;BooleanElement(t){return t.toValue()}NumberElement(t){return t.toValue()}StringElement(t){return t.toValue()}NullElement(){return null}}const vi=t=>Lr(t)?Vr(t)||Dr(t)||Br(t)||$r(t)?t.toValue():di(t,new gi):t;const bi=o((function(t,e){for(var n={},r=0;r<t.length;)t[r]in e&&(n[t[r]]=e[t[r]]),r+=1;return n})),wi=t=>{if(Lr(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},Ei={MainElement:["content"],InfoElement:["content"],PrincipleElement:["content"],StandardElement:["content"],ScenarioElement:["content"],RequirementElement:["content"],StandardIdentifierElement:["content"],RequirementLevelElement:[],...fs};const xi=class extends Us{passingOptionsNames=["specObj"];constructor(t={}){super(),Object.assign(this,t)}retrievePassingOptions(){return bi(this.passingOptionsNames,this)}retrieveFixedFields(t){const e=It(["visitors",...t,"fixedFields"],this.specObj);return"object"==typeof e&&null!==e?Object.keys(e):[]}retrieveVisitor(t){return Tt(Kt,["visitors",...t],this.specObj)?It(["visitors",...t],this.specObj):It(["visitors",...t,"$visitor"],this.specObj)}retrieveVisitorInstance(t,e={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(t))({...n,...e})}toRefractedElement(t,e,n={}){const r=this.retrieveVisitorInstance(t,n);return r instanceof Gs&&(null==r?void 0:r.constructor)===Gs?is(e):(hs(e,r,{keyMap:Ei,...n,nodeTypeGetter:wi}),r.element)}};class Si extends st.RP{constructor(t,e,n){super(t,e,n),this.element="requirementLevel"}}const Ai=Si;class ji extends(li(xi,Gs)){StringElement(t){const e=new Ai(vi(t));return this.copyMetaAndAttributes(t,e),this.element=e,zn}}const Oi=ji;class Pi extends st.ON{constructor(t,e,n){super(t,e,n),this.element="standardIdentifier"}}const ki=Pi;class Ni extends(li(xi,Gs)){constructor(t={}){super(t),this.element=new ki}ArrayElement(t){return t.forEach((t=>{const e=this.toRefractedElement(["document","objects","StandardIdentifier"],t);this.element.push(e)})),this.copyMetaAndAttributes(t,this.element),zn}}const Mi=Ni;class Ii extends st.Sb{constructor(t,e,n){super(t,e,n),this.element="requirement"}get subject(){return this.get("subject")}set subject(t){this.set("subject",t)}get level(){return this.get("level")}set level(t){this.set("level",t)}get values(){return this.get("values")}set values(t){this.set("values",t)}get follows(){return this.get("follows")}set follows(t){this.set("follows",t)}}const Ti=Ii;const Ci=class extends xi{ignoredFields=[];ObjectElement(t){const e=this.specPath(t),n=this.retrieveFixedFields(e);return t.forEach(((t,r,s)=>{if(Vr(r)&&n.includes(vi(r))&&!this.ignoredFields.includes(vi(r))){const n=this.toRefractedElement([...e,"fixedFields",vi(r)],t),i=new st.c6(is(r),n);i.classes.push("fixed-field"),this.copyMetaAndAttributes(s,i),this.element.content.push(i)}else this.ignoredFields.includes(vi(r))||this.element.content.push(is(s))})),this.copyMetaAndAttributes(t,this.element),zn}};class Ri extends(li(Ci,Gs)){constructor(t={}){super(t),this.specPath=tt(["document","objects","Requirement"]),this.element=new Ti}}const Fi=Ri,qi=Gs,Li=Gs;class Vi extends st.Sb{constructor(t,e,n){super(t,e,n),this.element="scenario"}get description(){return this.get("description")}set description(t){this.set("description",t)}get when(){return this.get("when")}set when(t){this.set("when",t)}get then(){return this.get("then")}set then(t){this.set("then",t)}}const Di=Vi;class $i extends(li(Ci,Gs)){constructor(t={}){super(t),this.specPath=tt(["document","objects","Scenario"]),this.element=new Di}}const Bi=$i,zi=Gs;class Ui extends(li(xi,Gs)){constructor(t={}){super(t),this.element=new st.ON,this.element.classes.push("scenario-then")}ArrayElement(t){return t.forEach((t=>{const e=this.toRefractedElement(["document","objects","Requirement"],t);this.element.push(e)})),this.copyMetaAndAttributes(t,this.element),zn}}const Gi=Ui;class Ki extends st.Sb{constructor(t,e,n){super(t,e,n),this.element="standard"}get name(){return this.get("name")}set name(t){this.set("name",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get iri(){return this.get("iri")}set iri(t){this.set("iri",t)}get level(){return this.get("level")}set level(t){this.set("level",t)}}const Wi=Ki;class Zi extends(li(Ci,Gs)){constructor(t={}){super(t),this.specPath=tt(["document","objects","Standard"]),this.element=new Wi}}const Yi=Zi,Hi=Gs,Qi=Gs,Xi=Gs;class Ji extends st.Sb{constructor(t,e,n){super(t,e,n),this.element="principle"}get name(){return this.get("name")}set name(t){this.set("name",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get iri(){return this.get("iri")}set iri(t){this.set("iri",t)}get level(){return this.get("level")}set level(t){this.set("level",t)}}const to=Ji;class eo extends(li(Ci,Gs)){constructor(t={}){super(t),this.specPath=tt(["document","objects","Principle"]),this.element=new to}}const no=eo,ro=Gs,so=Gs,io=Gs;class oo extends st.Sb{constructor(t,e,n){super(t,e,n),this.element="info"}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}}const ao=oo;class co extends(li(Ci,Gs)){constructor(t={}){super(t),this.specPath=tt(["document","objects","Info"]),this.element=new ao}}const uo=co,lo=Gs,po=Gs;class fo extends st.Sb{constructor(t,e,n){super(t,e,n),this.element="main",this.classes.push("api")}get version(){return this.get("version")}set version(t){this.set("version",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get principles(){return this.get("principles")}set principles(t){this.set("principles",t)}get standards(){return this.get("standards")}set standards(t){this.set("standards",t)}get scenarios(){return this.get("scenarios")}set scenarios(t){this.set("scenarios",t)}}const ho=fo;class _o extends(li(Ci,Gs)){constructor(t={}){super(t),this.specPath=tt(["document","objects","Main"]),this.element=new ho}}const mo=_o,yo=Gs;class go extends(li(xi,Gs)){constructor(t={}){super(t),this.element=new st.ON,this.element.classes.push("main-principles")}ArrayElement(t){return t.forEach((t=>{const e=this.toRefractedElement(["document","objects","Principle"],t);this.element.push(e)})),this.copyMetaAndAttributes(t,this.element),zn}}const vo=go;class bo extends(li(Gs,xi)){constructor(t={}){super(t),this.element=new st.ON,this.element.classes.push("main-standards")}ArrayElement(t){return t.forEach((t=>{const e=this.toRefractedElement(["document","objects","Standard"],t);this.element.push(e)})),this.copyMetaAndAttributes(t,this.element),zn}}const wo=bo;class Eo extends(li(xi,Gs)){constructor(t={}){super(t),this.element=new st.ON,this.element.classes.push("main-scenarios")}ArrayElement(t){return t.forEach((t=>{const e=this.toRefractedElement(["document","objects","Scenario"],t);this.element.push(e)})),this.copyMetaAndAttributes(t,this.element),zn}}const xo={visitors:{value:Gs,document:{objects:{Main:{$visitor:mo,fixedFields:{version:yo,info:{$ref:"#/visitors/document/objects/Info"},principles:vo,standards:wo,scenarios:Eo}},Info:{$visitor:uo,fixedFields:{title:lo,description:po}},Principle:{$visitor:no,fixedFields:{name:ro,description:so,iri:io,level:{$ref:"#/visitors/document/objects/RequirementLevel"}}},Standard:{$visitor:Yi,fixedFields:{name:Hi,description:Qi,level:{$ref:"#/visitors/document/objects/RequirementLevel"},iri:Xi}},Scenario:{$visitor:Bi,fixedFields:{description:zi,when:{$ref:"#/visitors/document/objects/StandardIdentifier"},then:Gi}},Requirement:{$visitor:Fi,fixedFields:{subject:{$ref:"#/visitors/document/objects/StandardIdentifier"},level:{$ref:"#/visitors/document/objects/RequirementLevel"},values:qi,follows:Li}},StandardIdentifier:{$visitor:Mi},RequirementLevel:{$visitor:Oi}}}}},So=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof ho||t(r)&&e("main",r)&&n("object",r))),Ao=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof ao||t(r)&&e("info",r)&&n("object",r))),jo=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof to||t(r)&&e("principle",r)&&n("object",r))),Oo=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Ti||t(r)&&e("requirement",r)&&n("object",r))),Po=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Ai||t(r)&&e("requirementLevel",r)&&n("string",r))),ko=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Di||t(r)&&e("scenario",r)&&n("object",r))),No=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Wi||t(r)&&e("standard",r)&&n("object",r))),Mo=qr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof ki||t(r)&&e("standardIdentifier",r)&&n("array",r))),Io={namespace:t=>{const{base:e}=t;return e.register("info",ao),e.register("main",ho),e.register("principle",to),e.register("requirement",Ti),e.register("requirementLevel",Ai),e.register("scenario",Di),e.register("standard",Wi),e.register("standardIdentifier",ki),e}},To=()=>{const t=ae(Io);return{predicates:{...e,isStringElement:Vr},namespace:t}},Co=(t,{specPath:e=["visitors","document","objects","Main","$visitor"],plugins:n=[]}={})=>{const r=(0,st.Qc)(t),s=zs(xo),i=new(It(e,s));return hs(r,i,{state:{specObj:s}}),Os(i.element,n,{toolboxCreator:To,visitorOptions:{keyMap:Ei,nodeTypeGetter:wi}})},Ro=t=>(e,n={})=>Co(e,{...n,specPath:t});ho.refract=Ro(["visitors","document","objects","Main","$visitor"]),ao.refract=Ro(["visitors","document","objects","Info","$visitor"]),to.refract=Ro(["visitors","document","objects","Principle","$visitor"]),Ti.refract=Ro(["visitors","document","objects","Requirement","$visitor"]),Ai.refract=Ro(["visitors","document","objects","RequirementLevel","$visitor"]),Di.refract=Ro(["visitors","document","objects","Scenario","$visitor"]),Wi.refract=Ro(["visitors","document","objects","Standard","$visitor"]),ki.refract=Ro(["visitors","document","objects","StandardIdentifier","$visitor"]);const Fo=p(-1);const qo=class extends me{};const Lo=class extends qo{};const Vo=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Lo("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Lo("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Lo("latest method in MediaTypes class is not yet implemented.")}};class Do extends Vo{filterByFormat(t="generic"){const e="generic"===t?"apidesignsystems;version":t;return this.filter((t=>t.includes(e)))}findBy(t="2021-05-07",e="generic"){const n="generic"===e?`apidesignsystems;version=${t}`:`apidesignsystems+${e};version=${t}`;return this.find((t=>t.includes(n)))||this.unknownMediaType}latest(t="generic"){return Fo(this.filterByFormat(t))}}const $o=new Do("application/vnd.aai.apidesignsystems;version=2021-05-07","application/vnd.aai.apidesignsystems+json;version=2021-05-07","application/vnd.aai.apidesignsystems+yaml;version=2021-05-07"),Bo=new Do(...$o.filterByFormat("generic"),...$o.filterByFormat("yaml")),zo=/(?<YAML>^(["']?)version\2\s*:\s*(["']?)(?<version_yaml>2021-05-07)\3)|(?<JSON>"version"\s*:\s*"(?<version_json>2021-05-07)")/m,Uo=async t=>zo.test(t)&&await(async t=>{try{return"ERROR"!==(await be(t)).rootNode.type}catch{return!1}})(t),Go=async(t,e={})=>{const n=h({},"refractorOpts",e),r=d(["refractorOpts"],e),s=await(async(t,{sourceMap:e=!1}={})=>{const n=await be(t);return Fs(n,{sourceMap:e})})(t,r),{result:i}=s;if(rt(i)){const t=ho.refract(i,n);t.classes.push("result"),s.replaceResult(t)}return s},Ko=ae(Io)})(),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.apidomParserAdapterApiDesignSystemsYaml=t():e.apidomParserAdapterApiDesignSystemsYaml=t()}(self,(()=>(()=>{var e={9408:(e,t,r)=>{var n=r(2676)(r(9088),"DataView");e.exports=n},9728:(e,t,r)=>{var n=r(7152),s=r(1372),i=r(1084),o=r(3516),a=r(1836);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},4920:(e,t,r)=>{var n=r(2444),s=r(8776),i=r(3580),o=r(1776),a=r(4688);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8192:(e,t,r)=>{var n=r(2676)(r(9088),"Map");e.exports=n},9892:(e,t,r)=>{var n=r(4112),s=r(1928),i=r(8976),o=r(9336),a=r(3976);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},5092:(e,t,r)=>{var n=r(2676)(r(9088),"Promise");e.exports=n},7968:(e,t,r)=>{var n=r(2676)(r(9088),"Set");e.exports=n},2539:(e,t,r)=>{var n=r(9892),s=r(520),i=r(6240);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},3288:(e,t,r)=>{var n=r(4920),s=r(816),i=r(4040),o=r(3304),a=r(4316),c=r(2968);function u(e){var t=this.__data__=new n(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},3972:(e,t,r)=>{var n=r(9088).Symbol;e.exports=n},400:(e,t,r)=>{var n=r(9088).Uint8Array;e.exports=n},1432:(e,t,r)=>{var n=r(2676)(r(9088),"WeakMap");e.exports=n},2856:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},192:(e,t,r)=>{var n=r(9664),s=r(3396),i=r(1648),o=r(9028),a=r(1640),c=r(5692),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&s(e),p=!r&&!l&&o(e),f=!r&&!l&&!p&&c(e),h=r||l||p||f,d=h?n(e.length,String):[],_=d.length;for(var m in e)!t&&!u.call(e,m)||h&&("length"==m||p&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,_))||d.push(m);return d}},4972:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},8702:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},1840:(e,t,r)=>{var n=r(4684);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},9476:(e,t,r)=>{var n=r(4972),s=r(1648);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},7596:(e,t,r)=>{var n=r(3972),s=r(712),i=r(2640),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},5064:(e,t,r)=>{var n=r(7596),s=r(8152);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},7816:(e,t,r)=>{var n=r(4480),s=r(8152);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,a))}},4480:(e,t,r)=>{var n=r(3288),s=r(7227),i=r(1872),o=r(3980),a=r(2300),c=r(1648),u=r(9028),l=r(5692),p="[object Arguments]",f="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,_,m,y){var g=c(e),v=c(t),b=g?f:a(e),w=v?f:a(t),E=(b=b==p?h:b)==h,x=(w=w==p?h:w)==h,S=b==w;if(S&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(S&&!E)return y||(y=new n),g||l(e)?s(e,t,r,_,m,y):i(e,t,b,r,_,m,y);if(!(1&r)){var A=E&&d.call(e,"__wrapped__"),j=x&&d.call(t,"__wrapped__");if(A||j){var P=A?e.value():e,O=j?t.value():t;return y||(y=new n),m(P,O,r,_,y)}}return!!S&&(y||(y=new n),o(e,t,r,_,m,y))}},7376:(e,t,r)=>{var n=r(9848),s=r(9008),i=r(3016),o=r(4776),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?f:a).test(o(e))}},420:(e,t,r)=>{var n=r(7596),s=r(9912),i=r(8152),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[n(e)]}},2144:(e,t,r)=>{var n=r(4084),s=r(7532),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},9664:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},5792:e=>{e.exports=function(e){return function(t){return e(t)}}},2844:e=>{e.exports=function(e,t){return e.has(t)}},1812:(e,t,r)=>{var n=r(9088)["__core-js_shared__"];e.exports=n},7227:(e,t,r)=>{var n=r(2539),s=r(8702),i=r(2844);e.exports=function(e,t,r,o,a,c){var u=1&r,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var f=c.get(e),h=c.get(t);if(f&&h)return f==t&&h==e;var d=-1,_=!0,m=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++d<l;){var y=e[d],g=t[d];if(o)var v=u?o(g,y,d,t,e,c):o(y,g,d,e,t,c);if(void 0!==v){if(v)continue;_=!1;break}if(m){if(!s(t,(function(e,t){if(!i(m,t)&&(y===e||a(y,e,r,o,c)))return m.push(t)}))){_=!1;break}}else if(y!==g&&!a(y,g,r,o,c)){_=!1;break}}return c.delete(e),c.delete(t),_}},1872:(e,t,r)=>{var n=r(3972),s=r(400),i=r(4684),o=r(7227),a=r(8788),c=r(7280),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,p,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new 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 h=a;case"[object Set]":var d=1&n;if(h||(h=c),e.size!=t.size&&!d)return!1;var _=f.get(e);if(_)return _==t;n|=2,f.set(e,t);var m=o(h(e),h(t),n,u,p,f);return f.delete(e),m;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},3980:(e,t,r)=>{var n=r(2892),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!c)return!1;for(var p=l;p--;){var f=u[p];if(!(c?f in t:s.call(t,f)))return!1}var h=a.get(e),d=a.get(t);if(h&&d)return h==t&&d==e;var _=!0;a.set(e,t),a.set(t,e);for(var m=c;++p<l;){var y=e[f=u[p]],g=t[f];if(i)var v=c?i(g,y,f,t,e,a):i(y,g,f,e,t,a);if(!(void 0===v?y===g||o(y,g,r,i,a):v)){_=!1;break}m||(m="constructor"==f)}if(_&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(_=!1)}return a.delete(e),a.delete(t),_}},7400:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},2892:(e,t,r)=>{var n=r(9476),s=r(7112),i=r(2820);e.exports=function(e){return n(e,i,s)}},2840:(e,t,r)=>{var n=r(6768);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},2676:(e,t,r)=>{var n=r(7376),s=r(2420);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},712:(e,t,r)=>{var n=r(3972),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[a]=r:delete e[a]),s}},7112:(e,t,r)=>{var n=r(2856),s=r(5992),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},2300:(e,t,r)=>{var n=r(9408),s=r(8192),i=r(5092),o=r(7968),a=r(1432),c=r(7596),u=r(4776),l="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",d="[object DataView]",_=u(n),m=u(s),y=u(i),g=u(o),v=u(a),b=c;(n&&b(new n(new ArrayBuffer(1)))!=d||s&&b(new s)!=l||i&&b(i.resolve())!=p||o&&b(new o)!=f||a&&b(new a)!=h)&&(b=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case _:return d;case m:return l;case y:return p;case g:return f;case v:return h}return t}),e.exports=b},2420:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},7152:(e,t,r)=>{var n=r(3768);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},1372:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1084:(e,t,r)=>{var n=r(3768),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},3516:(e,t,r)=>{var n=r(3768),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},1836:(e,t,r)=>{var n=r(3768);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},1640:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},6768:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9008:(e,t,r)=>{var n,s=r(1812),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},4084:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2444:e=>{e.exports=function(){this.__data__=[],this.size=0}},8776:(e,t,r)=>{var n=r(1840),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},3580:(e,t,r)=>{var n=r(1840);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},1776:(e,t,r)=>{var n=r(1840);e.exports=function(e){return n(this.__data__,e)>-1}},4688:(e,t,r)=>{var n=r(1840);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},4112:(e,t,r)=>{var n=r(9728),s=r(4920),i=r(8192);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},1928:(e,t,r)=>{var n=r(2840);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},8976:(e,t,r)=>{var n=r(2840);e.exports=function(e){return n(this,e).get(e)}},9336:(e,t,r)=>{var n=r(2840);e.exports=function(e){return n(this,e).has(e)}},3976:(e,t,r)=>{var n=r(2840);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},8788:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},3768:(e,t,r)=>{var n=r(2676)(Object,"create");e.exports=n},7532:(e,t,r)=>{var n=r(8443)(Object.keys,Object);e.exports=n},1548:(e,t,r)=>{e=r.nmd(e);var n=r(7400),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},2640:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},8443:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},9088:(e,t,r)=>{var n=r(7400),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},520:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},6240:e=>{e.exports=function(e){return this.__data__.has(e)}},7280:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},816:(e,t,r)=>{var n=r(4920);e.exports=function(){this.__data__=new n,this.size=0}},4040:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3304:e=>{e.exports=function(e){return this.__data__.get(e)}},4316:e=>{e.exports=function(e){return this.__data__.has(e)}},2968:(e,t,r)=>{var n=r(4920),s=r(8192),i=r(9892);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},4776: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""}},4684:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3396:(e,t,r)=>{var n=r(5064),s=r(8152),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},1648:e=>{var t=Array.isArray;e.exports=t},2468:(e,t,r)=>{var n=r(9848),s=r(9912);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},5904:(e,t,r)=>{var n=r(7596),s=r(8152);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},9028:(e,t,r)=>{e=r.nmd(e);var n=r(9088),s=r(6388),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},4744:(e,t,r)=>{var n=r(7816);e.exports=function(e,t){return n(e,t)}},9848:(e,t,r)=>{var n=r(7596),s=r(3016);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9912:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9948:e=>{e.exports=function(e){return null===e}},776:(e,t,r)=>{var n=r(7596),s=r(8152);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},3016:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},8152:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3116:(e,t,r)=>{var n=r(7596),s=r(1648),i=r(8152);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},5692:(e,t,r)=>{var n=r(420),s=r(5792),i=r(1548),o=i&&i.isTypedArray,a=o?s(o):n;e.exports=a},2820:(e,t,r)=>{var n=r(192),s=r(2144),i=r(2468);e.exports=function(e){return i(e)?n(e):s(e)}},9364: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)}}},5992:e=>{e.exports=function(){return[]}},6388:e=>{e.exports=function(){return!1}},1715:(e,t,r)=>{const n=r(9364);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 r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}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(n(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},6984: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},5524:(e,t,r)=>{const n=r(9948),s=r(3116),i=r(776),o=r(5904),a=r(3016),c=r(824),u=r(5012);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(n,u.NullElement,!1).detect(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,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(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},6040:(e,t,r)=>{const n=r(9364),s=r(1715);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},5012:(e,t,r)=>{const n=r(3216),s=r(904),i=r(2800),o=r(8640),a=r(1164),c=r(5208),u=r(7416),l=r(1800),p=r(5048),f=r(3392),h=r(1715),d=r(6040),_=r(6984);function m(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(m));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=f,n.prototype.MemberElement=u,n.prototype.refract=m,h.prototype.refract=m,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:f,refract:m,ArraySlice:h,ObjectSlice:d,KeyValuePair:_}},5048:(e,t,r)=>{const n=r(3216);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},3392:(e,t,r)=>{const n=r(3216);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},928:(e,t,r)=>{const n=r(5524),s=r(5012);t.MH=n,t.KeyValuePair=r(6984),t.eW=s.ArraySlice,t.wL=s.ObjectSlice,t.gr=s.Element,t.M$=s.StringElement,t.wH=s.NumberElement,t.Ar=s.BooleanElement,t.WM=s.NullElement,t.uQ=s.ArrayElement,t.We=s.ObjectElement,t.u6=s.MemberElement,t.eE=s.RefElement,t.UH=s.LinkElement,t.WG=s.refract,r(824),r(6400)},5208:(e,t,r)=>{const n=r(9364),s=r(3216),i=r(1715);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,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},1164:(e,t,r)=>{const n=r(3216);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},3216:(e,t,r)=>{const n=r(4744),s=r(6984),i=r(1715);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof 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 r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof 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},7416:(e,t,r)=>{const n=r(6984),s=r(3216);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,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)}}},904:(e,t,r)=>{const n=r(3216);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},8640:(e,t,r)=>{const n=r(3216);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},1800:(e,t,r)=>{const n=r(9364),s=r(3016),i=r(5208),o=r(7416),a=r(6040);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},2800:(e,t,r)=>{const n=r(3216);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},6400:(e,t,r)=>{const n=r(824);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.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),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},824:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},4160:(e,t)=>{"use strict";var r;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"}(r=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])},6259:(e,t,r)=>{"use strict";t.Go=void 0;const n=r(4160);function s(e,t,r){const s=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(s)||void 0!==r&&r!==e.length)throw new SyntaxError(n.errorMessages.get(t));return s}function i(e,t){const r=s(e,n.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=s(t,n.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,e)}return String.fromCharCode(r)}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,r,a,c,u,l,p,f,h){if(void 0!==r)return"\\";if(void 0!==a)return function(e){const t=s(e,n.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(n.errorMessages.get(n.ErrorType.MalformedUnicode));var t;const r=s(e.slice(1,-1),n.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(e){throw e instanceof RangeError?new SyntaxError(n.errorMessages.get(n.ErrorType.CodePointLimit)):e}}(c);if(void 0!==u)return i(u,l);if(void 0!==p)return i(p);if("0"===f)return"\0";if(void 0!==f)return function(e,t=!1){if(t)throw new SyntaxError(n.errorMessages.get(n.ErrorType.OctalDeprecation));const r=parseInt(e,8);return String.fromCharCode(r)}(f,!t);if(void 0!==h)return d=h,o.get(d)||d;var d;throw new SyntaxError(n.errorMessages.get(n.ErrorType.EndOfString))}))}t.Go=c},843:(e,t,r)=>{var n=void 0!==n?n:{},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||(n=Object.assign({},n,o),t=new Promise((t=>{var o,a={};for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);var c,u,l,p,f=[],h="./this.program",d=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 _,m,y,g,v,b="";c?(b=p?r(1560).dirname(b)+"/":"//",_=function(e,t){return g||(g=r(8544)),v||(v=r(1560)),e=v.normalize(e),g.readFileSync(e,t?null:"utf8")},y=function(e){var t=_(e,!0);return t.buffer||(t=new Uint8Array(t)),T(t.buffer),t},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),f=process.argv.slice(2),e.exports=n,d=function(e){process.exit(e)},n.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(_=function(e){return read(e)}),y=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(T("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?f=scriptArgs:void 0!==arguments&&(f=arguments),"function"==typeof quit&&(d=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||p)&&(p?b=self.location.href:void 0!==s&&s.currentScript&&(b=s.currentScript.src),b=0!==b.indexOf("blob:")?b.substr(0,b.lastIndexOf("/")+1):"",_=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(y=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),m=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}),n.print||console.log.bind(console);var w=n.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(n[o]=a[o]);a=null,n.arguments&&(f=n.arguments),n.thisProgram&&(h=n.thisProgram),n.quit&&(d=n.quit);var E,x=16,S=[];function A(e,t){if(!E){E=new WeakMap;for(var r=0;r<Z.length;r++){var n=Z.get(r);n&&E.set(n,r)}}if(E.has(e))return E.get(e);var s=function(){if(S.length)return S.pop();try{Z.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Z.length-1}();try{Z.set(s,e)}catch(r){if(!(r instanceof TypeError))throw r;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},s=1;s<t.length;++s)n.parameters.push(r[t[s]]);return new WebAssembly.Function(n,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);Z.set(s,i)}return E.set(e,s),s}var j,P=n.dynamicLibraries||[];n.wasmBinary&&(j=n.wasmBinary);var O,k=n.noExitRuntime||!0;function N(e,t,r,n){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":R[e>>0]=t;break;case"i16":q[e>>1]=t;break;case"i32":L[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)],L[e>>2]=le[0],L[e+4>>2]=le[1];break;case"float":$[e>>2]=t;break;case"double":V[e>>3]=t;break;default:ae("invalid type for setValue: "+r)}}function M(e,t,r){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return R[e>>0];case"i16":return q[e>>1];case"i32":case"i64":return L[e>>2];case"float":return $[e>>2];case"double":return V[e>>3];default:ae("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ae("no native wasm support detected");var I=!1;function T(e,t){e||ae("Assertion failed: "+t)}var C,R,F,q,L,$,V,D="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(e,t,r){for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.subarray&&D)return D.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 W(e,t){return e?B(F,e,t):""}function U(e,t,r,n){if(!(n>0))return 0;for(var s=r,i=r+n-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(r>=i)break;t[r++]=a}else if(a<=2047){if(r+1>=i)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=i)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-s}function z(e,t,r){return U(e,F,t,r)}function G(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}function K(e){var t=G(e)+1,r=We(t);return U(e,R,r,t),r}function H(e){C=e,n.HEAP8=R=new Int8Array(e),n.HEAP16=q=new Int16Array(e),n.HEAP32=L=new Int32Array(e),n.HEAPU8=F=new Uint8Array(e),n.HEAPU16=new Uint16Array(e),n.HEAPU32=new Uint32Array(e),n.HEAPF32=$=new Float32Array(e),n.HEAPF64=V=new Float64Array(e)}var Y=n.INITIAL_MEMORY||33554432;(O=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:Y/65536,maximum:32768}))&&(C=O.buffer),Y=C.byteLength,H(C);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),Q=[],X=[],J=[],ee=[],te=!1,re=0,ne=null,se=null;function ie(e){re++,n.monitorRunDependencies&&n.monitorRunDependencies(re)}function oe(e){if(re--,n.monitorRunDependencies&&n.monitorRunDependencies(re),0==re&&(null!==ne&&(clearInterval(ne),ne=null),se)){var t=se;se=null,t()}}function ae(e){throw n.onAbort&&n.onAbort(e),w(e+=""),I=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}n.preloadedImages={},n.preloadedAudios={},n.preloadedWasm={};var ce,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function fe(e){return e.startsWith("file://")}function he(e){try{if(e==ce&&j)return new Uint8Array(j);if(y)return y(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return n.locateFile?n.locateFile(e,b):b+e}(ce));var de={},_e={get:function(e,t){return de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),de[t]}};function me(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?Z.get(r)():Z.get(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(n)}}function ye(e){var t=0;function r(){for(var r=0,n=1;;){var s=e[t++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}if(e instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(e,"dylink");T(0!=n.length,"need dylink section"),e=new Int8Array(n[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,r(),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=r(),s.memoryAlign=r(),s.tableSize=r(),s.tableAlign=r();var i=r();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=r(),c=e.subarray(t,t+a);t+=a;var u=B(c,0);s.neededDynlibs.push(u)}return s}var ge=0;function ve(){return k||ge>0}function be(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function we(e,t){for(var r in e)if(e.hasOwnProperty(r)){Le.hasOwnProperty(r)||(Le[r]=e[r]);var s=be(r);n.hasOwnProperty(s)||(n[s]=e[r])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xe=5250880;function Se(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Ae(e,t){var r={};for(var n in e){var s=e[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),r[n]=s}return function(e){for(var t in e)if(!Se(t)){var r=!1,n=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],r=!0),de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==de[t].value)&&("function"==typeof n?de[t].value=A(n):"number"==typeof n?de[t].value=n:w("unhandled export type for `"+t+"`: "+typeof n))}}(r),r}function je(e,t){var r,s;return t&&(r=Le["orig$"+e]),r||(r=Le[e]),r||(r=n[be(e)]),!r&&e.startsWith("invoke_")&&(s=e.split("_")[1],r=function(){var e=De();try{return function(e,t,r){return e.includes("j")?function(e,t,r){var s=n["dynCall_"+e];return r&&r.length?s.apply(null,[t].concat(r)):s.call(null,t)}(e,t,r):Z.get(t).apply(null,r)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Be(e),t!==t+0&&"longjmp"!==t)throw t;Ue(1,0)}}),r}function Pe(e,t){var r=ye(e);function n(){var n=Math.pow(2,r.memoryAlign);n=Math.max(n,x);var s,i,o,a=(s=function(e){if(te)return $e(e);var t=xe,r=t+e+15&-16;return xe=r,de.__heap_base.value=r,t}(r.memorySize+n),(i=n)||(i=x),Math.ceil(s/i)*i),c=Z.length;Z.grow(r.tableSize);for(var u=a;u<a+r.memorySize;u++)R[u]=0;for(u=c;u<c+r.tableSize;u++)Z.set(u,null);var l=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return a;case"__table_base":return c}return t in Le?Le[t]:(t in e||(e[t]=function(){return r||(r=function(e){var t=je(e,!1);return t||(t=o[e]),t}(t)),r.apply(null,arguments)}),e[t]);var r}}),p={"GOT.mem":new Proxy({},_e),"GOT.func":new Proxy({},_e),env:l,wasi_snapshot_preview1:l};function f(e){for(var n=0;n<r.tableSize;n++){var s=Z.get(c+n);s&&E.set(s,c+n)}o=Ae(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 h=new WebAssembly.Instance(e,p);return Promise.resolve(f(h))}return WebAssembly.instantiate(e,p).then((function(e){return f(e.instance)}))}var d=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return f(h=new WebAssembly.Instance(d,p))}return t.loadAsync?r.neededDynlibs.reduce((function(e,r){return e.then((function(){return Oe(r,t)}))}),Promise.resolve()).then((function(){return n()})):(r.neededDynlibs.forEach((function(e){Oe(e,t)})),n())}function Oe(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:n.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var r,s=Ee.loadedLibNames[e];if(s)return r=Ee.loadedLibs[s],t.global&&!r.global&&(r.global=!0,"loading"!==r.module&&we(r.module)),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,t.loadAsync?Promise.resolve(s):s;function i(e){if(t.fs){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}return t.loadAsync?(n=e,fetch(n,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+n+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):y(e);var n}function o(){if(void 0!==n.preloadedWasm&&void 0!==n.preloadedWasm[e]){var r=n.preloadedWasm[e];return t.loadAsync?Promise.resolve(r):r}return t.loadAsync?i(e).then((function(e){return Pe(e,t)})):Pe(i(e),t)}function a(e){r.global&&we(e),r.module=e}return s=Ee.nextHandle++,r={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=s,Ee.loadedLibs[s]=r,t.loadAsync?o().then((function(e){return a(e),s})):(a(o()),s)}function ke(){for(var e in de)if(0==de[e].value){var t=je(e,!0);"function"==typeof t?de[e].value=A(t,t.sig):"number"==typeof t?de[e].value=t:T(!1,"bad export type for `"+e+"`: "+typeof t)}}n.___heap_base=xe;var Ne,Me=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Ie(){ae()}n._abort=Ie,Ie.sig="v",Ne=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 r;if(0===e)r=Date.now();else{if(1!==e&&4!==e)return 28,L[Ve()>>2]=28,-1;r=Ne()}return L[t>>2]=r/1e3|0,L[t+4>>2]=r%1e3*1e3*1e3|0,0}function Ce(e){try{return O.grow(e-C.byteLength+65535>>>16),H(O.buffer),1}catch(e){}}function Re(e){He(e)}function Fe(e){}Te.sig="iii",Re.sig="vi",Fe.sig="vi";var qe,Le={__heap_base:xe,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:Me,__table_base:1,abort:Ie,clock_gettime:Te,emscripten_memcpy_big:function(e,t,r){F.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t,r=F.length;if((e>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);if(s=Math.min(s,e+100663296),Ce(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Re,memory:O,setTempRet0:Fe,tree_sitter_log_callback:function(e,t){if(ut){const r=W(t);ut(r,0!==e)}},tree_sitter_parse_callback:function(e,t,r,n,s){var i=ct(t,{row:r,column:n});"string"==typeof i?(N(s,i.length,"i32"),function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=(r-=2)<2*e.length?r/2:e.length,s=0;s<n;++s){var i=e.charCodeAt(s);q[t>>1]=i,t+=2}q[t>>1]=0}(i,e,10240)):N(s,0,"i32")}},$e=(function(){var e={env:Le,wasi_snapshot_preview1:Le,"GOT.mem":new Proxy(Le,_e),"GOT.func":new Proxy(Le,_e)};function t(e,t){var r=e.exports;r=Ae(r,1024),n.asm=r;var s,i=ye(t);i.neededDynlibs&&(P=i.neededDynlibs.concat(P)),we(r),s=n.asm.__wasm_call_ctors,X.unshift(s),oe()}function r(e){t(e.instance,e.module)}function s(t){return function(){if(!j&&(l||p)){if("function"==typeof fetch&&!fe(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 he(ce)}));if(m)return new Promise((function(e,t){m(ce,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return he(ce)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){w("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),n.instantiateWasm)try{return n.instantiateWasm(e,t)}catch(e){return w("Module.instantiateWasm callback failed with error: "+e),!1}j||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||fe(ce)||"function"!=typeof fetch?s(r):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return w("wasm streaming compile failed: "+e),w("falling back to ArrayBuffer instantiation"),s(r)}))}))}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.__wasm_call_ctors).apply(null,arguments)},n._malloc=function(){return($e=n._malloc=n.asm.malloc).apply(null,arguments)}),Ve=(n._calloc=function(){return(n._calloc=n.asm.calloc).apply(null,arguments)},n._realloc=function(){return(n._realloc=n.asm.realloc).apply(null,arguments)},n._free=function(){return(n._free=n.asm.free).apply(null,arguments)},n._ts_language_symbol_count=function(){return(n._ts_language_symbol_count=n.asm.ts_language_symbol_count).apply(null,arguments)},n._ts_language_version=function(){return(n._ts_language_version=n.asm.ts_language_version).apply(null,arguments)},n._ts_language_field_count=function(){return(n._ts_language_field_count=n.asm.ts_language_field_count).apply(null,arguments)},n._ts_language_symbol_name=function(){return(n._ts_language_symbol_name=n.asm.ts_language_symbol_name).apply(null,arguments)},n._ts_language_symbol_for_name=function(){return(n._ts_language_symbol_for_name=n.asm.ts_language_symbol_for_name).apply(null,arguments)},n._ts_language_symbol_type=function(){return(n._ts_language_symbol_type=n.asm.ts_language_symbol_type).apply(null,arguments)},n._ts_language_field_name_for_id=function(){return(n._ts_language_field_name_for_id=n.asm.ts_language_field_name_for_id).apply(null,arguments)},n._memcpy=function(){return(n._memcpy=n.asm.memcpy).apply(null,arguments)},n._ts_parser_delete=function(){return(n._ts_parser_delete=n.asm.ts_parser_delete).apply(null,arguments)},n._ts_parser_reset=function(){return(n._ts_parser_reset=n.asm.ts_parser_reset).apply(null,arguments)},n._ts_parser_set_language=function(){return(n._ts_parser_set_language=n.asm.ts_parser_set_language).apply(null,arguments)},n._ts_parser_timeout_micros=function(){return(n._ts_parser_timeout_micros=n.asm.ts_parser_timeout_micros).apply(null,arguments)},n._ts_parser_set_timeout_micros=function(){return(n._ts_parser_set_timeout_micros=n.asm.ts_parser_set_timeout_micros).apply(null,arguments)},n._memmove=function(){return(n._memmove=n.asm.memmove).apply(null,arguments)},n._memcmp=function(){return(n._memcmp=n.asm.memcmp).apply(null,arguments)},n._ts_query_new=function(){return(n._ts_query_new=n.asm.ts_query_new).apply(null,arguments)},n._ts_query_delete=function(){return(n._ts_query_delete=n.asm.ts_query_delete).apply(null,arguments)},n._iswspace=function(){return(n._iswspace=n.asm.iswspace).apply(null,arguments)},n._iswalnum=function(){return(n._iswalnum=n.asm.iswalnum).apply(null,arguments)},n._ts_query_pattern_count=function(){return(n._ts_query_pattern_count=n.asm.ts_query_pattern_count).apply(null,arguments)},n._ts_query_capture_count=function(){return(n._ts_query_capture_count=n.asm.ts_query_capture_count).apply(null,arguments)},n._ts_query_string_count=function(){return(n._ts_query_string_count=n.asm.ts_query_string_count).apply(null,arguments)},n._ts_query_capture_name_for_id=function(){return(n._ts_query_capture_name_for_id=n.asm.ts_query_capture_name_for_id).apply(null,arguments)},n._ts_query_string_value_for_id=function(){return(n._ts_query_string_value_for_id=n.asm.ts_query_string_value_for_id).apply(null,arguments)},n._ts_query_predicates_for_pattern=function(){return(n._ts_query_predicates_for_pattern=n.asm.ts_query_predicates_for_pattern).apply(null,arguments)},n._ts_tree_copy=function(){return(n._ts_tree_copy=n.asm.ts_tree_copy).apply(null,arguments)},n._ts_tree_delete=function(){return(n._ts_tree_delete=n.asm.ts_tree_delete).apply(null,arguments)},n._ts_init=function(){return(n._ts_init=n.asm.ts_init).apply(null,arguments)},n._ts_parser_new_wasm=function(){return(n._ts_parser_new_wasm=n.asm.ts_parser_new_wasm).apply(null,arguments)},n._ts_parser_enable_logger_wasm=function(){return(n._ts_parser_enable_logger_wasm=n.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},n._ts_parser_parse_wasm=function(){return(n._ts_parser_parse_wasm=n.asm.ts_parser_parse_wasm).apply(null,arguments)},n._ts_language_type_is_named_wasm=function(){return(n._ts_language_type_is_named_wasm=n.asm.ts_language_type_is_named_wasm).apply(null,arguments)},n._ts_language_type_is_visible_wasm=function(){return(n._ts_language_type_is_visible_wasm=n.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},n._ts_tree_root_node_wasm=function(){return(n._ts_tree_root_node_wasm=n.asm.ts_tree_root_node_wasm).apply(null,arguments)},n._ts_tree_edit_wasm=function(){return(n._ts_tree_edit_wasm=n.asm.ts_tree_edit_wasm).apply(null,arguments)},n._ts_tree_get_changed_ranges_wasm=function(){return(n._ts_tree_get_changed_ranges_wasm=n.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},n._ts_tree_cursor_new_wasm=function(){return(n._ts_tree_cursor_new_wasm=n.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},n._ts_tree_cursor_delete_wasm=function(){return(n._ts_tree_cursor_delete_wasm=n.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},n._ts_tree_cursor_reset_wasm=function(){return(n._ts_tree_cursor_reset_wasm=n.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_first_child_wasm=function(){return(n._ts_tree_cursor_goto_first_child_wasm=n.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_next_sibling_wasm=function(){return(n._ts_tree_cursor_goto_next_sibling_wasm=n.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_parent_wasm=function(){return(n._ts_tree_cursor_goto_parent_wasm=n.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_type_id_wasm=function(){return(n._ts_tree_cursor_current_node_type_id_wasm=n.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_named_wasm=function(){return(n._ts_tree_cursor_current_node_is_named_wasm=n.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_missing_wasm=function(){return(n._ts_tree_cursor_current_node_is_missing_wasm=n.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_id_wasm=function(){return(n._ts_tree_cursor_current_node_id_wasm=n.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},n._ts_tree_cursor_start_position_wasm=function(){return(n._ts_tree_cursor_start_position_wasm=n.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},n._ts_tree_cursor_end_position_wasm=function(){return(n._ts_tree_cursor_end_position_wasm=n.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},n._ts_tree_cursor_start_index_wasm=function(){return(n._ts_tree_cursor_start_index_wasm=n.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},n._ts_tree_cursor_end_index_wasm=function(){return(n._ts_tree_cursor_end_index_wasm=n.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},n._ts_tree_cursor_current_field_id_wasm=function(){return(n._ts_tree_cursor_current_field_id_wasm=n.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_wasm=function(){return(n._ts_tree_cursor_current_node_wasm=n.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},n._ts_node_symbol_wasm=function(){return(n._ts_node_symbol_wasm=n.asm.ts_node_symbol_wasm).apply(null,arguments)},n._ts_node_child_count_wasm=function(){return(n._ts_node_child_count_wasm=n.asm.ts_node_child_count_wasm).apply(null,arguments)},n._ts_node_named_child_count_wasm=function(){return(n._ts_node_named_child_count_wasm=n.asm.ts_node_named_child_count_wasm).apply(null,arguments)},n._ts_node_child_wasm=function(){return(n._ts_node_child_wasm=n.asm.ts_node_child_wasm).apply(null,arguments)},n._ts_node_named_child_wasm=function(){return(n._ts_node_named_child_wasm=n.asm.ts_node_named_child_wasm).apply(null,arguments)},n._ts_node_child_by_field_id_wasm=function(){return(n._ts_node_child_by_field_id_wasm=n.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},n._ts_node_next_sibling_wasm=function(){return(n._ts_node_next_sibling_wasm=n.asm.ts_node_next_sibling_wasm).apply(null,arguments)},n._ts_node_prev_sibling_wasm=function(){return(n._ts_node_prev_sibling_wasm=n.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},n._ts_node_next_named_sibling_wasm=function(){return(n._ts_node_next_named_sibling_wasm=n.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},n._ts_node_prev_named_sibling_wasm=function(){return(n._ts_node_prev_named_sibling_wasm=n.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},n._ts_node_parent_wasm=function(){return(n._ts_node_parent_wasm=n.asm.ts_node_parent_wasm).apply(null,arguments)},n._ts_node_descendant_for_index_wasm=function(){return(n._ts_node_descendant_for_index_wasm=n.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_index_wasm=function(){return(n._ts_node_named_descendant_for_index_wasm=n.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_descendant_for_position_wasm=function(){return(n._ts_node_descendant_for_position_wasm=n.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_position_wasm=function(){return(n._ts_node_named_descendant_for_position_wasm=n.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_start_point_wasm=function(){return(n._ts_node_start_point_wasm=n.asm.ts_node_start_point_wasm).apply(null,arguments)},n._ts_node_end_point_wasm=function(){return(n._ts_node_end_point_wasm=n.asm.ts_node_end_point_wasm).apply(null,arguments)},n._ts_node_start_index_wasm=function(){return(n._ts_node_start_index_wasm=n.asm.ts_node_start_index_wasm).apply(null,arguments)},n._ts_node_end_index_wasm=function(){return(n._ts_node_end_index_wasm=n.asm.ts_node_end_index_wasm).apply(null,arguments)},n._ts_node_to_string_wasm=function(){return(n._ts_node_to_string_wasm=n.asm.ts_node_to_string_wasm).apply(null,arguments)},n._ts_node_children_wasm=function(){return(n._ts_node_children_wasm=n.asm.ts_node_children_wasm).apply(null,arguments)},n._ts_node_named_children_wasm=function(){return(n._ts_node_named_children_wasm=n.asm.ts_node_named_children_wasm).apply(null,arguments)},n._ts_node_descendants_of_type_wasm=function(){return(n._ts_node_descendants_of_type_wasm=n.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},n._ts_node_is_named_wasm=function(){return(n._ts_node_is_named_wasm=n.asm.ts_node_is_named_wasm).apply(null,arguments)},n._ts_node_has_changes_wasm=function(){return(n._ts_node_has_changes_wasm=n.asm.ts_node_has_changes_wasm).apply(null,arguments)},n._ts_node_has_error_wasm=function(){return(n._ts_node_has_error_wasm=n.asm.ts_node_has_error_wasm).apply(null,arguments)},n._ts_node_is_missing_wasm=function(){return(n._ts_node_is_missing_wasm=n.asm.ts_node_is_missing_wasm).apply(null,arguments)},n._ts_query_matches_wasm=function(){return(n._ts_query_matches_wasm=n.asm.ts_query_matches_wasm).apply(null,arguments)},n._ts_query_captures_wasm=function(){return(n._ts_query_captures_wasm=n.asm.ts_query_captures_wasm).apply(null,arguments)},n._iswdigit=function(){return(n._iswdigit=n.asm.iswdigit).apply(null,arguments)},n._iswalpha=function(){return(n._iswalpha=n.asm.iswalpha).apply(null,arguments)},n._iswlower=function(){return(n._iswlower=n.asm.iswlower).apply(null,arguments)},n._towupper=function(){return(n._towupper=n.asm.towupper).apply(null,arguments)},n.___errno_location=function(){return(Ve=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),De=(n._memchr=function(){return(n._memchr=n.asm.memchr).apply(null,arguments)},n._strlen=function(){return(n._strlen=n.asm.strlen).apply(null,arguments)},n.stackSave=function(){return(De=n.stackSave=n.asm.stackSave).apply(null,arguments)}),Be=n.stackRestore=function(){return(Be=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},We=n.stackAlloc=function(){return(We=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},Ue=n._setThrew=function(){return(Ue=n._setThrew=n.asm.setThrew).apply(null,arguments)};function ze(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=n.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},n.__Znwm=function(){return(n.__Znwm=n.asm._Znwm).apply(null,arguments)},n.__ZdlPv=function(){return(n.__ZdlPv=n.asm._ZdlPv).apply(null,arguments)},n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=n.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},n._orig$ts_parser_timeout_micros=function(){return(n._orig$ts_parser_timeout_micros=n.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},n._orig$ts_parser_set_timeout_micros=function(){return(n._orig$ts_parser_set_timeout_micros=n.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},n.allocate=function(e,t){var r;return r=1==t?We(e.length):$e(e.length),e.subarray||e.slice?F.set(e,r):F.set(new Uint8Array(e),r),r},se=function e(){qe||Ke(),qe||(se=e)};var Ge=!1;function Ke(e){function t(){qe||(qe=!0,n.calledRun=!0,I||(te=!0,me(X),me(J),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Ye&&function(e){var t=n._main;if(t){var r=(e=e||[]).length+1,s=We(4*(r+1));L[s>>2]=K(h);for(var i=1;i<r;i++)L[(s>>2)+i]=K(e[i-1]);L[(s>>2)+r]=0;try{He(t(r,s),!0)}catch(e){if(e instanceof ze)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),w("exception thrown: "+o),d(1,e)}}}(e),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)e=n.postRun.shift(),ee.unshift(e);var e;me(ee)}()))}e=e||f,re>0||!Ge&&(function(){if(P.length){if(!y)return ie(),void P.reduce((function(e,t){return e.then((function(){return Oe(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),ke()}));P.forEach((function(e){Oe(e,{global:!0,nodelete:!0,allowUndefined:!0})})),ke()}else ke()}(),Ge=!0,re>0)||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)e=n.preRun.shift(),Q.unshift(e);var e;me(Q)}(),re>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),t()}),1)):t()))}function He(e,t){t&&ve()&&0===e||(ve()||(n.onExit&&n.onExit(e),I=!0),d(e,new ze(e)))}if(n.run=Ke,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Ye=!0;n.noInitialRun&&(Ye=!1),Ke();const Ze=n,Qe={},Xe=4,Je=5*Xe,et=2*Xe,tt=2*Xe+2*et,rt={row:0,column:0},nt=/[\w-.]*/g,st=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=Ze._ts_init(),it=M(at,"i32"),ot=M(at+Xe,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=M(at,"i32"),this[1]=M(at+Xe,"i32")}delete(){Ze._ts_parser_delete(this[0]),Ze._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==dt)throw new Error("Argument must be a Language");{t=e[0];const r=Ze._ts_language_version(t);if(r<ot||it<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ze._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)ct=(t,r,n)=>e.slice(t,n);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=e}this.logCallback?(ut=this.logCallback,Ze._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,Ze._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let e=s=Ze._calloc(n,tt);for(let t=0;t<n;t++)jt(e,r.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!i)throw ct=null,ut=null,new Error("Parsing failed");const o=new pt(Qe,i,this.language,ct);return ct=null,ut=null,o}reset(){Ze._ts_parser_reset(this[0])}setTimeoutMicros(e){Ze._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ze._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class pt{constructor(e,t,r,n){gt(e),this[0]=t,this.language=r,this.textCallback=n}copy(){const e=Ze._ts_tree_copy(this[0]);return new pt(Qe,e,this.language,this.textCallback)}delete(){Ze._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=at;St(t,e.startPosition),St(t+=et,e.oldEndPosition),St(t+=et,e.newEndPosition),N(t+=et,e.startIndex,"i32"),N(t+=Xe,e.oldEndIndex,"i32"),N(t+=Xe,e.newEndIndex,"i32"),t+=Xe}(e),Ze._ts_tree_edit_wasm(this[0])}get rootNode(){return Ze._ts_tree_root_node_wasm(this[0]),wt(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ze._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=M(at,"i32"),r=M(at+Xe,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=Pt(e),e+=tt;Ze._free(r)}return n}}class ft{constructor(e,t){gt(e),this.tree=t}get typeId(){return bt(this),Ze._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return bt(this),Ze._ts_node_end_point_wasm(this.tree[0]),At(at)}get endIndex(){return bt(this),Ze._ts_node_end_index_wasm(this.tree[0])}get text(){return mt(this.tree,this.startIndex,this.endIndex)}isNamed(){return bt(this),1===Ze._ts_node_is_named_wasm(this.tree[0])}hasError(){return bt(this),1===Ze._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return bt(this),1===Ze._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return bt(this),1===Ze._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return bt(this),Ze._ts_node_child_wasm(this.tree[0],e),wt(this.tree)}namedChild(e){return bt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),wt(this.tree)}childForFieldId(e){return bt(this),Ze._ts_node_child_by_field_id_wasm(this.tree[0],e),wt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return bt(this),Ze._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return bt(this),Ze._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){bt(this),Ze._ts_node_children_wasm(this.tree[0]);const e=M(at,"i32"),t=M(at+Xe,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=wt(this.tree,r),r+=Je;Ze._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){bt(this),Ze._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 r=t;for(let t=0;t<e;t++)this._namedChildren[t]=wt(this.tree,r),r+=Je;Ze._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=rt),r||(r=rt);const n=[],s=this.tree.language.types;for(let t=0,r=s.length;t<r;t++)e.includes(s[t])&&n.push(t);const i=Ze._malloc(Xe*n.length);for(let e=0,t=n.length;e<t;e++)N(i+e*Xe,n[e],"i32");bt(this),Ze._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,t.row,t.column,r.row,r.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]=wt(this.tree,e),e+=Je}return Ze._free(a),Ze._free(i),c}get nextSibling(){return bt(this),Ze._ts_node_next_sibling_wasm(this.tree[0]),wt(this.tree)}get previousSibling(){return bt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),wt(this.tree)}get nextNamedSibling(){return bt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),wt(this.tree)}get previousNamedSibling(){return bt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),wt(this.tree)}get parent(){return bt(this),Ze._ts_node_parent_wasm(this.tree[0]),wt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let r=at+Je;return N(r,e,"i32"),N(r+Xe,t,"i32"),Ze._ts_node_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let r=at+Je;return N(r,e,"i32"),N(r+Xe,t,"i32"),Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}descendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let r=at+Je;return St(r,e),St(r+et,t),Ze._ts_node_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}namedDescendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let r=at+Je;return St(r,e),St(r+et,t),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}walk(){return bt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new ht(Qe,this.tree)}toString(){bt(this);const e=Ze._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var r=F[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}(e);return Ze._free(e),t}}class ht{constructor(e,t){gt(e),this.tree=t,xt(this)}delete(){Et(this),Ze._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){bt(e),Et(this,at+Je),Ze._ts_tree_cursor_reset_wasm(this.tree[0]),xt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Et(this),Ze._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Et(this),Ze._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Et(this),1===Ze._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Et(this),1===Ze._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Et(this);const e=Ze._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ze._ts_tree_cursor_end_index_wasm(this.tree[0]);return mt(this.tree,e,t)}get startPosition(){return Et(this),Ze._ts_tree_cursor_start_position_wasm(this.tree[0]),At(at)}get endPosition(){return Et(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),At(at)}get startIndex(){return Et(this),Ze._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Et(this),Ze._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Et(this),Ze._ts_tree_cursor_current_node_wasm(this.tree[0]),wt(this.tree)}currentFieldId(){return Et(this),Ze._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Et(this);const e=Ze._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xt(this),1===e}gotoNextSibling(){Et(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xt(this),1===e}gotoParent(){Et(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xt(this),1===e}}class dt{constructor(e,t){gt(e),this[0]=t,this.types=new Array(Ze._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ze._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=W(Ze._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ze._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ze._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?W(t):null}}get version(){return Ze._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=G(e),n=Ze._malloc(r+1);z(e,n,r+1);const s=Ze._ts_language_symbol_for_name(this[0],n,r,t);return Ze._free(n),s||null}get nodeTypeCount(){return Ze._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ze._ts_language_symbol_name(this[0],e);return t?W(t):null}nodeTypeIsNamed(e){return!!Ze._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ze._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=G(e),r=Ze._malloc(t+1);z(e,r,t+1);const n=Ze._ts_query_new(this[0],r,t,at,at+Xe);if(!n){const t=M(at+Xe,"i32"),n=W(r,M(at,"i32")).length,s=e.substr(n,100).split("\n")[0];let i,o=s.match(nt)[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 ${n}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${n}: '${s}'...`),o=""}throw i.index=n,i.length=o.length,Ze._free(r),i}const s=Ze._ts_query_string_count(n),i=Ze._ts_query_capture_count(n),o=Ze._ts_query_pattern_count(n),a=new Array(i),c=new Array(s);for(let e=0;e<i;e++){const t=Ze._ts_query_capture_name_for_id(n,e,at),r=M(at,"i32");a[e]=W(t,r)}for(let e=0;e<s;e++){const t=Ze._ts_query_string_value_for_id(n,e,at),r=M(at,"i32");c[e]=W(t,r)}const u=new Array(o),l=new Array(o),p=new Array(o),f=new Array(o),h=new Array(o);for(let e=0;e<o;e++){const t=Ze._ts_query_predicates_for_pattern(n,e,at),r=M(at,"i32");f[e]=[],h[e]=[];const s=[];let i=t;for(let t=0;t<r;t++){const t=M(i,"i32"),r=M(i+=Xe,"i32");if(i+=Xe,1===t)s.push({type:"capture",name:a[r]});else if(2===t)s.push({type:"string",value:c[r]});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 r=!0;switch(t){case"not-eq?":r=!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,n=s[2].name;h[e].push((function(e){let s,i;for(const r of e)r.name===t&&(s=r.node),r.name===n&&(i=r.node);return void 0===s||void 0===i||s.text===i.text===r}))}else{const t=s[1].name,n=s[2].value;h[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===n===r;return!0}))}break;case"not-match?":r=!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 n=s[1].name,i=new RegExp(s[2].value);h[e].push((function(e){for(const t of e)if(t.name===n)return i.test(t.node.text)===r;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:f[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ze._free(r),new _t(Qe,n,a,h,f,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const n=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=r(8544);t=Promise.resolve(e.readFileSync(n))}else t=fetch(n).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}const n="function"==typeof loadSideModule?loadSideModule:Pe;return t.then((e=>n(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>st.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const n=e[r]();return new dt(Qe,n)}))}}class _t{constructor(e,t,r,n,s,i,o,a){gt(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ze._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,n){t||(t=rt),r||(r=rt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");bt(e),Ze._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,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 r=M(l,"i32"),n=M(l+=Xe,"i32");l+=Xe;const s=new Array(n);if(l=yt(this,e.tree,l,s),this.textPredicates[r].every((e=>e(s)))){c[u++]={pattern:r,captures:s};const e=this.setProperties[r];e&&(c[t].setProperties=e);const n=this.assertedProperties[r];n&&(c[t].assertedProperties=n);const i=this.refutedProperties[r];i&&(c[t].refutedProperties=i)}}return c.length=u,Ze._free(o),c}captures(e,t,r,n){t||(t=rt),r||(r=rt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");bt(e),Ze._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,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"),r=M(l+=Xe,"i32"),n=M(l+=Xe,"i32");if(l+=Xe,u.length=r,l=yt(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[n],r=this.setProperties[t];r&&(e.setProperties=r);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ze._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function mt(e,t,r){const n=r-t;let s=e.textCallback(t,null,r);for(t+=s.length;t<r;){const n=e.textCallback(t,null,r);if(!(n&&n.length>0))break;t+=n.length,s+=n}return t>r&&(s=s.slice(0,n)),s}function yt(e,t,r,n){for(let s=0,i=n.length;s<i;s++){const i=M(r,"i32"),o=wt(t,r+=Xe);r+=Je,n[s]={name:e.captureNames[i],node:o}}return r}function gt(e){if(e!==Qe)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function bt(e){let t=at;N(t,e.id,"i32"),N(t+=Xe,e.startIndex,"i32"),N(t+=Xe,e.startPosition.row,"i32"),N(t+=Xe,e.startPosition.column,"i32"),N(t+=Xe,e[0],"i32")}function wt(e,t=at){const r=M(t,"i32");if(0===r)return null;const n=M(t+=Xe,"i32"),s=M(t+=Xe,"i32"),i=M(t+=Xe,"i32"),o=M(t+=Xe,"i32"),a=new ft(Qe,e);return a.id=r,a.startIndex=n,a.startPosition={row:s,column:i},a[0]=o,a}function Et(e,t=at){N(t+0*Xe,e[0],"i32"),N(t+1*Xe,e[1],"i32"),N(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){N(e,t.row,"i32"),N(e+Xe,t.column,"i32")}function At(e){return{row:M(e,"i32"),column:M(e+Xe,"i32")}}function jt(e,t){St(e,t.startPosition),St(e+=et,t.endPosition),N(e+=et,t.startIndex,"i32"),N(e+=Xe,t.endIndex,"i32"),e+=Xe}function Pt(e){const t={};return t.startPosition=At(e),e+=et,t.endPosition=At(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=dt,n.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=s},8544:()=>{},1560:()=>{},1204:(e,t,r)=>{e.exports=r(5616)},2772:(e,t,r)=>{"use strict";var n=r(7828);e.exports=n},7984:(e,t,r)=>{"use strict";r(4420),r(8436),r(5936),r(340),r(4176);var n=r(9832);e.exports=n.AggregateError},5616:(e,t,r)=>{"use strict";e.exports=r(9888)},9888:(e,t,r)=>{"use strict";r(2796);var n=r(2772);e.exports=n},28:(e,t,r)=>{"use strict";var n=r(8536),s=r(8944),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not a function")}},1459:(e,t,r)=>{"use strict";var n=r(7432),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},1472:e=>{"use strict";e.exports=function(){}},2032:(e,t,r)=>{"use strict";var n=r(8608),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not an object")}},7464:(e,t,r)=>{"use strict";var n=r(445),s=r(4180),i=r(5316),o=function(e){return function(t,r,o){var a,c=n(t),u=i(c),l=s(o,u);if(e&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},7936:(e,t,r)=>{"use strict";var n=r(9252),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},636:(e,t,r)=>{"use strict";var n=r(6744),s=r(8536),i=r(7936),o=r(3336)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"===(n=i(t))&&s(t.callee)?"Arguments":n}},1100:(e,t,r)=>{"use strict";var n=r(4664),s=r(7876),i=r(1008),o=r(2280);e.exports=function(e,t,r){for(var a=s(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];n(e,p)||r&&n(r,p)||c(e,p,u(t,p))}}},2480:(e,t,r)=>{"use strict";var n=r(2064);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},3848:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},896:(e,t,r)=>{"use strict";var n=r(9172),s=r(2280),i=r(8981);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},8981:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},5424:(e,t,r)=>{"use strict";var n=r(896);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},4408:(e,t,r)=>{"use strict";var n=r(5216),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},9172:(e,t,r)=>{"use strict";var n=r(2064);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},1940:(e,t,r)=>{"use strict";var n=r(5216),s=r(8608),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},472: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}},2276:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3896:(e,t,r)=>{"use strict";var n,s,i=r(5216),o=r(2276),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},3620:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9492:(e,t,r)=>{"use strict";var n=r(9252),s=Error,i=n("".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}},9035:(e,t,r)=>{"use strict";var n=r(896),s=r(9492),i=r(1376),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},1376:(e,t,r)=>{"use strict";var n=r(2064),s=r(8981);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},3952:(e,t,r)=>{"use strict";var n=r(5216),s=r(9867),i=r(1248),o=r(8536),a=r(1008).f,c=r(6155),u=r(9832),l=r(1884),p=r(896),f=r(4664),h=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,d,_,m,y,g,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,A=E?n:x?n[w]:n[w]&&n[w].prototype,j=E?u:u[w]||p(u,w,{})[w],P=j.prototype;for(_ in t)s=!(r=c(E?_:w+(x?".":"#")+_,e.forced))&&A&&f(A,_),y=j[_],s&&(g=e.dontCallGetSet?(b=a(A,_))&&b.value:A[_]),m=s&&g?g:t[_],(r||S||typeof y!=typeof m)&&(v=e.bind&&s?l(m,n):e.wrap&&s?h(m):S&&o(m)?i(m):m,(e.sham||m&&m.sham||y&&y.sham)&&p(v,"sham",!0),p(j,_,v),S&&(f(u,d=w+"Prototype")||p(u,d,{}),p(u[d],_,m),e.real&&P&&(r||!P[_])&&p(P,_,m)))}},2064:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9867:(e,t,r)=>{"use strict";var n=r(5200),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},1884:(e,t,r)=>{"use strict";var n=r(1248),s=r(28),i=r(5200),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},5200:(e,t,r)=>{"use strict";var n=r(2064);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4580:(e,t,r)=>{"use strict";var n=r(5200),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},3564:(e,t,r)=>{"use strict";var n=r(9172),s=r(4664),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},7864:(e,t,r)=>{"use strict";var n=r(9252),s=r(28);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},1248:(e,t,r)=>{"use strict";var n=r(7936),s=r(9252);e.exports=function(e){if("Function"===n(e))return s(e)}},9252:(e,t,r)=>{"use strict";var n=r(5200),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},3464:(e,t,r)=>{"use strict";var n=r(9832),s=r(5216),i=r(8536),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},68:(e,t,r)=>{"use strict";var n=r(636),s=r(1636),i=r(9511),o=r(7256),a=r(3336)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[n(e)]}},4656:(e,t,r)=>{"use strict";var n=r(4580),s=r(28),i=r(2032),o=r(8944),a=r(68),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(s(r))return i(n(r,e));throw new c(o(e)+" is not iterable")}},1636:(e,t,r)=>{"use strict";var n=r(28),s=r(9511);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},5216:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4664:(e,t,r)=>{"use strict";var n=r(9252),s=r(2819),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},3328:e=>{"use strict";e.exports={}},7896:(e,t,r)=>{"use strict";var n=r(3464);e.exports=n("document","documentElement")},124:(e,t,r)=>{"use strict";var n=r(9172),s=r(2064),i=r(1940);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2899:(e,t,r)=>{"use strict";var n=r(9252),s=r(2064),i=r(7936),o=Object,a=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},1664:(e,t,r)=>{"use strict";var n=r(8536),s=r(8608),i=r(2288);e.exports=function(e,t,r){var o,a;return i&&n(o=t.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},9055:(e,t,r)=>{"use strict";var n=r(8608),s=r(896);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},2344:(e,t,r)=>{"use strict";var n,s,i,o=r(3184),a=r(5216),c=r(8608),u=r(896),l=r(4664),p=r(9284),f=r(924),h=r(3328),d="Object already initialized",_=a.TypeError,m=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new _(d);return t.facade=e,y.set(e,t),t},s=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=f("state");h[g]=!0,n=function(e,t){if(l(e,g))throw new _(d);return t.facade=e,u(e,g,t),t},s=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw new _("Incompatible receiver, "+e+" required");return r}}}},4992:(e,t,r)=>{"use strict";var n=r(3336),s=r(7256),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},8536: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}},6155:(e,t,r)=>{"use strict";var n=r(2064),s=r(8536),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},9511:e=>{"use strict";e.exports=function(e){return null==e}},8608:(e,t,r)=>{"use strict";var n=r(8536);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},7432:(e,t,r)=>{"use strict";var n=r(8608);e.exports=function(e){return n(e)||null===e}},1016:e=>{"use strict";e.exports=!0},5376:(e,t,r)=>{"use strict";var n=r(3464),s=r(8536),i=r(2360),o=r(6416),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,a(e))}},5799:(e,t,r)=>{"use strict";var n=r(1884),s=r(4580),i=r(2032),o=r(8944),a=r(4992),c=r(5316),u=r(2360),l=r(4656),p=r(68),f=r(5872),h=TypeError,d=function(e,t){this.stopped=e,this.result=t},_=d.prototype;e.exports=function(e,t,r){var m,y,g,v,b,w,E,x=r&&r.that,S=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_RECORD),j=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),O=n(t,x),k=function(e){return m&&f(m,"normal",e),new d(!0,e)},N=function(e){return S?(i(e),P?O(e[0],e[1],k):O(e[0],e[1])):P?O(e,k):O(e)};if(A)m=e.iterator;else if(j)m=e;else{if(!(y=p(e)))throw new h(o(e)+" is not iterable");if(a(y)){for(g=0,v=c(e);v>g;g++)if((b=N(e[g]))&&u(_,b))return b;return new d(!1)}m=l(e,y)}for(w=A?e.next:m.next;!(E=s(w,m)).done;){try{b=N(E.value)}catch(e){f(m,"throw",e)}if("object"==typeof b&&b&&u(_,b))return b}return new d(!1)}},5872:(e,t,r)=>{"use strict";var n=r(4580),s=r(2032),i=r(1636);e.exports=function(e,t,r){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return s(o),r}},9976:(e,t,r)=>{"use strict";var n=r(2224).IteratorPrototype,s=r(4488),i=r(8981),o=r(5836),a=r(7256),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),a[l]=c,e}},536:(e,t,r)=>{"use strict";var n=r(3952),s=r(4580),i=r(1016),o=r(3564),a=r(8536),c=r(9976),u=r(7800),l=r(2288),p=r(5836),f=r(896),h=r(5424),d=r(3336),_=r(7256),m=r(2224),y=o.PROPER,g=o.CONFIGURABLE,v=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=d("iterator"),E="keys",x="values",S="entries",A=function(){return this};e.exports=function(e,t,r,o,d,m,j){c(r,t,o);var P,O,k,N=function(e){if(e===d&&R)return R;if(!b&&e&&e in T)return T[e];switch(e){case E:case x:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},M=t+" Iterator",I=!1,T=e.prototype,C=T[w]||T["@@iterator"]||d&&T[d],R=!b&&C||N(d),F="Array"===t&&T.entries||C;if(F&&(P=u(F.call(new e)))!==Object.prototype&&P.next&&(i||u(P)===v||(l?l(P,v):a(P[w])||h(P,w,A)),p(P,M,!0,!0),i&&(_[M]=A)),y&&d===x&&C&&C.name!==x&&(!i&&g?f(T,"name",x):(I=!0,R=function(){return s(C,this)})),d)if(O={values:N(x),keys:m?R:N(E),entries:N(S)},j)for(k in O)(b||I||!(k in T))&&h(T,k,O[k]);else n({target:t,proto:!0,forced:b||I},O);return i&&!j||T[w]===R||h(T,w,R,{name:d}),_[t]=R,O}},2224:(e,t,r)=>{"use strict";var n,s,i,o=r(2064),a=r(8536),c=r(8608),u=r(4488),l=r(7800),p=r(5424),f=r(3336),h=r(1016),d=f("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):_=!0),!c(n)||o((function(){var e={};return n[d].call(e)!==e}))?n={}:h&&(n=u(n)),a(n[d])||p(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:_}},7256:e=>{"use strict";e.exports={}},5316:(e,t,r)=>{"use strict";var n=r(4596);e.exports=function(e){return n(e.length)}},24:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},3080:(e,t,r)=>{"use strict";var n=r(9352);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},4488:(e,t,r)=>{"use strict";var n,s=r(2032),i=r(6452),o=r(3620),a=r(3328),c=r(7896),u=r(1940),l=r(924),p="prototype",f="script",h=l("IE_PROTO"),d=function(){},_=function(e){return"<"+f+">"+e+"</"+f+">"},m=function(e){e.write(_("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?m(n):(t=u("iframe"),r="java"+f+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(_("document.F=Object")),e.close(),e.F):m(n);for(var s=o.length;s--;)delete y[p][o[s]];return y()};a[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(d[p]=s(e),r=new d,d[p]=null,r[h]=e):r=y(),void 0===t?r:i.f(r,t)}},6452:(e,t,r)=>{"use strict";var n=r(9172),s=r(3109),i=r(2280),o=r(2032),a=r(445),c=r(9547);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},2280:(e,t,r)=>{"use strict";var n=r(9172),s=r(124),i=r(3109),o=r(2032),a=r(2319),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",f="configurable",h="writable";t.f=n?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:p in r?r[p]:n[p],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=a(t),o(r),s)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},1008:(e,t,r)=>{"use strict";var n=r(9172),s=r(4580),i=r(6500),o=r(8981),a=r(445),c=r(2319),u=r(4664),l=r(124),p=Object.getOwnPropertyDescriptor;t.f=n?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])}},1600:(e,t,r)=>{"use strict";var n=r(2884),s=r(3620).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},4060:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7800:(e,t,r)=>{"use strict";var n=r(4664),s=r(8536),i=r(2819),o=r(924),a=r(2480),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},2360:(e,t,r)=>{"use strict";var n=r(9252);e.exports=n({}.isPrototypeOf)},2884:(e,t,r)=>{"use strict";var n=r(9252),s=r(4664),i=r(445),o=r(7464).indexOf,a=r(3328),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(a,r)&&s(n,r)&&c(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||c(l,r));return l}},9547:(e,t,r)=>{"use strict";var n=r(2884),s=r(3620);e.exports=Object.keys||function(e){return n(e,s)}},6500:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},2288:(e,t,r)=>{"use strict";var n=r(7864),s=r(2032),i=r(1459);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return s(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},1616:(e,t,r)=>{"use strict";var n=r(6744),s=r(636);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},416:(e,t,r)=>{"use strict";var n=r(4580),s=r(8536),i=r(8608),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&s(r=e.toString)&&!i(a=n(r,e)))return a;if(s(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&s(r=e.toString)&&!i(a=n(r,e)))return a;throw new o("Can't convert object to primitive value")}},7876:(e,t,r)=>{"use strict";var n=r(3464),s=r(9252),i=r(1600),o=r(4060),a=r(2032),c=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},9832:e=>{"use strict";e.exports={}},9360:(e,t,r)=>{"use strict";var n=r(2280).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},9952:(e,t,r)=>{"use strict";var n=r(9511),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},5836:(e,t,r)=>{"use strict";var n=r(6744),s=r(2280).f,i=r(896),o=r(4664),a=r(1616),c=r(3336)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(o(l,c)||s(l,c,{configurable:!0,value:t}),u&&!n&&i(l,"toString",a))}},924:(e,t,r)=>{"use strict";var n=r(8852),s=r(6696),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},9284:(e,t,r)=>{"use strict";var n=r(5216),s=r(4408),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},8852:(e,t,r)=>{"use strict";var n=r(1016),s=r(9284);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:n?"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"})},6392:(e,t,r)=>{"use strict";var n=r(9252),s=r(5016),i=r(9352),o=r(9952),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,p=i(o(t)),f=s(r),h=p.length;return f<0||f>=h?e?"":void 0:(n=c(p,f))<55296||n>56319||f+1===h||(l=c(p,f+1))<56320||l>57343?e?a(p,f):n:e?u(p,f,f+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},5235:(e,t,r)=>{"use strict";var n=r(3896),s=r(2064),i=r(5216).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4180:(e,t,r)=>{"use strict";var n=r(5016),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},445:(e,t,r)=>{"use strict";var n=r(2899),s=r(9952);e.exports=function(e){return n(s(e))}},5016:(e,t,r)=>{"use strict";var n=r(24);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},4596:(e,t,r)=>{"use strict";var n=r(5016),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},2819:(e,t,r)=>{"use strict";var n=r(9952),s=Object;e.exports=function(e){return s(n(e))}},3504:(e,t,r)=>{"use strict";var n=r(4580),s=r(8608),i=r(5376),o=r(1636),a=r(416),c=r(3336),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,c=o(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},2319:(e,t,r)=>{"use strict";var n=r(3504),s=r(5376);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},6744:(e,t,r)=>{"use strict";var n={};n[r(3336)("toStringTag")]="z",e.exports="[object z]"===String(n)},9352:(e,t,r)=>{"use strict";var n=r(636),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},8944:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6696:(e,t,r)=>{"use strict";var n=r(9252),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},6416:(e,t,r)=>{"use strict";var n=r(5235);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3109:(e,t,r)=>{"use strict";var n=r(9172),s=r(2064);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},3184:(e,t,r)=>{"use strict";var n=r(5216),s=r(8536),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},3336:(e,t,r)=>{"use strict";var n=r(5216),s=r(8852),i=r(4664),o=r(6696),a=r(5235),c=r(6416),u=n.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]}},5960:(e,t,r)=>{"use strict";var n=r(3464),s=r(4664),i=r(896),o=r(2360),a=r(2288),c=r(1100),u=r(9360),l=r(1664),p=r(3080),f=r(9055),h=r(9035),d=r(9172),_=r(1016);e.exports=function(e,t,r,m){var y="stackTraceLimit",g=m?2:1,v=e.split("."),b=v[v.length-1],w=n.apply(null,v);if(w){var E=w.prototype;if(!_&&s(E,"cause")&&delete E.cause,!r)return w;var x=n("Error"),S=t((function(e,t){var r=p(m?t:e,void 0),n=m?new w(e):new w;return void 0!==r&&i(n,"message",r),h(n,S,n.stack,2),this&&o(E,this)&&l(n,this,S),arguments.length>g&&f(n,arguments[g]),n}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):d&&y in w&&(u(S,w,y),u(S,w,"prepareStackTrace")),c(S,w),!_)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},5936:(e,t,r)=>{"use strict";var n=r(3952),s=r(3464),i=r(9867),o=r(2064),a=r(5960),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},9232:(e,t,r)=>{"use strict";var n=r(3952),s=r(2360),i=r(7800),o=r(2288),a=r(1100),c=r(4488),u=r(896),l=r(8981),p=r(9055),f=r(9035),h=r(5799),d=r(3080),_=r(3336)("toStringTag"),m=Error,y=[].push,g=function(e,t){var r,n=s(v,this);o?r=o(new m,n?i(this):v):(r=n?this:c(v),u(r,_,"Error")),void 0!==t&&u(r,"message",d(t)),f(r,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return h(e,y,{that:a}),u(r,"errors",a),r};o?o(g,m):a(g,m,{name:!0});var v=g.prototype=c(m.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},8436:(e,t,r)=>{"use strict";r(9232)},340:(e,t,r)=>{"use strict";var n=r(445),s=r(1472),i=r(7256),o=r(2344),a=r(2280).f,c=r(536),u=r(3848),l=r(1016),p=r(9172),f="Array Iterator",h=o.set,d=o.getterFor(f);e.exports=c(Array,"Array",(function(e,t){h(this,{type:f,target:n(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var _=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==_.name)try{a(_,"name",{value:"values"})}catch(e){}},4420:(e,t,r)=>{"use strict";var n=r(3952),s=r(5216),i=r(9867),o=r(5960),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,u),n({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},4176:(e,t,r)=>{"use strict";var n=r(6392).charAt,s=r(9352),i=r(2344),o=r(536),a=r(3848),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),r=t.string,s=t.index;return s>=r.length?a(void 0,!0):(e=n(r,s),t.index+=e.length,a(e,!1))}))},2796:(e,t,r)=>{"use strict";r(8436)},3624:(e,t,r)=>{"use strict";r(340);var n=r(472),s=r(5216),i=r(5836),o=r(7256);for(var a in n)i(s[a],a),o[a]=o.Array},7828:(e,t,r)=>{"use strict";r(2796);var n=r(7984);r(3624),e.exports=n}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&!e;)e=n[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var n={};return(()=>{"use strict";r.r(n),r.d(n,{detect:()=>Fo,detectionRegExp:()=>Ro,mediaTypes:()=>Co,namespace:()=>Lo,parse:()=>qo});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>ns,includesClasses:()=>is,includesSymbols:()=>ss,isAnnotationElement:()=>Xn,isArrayElement:()=>Hn,isBooleanElement:()=>Gn,isCommentElement:()=>Jn,isElement:()=>Bn,isLinkElement:()=>Zn,isMemberElement:()=>Yn,isNullElement:()=>zn,isNumberElement:()=>Un,isObjectElement:()=>Kn,isParseResultElement:()=>es,isPrimitiveElement:()=>rs,isRefElement:()=>Qn,isSourceMapElement:()=>ts,isStringElement:()=>Wn});var t={};function s(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function i(e){return function t(r){return 0===arguments.length||s(r)?t:e.apply(this,arguments)}}function o(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return s(r)?t:i((function(t){return e(r,t)}));default:return s(r)&&s(n)?t:s(r)?i((function(t){return e(t,n)})):s(n)?i((function(t){return e(r,t)})):e(r,n)}}}function a(e){return function t(r,n,a){switch(arguments.length){case 0:return t;case 1:return s(r)?t:o((function(t,n){return e(r,t,n)}));case 2:return s(r)&&s(n)?t:s(r)?o((function(t,r){return e(t,n,r)})):s(n)?o((function(t,n){return e(r,t,n)})):i((function(t){return e(r,n,t)}));default:return s(r)&&s(n)&&s(a)?t:s(r)&&s(n)?o((function(t,r){return e(t,r,a)})):s(r)&&s(a)?o((function(t,r){return e(t,n,r)})):s(n)&&s(a)?o((function(t,n){return e(r,t,n)})):s(r)?i((function(t){return e(t,n,a)})):s(n)?i((function(t){return e(r,t,a)})):s(a)?i((function(t){return e(r,n,t)})):e(r,n,a)}}}r.r(t),r.d(t,{isInfoElement:()=>yo,isMainElement:()=>mo,isPrincipleElement:()=>go,isRequirementElement:()=>vo,isRequirementLevelElement:()=>bo,isScenarioElement:()=>wo,isStandardElement:()=>Eo,isStandardIdentifierElement:()=>xo});const c=o((function(e,t){return null==t||t!=t?e:t})),u=Number.isInteger||function(e){return e<<0===e};function l(e){return"[object String]"===Object.prototype.toString.call(e)}const p=o((function(e,t){var r=e<0?t.length+e:e;return l(t)?t.charAt(r):t[r]}));const f=o((function(e,t){if(null!=t)return u(e)?p(e,t):t[e]}));const h=a((function(e,t,r){return c(e,f(t,r))}));var d=o((function(e,t){for(var r={},n={},s=0,i=e.length;s<i;)n[e[s]]=1,s+=1;for(var o in t)n.hasOwnProperty(o)||(r[o]=t[o]);return r}));const _=d;function m(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const y=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const g=i((function(e){return!!y(e)||!!e&&("object"==typeof e&&(!l(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var v="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function b(e,t,r){return function(n,s,i){if(g(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[v])return r(n,s,i[v]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function w(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function E(e,t,r,n){return r[n](e,t)}const x=b(m,E,w);function S(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!y(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function A(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}const j=function(){return this.xf["@@transducer/init"]()},P=function(e){return this.xf["@@transducer/result"](e)};var O=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=P,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const k=function(e){return function(t){return new O(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,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,r,n,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 M(e,t,r){return function(){for(var n=[],i=0,o=e,a=0,c=!1;a<t.length||i<arguments.length;){var u;a<t.length&&(!s(t[a])||i>=arguments.length)?u=t[a]:(u=arguments[i],i+=1),n[a]=u,s(u)?c=!0:o-=1,a+=1}return!c&&o<=0?r.apply(this,n):N(Math.max(0,o),M(e,n,r))}}const I=o((function(e,t){return 1===e?i(t):N(e,M(e,[],t))}));function T(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var C=Object.prototype.toString;const R=function(){return"[object Arguments]"===C.call(arguments)?function(e){return"[object Arguments]"===C.call(e)}:function(e){return T("callee",e)}}();var F=!{toString:null}.propertyIsEnumerable("toString"),q=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(){return arguments.propertyIsEnumerable("length")}(),$=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},V="function"!=typeof Object.keys||L?i((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=L&&R(e);for(t in e)!T(t,e)||s&&"length"===t||(n[n.length]=t);if(F)for(r=q.length-1;r>=0;)T(t=q[r],e)&&!$(n,t)&&(n[n.length]=t),r-=1;return n})):i((function(e){return Object(e)!==e?[]:Object.keys(e)}));const D=V;const B=o(S(["fantasy-land/map","map"],k,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return I(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return m((function(r,n){return r[n]=e(t[n]),r}),{},D(t));default:return A(e,t)}})));const W=o((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:x((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,B(r,t))}),[],e)}));const U=o((function(e,t){var r=I(e,t);return I(e,(function(){return m(W,B(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const z=i((function(e){return U(e.length,e)}));const G=z(i((function(e){return!e})));function K(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function H(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}const Y="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const Z=i((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Q(e,t,r,n){var s=K(e);function i(e,t){return X(e,t,r.slice(),n.slice())}return!H((function(e,t){return!H(i,t,e)}),K(t),s)}function X(e,t,r,n){if(Y(e,t))return!0;var s,i,o=Z(e);if(o!==Z(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(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||!Y(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Y(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Q(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&Q(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=D(e);if(c.length!==D(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!T(p,t)||!X(t[p],e[p],u,l))return!1;a-=1}return!0}const J=o((function(e,t){return X(e,t,[],[])}));const ee=i((function(e){return function(){return e}}));var te=ee(void 0);const re=J(te());const ne=G(re);var se=r(928);function ie(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function oe(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const ae=o((function(e,t){return N(e.length,(function(){return e.apply(t,arguments)}))}));function ce(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function ue(e,t,r,n){return e["@@transducer/result"](r[n](ae(e["@@transducer/step"],e),t))}const le=b(oe,ue,ce);var pe=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 pe(e)}const he=a((function(e,t,r){return le("function"==typeof e?fe(e):e,t,r)}));function de(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return y(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const _e=a(de("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const me=i(de("tail",_e(1,1/0)));function ye(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return N(arguments[0].length,he(ie,arguments[0],me(arguments)))}var ge=function(e,t){switch(arguments.length){case 0:return ge;case 1:return function t(r){return 0===arguments.length?t:Y(e,r)};default:return Y(e,t)}};const ve=ge;function be(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(J(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function we(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Ee=function(e){return(e<10?"0":"")+e};const xe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Ee(e.getUTCMonth()+1)+"-"+Ee(e.getUTCDate())+"T"+Ee(e.getUTCHours())+":"+Ee(e.getUTCMinutes())+":"+Ee(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Se(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ae=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=P,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function je(e){return function(t){return new Ae(e,t)}}const Pe=o(S(["fantasy-land/filter","filter"],je,(function(e,t){return Se(t)?m((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},D(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const Oe=o((function(e,t){return Pe((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function ke(e,t){var r=function(r){var n=t.concat([e]);return be(r,n)?"<Circular>":ke(r,n)},n=function(e,t){return A((function(t){return we(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+A(r,e).join(", ")+"))";case"[object Array]":return"["+A(r,e).concat(n(e,Oe((function(e){return/^\d+$/.test(e)}),D(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):we(xe(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":we(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,D(e)).join(", ")+"}"}}const Ne=i((function(e){return ke(e,[])}));const Me=o((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=u(r)?p(r,n):n[r],s+=1}return n}))}));const Ie=o((function(e,t){return Me([e],t)[0]}));const Te=a((function(e,t,r){return e(Ie(t,r))}));function Ce(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Re=o((function(e,t){return e&&t}));const Fe=o((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:z(Re)(e,t)}));const qe=J(null);var Le=G(qe);function $e(e){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}const Ve=I(1,Fe(Le,(function(e){return"object"===$e(e)})));const De=o((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=Ne(e),o=r(i,Ne(t));return void 0!==o&&o===i?e:t}));const Be=o((function(e,t){return B(f(e),t)}));const We=i((function(e){return I(he(De,0,Be("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const Ue=I(1,ye(Z,ve("GeneratorFunction")));const ze=I(1,ye(Z,ve("AsyncFunction")));const Ge=We([ye(Z,ve("Function")),Ue,ze]);var Ke=ye(Z,ve("Object")),He=ye(Ne,J(Ne(Object))),Ye=Te(Fe(Ge,He),["constructor"]);const Ze=I(1,(function(e){if(!Ve(e)||!Ke(e))return!1;var t=Object.getPrototypeOf(e);return!!qe(t)||Ye(t)}));class Qe extends se.M${constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Xe=Qe;class Je extends se.M${constructor(e,t,r){super(e,t,r),this.element="comment"}}const et=Je;class tt extends se.uQ{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(re(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const rt=tt;class nt extends se.uQ{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new se.uQ([e.start.row,e.start.column,e.start.char]),r=new se.uQ([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const st=nt;class it extends se.MH{constructor(){super(),this.register("annotation",Xe),this.register("comment",et),this.register("parseResult",rt),this.register("sourceMap",st)}}const ot=new it,at=e=>{const t=new it;return Ze(e)&&t.use(e),t},ct=ot;const ut=I(1,ye(Z,ve("String"))),lt=r.p+"23aac571c96605dc25219087ad291441.wasm",pt=globalThis.fetch;Ge(pt)&&(globalThis.fetch=(...e)=>ut(e[0])&&e[0].endsWith("tree-sitter.wasm")?pt.apply(globalThis,[lt,me(e)]):pt.apply(globalThis,e));var ft=r(843),ht=r(1204);const dt=class extends ht{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class _t extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(dt,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const mt=_t,yt=r.p+"d396281e11774e0afa7a40d620779b6d.wasm";let gt=null,vt=null;const bt=async e=>{if(null===gt&&null===vt)vt=ft.init().then((()=>ft.Language.load(yt))).then((e=>{const t=new ft;return t.setLanguage(e),t})).finally((()=>{vt=null})),gt=await vt;else if(null===gt&&null!==vt)gt=await vt;else if(null===gt)throw new mt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return gt.parse(e)};function wt(e,t,r){if(r||(r=new Et),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n,s=function(n){var s=r.get(e);if(s)return s;for(var i in r.set(e,n),e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t?wt(e[i],!0,r):e[i]);return n};switch(Z(e)){case"Object":return s(Object.create(Object.getPrototypeOf(e)));case"Array":return s([]);case"Date":return new Date(e.valueOf());case"RegExp":return n=e,new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var Et=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const r=this.hash(e);let n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const r=this.map[t];for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}}return}const t=this.hash(e),r=this.map[t];if(r)for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}},e}();const xt=i((function(e){return null!=e&&"function"==typeof e.clone?e.clone():wt(e,!0)}));const St=class extends mt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};const At=class extends St{};const jt=class extends At{};const Pt=class extends jt{specificTagName;explicitTagName;tagKind;tagPosition;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const Ot=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:r=!1}={}){this.type=this.constructor.type,this.isMissing=r,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}};let kt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const Nt=class extends Ot{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...r}){super({...r}),this.explicitName=e,this.kind=t}};const Mt=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const It=class extends Mt{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===kt.Mapping}};const Tt=class extends Mt{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===kt.Sequence}};const Ct=class extends Mt{static uri="tag:yaml.org,2002:str"};const Rt=a((function(e,t,r){return c(e,Ie(t,r))}));const Ft=i((function(e){return I(e.length,e)}));var qt="\t\n\v\f\r                 \u2028\u2029\ufeff";const Lt=i("function"==typeof String.prototype.trim&&!qt.trim()&&"​".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+qt+"]["+qt+"]*"),r=new RegExp("["+qt+"]["+qt+"]*$");return e.replace(t,"").replace(r,"")});const $t=o((function(e,t){return I(e+1,(function(){var r=arguments[e];if(null!=r&&Ce(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ne(r)+' does not have a method named "'+t+'"')}))}));const Vt=$t(1,"split");const Dt=$t(1,"join");const Bt=i((function(e){return l(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Wt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return ye.apply(this,Bt(arguments))}const Ut=I(4,(function(e,t,r,n){return le(e("function"==typeof t?fe(t):t),r,n)}));const zt=o((function(e,t){if(y(e)){if(y(t))return e.concat(t);throw new TypeError(Ne(t)+" is not an array")}if(l(e)){if(l(t))return e+t;throw new TypeError(Ne(t)+" is not a string")}if(null!=e&&Ce(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&Ce(e.concat))return e.concat(t);throw new TypeError(Ne(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Gt=J("");const Kt=o((function(e,t){return I(he(De,0,Be("length",t)),(function(){var r=arguments,n=this;return e.apply(n,A((function(e){return e.apply(n,r)}),t))}))}));function Ht(e){return e}const Yt=i(Ht);const Zt=I(1,ye(Z,ve("Number")));var Qt=Fe(Zt,isFinite);var Xt=I(1,Qt);const Jt=Ge(Number.isFinite)?I(1,ae(Number.isFinite,Number)):Xt;var er=Fe(Jt,Kt(J,[Math.floor,Yt]));var tr=I(1,er);const rr=Ge(Number.isInteger)?I(1,ae(Number.isInteger,Number)):tr;const nr=i((function(e){return I(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));const sr=G(Jt);const ir=I(1,Fe(Zt,o((function(e,t){return e>t}))(0)));var or=Ft((function(e,t){var r=Number(t);if(r!==t&&(r=0),ir(r))throw new RangeError("repeat count must be non-negative");if(sr(r))throw new RangeError("repeat count must be less than infinity");if(r=Math.floor(r),0===e.length||0===r)return"";if(e.length*r>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var n=e.length*r;r=Math.floor(Math.log(r)/Math.log(2));for(var s=e;r;)s+=e,r-=1;return s+=s.substring(0,n-s.length)})),ar=nr($t(1,"repeat"));const cr=Ge(String.prototype.repeat)?ar:or;const ur=a((function(e,t,r){return r.replace(e,t)}));var lr=ur(/[\s\uFEFF\xA0]+$/,""),pr=$t(0,"trimEnd");const fr=Ge(String.prototype.trimEnd)?pr:lr;var hr=ur(/^[\s\uFEFF\xA0]+/,""),dr=$t(0,"trimStart");const _r=Ge(String.prototype.trimStart)?dr:hr;var mr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=P,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 yr(e){return function(t){return new mr(e,t)}}const gr=o(S(["dropWhile"],yr,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return _e(r,1/0,t)})));const vr=nr(o(be));const br=Ft((function(e,t){return ye(Vt(""),gr(vr(e)),Dt(""))(t)}));const wr=nr(zt);var Er=r(6259);const xr=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Sr=e=>{const t=(e=>{const t=e.match(xr),r=Rt("",["groups","indentation"],t);return Gt(r)?void 0:parseInt(r,10)})(e);if(rr(t))return cr(" ",t);const r=Rt("",[1],e.split("\n")),n=Rt(0,["groups","indentation","length"],r.match(/^(?<indentation>[ ]*)/));return cr(" ",n)},Ar=e=>{const t=e.match(xr),r=Rt("",["groups","chomping"],t);return Gt(r)?void 0:r},jr=(e,t)=>re(e)?`${fr(t)}\n`:"-"===e?fr(t):t,Pr=e=>e.replace(/\r\n/g,"\n"),Or=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,r)=>t?e:` ${r.trimStart()}`)).replace(/[\n]{2}/g,"\n"),kr=Ft(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Nr=ye(Pr,Lt,Or,Vt("\n"),B(_r),Dt("\n")),Mr=ye(Pr,Lt,kr("'"),Or,Vt("\n"),B(_r),Dt("\n")),Ir=ye(Pr,Lt,kr('"'),(e=>e.replace(/\\\n\s*/g,"")),Or,Er.Go,Vt("\n"),B(_r),Dt("\n"));let Tr=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}({}),Cr=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Rr=class{static test(e){return e.tag.kind===kt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const r=e.clone();return e.style===Tr.Plain?t=Nr(e.content):e.style===Tr.SingleQuoted?t=Mr(e.content):e.style===Tr.DoubleQuoted?t=Ir(e.content):e.style===Tr.Literal?t=(e=>{const t=Sr(e),r=Ar(e),n=Pr(e),s=me(n.split("\n")),i=Wt(B(br(t)),B(wr("\n"))),o=Ut(i,zt,"",s);return jr(r,o)})(e.content):e.style===Tr.Folded&&(t=(e=>{const t=Sr(e),r=Ar(e),n=Pr(e),s=me(n.split("\n")),i=Wt(B(br(t)),B(wr("\n"))),o=Ut(i,zt,"",s),a=Or(o);return jr(r,a)})(e.content)),r.content=t,r}static resolve(e){return e}};const Fr=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new It),this.registerTag(new Tt),this.registerTag(new Ct)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===kt.Scalar?t=Ct.uri:e.tag.kind===kt.Sequence?t=Tt.uri:e.tag.kind===kt.Mapping&&(t=It.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 r=e;Rr.test(e)&&(r=Rr.canonicalFormat(e));const n=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===n)throw new Pt(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:xt(e.tag.position),node:e.clone()});if(!n.test(r))throw new Pt(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:xt(e.tag.position),nodeCanonicalContent:r.content,node:e.clone()});return n.resolve(r)}};const qr=class extends Mt{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,r=e.clone();return r.content=t,r}};const Lr=class extends Mt{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),r=e.clone();return r.content=t,r}};const $r=class extends Mt{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),r=e.clone();return r.content=t,r}};const Vr=class extends Mt{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const Dr=class extends Fr{constructor(){super(),this.registerTag(new qr,!0),this.registerTag(new Lr,!0),this.registerTag(new $r,!0),this.registerTag(new Vr,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===kt.Sequence)t=Tt.uri;else if(e.tag.kind===kt.Mapping)t=It.uri;else if(e.tag.kind===kt.Scalar){const r=this.tags.find((t=>t.test(e)));t=(null==r?void 0:r.tag)||"?"}return t}};const Br=class extends Ot{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:r,styleGroup:n,...s}){super({...s}),this.anchor=e,this.tag=t,this.style=r,this.styleGroup=n}};const Wr=class extends Br{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Ur=class extends At{},zr=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Gr=e=>zr("mapping",e),Kr=e=>zr("sequence",e),Hr=e=>zr("keyValuePair",e),Yr=e=>zr("scalar",e),Zr=e=>zr("alias",e);const Qr=class{addAnchor(e){if(!(e=>zr("anchor",e))(e.anchor))throw new Ur("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Wr({content:e.content,style:Tr.Plain,styleGroup:Cr.Flow})}},Xr=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},Jr={},en=e=>null==e?void 0:e.type,tn=e=>"string"==typeof en(e),rn=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),nn=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=Jr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Xr,nodeTypeGetter:c=en,nodePredicate:u=tn,nodeCloneFn:l=rn,detectCycles:p=!0}={})=>{const f=r||{};let h,d,_=Array.isArray(e),m=[e],y=-1,g=[],v=e;const b=[],w=[];do{y+=1;const e=y===m.length;let r;const x=e&&0!==g.length;if(e){if(r=0===w.length?void 0:b.pop(),v=d,d=w.pop(),x)if(_){v=v.slice();let e=0;for(const[t,r]of g){const n=t-e;r===i?(v.splice(n,1),e+=1):v[n]=r}}else{v=l(v);for(const[e,t]of g)v[e]=t}y=h.index,m=h.keys,g=h.edits,_=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(r=_?y:m[y],v=d[r],v===i||void 0===v)continue;b.push(r)}let S;if(!Array.isArray(v)){if(!u(v))throw new St(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;S=i.call(t,v,r,d,b,w)}if(S===s)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&g.push([r,v]),!e)h={inArray:_,index:y,keys:m,edits:g,prev:h},_=Array.isArray(v),m=_?v:null!==(E=f[c(v)])&&void 0!==E?E:[],y=-1,g=[],d!==i&&void 0!==d&&w.push(d),d=v}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:e};nn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=Jr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Xr,nodeTypeGetter:c=en,nodePredicate:u=tn,nodeCloneFn:l=rn,detectCycles:p=!0}={})=>{const f=r||{};let h,d,_=Array.isArray(e),m=[e],y=-1,g=[],v=e;const b=[],w=[];do{y+=1;const e=y===m.length;let r;const x=e&&0!==g.length;if(e){if(r=0===w.length?void 0:b.pop(),v=d,d=w.pop(),x)if(_){v=v.slice();let e=0;for(const[t,r]of g){const n=t-e;r===i?(v.splice(n,1),e+=1):v[n]=r}}else{v=l(v);for(const[e,t]of g)v[e]=t}y=h.index,m=h.keys,g=h.edits,_=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(r=_?y:m[y],v=d[r],v===i||void 0===v)continue;b.push(r)}let S;if(!Array.isArray(v)){if(!u(v))throw new St(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;S=await i.call(t,v,r,d,b,w)}if(S===s)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&g.push([r,v]),!e)h={inArray:_,index:y,keys:m,edits:g,prev:h},_=Array.isArray(v),m=_?v:null!==(E=f[c(v)])&&void 0!==E?E:[],y=-1,g=[],d!==i&&void 0!==d&&w.push(d),d=v}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:e};class sn{static type="point";type=sn.type;row;column;char;constructor({row:e,column:t,char:r}){this.row=e,this.column=t,this.char=r}}class on{static type="position";type=on.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const an=on;const cn=class extends Ot{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class un extends Ot{static type="stream"}Object.defineProperty(un.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>zr("document",e))(e)||(e=>zr("comment",e))(e))):[]},enumerable:!0});const ln=un;const pn=p(0);const fn=class extends Ot{static type="parseResult";get rootNode(){return pn(this.children)}};const hn="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),r=1,n=arguments.length;r<n;){var s=arguments[r];if(null!=s)for(var i in s)T(i,s)&&(t[i]=s[i]);r+=1}return t};const dn=o((function(e,t){return hn({},e,t)}));const _n=class extends Ot{static type="directive";name;parameters;constructor({name:e,parameters:t,...r}){super({...r}),this.name=e,this.parameters=dn({version:void 0,handle:void 0,prefix:void 0},t)}};const mn=class extends Ot{static type="document"};const yn=class extends Br{};class gn extends yn{static type="mapping"}Object.defineProperty(gn.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Hr):[]},enumerable:!0});const vn=gn;class bn extends Ot{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(bn.prototype,{key:{get(){return this.children.filter((e=>Yr(e)||Gr(e)||Kr(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>Yr(e)||Gr(e)||Kr(e)||Zr(e))(t)))[0]},enumerable:!0}});const wn=bn;class En extends yn{static type="sequence"}Object.defineProperty(En.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Kr(e)||Gr(e)||Yr(e)||Zr(e))):[]},enumerable:!0});const xn=En;const Sn=class extends Ot{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const An=class extends Ot{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const jn=class extends Ot{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const Pn=class extends Ot{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}};const On=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)}},kn={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Nn=e=>Array.isArray(e)||tn(e);class Mn{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 sn({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=new sn({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new an({start:t,end:r})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new cn({name:t.text,position:Mn.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,r=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),n=e.type.endsWith("mapping")?kt.Mapping:e.type.endsWith("sequence")?kt.Sequence:kt.Scalar,s=t?Mn.toPosition(t):void 0;return new Nt({explicitName:r,kind:n,position:s})}schema;referenceManager;stream={enter:e=>{const t=Mn.toPosition(e);return new ln({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new fn({children:[e]})};yaml_directive={enter:e=>{var t;const r=Mn.toPosition(e),n=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new _n({position:r,name:"%YAML",parameters:{version:n}})}};tag_directive={enter:e=>{const t=Mn.toPosition(e),r=e.children[0],n=e.children[1],s=new _n({position:t,name:"%TAG",parameters:{handle:null==r?void 0:r.text,prefix:null==n?void 0:n.text}});return this.schema.registerTagDirective(s),s}};reserved_directive={enter:e=>{const t=Mn.toPosition(e),r=e.children[0],n=e.children[1],s=e.children[2];return new _n({position:t,name:null==r?void 0:r.text,parameters:{handle:null==n?void 0:n.text,prefix:null==s?void 0:s.text}})}};document={enter:e=>{const t=Mn.toPosition(e);return new mn({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(Mn.isScalar(t)||Mn.isMapping(t)||Mn.isSequence(t))return e.children;const r=new sn({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),n=new Wr({content:"",anchor:Mn.kindNodeToYamlAnchor(t),tag:Mn.kindNodeToYamlTag(t),position:new an({start:r,end:r}),styleGroup:Cr.Flow,style:Tr.Plain});return this.registerAnchor(n),[...e.children,n]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Mn.toPosition(e),r=Mn.kindNodeToYamlTag(e),n=Mn.kindNodeToYamlAnchor(e),s=new vn({children:e.children,position:t,anchor:n,tag:r,styleGroup:Cr.Block,style:Tr.NextLine,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};block_mapping_pair={enter:e=>{const t=Mn.toPosition(e),r=[...e.children];if(Mn.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);r.unshift(t)}if(Mn.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);r.push(t)}return new wn({children:r,position:t,styleGroup:Cr.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Mn.toPosition(e),r=Mn.kindNodeToYamlTag(e),n=Mn.kindNodeToYamlAnchor(e),s=new vn({children:e.children,position:t,anchor:n,tag:r,styleGroup:Cr.Flow,style:Tr.Explicit,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};flow_pair={enter:e=>{const t=Mn.toPosition(e),r=[...e.children];if(Mn.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);r.unshift(t)}if(Mn.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);r.push(t)}return new wn({children:r,position:t,styleGroup:Cr.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Mn.toPosition(e),r=Mn.kindNodeToYamlTag(e),n=Mn.kindNodeToYamlAnchor(e),s=new xn({children:e.children,position:t,anchor:n,tag:r,styleGroup:Cr.Block,style:Tr.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 sn({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new Wr({content:"",tag:new Nt({explicitName:"?",kind:kt.Scalar}),position:new an({start:t,end:t}),styleGroup:Cr.Flow,style:Tr.Plain})]}};flow_sequence={enter:e=>{const t=Mn.toPosition(e),r=Mn.kindNodeToYamlTag(e),n=Mn.kindNodeToYamlAnchor(e),s=new xn({children:e.children.flat(),position:t,anchor:n,tag:r,styleGroup:Cr.Flow,style:Tr.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=Mn.toPosition(e),r=Mn.kindNodeToYamlTag(e),n=Mn.kindNodeToYamlAnchor(e),s=new Wr({content:e.text,anchor:n,tag:r,position:t,styleGroup:Cr.Flow,style:Tr.Plain});return this.registerAnchor(s),this.schema.resolve(s)}};single_quote_scalar={enter:e=>{const t=Mn.toPosition(e),r=Mn.kindNodeToYamlTag(e),n=Mn.kindNodeToYamlAnchor(e),s=new Wr({content:e.text,anchor:n,tag:r,position:t,styleGroup:Cr.Flow,style:Tr.SingleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};double_quote_scalar={enter:e=>{const t=Mn.toPosition(e),r=Mn.kindNodeToYamlTag(e),n=Mn.kindNodeToYamlAnchor(e),s=new Wr({content:e.text,anchor:n,tag:r,position:t,styleGroup:Cr.Flow,style:Tr.DoubleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};block_scalar={enter:e=>{const t=Mn.toPosition(e),r=Mn.kindNodeToYamlTag(e),n=Mn.kindNodeToYamlAnchor(e),s=e.text.startsWith("|")?Tr.Literal:e.text.startsWith(">")?Tr.Folded:Tr.Plain,i=new Wr({content:e.text,anchor:n,tag:r,position:t,styleGroup:Cr.Block,style:s});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:e=>new Sn({content:e.text})};alias={enter:e=>{const t=new An({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof On&&!e.isNamed){const t=Mn.toPosition(e),r=e.type||e.text,{isMissing:n}=e;return new jn({value:r,position:t,isMissing:n})}}ERROR(e,t,r,n){const s=Mn.toPosition(e),i=new Pn({children:e.children,position:s,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===n.length?new fn({children:[i]}):i}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new sn({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:r}=e,n=(null==r?void 0:r.children)||[],s=n.find(Mn.isKind("tag")),i=n.find(Mn.isKind("anchor")),o=new Nt(void 0!==s?{explicitName:s.text,kind:kt.Scalar,position:Mn.toPosition(s)}:{explicitName:"?",kind:kt.Scalar}),a=void 0!==i?new cn({name:i.text,position:Mn.toPosition(i)}):void 0,c=new Wr({content:"",position:new an({start:t,end:t}),tag:o,anchor:a,styleGroup:Cr.Flow,style:Tr.Plain});return this.registerAnchor(c),c}createKeyValuePairEmptyValue(e){const t=new sn({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:r}=e,n=(null==r?void 0:r.children)||[],s=n.find(Mn.isKind("tag")),i=n.find(Mn.isKind("anchor")),o=new Nt(void 0!==s?{explicitName:s.text,kind:kt.Scalar,position:Mn.toPosition(s)}:{explicitName:"?",kind:kt.Scalar}),a=void 0!==i?new cn({name:i.text,position:Mn.toPosition(i)}):void 0,c=new Wr({content:"",position:new an({start:t,end:t}),tag:o,anchor:a,styleGroup:Cr.Flow,style:Tr.Plain});return this.registerAnchor(c),c}}const In=Mn;var Tn=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var r;return this.f(t)||(this.all=!1,e=(r=this.xf["@@transducer/step"](e,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),e},e}();function Cn(e){return function(t){return new Tn(e,t)}}const Rn=o(S(["all"],Cn,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0}))),Fn=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],qn=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Ln=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),$n=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof se.uQ)&&t.classes.includes(e),Vn=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Dn=e=>e({hasMethod:Fn,hasBasicElementProps:qn,primitiveEq:Ln,isElementType:Vn,hasClass:$n}),Bn=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.gr||e(r)&&t(void 0,r))),Wn=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.M$||e(r)&&t("string",r))),Un=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.wH||e(r)&&t("number",r))),zn=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.WM||e(r)&&t("null",r))),Gn=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.Ar||e(r)&&t("boolean",r))),Kn=Dn((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof se.We||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Hn=Dn((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof se.uQ&&!(n instanceof se.We)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Yn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof se.u6||e(n)&&t("member",n)&&r(void 0,n))),Zn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof se.UH||e(n)&&t("link",n)&&r(void 0,n))),Qn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof se.eE||e(n)&&t("ref",n)&&r(void 0,n))),Xn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xe||e(n)&&t("annotation",n)&&r("array",n))),Jn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof et||e(n)&&t("comment",n)&&r("string",n))),es=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rt||e(n)&&t("parseResult",n)&&r("array",n))),ts=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof st||e(n)&&t("sourceMap",n)&&r("array",n))),rs=e=>Vn("object",e)||Vn("array",e)||Vn("boolean",e)||Vn("number",e)||Vn("string",e)||Vn("null",e)||Vn("member",e),ns=e=>ts(e.meta.get("sourceMap")),ss=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Hn(r)&&Rn(vr(r.toValue()),e)},is=(e,t)=>0===e.length||Rn(vr(t.classes.toValue()),e);const os=class extends St{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const as=class extends os{};const cs=class extends os{},us=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof se.KeyValuePair){const{key:t,value:s}=e,i=Bn(t)?us(t,n):t,o=Bn(s)?us(s,n):s,a=new se.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof se.wL){const t=e=>us(e,n),s=[...e].map(t),i=new se.wL(s);return r.set(e,i),i}if(e instanceof se.eW){const t=e=>us(e,n),s=[...e].map(t),i=new se.eW(s);return r.set(e,i),i}if(Bn(e)){const t=fs(e);if(r.set(e,t),e.content)if(Bn(e.content))t.content=us(e.content,n);else if(e.content instanceof se.KeyValuePair)t.content=us(e.content,n);else if(Array.isArray(e.content)){const r=e=>us(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new as("Value provided to cloneDeep function couldn't be cloned",{value:e})};us.safe=e=>{try{return us(e)}catch{return e}};const ls=e=>{const{key:t,value:r}=e;return new se.KeyValuePair(t,r)},ps=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=us(e.meta)),e.attributes.length>0&&(t._attributes=us(e.attributes)),Bn(e.content)){const r=e.content;t.content=ps(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof se.KeyValuePair?t.content=ls(e.content):t.content=e.content;return t},fs=e=>{if(e instanceof se.KeyValuePair)return ls(e);if(e instanceof se.wL)return(e=>{const t=[...e];return new se.wL(t)})(e);if(e instanceof se.eW)return(e=>{const t=[...e];return new se.eW(t)})(e);if(Bn(e))return ps(e);throw new cs("Value provided to cloneShallow function couldn't be cloned",{value:e})};fs.safe=e=>{try{return fs(e)}catch{return e}};const hs=e=>Kn(e)?"ObjectElement":Hn(e)?"ArrayElement":Yn(e)?"MemberElement":Wn(e)?"StringElement":Gn(e)?"BooleanElement":Un(e)?"NumberElement":zn(e)?"NullElement":Zn(e)?"LinkElement":Qn(e)?"RefElement":void 0,ds=e=>Bn(e)?fs(e):rn(e),_s=ye(hs,ut),ms={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const ys=(e,t,{keyMap:r=ms,...n}={})=>nn(e,t,{keyMap:r,nodeTypeGetter:hs,nodePredicate:_s,nodeCloneFn:ds,...n});ys[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=ms,...n}={})=>nn[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:hs,nodePredicate:_s,nodeCloneFn:ds,...n});const gs=a((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})T(n,t)&&(s[n]=T(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)T(n,r)&&!T(n,s)&&(s[n]=r[n]);return s}));const vs=a((function e(t,r,n){return gs((function(r,n,s){return Se(n)&&Se(s)?e(t,n,s):t(r,n,s)}),r,n)}));const bs=o((function(e,t){return vs((function(e,t,r){return r}),e,t)}));const ws=_e(0,-1);const Es=o((function(e,t){return e.apply(this,t)}));const xs=G(Ge);var Ss=i((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():y(e)?[]:l(e)?"":Se(e)?{}:R(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 As=Ss;const js=i((function(e){return null!=e&&J(e,As(e))}));const Ps=Fe(I(1,Ge(Array.isArray)?Array.isArray:ye(Z,ve("Array"))),js);const Os=I(3,(function(e,t,r){var n=Ie(e,r),s=Ie(ws(e),r);if(!xs(n)&&!Ps(e)){var i=ae(n,s);return Es(i,t)}})),ks=()=>({predicates:{...e},namespace:ct}),Ns={toolboxCreator:ks,visitorOptions:{nodeTypeGetter:hs,exposeEdits:!0}},Ms=(e,t,r={})=>{if(0===t.length)return e;const n=bs(Ns,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=t.map((e=>e(o))),c=((e,{visitFnGetter:t=Xr,nodeTypeGetter:r=en,breakSymbol:n=Jr,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,f=!1;for(let h=0;h<e.length;h+=1)if(c[h]===a){const a=t(e[h],r(p),!1);if("function"==typeof a){const t=a.call(e[h],p,...l);if(t===i)c[h]=u;else if(t===n)c[h]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,f=!0}}}}return f?p:void 0},leave(s,...o){for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(s),!0);if("function"==typeof a){const t=a.call(e[u],s,...o);if(t===n)c[u]=n;else if(void 0!==t&&t!==i)return t}}else c[u]===s&&(c[u]=a)}}})(a.map(h({},"visitor")),{...i});a.forEach(Os(["pre"],[]));const u=ys(e,c,i);return a.forEach(Os(["post"],[])),u},Is=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Ms(n,r,{toolboxCreator:ks,visitorOptions:{nodeTypeGetter:hs}})},Ts=e=>(t,r={})=>Is(t,{...r,Type:e});se.We.refract=Ts(se.We),se.uQ.refract=Ts(se.uQ),se.M$.refract=Ts(se.M$),se.Ar.refract=Ts(se.Ar),se.WM.refract=Ts(se.WM),se.wH.refract=Ts(se.wH),se.UH.refract=Ts(se.UH),se.eE.refract=Ts(se.eE),Xe.refract=Ts(Xe),et.refract=Ts(et),rt.refract=Ts(rt),st.refract=Ts(st);const Cs={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...ms},Rs=e=>Bn(e)?hs(e):en(e),Fs=e=>Bn(e)||tn(e)||Array.isArray(e);const qs=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new rt;t._content=e.children.flat(1);const r=t.findElements(rs);if(r.length>0){r[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=at()}comment(e){if(0===this.processedDocumentCount){const t=new et(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,r=this.processedDocumentCount>=1;if(t){const t=new Xe("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 r?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new se.We;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new se.u6;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}sequence(e){const t=new se.uQ;return t._content=e.children,this.maybeAddSourceMap(e,t),t}scalar(e){const t=this.namespace.toElement(e.content);return""===e.content&&e.style===Tr.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})`,r=new Xe(t);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}error(e,t,r,n){const s=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new Xe(s);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===n.length){const e=new rt;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new st;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)}};class Ls{cursor;constructor(e){this.cursor=e}stream(){return new On(this.cursor)}yaml_directive(){return new On(this.cursor)}tag_directive(){return new On(this.cursor)}reserved_directive(){return new On(this.cursor)}document(){return new On(this.cursor)}block_node(){return new On(this.cursor).setFieldName(this.cursor)}flow_node(){return new On(this.cursor).setFieldName(this.cursor)}block_mapping(){return new On(this.cursor)}block_mapping_pair(){return new On(this.cursor)}flow_mapping(){return new On(this.cursor)}flow_pair(){return new On(this.cursor)}block_sequence(){return new On(this.cursor)}block_sequence_item(){return new On(this.cursor)}flow_sequence(){return new On(this.cursor)}plain_scalar(){return new On(this.cursor)}single_quote_scalar(){return new On(this.cursor)}double_quote_scalar(){return new On(this.cursor)}block_scalar(){return new On(this.cursor)}ERROR(){return new On(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new On(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Ls(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Ls(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const $s=Ls,Vs=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),n=new $s(r),[s]=Array.from(n),i=new In,o=new qs,a=new Dr,c=new Qr,u=nn(s,i,{keyMap:kn,nodePredicate:Nn,state:{schema:a,sourceMap:t,referenceManager:c}});return nn(u.rootNode,o,{keyMap:Cs,nodeTypeGetter:Rs,nodePredicate:Fs,state:{sourceMap:t}})};const Ds=o((function(e,t){return m((function(r,n){return r[n]=e(t[n],n,t),r}),{},D(t))}));const Bs=i((function(e){return null==e}));const Ws=o((function(e,t){if(0===e.length||Bs(t))return!1;for(var r=t,n=0;n<e.length;){if(Bs(r)||!T(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));var Us=o((function(e,t){return Ws([e],t)}));const zs=Us;const Gs=a((function(e,t,r){return e(f(t,r))})),Ks=(e,t)=>{const r=c(e,t);return Ds((e=>{if(Ze(e)&&zs("$ref",e)&&Gs(ut,"$ref",e)){const t=Ie(["$ref"],e),n=br("#/",t);return Ie(n.split("/"),r)}return Ze(e)?Ks(e,r):e}),e)};const Hs=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){ns(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}};const Ys=class extends Hs{enter(e){return this.element=us(e),Jr}},Zs=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},Qs=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:Qs(r,[...t,r])},Xs=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>Qs(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(s),o=Qs(s);for(let t of e){let e=Qs(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(Zs(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},Js=e=>e.filter(((t,r)=>e.indexOf(t)==r)),ei=(e,t)=>{const r=t.map((e=>Qs(e)));let n=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][n];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}n++}},ti=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(ei(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==ei(n,e)||void 0!==t[n],get:(r,n)=>(ei(n,e)||t)[n],set(t,r,n){const s=ei(r,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[r]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),ri=null,ni="copy",si="copy",ii="deep",oi=new Map,ai=e=>oi.get(e),ci=(e,t)=>{var r,n;const s=Js([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=Js([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},ui=(e,t)=>{var r,n,s,i;return{property:ci(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:ci(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},li=(e,t)=>{var r,n,s,i,o,a;return{class:Js([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:ui(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:ui(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},pi=new Map,fi=(...e)=>{const t=((...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...Qs(e.prototype).map((e=>e.constructor)),...null!==(t=ai(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]})(...e).map((e=>pi.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>li(e,t)))},hi=e=>{let t=pi.get(e);return t||(t={},pi.set(e,t)),t};function di(...e){var t,r,n;const s=e.map((e=>e.prototype)),i=ri;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t={[i]:function(...t){for(let r of e)r.apply(this,t)}};s.push(t)}function o(...t){for(const r of e)Zs(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===si?Xs(s,o):(a=s,c=o,ti([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===ni?Xs(e,null,["prototype"]):ti(e,Function.prototype));let u=o;if("none"!==ii){const s="deep"===ii?fi(...e):((...e)=>{const t=e.map((e=>hi(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>li(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)}_i(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},u),_i(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},u.prototype)}var l,p;return l=u,p=e,oi.set(l,p),u}const _i=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const mi=function(){return!0},yi=e=>"string"==typeof(null==e?void 0:e.type)?e.type:hs(e),gi={EphemeralObject:["content"],EphemeralArray:["content"],...ms},vi=(e,t,{keyMap:r=gi,...n}={})=>ys(e,t,{keyMap:r,nodeTypeGetter:yi,nodePredicate:mi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});vi[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=gi,...r}={})=>ys[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:yi,nodePredicate:mi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const bi=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 wi=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 Ei{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new wi(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 bi(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}}const xi=e=>Bn(e)?Wn(e)||Un(e)||Gn(e)||zn(e)?e.toValue():vi(e,new Ei):e;const Si=o((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r})),Ai=e=>{if(Bn(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ji={MainElement:["content"],InfoElement:["content"],PrincipleElement:["content"],StandardElement:["content"],ScenarioElement:["content"],RequirementElement:["content"],StandardIdentifierElement:["content"],RequirementLevelElement:[],...ms};const Pi=class extends Hs{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Si(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ie(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Te(Ge,["visitors",...e],this.specObj)?Ie(["visitors",...e],this.specObj):Ie(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof Ys&&(null==n?void 0:n.constructor)===Ys?us(t):(ys(t,n,{keyMap:ji,...r,nodeTypeGetter:Ai}),n.element)}};class Oi extends se.M${constructor(e,t,r){super(e,t,r),this.element="requirementLevel"}}const ki=Oi;class Ni extends(di(Pi,Ys)){StringElement(e){const t=new ki(xi(e));return this.copyMetaAndAttributes(e,t),this.element=t,Jr}}const Mi=Ni;class Ii extends se.uQ{constructor(e,t,r){super(e,t,r),this.element="standardIdentifier"}}const Ti=Ii;class Ci extends(di(Pi,Ys)){constructor(e){super(e),this.element=new Ti}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","StandardIdentifier"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const Ri=Ci;class Fi extends se.We{constructor(e,t,r){super(e,t,r),this.element="requirement"}get subject(){return this.get("subject")}set subject(e){this.set("subject",e)}get level(){return this.get("level")}set level(e){this.set("level",e)}get values(){return this.get("values")}set values(e){this.set("values",e)}get follows(){return this.get("follows")}set follows(e){this.set("follows",e)}}const qi=Fi;const Li=class extends Pi{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Wn(n)&&r.includes(xi(n))&&!this.ignoredFields.includes(xi(n))){const r=this.toRefractedElement([...t,"fixedFields",xi(n)],e),i=new se.u6(us(n),r);i.classes.push("fixed-field"),this.copyMetaAndAttributes(s,i),this.element.content.push(i)}else this.ignoredFields.includes(xi(n))||this.element.content.push(us(s))})),this.copyMetaAndAttributes(e,this.element),Jr}};class $i extends(di(Li,Ys)){constructor(e){super(e),this.element=new qi,this.specPath=ee(["document","objects","Requirement"])}}const Vi=$i;class Di extends se.We{constructor(e,t,r){super(e,t,r),this.element="scenario"}get description(){return this.get("description")}set description(e){this.set("description",e)}get when(){return this.get("when")}set when(e){this.set("when",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}}const Bi=Di;class Wi extends(di(Li,Ys)){constructor(e){super(e),this.element=new Bi,this.specPath=ee(["document","objects","Scenario"])}}const Ui=Wi;class zi extends(di(Pi,Ys)){constructor(e){super(e),this.element=new se.uQ,this.element.classes.push("scenario-then")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Requirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const Gi=zi;class Ki extends se.We{constructor(e,t,r){super(e,t,r),this.element="standard"}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 iri(){return this.get("iri")}set iri(e){this.set("iri",e)}get level(){return this.get("level")}set level(e){this.set("level",e)}}const Hi=Ki;class Yi extends(di(Li,Ys)){constructor(e){super(e),this.element=new Hi,this.specPath=ee(["document","objects","Standard"])}}const Zi=Yi;class Qi extends se.We{constructor(e,t,r){super(e,t,r),this.element="principle"}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 iri(){return this.get("iri")}set iri(e){this.set("iri",e)}get level(){return this.get("level")}set level(e){this.set("level",e)}}const Xi=Qi;class Ji extends(di(Li,Ys)){constructor(e){super(e),this.element=new Xi,this.specPath=ee(["document","objects","Principle"])}}const eo=Ji;class to extends se.We{constructor(e,t,r){super(e,t,r),this.element="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)}}const ro=to;class no extends(di(Li,Ys)){constructor(e){super(e),this.specPath=ee(["document","objects","Info"]),this.element=new ro}}const so=no;class io extends se.We{constructor(e,t,r){super(e,t,r),this.element="main",this.classes.push("api")}get version(){return this.get("version")}set version(e){this.set("version",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get principles(){return this.get("principles")}set principles(e){this.set("principles",e)}get standards(){return this.get("standards")}set standards(e){this.set("standards",e)}get scenarios(){return this.get("scenarios")}set scenarios(e){this.set("scenarios",e)}}const oo=io;class ao extends(di(Li,Ys)){constructor(e){super(e),this.element=new oo,this.specPath=ee(["document","objects","Main"])}}const co=ao;class uo extends(di(Pi,Ys)){constructor(e){super(e),this.element=new se.uQ,this.element.classes.push("main-principles")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Principle"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const lo=uo;class po extends(di(Pi,Ys)){constructor(e){super(e),this.element=new se.uQ,this.element.classes.push("main-standards")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Standard"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const fo=po;class ho extends(di(Pi,Ys)){constructor(e){super(e),this.element=new se.uQ,this.element.classes.push("main-scenarios")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Scenario"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const _o={visitors:{value:Ys,document:{objects:{Main:{$visitor:co,fixedFields:{version:{$ref:"#/visitors/value"},info:{$ref:"#/visitors/document/objects/Info"},principles:lo,standards:fo,scenarios:ho}},Info:{$visitor:so,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Principle:{$visitor:eo,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},iri:{$ref:"#/visitors/value"},level:{$ref:"#/visitors/document/objects/RequirementLevel"}}},Standard:{$visitor:Zi,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},level:{$ref:"#/visitors/document/objects/RequirementLevel"},iri:{$ref:"#/visitors/value"}}},Scenario:{$visitor:Ui,fixedFields:{description:{$ref:"#/visitors/value"},when:{$ref:"#/visitors/document/objects/StandardIdentifier"},then:Gi}},Requirement:{$visitor:Vi,fixedFields:{subject:{$ref:"#/visitors/document/objects/StandardIdentifier"},level:{$ref:"#/visitors/document/objects/RequirementLevel"},values:{$ref:"#/visitors/value"},follows:{$ref:"#/visitors/value"}}},StandardIdentifier:{$visitor:Ri},RequirementLevel:{$visitor:Mi}}}}},mo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof oo||e(n)&&t("main",n)&&r("object",n))),yo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ro||e(n)&&t("info",n)&&r("object",n))),go=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xi||e(n)&&t("principle",n)&&r("object",n))),vo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qi||e(n)&&t("requirement",n)&&r("object",n))),bo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ki||e(n)&&t("requirementLevel",n)&&r("string",n))),wo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bi||e(n)&&t("scenario",n)&&r("object",n))),Eo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hi||e(n)&&t("standard",n)&&r("object",n))),xo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ti||e(n)&&t("standardIdentifier",n)&&r("array",n))),So={namespace:e=>{const{base:t}=e;return t.register("info",ro),t.register("main",oo),t.register("principle",Xi),t.register("requirement",qi),t.register("requirementLevel",ki),t.register("scenario",Bi),t.register("standard",Hi),t.register("standardIdentifier",Ti),t}},Ao=()=>{const e=at(So);return{predicates:{...t,isStringElement:Wn},namespace:e}},jo=(e,{specPath:t=["visitors","document","objects","Main","$visitor"],plugins:r=[]}={})=>{const n=(0,se.WG)(e),s=Ks(_o),i=new(Ie(t,s))({specObj:s});return ys(n,i),Ms(i.element,r,{toolboxCreator:Ao,visitorOptions:{keyMap:ji,nodeTypeGetter:Ai}})},Po=e=>(t,r={})=>jo(t,{...r,specPath:e});oo.refract=Po(["visitors","document","objects","Main","$visitor"]),ro.refract=Po(["visitors","document","objects","Info","$visitor"]),Xi.refract=Po(["visitors","document","objects","Principle","$visitor"]),qi.refract=Po(["visitors","document","objects","Requirement","$visitor"]),ki.refract=Po(["visitors","document","objects","RequirementLevel","$visitor"]),Bi.refract=Po(["visitors","document","objects","Scenario","$visitor"]),Hi.refract=Po(["visitors","document","objects","Standard","$visitor"]),Ti.refract=Po(["visitors","document","objects","StandardIdentifier","$visitor"]);const Oo=p(-1);const ko=class extends mt{};const No=class extends ko{};const Mo=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new No("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new No("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new No("latest method in MediaTypes class is not yet implemented.")}};class Io extends Mo{filterByFormat(e="generic"){const t="generic"===e?"apidesignsystems;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2021-05-07",t="generic"){const r="generic"===t?`apidesignsystems;version=${e}`:`apidesignsystems+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return Oo(this.filterByFormat(e))}}const To=new Io("application/vnd.aai.apidesignsystems;version=2021-05-07","application/vnd.aai.apidesignsystems+json;version=2021-05-07","application/vnd.aai.apidesignsystems+yaml;version=2021-05-07"),Co=new Io(...To.filterByFormat("generic"),...To.filterByFormat("yaml")),Ro=/(?<YAML>^(["']?)version\2\s*:\s*(["']?)(?<version_yaml>2021-05-07)\3)|(?<JSON>"version"\s*:\s*"(?<version_json>2021-05-07)")/m,Fo=async e=>Ro.test(e)&&await(async e=>{try{return"ERROR"!==(await bt(e)).rootNode.type}catch{return!1}})(e),qo=async(e,t={})=>{const r=h({},"refractorOpts",t),n=_(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1}={})=>{const r=await bt(e);return Vs(r,{sourceMap:t})})(e,n),{result:i}=s;if(ne(i)){const e=oo.refract(i,r);e.classes.push("result"),s.replaceResult(e)}return s},Lo=at(So)})(),n})()));