@swagger-api/apidom-parser-adapter-api-design-systems-json 1.0.0-beta.8 → 1.0.0-rc.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(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterApiDesignSystemsJson=t():e.apidomParserAdapterApiDesignSystemsJson=t()}(self,(()=>(()=>{var __webpack_modules__={3103:(e,t,r)=>{var n=r(4715)(r(8942),"DataView");e.exports=n},5098:(e,t,r)=>{var n=r(3305),s=r(9361),o=r(1112),i=r(5276),a=r(5071);function _(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])}}_.prototype.clear=n,_.prototype.delete=s,_.prototype.get=o,_.prototype.has=i,_.prototype.set=a,e.exports=_},1386:(e,t,r)=>{var n=r(2393),s=r(2049),o=r(7144),i=r(7452),a=r(3964);function _(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])}}_.prototype.clear=n,_.prototype.delete=s,_.prototype.get=o,_.prototype.has=i,_.prototype.set=a,e.exports=_},9770:(e,t,r)=>{var n=r(4715)(r(8942),"Map");e.exports=n},8250:(e,t,r)=>{var n=r(9753),s=r(5681),o=r(88),i=r(4732),a=r(9068);function _(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])}}_.prototype.clear=n,_.prototype.delete=s,_.prototype.get=o,_.prototype.has=i,_.prototype.set=a,e.exports=_},9413:(e,t,r)=>{var n=r(4715)(r(8942),"Promise");e.exports=n},4512:(e,t,r)=>{var n=r(4715)(r(8942),"Set");e.exports=n},3212:(e,t,r)=>{var n=r(8250),s=r(1877),o=r(8006);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=s,i.prototype.has=o,e.exports=i},1340:(e,t,r)=>{var n=r(1386),s=r(4103),o=r(1779),i=r(4162),a=r(7462),_=r(6638);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=_,e.exports=u},5650:(e,t,r)=>{var n=r(8942).Symbol;e.exports=n},1623:(e,t,r)=>{var n=r(8942).Uint8Array;e.exports=n},9270:(e,t,r)=>{var n=r(4715)(r(8942),"WeakMap");e.exports=n},9847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[s++]=i)}return o}},358:(e,t,r)=>{var n=r(6137),s=r(3283),o=r(3142),i=r(5853),a=r(9632),_=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),c=!r&&s(e),l=!r&&!c&&i(e),d=!r&&!c&&!l&&_(e),m=r||c||l||d,p=m?n(e.length,String):[],h=p.length;for(var f in e)!t&&!u.call(e,f)||m&&("length"==f||l&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,h))||p.push(f);return p}},1129: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}},6465: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}},7034:(e,t,r)=>{var n=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},8244:(e,t,r)=>{var n=r(1129),s=r(3142);e.exports=function(e,t,r){var o=t(e);return s(e)?o:n(o,r(e))}},7379:(e,t,r)=>{var n=r(5650),s=r(8870),o=r(9005),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?s(e):o(e)}},6027:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},4687:(e,t,r)=>{var n=r(353),s=r(547);e.exports=function e(t,r,o,i,a){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,o,i,e,a))}},353:(e,t,r)=>{var n=r(1340),s=r(3934),o=r(8861),i=r(1182),a=r(8486),_=r(3142),u=r(5853),c=r(8666),l="[object Arguments]",d="[object Array]",m="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,h,f,y){var g=_(e),w=_(t),b=g?d:a(e),v=w?d:a(t),E=(b=b==l?m:b)==m,x=(v=v==l?m:v)==m,M=b==v;if(M&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(M&&!E)return y||(y=new n),g||c(e)?s(e,t,r,h,f,y):o(e,t,b,r,h,f,y);if(!(1&r)){var S=E&&p.call(e,"__wrapped__"),A=x&&p.call(t,"__wrapped__");if(S||A){var T=S?e.value():e,O=A?t.value():t;return y||(y=new n),f(T,O,r,h,y)}}return!!M&&(y||(y=new n),i(e,t,r,h,f,y))}},9624:(e,t,r)=>{var n=r(3655),s=r(4759),o=r(1580),i=r(4066),a=/^\[object .+?Constructor\]$/,_=Function.prototype,u=Object.prototype,c=_.toString,l=u.hasOwnProperty,d=RegExp("^"+c.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||s(e))&&(n(e)?d:a).test(i(e))}},674:(e,t,r)=>{var n=r(7379),s=r(5387),o=r(547),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&s(e.length)&&!!i[n(e)]}},195:(e,t,r)=>{var n=r(4882),s=r(8121),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,r)=>{var n=r(8942)["__core-js_shared__"];e.exports=n},3934:(e,t,r)=>{var n=r(3212),s=r(6465),o=r(5568);e.exports=function(e,t,r,i,a,_){var u=1&r,c=e.length,l=t.length;if(c!=l&&!(u&&l>c))return!1;var d=_.get(e),m=_.get(t);if(d&&m)return d==t&&m==e;var p=-1,h=!0,f=2&r?new n:void 0;for(_.set(e,t),_.set(t,e);++p<c;){var y=e[p],g=t[p];if(i)var w=u?i(g,y,p,t,e,_):i(y,g,p,e,t,_);if(void 0!==w){if(w)continue;h=!1;break}if(f){if(!s(t,(function(e,t){if(!o(f,t)&&(y===e||a(y,e,r,i,_)))return f.push(t)}))){h=!1;break}}else if(y!==g&&!a(y,g,r,i,_)){h=!1;break}}return _.delete(e),_.delete(t),h}},8861:(e,t,r)=>{var n=r(5650),s=r(1623),o=r(6285),i=r(3934),a=r(5894),_=r(7447),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,l,d){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||!l(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=a;case"[object Set]":var p=1&n;if(m||(m=_),e.size!=t.size&&!p)return!1;var h=d.get(e);if(h)return h==t;n|=2,d.set(e,t);var f=i(m(e),m(t),n,u,l,d);return d.delete(e),f;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},1182:(e,t,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,i,a){var _=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!_)return!1;for(var l=c;l--;){var d=u[l];if(!(_?d in t:s.call(t,d)))return!1}var m=a.get(e),p=a.get(t);if(m&&p)return m==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var f=_;++l<c;){var y=e[d=u[l]],g=t[d];if(o)var w=_?o(g,y,d,t,e,a):o(y,g,d,e,t,a);if(!(void 0===w?y===g||i(y,g,r,o,a):w)){h=!1;break}f||(f="constructor"==d)}if(h&&!f){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(h=!1)}return a.delete(e),a.delete(t),h}},4967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},393:(e,t,r)=>{var n=r(8244),s=r(7979),o=r(1211);e.exports=function(e){return n(e,o,s)}},4700:(e,t,r)=>{var n=r(9067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},4715:(e,t,r)=>{var n=r(9624),s=r(155);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},8870:(e,t,r)=>{var n=r(5650),s=Object.prototype,o=s.hasOwnProperty,i=s.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var s=i.call(e);return n&&(t?e[a]=r:delete e[a]),s}},7979:(e,t,r)=>{var n=r(9847),s=r(9306),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return o.call(e,t)})))}:s;e.exports=a},8486:(e,t,r)=>{var n=r(3103),s=r(9770),o=r(9413),i=r(4512),a=r(9270),_=r(7379),u=r(4066),c="[object Map]",l="[object Promise]",d="[object Set]",m="[object WeakMap]",p="[object DataView]",h=u(n),f=u(s),y=u(o),g=u(i),w=u(a),b=_;(n&&b(new n(new ArrayBuffer(1)))!=p||s&&b(new s)!=c||o&&b(o.resolve())!=l||i&&b(new i)!=d||a&&b(new a)!=m)&&(b=function(e){var t=_(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case h:return p;case f:return c;case y:return l;case g:return d;case w:return m}return t}),e.exports=b},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,r)=>{var n=r(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,r)=>{var n=r(4497),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}},5276:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5071:(e,t,r)=>{var n=r(4497);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}},9632: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}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,r)=>{var n,s=r(1950),o=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,r)=>{var n=r(7034),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)}},7144:(e,t,r)=>{var n=r(7034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7452:(e,t,r)=>{var n=r(7034);e.exports=function(e){return n(this.__data__,e)>-1}},3964:(e,t,r)=>{var n=r(7034);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}},9753:(e,t,r)=>{var n=r(5098),s=r(1386),o=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||s),string:new n}}},5681:(e,t,r)=>{var n=r(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).get(e)}},4732:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).has(e)}},9068:(e,t,r)=>{var n=r(4700);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}},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},4497:(e,t,r)=>{var n=r(4715)(Object,"create");e.exports=n},8121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},2306:(e,t,r)=>{e=r.nmd(e);var n=r(4967),s=t&&!t.nodeType&&t,o=s&&e&&!e.nodeType&&e,i=o&&o.exports===s&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},8942:(e,t,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,o=n||s||Function("return this")();e.exports=o},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},7447:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},4103:(e,t,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,r)=>{var n=r(1386),s=r(9770),o=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!s||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(i)}return r.set(e,t),this.size=r.size,this}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,r)=>{var n=r(6027),s=r(547),o=Object.prototype,i=o.hasOwnProperty,a=o.propertyIsEnumerable,_=n(function(){return arguments}())?n:function(e){return s(e)&&i.call(e,"callee")&&!a.call(e,"callee")};e.exports=_},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,r)=>{var n=r(3655),s=r(5387);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},2563:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},5853:(e,t,r)=>{e=r.nmd(e);var n=r(8942),s=r(4772),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,_=(a?a.isBuffer:void 0)||s;e.exports=_},6343:(e,t,r)=>{var n=r(4687);e.exports=function(e,t){return n(e,t)}},3655:(e,t,r)=>{var n=r(7379),s=r(1580);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}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,r)=>{var n=r(7379),s=r(3142),o=r(547);e.exports=function(e){return"string"==typeof e||!s(e)&&o(e)&&"[object String]"==n(e)}},8666:(e,t,r)=>{var n=r(674),s=r(9460),o=r(2306),i=o&&o.isTypedArray,a=i?s(i):n;e.exports=a},1211:(e,t,r)=>{var n=r(358),s=r(195),o=r(6529);e.exports=function(e){return o(e)?n(e):s(e)}},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,r)=>{const n=r(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class o{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 o(this.elements.filter(e,t))}reject(e,t){return e=s(e),new o(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&&(o.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=o},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5735:(e,t,r)=>{const n=r(9310),s=r(8138),o=r(986),i=r(2563),a=r(1580),_=r(394),u=r(7547);class c{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(o,u.NumberElement,!1).detect(i,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 _(this)}}_.prototype.Namespace=c,e.exports=c},3311:(e,t,r)=>{const n=r(1517),s=r(4123);class o extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new o(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=o},7547:(e,t,r)=>{const n=r(8631),s=r(3004),o=r(8712),i=r(2536),a=r(2555),_=r(9796),u=r(7309),c=r(5642),l=r(9620),d=r(593),m=r(4123),p=r(3311),h=r(2322);function f(e){if(e instanceof n)return e;if("string"==typeof e)return new o(e);if("number"==typeof e)return new i(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new _(e.map(f));if("object"==typeof e){return new c(e)}return e}n.prototype.ObjectElement=c,n.prototype.RefElement=d,n.prototype.MemberElement=u,n.prototype.refract=f,m.prototype.refract=f,e.exports={Element:n,NullElement:s,StringElement:o,NumberElement:i,BooleanElement:a,ArrayElement:_,MemberElement:u,ObjectElement:c,LinkElement:l,RefElement:d,refract:f,ArraySlice:m,ObjectSlice:p,KeyValuePair:h}},9620:(e,t,r)=>{const n=r(8631);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)}}},593:(e,t,r)=>{const n=r(8631);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)}}},8326:(e,t,r)=>{const n=r(5735),s=r(7547);t.g$=n,t.KeyValuePair=r(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,r(394),r(3148)},9796:(e,t,r)=>{const n=r(1517),s=r(8631),o=r(4123);class i 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 o(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,o)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,o)&&s.push(t)})),s}find(e){return new o(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)}}i.empty=function(){return new this},i["fantasy-land/empty"]=i.empty,"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=i},2555:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,r)=>{const n=r(6343),s=r(2322),o=r(4123);class i{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 i?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 o;const n=(e,t)=>(e.push(t),e),i=(e,r)=>{r.element===t&&e.push(r);const o=r.findRecursive(t);return o&&o.reduce(n,e),r.content instanceof s&&(r.content.key&&i(e,r.content.key),r.content.value&&i(e,r.content.value)),e};return this.content&&(this.content.element&&i(r,this.content),Array.isArray(this.content)&&this.content.reduce(i,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 i)this._content=e;else if(e instanceof o)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 o;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new o(this.content);if(this.content instanceof s){const e=new o([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof i?new o([this.content]):new o}get recursiveChildren(){const e=new o;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=i},7309:(e,t,r)=>{const n=r(2322),s=r(8631);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)}}},3004:(e,t,r)=>{const n=r(8631);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")}}},2536:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},5642:(e,t,r)=>{const n=r(1517),s=r(1580),o=r(9796),i=r(7309),a=r(3311);e.exports=class extends o{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 i(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,o)=>{const i=e.bind(t)(n,s,o);i&&r.push(i)})),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)))}}},8712:(e,t,r)=>{const n=r(8631);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}}},3148:(e,t,r)=>{const n=r(394);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]))}))}}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},3833:(module,__unused_webpack_exports,__webpack_require__)=>{var __dirname="/",Module=void 0!==Module?Module:{},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(3078),nodePath=__webpack_require__(4142);scriptDirectory=__dirname+"/",readBinary=e=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e)),readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise(((r,n)=>{fs.readFile(e,t?void 0:"utf8",((e,s)=>{e?n(e):r(t?s.buffer:s)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>isFileURI(e)?new Promise(((t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{(200==n.status||0==n.status&&n.response)&&r(n.response),t(n.status)},n.onerror=t,n.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary,wasmMemory;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP_DATA_VIEW;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies?.(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function findWasmBinary(){var e="tree-sitter.wasm";return isDataURI(e)?e:locateFile(e)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary?Promise.resolve().then((()=>getBinarySync(e))):readAsync(e).then((e=>new Uint8Array(e)),(()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(r,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,r,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,r,n):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(n,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,r,n)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})),{}}var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},LE_HEAP_LOAD_F32=e=>HEAP_DATA_VIEW.getFloat32(e,!0),LE_HEAP_LOAD_F64=e=>HEAP_DATA_VIEW.getFloat64(e,!0),LE_HEAP_LOAD_I16=e=>HEAP_DATA_VIEW.getInt16(e,!0),LE_HEAP_LOAD_I32=e=>HEAP_DATA_VIEW.getInt32(e,!0),LE_HEAP_LOAD_U32=e=>HEAP_DATA_VIEW.getUint32(e,!0),LE_HEAP_STORE_F32=(e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),LE_HEAP_STORE_F64=(e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),LE_HEAP_STORE_I16=(e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),LE_HEAP_STORE_I32=(e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),LE_HEAP_STORE_U32=(e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t,r)=>{for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,s));for(var o="";t<s;){var i=e[t++];if(128&i){var a=63&e[t++];if(192!=(224&i)){var _=63&e[t++];if((i=224==(240&i)?(15&i)<<12|a<<6|_:(7&i)<<18|a<<12|_<<6|63&e[t++])<65536)o+=String.fromCharCode(i);else{var u=i-65536;o+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else o+=String.fromCharCode((31&i)<<6|a)}else o+=String.fromCharCode(i)}return o},getDylinkMetadata=e=>{var t=0,r=0;function n(){for(var r=0,n=1;;){var s=e[t++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}function s(){var r=n();return UTF8ArrayToString(e,(t+=r)-r,r)}function o(e,t){if(e)throw new Error(t)}var i="dylink.0";if(e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,i);0===a.length&&(i="dylink",a=WebAssembly.Module.customSections(e,i)),o(0===a.length,"need dylink section"),r=(e=new Uint8Array(a[0])).length}else{var _=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);o(!(1836278016==_[0]||6386541==_[0]),"need to see wasm magic number"),o(0!==e[8],"need the dylink section to be first"),t=9;var u=n();r=t+u,i=s()}var c={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==i){c.memorySize=n(),c.memoryAlign=n(),c.tableSize=n(),c.tableAlign=n();for(var l=n(),d=0;d<l;++d){var m=s();c.neededDynlibs.push(m)}}else{o("dylink.0"!==i);for(;t<r;){var p=e[t++],h=n();if(1===p)c.memorySize=n(),c.memoryAlign=n(),c.tableSize=n(),c.tableAlign=n();else if(2===p)for(l=n(),d=0;d<l;++d)m=s(),c.neededDynlibs.push(m);else if(3===p)for(var f=n();f--;){var y=s();256&n()&&c.tlsExports.add(y)}else if(4===p)for(f=n();f--;){s(),y=s();1==(3&n())&&c.weakImports.add(y)}else t+=h}}return c};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,r)=>{var n={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=n,null!=t&&(LDSO.loadedLibsByHandle[t]=n),n},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=(e,t)=>(HEAPU8.fill(0,e,e+t),e),alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n<e.length;++n)r.parameters.push(t[e[n]]);return r},generateFuncType=(e,t)=>{var r=e.slice(0,1),n=e.slice(1),s={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(n.length,t);for(var o=0;o<n.length;++o)t.push(s[n[o]]);"v"==r?t.push(0):t.push(1,s[r])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,n),n.push(...r),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var s=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(s,{e:{f:e}}).exports.f},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;var s=convertJsFunctionToWasm(e,t);setWasmTableEntry(n,s)}return functionsInTableMap.set(e,n),n},updateGOT=(e,t)=>{for(var r in e)if(!isInternalSym(r)){var n=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[r].value)&&("function"==typeof n?GOT[r].value=addFunction(n):"number"==typeof n?GOT[r].value=n:err(`unhandled export type for '${r}': ${typeof n}`))}},relocateExports=(e,t,r)=>{var n={};for(var s in e){var o=e[s];"object"==typeof o&&(o=o.value),"number"==typeof o&&(o+=t),n[s]=o}return updateGOT(n,r),n},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,r)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...r)),dynCall=(e,t,r=[])=>e.includes("j")?dynCallLegacy(e,t,r):getWasmTableEntry(t)(...r),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...r)=>{var n=stackSave();try{return dynCall(e,t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var r;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")&&(r=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:r,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+8];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32(4*(handle+12>>2),memoryBase),LE_HEAP_STORE_I32(4*(handle+16>>2),metadata.memorySize),LE_HEAP_STORE_U32(4*(handle+20>>2),tableBase),LE_HEAP_STORE_I32(4*(handle+24>>2),metadata.tableSize))}else memoryBase=LE_HEAP_LOAD_U32(4*(handle+12>>2)),tableBase=LE_HEAP_LOAD_U32(4*(handle+20>>2));var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];var r;t in e||(e[t]=(...e)=>(r||=resolveSymbol(t),r(...e)));return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(","),cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags,localScope)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[r,n]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=n)};e(r);const t="__main_argc_argv";"main"==r&&e(t),r==t&&e("main"),r.startsWith("dynCall_")&&!Module.hasOwnProperty(r)&&(Module[r]=n)}},asyncLoad=(e,t,r,n)=>{var s=n?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),s&&removeRunDependency(s)}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),s&&addRunDependency(s)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,n){var s=LDSO.loadedLibsByName[e];if(s)return t.global?s.global||(s.global=!0,mergeLibSymbols(s.exports,e)):r&&Object.assign(r,s.exports),t.nodelete&&s.refcount!==1/0&&(s.refcount=1/0),s.refcount++,n&&(LDSO.loadedLibsByHandle[n]=s),!t.loadAsync||Promise.resolve(!0);function o(){if(n){var r=LE_HEAP_LOAD_U32(4*(n+28>>2)),s=LE_HEAP_LOAD_U32(4*(n+32>>2));if(r&&s){var o=HEAP8.slice(r,r+s);return t.loadAsync?Promise.resolve(o):o}}var i=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(i,e,t)}));if(!readBinary)throw new Error(`${i}: file not found, and synchronous loading of external files is not available`);return readBinary(i)}function i(){return t.loadAsync?o().then((s=>loadWebAssemblyModule(s,t,e,r,n))):loadWebAssemblyModule(o(),t,e,r,n)}function a(t){s.global?mergeLibSymbols(t,e):r&&Object.assign(r,t),s.exports=t}return(s=newDSO(e,n,"loading")).refcount=t.nodelete?1/0:1,s.global=t.global,t.loadAsync?i().then((e=>(a(e),!0))):(a(i()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else{if("number"!=typeof r)throw new Error(`bad export type for '${e}': ${typeof r}`);t.value=r}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("loadDylibs"),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")}))):reportUndefinedSymbols()},noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${r}`)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=(e,t,r)=>HEAPU8.copyWithin(e,t,t+r);__emscripten_memcpy_js.sig="vppp";var _emscripten_date_now=()=>Date.now(),_emscripten_get_now;_emscripten_date_now.sig="d",_emscripten_get_now=()=>performance.now(),_emscripten_get_now.sig="d";var getHeapMax=()=>2147483648,growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var n,s,o=1;o<=4;o*=2){var i=t*(1+.2/o);i=Math.min(i,e+100663296);var a=Math.min(r,(n=Math.max(e,i))+((s=65536)-n%s)%s);if(growMemory(a))return!0}return!1};_emscripten_resize_heap.sig="ip";var _fd_close=e=>52;_fd_close.sig="ii";var convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function _fd_seek(e,t,r,n,s){convertI32PairToI53Checked(t,r);return 70}_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var r=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(r,0)),r.length=0):r.push(t)},_fd_write=(e,t,r,n)=>{for(var s=0,o=0;o<r;o++){var i=LE_HEAP_LOAD_U32(4*(t>>2)),a=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var _=0;_<a;_++)printChar(e,HEAPU8[i+_]);s+=a}return LE_HEAP_STORE_U32(4*(n>>2),s),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const r=UTF8ToString(t);currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,n,s){const o=currentParseCallback(t,{row:r,column:n});"string"==typeof o?(setValue(s,o.length,"i32"),stringToUTF16(o,e,10240)):setValue(s,0,"i32")}_fd_write.sig="iippp";var runtimeKeepaliveCounter=0,keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0,_proc_exit=e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))};_proc_exit.sig="vi";var exitJS=(e,t)=>{EXITSTATUS=e,_proc_exit(e)},handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},lengthBytesUTF8=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},stringToUTF8Array=(e,t,r,n)=>{if(!(n>0))return 0;for(var s=r,o=r+n-1,i=0;i<e.length;++i){var a=e.charCodeAt(i);if(a>=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i);if(a<=127){if(r>=o)break;t[r++]=a}else if(a<=2047){if(r+1>=o)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=o)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=o)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},stringToUTF8=(e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},stringToUTF16=(e,t,r)=>{if(r??=2147483647,r<2)return 0;for(var n=t,s=(r-=2)<2*e.length?r/2:e.length,o=0;o<s;++o){var i=e.charCodeAt(o);LE_HEAP_STORE_I16(2*(t>>1),i),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-n},AsciiToString=e=>{for(var t="";;){var r=HEAPU8[e++];if(!r)return t;t+=String.fromCharCode(r)}},wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports.__wasm_call_ctors)(),___wasm_apply_data_relocs=()=>(___wasm_apply_data_relocs=wasmExports.__wasm_apply_data_relocs)(),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t),_realloc=Module._realloc=(e,t)=>(_realloc=Module._realloc=wasmExports.realloc)(e,t),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_ts_language_symbol_count=Module._ts_language_symbol_count=e=>(_ts_language_symbol_count=Module._ts_language_symbol_count=wasmExports.ts_language_symbol_count)(e),_ts_language_state_count=Module._ts_language_state_count=e=>(_ts_language_state_count=Module._ts_language_state_count=wasmExports.ts_language_state_count)(e),_ts_language_version=Module._ts_language_version=e=>(_ts_language_version=Module._ts_language_version=wasmExports.ts_language_version)(e),_ts_language_field_count=Module._ts_language_field_count=e=>(_ts_language_field_count=Module._ts_language_field_count=wasmExports.ts_language_field_count)(e),_ts_language_next_state=Module._ts_language_next_state=(e,t,r)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,r),_ts_language_symbol_name=Module._ts_language_symbol_name=(e,t)=>(_ts_language_symbol_name=Module._ts_language_symbol_name=wasmExports.ts_language_symbol_name)(e,t),_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=(e,t,r,n)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,r,n),_strncmp=Module._strncmp=(e,t,r)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,r),_ts_language_symbol_type=Module._ts_language_symbol_type=(e,t)=>(_ts_language_symbol_type=Module._ts_language_symbol_type=wasmExports.ts_language_symbol_type)(e,t),_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=(e,t)=>(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=wasmExports.ts_language_field_name_for_id)(e,t),_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=(e,t)=>(_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=wasmExports.ts_lookahead_iterator_new)(e,t),_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=e=>(_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=wasmExports.ts_lookahead_iterator_delete)(e),_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=(e,t)=>(_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=wasmExports.ts_lookahead_iterator_reset_state)(e,t),_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=(e,t,r)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,r),_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=e=>(_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=wasmExports.ts_lookahead_iterator_next)(e),_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=e=>(_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=wasmExports.ts_lookahead_iterator_current_symbol)(e),_memset=Module._memset=(e,t,r)=>(_memset=Module._memset=wasmExports.memset)(e,t,r),_memcpy=Module._memcpy=(e,t,r)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,r),_ts_parser_delete=Module._ts_parser_delete=e=>(_ts_parser_delete=Module._ts_parser_delete=wasmExports.ts_parser_delete)(e),_ts_parser_reset=Module._ts_parser_reset=e=>(_ts_parser_reset=Module._ts_parser_reset=wasmExports.ts_parser_reset)(e),_ts_parser_set_language=Module._ts_parser_set_language=(e,t)=>(_ts_parser_set_language=Module._ts_parser_set_language=wasmExports.ts_parser_set_language)(e,t),_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=e=>(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=wasmExports.ts_parser_timeout_micros)(e),_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=(e,t,r)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,r),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,r)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,r),_memmove=Module._memmove=(e,t,r)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,r),_memcmp=Module._memcmp=(e,t,r)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,r),_ts_query_new=Module._ts_query_new=(e,t,r,n,s)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,r,n,s),_ts_query_delete=Module._ts_query_delete=e=>(_ts_query_delete=Module._ts_query_delete=wasmExports.ts_query_delete)(e),_iswspace=Module._iswspace=e=>(_iswspace=Module._iswspace=wasmExports.iswspace)(e),_iswalnum=Module._iswalnum=e=>(_iswalnum=Module._iswalnum=wasmExports.iswalnum)(e),_ts_query_pattern_count=Module._ts_query_pattern_count=e=>(_ts_query_pattern_count=Module._ts_query_pattern_count=wasmExports.ts_query_pattern_count)(e),_ts_query_capture_count=Module._ts_query_capture_count=e=>(_ts_query_capture_count=Module._ts_query_capture_count=wasmExports.ts_query_capture_count)(e),_ts_query_string_count=Module._ts_query_string_count=e=>(_ts_query_string_count=Module._ts_query_string_count=wasmExports.ts_query_string_count)(e),_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=(e,t,r)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,r),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,r)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,r),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,r)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,r),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,r)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,r),_ts_tree_copy=Module._ts_tree_copy=e=>(_ts_tree_copy=Module._ts_tree_copy=wasmExports.ts_tree_copy)(e),_ts_tree_delete=Module._ts_tree_delete=e=>(_ts_tree_delete=Module._ts_tree_delete=wasmExports.ts_tree_delete)(e),_ts_init=Module._ts_init=()=>(_ts_init=Module._ts_init=wasmExports.ts_init)(),_ts_parser_new_wasm=Module._ts_parser_new_wasm=()=>(_ts_parser_new_wasm=Module._ts_parser_new_wasm=wasmExports.ts_parser_new_wasm)(),_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=(e,t)=>(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=wasmExports.ts_parser_enable_logger_wasm)(e,t),_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=(e,t,r,n,s)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,r,n,s),_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=e=>(_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=wasmExports.ts_parser_included_ranges_wasm)(e),_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=(e,t)=>(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=wasmExports.ts_language_type_is_named_wasm)(e,t),_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=(e,t)=>(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=wasmExports.ts_language_type_is_visible_wasm)(e,t),_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=e=>(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=wasmExports.ts_tree_root_node_wasm)(e),_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=e=>(_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=wasmExports.ts_tree_root_node_with_offset_wasm)(e),_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=e=>(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=wasmExports.ts_tree_edit_wasm)(e),_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=e=>(_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=wasmExports.ts_tree_included_ranges_wasm)(e),_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=(e,t)=>(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=wasmExports.ts_tree_get_changed_ranges_wasm)(e,t),_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=e=>(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=wasmExports.ts_tree_cursor_new_wasm)(e),_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=e=>(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=wasmExports.ts_tree_cursor_delete_wasm)(e),_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=e=>(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=wasmExports.ts_tree_cursor_reset_wasm)(e),_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=(e,t)=>(_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=wasmExports.ts_tree_cursor_reset_to_wasm)(e,t),_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=e=>(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=wasmExports.ts_tree_cursor_goto_first_child_wasm)(e),_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=e=>(_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=wasmExports.ts_tree_cursor_goto_last_child_wasm)(e),_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=e=>(_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_index_wasm)(e),_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=e=>(_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_position_wasm)(e),_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=e=>(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=wasmExports.ts_tree_cursor_goto_next_sibling_wasm)(e),_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=e=>(_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=wasmExports.ts_tree_cursor_goto_previous_sibling_wasm)(e),_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=(e,t)=>(_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=wasmExports.ts_tree_cursor_goto_descendant_wasm)(e,t),_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=e=>(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=wasmExports.ts_tree_cursor_goto_parent_wasm)(e),_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=e=>(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=wasmExports.ts_tree_cursor_current_node_type_id_wasm)(e),_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=e=>(_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=wasmExports.ts_tree_cursor_current_node_state_id_wasm)(e),_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=e=>(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=wasmExports.ts_tree_cursor_current_node_is_named_wasm)(e),_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=e=>(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=wasmExports.ts_tree_cursor_current_node_is_missing_wasm)(e),_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=e=>(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=wasmExports.ts_tree_cursor_current_node_id_wasm)(e),_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=e=>(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=wasmExports.ts_tree_cursor_start_position_wasm)(e),_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=e=>(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=wasmExports.ts_tree_cursor_end_position_wasm)(e),_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=e=>(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=wasmExports.ts_tree_cursor_start_index_wasm)(e),_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=e=>(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=wasmExports.ts_tree_cursor_end_index_wasm)(e),_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=e=>(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=wasmExports.ts_tree_cursor_current_field_id_wasm)(e),_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=e=>(_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=wasmExports.ts_tree_cursor_current_depth_wasm)(e),_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=e=>(_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=wasmExports.ts_tree_cursor_current_descendant_index_wasm)(e),_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=e=>(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=wasmExports.ts_tree_cursor_current_node_wasm)(e),_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=e=>(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=wasmExports.ts_node_symbol_wasm)(e),_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=(e,t)=>(_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=wasmExports.ts_node_field_name_for_child_wasm)(e,t),_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=(e,t)=>(_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=wasmExports.ts_node_children_by_field_id_wasm)(e,t),_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=e=>(_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=wasmExports.ts_node_first_child_for_byte_wasm)(e),_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=e=>(_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=wasmExports.ts_node_first_named_child_for_byte_wasm)(e),_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=e=>(_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=wasmExports.ts_node_grammar_symbol_wasm)(e),_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=e=>(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=wasmExports.ts_node_child_count_wasm)(e),_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=e=>(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=wasmExports.ts_node_named_child_count_wasm)(e),_ts_node_child_wasm=Module._ts_node_child_wasm=(e,t)=>(_ts_node_child_wasm=Module._ts_node_child_wasm=wasmExports.ts_node_child_wasm)(e,t),_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=(e,t)=>(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=wasmExports.ts_node_named_child_wasm)(e,t),_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=(e,t)=>(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=wasmExports.ts_node_child_by_field_id_wasm)(e,t),_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=e=>(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=wasmExports.ts_node_next_sibling_wasm)(e),_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=e=>(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=wasmExports.ts_node_prev_sibling_wasm)(e),_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=e=>(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=wasmExports.ts_node_next_named_sibling_wasm)(e),_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=e=>(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=wasmExports.ts_node_prev_named_sibling_wasm)(e),_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=e=>(_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=wasmExports.ts_node_descendant_count_wasm)(e),_ts_node_parent_wasm=Module._ts_node_parent_wasm=e=>(_ts_node_parent_wasm=Module._ts_node_parent_wasm=wasmExports.ts_node_parent_wasm)(e),_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=e=>(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=wasmExports.ts_node_descendant_for_index_wasm)(e),_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=e=>(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=wasmExports.ts_node_named_descendant_for_index_wasm)(e),_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=e=>(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=wasmExports.ts_node_descendant_for_position_wasm)(e),_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=e=>(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=wasmExports.ts_node_named_descendant_for_position_wasm)(e),_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=e=>(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=wasmExports.ts_node_start_point_wasm)(e),_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=e=>(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=wasmExports.ts_node_end_point_wasm)(e),_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=e=>(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=wasmExports.ts_node_start_index_wasm)(e),_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=e=>(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=wasmExports.ts_node_end_index_wasm)(e),_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=e=>(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=wasmExports.ts_node_to_string_wasm)(e),_ts_node_children_wasm=Module._ts_node_children_wasm=e=>(_ts_node_children_wasm=Module._ts_node_children_wasm=wasmExports.ts_node_children_wasm)(e),_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=e=>(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=wasmExports.ts_node_named_children_wasm)(e),_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=(e,t,r,n,s,o,i)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,r,n,s,o,i),_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=e=>(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=wasmExports.ts_node_is_named_wasm)(e),_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=e=>(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=wasmExports.ts_node_has_changes_wasm)(e),_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=e=>(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=wasmExports.ts_node_has_error_wasm)(e),_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=e=>(_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=wasmExports.ts_node_is_error_wasm)(e),_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=e=>(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=wasmExports.ts_node_is_missing_wasm)(e),_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=e=>(_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=wasmExports.ts_node_is_extra_wasm)(e),_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=e=>(_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=wasmExports.ts_node_parse_state_wasm)(e),_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=e=>(_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=wasmExports.ts_node_next_parse_state_wasm)(e),_ts_query_matches_wasm=Module._ts_query_matches_wasm=(e,t,r,n,s,o,i,a,_,u,c)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,r,n,s,o,i,a,_,u,c),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,r,n,s,o,i,a,_,u,c)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,r,n,s,o,i,a,_,u,c),_iswalpha=Module._iswalpha=e=>(_iswalpha=Module._iswalpha=wasmExports.iswalpha)(e),_iswblank=Module._iswblank=e=>(_iswblank=Module._iswblank=wasmExports.iswblank)(e),_iswdigit=Module._iswdigit=e=>(_iswdigit=Module._iswdigit=wasmExports.iswdigit)(e),_iswlower=Module._iswlower=e=>(_iswlower=Module._iswlower=wasmExports.iswlower)(e),_iswupper=Module._iswupper=e=>(_iswupper=Module._iswupper=wasmExports.iswupper)(e),_iswxdigit=Module._iswxdigit=e=>(_iswxdigit=Module._iswxdigit=wasmExports.iswxdigit)(e),_memchr=Module._memchr=(e,t,r)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,r),_strlen=Module._strlen=e=>(_strlen=Module._strlen=wasmExports.strlen)(e),_strcmp=Module._strcmp=(e,t)=>(_strcmp=Module._strcmp=wasmExports.strcmp)(e,t),_strncat=Module._strncat=(e,t,r)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,r),_strncpy=Module._strncpy=(e,t,r)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,r),_towlower=Module._towlower=e=>(_towlower=Module._towlower=wasmExports.towlower)(e),_towupper=Module._towupper=e=>(_towupper=Module._towupper=wasmExports.towupper)(e),_setThrew=(e,t)=>(_setThrew=wasmExports.setThrew)(e,t),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),dynCall_jiji=Module.dynCall_jiji=(e,t,r,n,s)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,r,n,s),_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=e=>(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=wasmExports.orig$ts_parser_timeout_micros)(e),_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=(e,t)=>(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=wasmExports.orig$ts_parser_set_timeout_micros)(e,t),calledRun;function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,n=stackAlloc(4*(r+1)),s=n;e.forEach((e=>{LE_HEAP_STORE_U32(4*(s>>2),stringToUTF8OnStack(e)),s+=4})),LE_HEAP_STORE_U32(4*(s>>2),0);try{var o=t(r,n);return exitJS(o,!0),o}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized?.(),shouldRunNow&&callMain(e),postRun()))}runDependencies>0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;let VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const r=C._ts_language_version(t);if(r<MIN_COMPATIBLE_VERSION||VERSION<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)currentParseCallback=(t,r)=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r?.includedRanges){n=r.includedRanges.length,s=C._calloc(n,SIZE_OF_RANGE);let e=s;for(let t=0;t<n;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}const o=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!o)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const i=new Tree(INTERNAL,o,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,i}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,r,n){assertInternal(e),this[0]=t,this.language=r,this.textCallback=n}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return n}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);if(!t)return null;return AsciiToString(t)}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return n}firstChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),r||(r=ZERO_POINT);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 o=C._malloc(SIZE_OF_INT*n.length);for(let e=0,t=n.length;e<t;e++)setValue(o+e*SIZE_OF_INT,n[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],o,n.length,t.row,t.column,r.row,r.column);const i=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),_=new Array(i);if(i>0){let e=a;for(let t=0;t<i;t++)_[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(a),C._free(o),_}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoFirstChildForIndex(e){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=lengthBytesUTF8(e),n=C._malloc(r+1);stringToUTF8(e,n,r+1);const s=C._ts_language_symbol_for_name(this[0],n,r,t);return C._free(n),s||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterable(INTERNAL,t,this):null}query(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1);const n=C._ts_query_new(this[0],r,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!n){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=getValue(TRANSFER_BUFFER,"i32"),s=UTF8ToString(r,n).length,o=e.substr(s,100).split("\n")[0];let i,a=o.match(QUERY_WORD_REGEX)[0];switch(t){case 2:i=new RangeError(`Bad node name '${a}'`);break;case 3:i=new RangeError(`Bad field name '${a}'`);break;case 4:i=new RangeError(`Bad capture name @${a}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${s}: '${o}'...`),a="";break;default:i=new SyntaxError(`Bad syntax at offset ${s}: '${o}'...`),a=""}throw i.index=s,i.length=a.length,C._free(r),i}const s=C._ts_query_string_count(n),o=C._ts_query_capture_count(n),i=C._ts_query_pattern_count(n),a=new Array(o),_=new Array(s);for(let e=0;e<o;e++){const t=C._ts_query_capture_name_for_id(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,r)}for(let e=0;e<s;e++){const t=C._ts_query_string_value_for_id(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");_[e]=UTF8ToString(t,r)}const u=new Array(i),c=new Array(i),l=new Array(i),d=new Array(i),m=new Array(i);for(let e=0;e<i;e++){const t=C._ts_query_predicates_for_pattern(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");d[e]=[],m[e]=[];const s=[];let o=t;for(let t=0;t<r;t++){const t=getValue(o,"i32");o+=SIZE_OF_INT;const r=getValue(o,"i32");if(o+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)s.push({type:"capture",name:a[r]});else if(t===PREDICATE_STEP_TYPE_STRING)s.push({type:"string",value:_[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,n=!0,o=!0;switch(t){case"any-not-eq?":case"not-eq?":n=!1;case"any-eq?":case"eq?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${s.length-1}`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}"`);if(o=!t.startsWith("any-"),"capture"===s[2].type){const t=s[1].name,r=s[2].name;m[e].push((e=>{const s=[],i=[];for(const n of e)n.name===t&&s.push(n.node),n.name===r&&i.push(n.node);const a=(e,t,r)=>r?e.text===t.text:e.text!==t.text;return o?s.every((e=>i.some((t=>a(e,t,n))))):s.some((e=>i.some((t=>a(e,t,n)))))}))}else{r=s[1].name;const t=s[2].value,i=e=>e.text===t,a=e=>e.text!==t;m[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node);const s=n?i:a;return o?t.every(s):t.some(s)}))}break;case"any-not-match?":case"not-match?":n=!1;case"any-match?":case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${s[2].value}.`);r=s[1].name;const i=new RegExp(s[2].value);o=!t.startsWith("any-"),m[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node.text);const s=(e,t)=>t?i.test(e):!i.test(e);return 0===t.length?!n:o?t.every((e=>s(e,n))):t.some((e=>s(e,n)))}));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 a="is?"===t?c:l;a[e]||(a[e]={}),a[e][s[1].value]=s[2]?s[2].value:null;break;case"not-any-of?":n=!1;case"any-of?":if(s.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}".`);for(let e=2;e<s.length;e++)if("string"!==s[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);r=s[1].name;const _=s.slice(2).map((e=>e.value));m[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node.text);return 0===t.length?!n:t.every((e=>_.includes(e)))===n}));break;default:d[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(c[e]),Object.freeze(l[e])}return C._free(r),new Query(INTERNAL,n,a,m,d,Object.freeze(u),Object.freeze(c),Object.freeze(l))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(3078);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>LANGUAGE_FUNCTION_REGEX.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 Language(INTERNAL,n)}))}}class LookaheadIterable{constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(e){return C._ts_lookahead_iterator_reset_state(this[0],e)}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}[Symbol.iterator](){const e=this;return{next:()=>C._ts_lookahead_iterator_next(e[0])?{done:!1,value:e.currentType}:{done:!0,value:""}}}}class Query{constructor(e,t,r,n,s,o,i,a){assertInternal(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=o,this.assertedProperties=i,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:n=0,endIndex:s=0,matchLimit:o=4294967295,maxStartDepth:i=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof o)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n,s,o,i,a);const _=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),l=new Array(_);this.exceededMatchLimit=Boolean(c);let d=0,m=u;for(let t=0;t<_;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const n=new Array(r);if(m=unmarshalCaptures(this,e.tree,m,n),this.textPredicates[t].every((e=>e(n)))){l[d]={pattern:t,captures:n};const e=this.setProperties[t];e&&(l[d].setProperties=e);const r=this.assertedProperties[t];r&&(l[d].assertedProperties=r);const s=this.refutedProperties[t];s&&(l[d].refutedProperties=s),d++}}return l.length=d,C._free(u),l}captures(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:n=0,endIndex:s=0,matchLimit:o=4294967295,maxStartDepth:i=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof o)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n,s,o,i,a);const _=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),l=[];this.exceededMatchLimit=Boolean(c);const d=[];let m=u;for(let t=0;t<_;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const n=getValue(m,"i32");if(m+=SIZE_OF_INT,d.length=r,m=unmarshalCaptures(this,e.tree,m,d),this.textPredicates[t].every((e=>e(d)))){const e=d[n],r=this.setProperties[t];r&&(e.setProperties=r);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const o=this.refutedProperties[t];o&&(e.refutedProperties=o),l.push(e)}}return C._free(u),l}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1),C._ts_query_disable_capture(this[0],r,t),C._free(r)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(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 unmarshalCaptures(e,t,r,n){for(let s=0,o=n.length;s<o;s++){const o=getValue(r,"i32"),i=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,n[s]={name:e.captureNames[o],node:i}}return r}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const r=getValue(t,"i32");if(0===r)return null;const n=getValue(t+=SIZE_OF_INT,"i32"),s=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),a=new Node(INTERNAL,e);return a.id=r,a.startIndex=n,a.startPosition={row:s,column:o},a[0]=i,a}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32"),setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32")>>>0,column:getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32")>>>0,t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}();module.exports=TreeSitter},3078:()=>{},4142:()=>{},1212:(e,t,r)=>{e.exports=r(8411)},7202:(e,t,r)=>{"use strict";var n=r(239);e.exports=n},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var n=r(8099);e.exports=n.AggregateError},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8337:(e,t,r)=>{"use strict";r(5442);var n=r(7202);e.exports=n},814:(e,t,r)=>{"use strict";var n=r(2769),s=r(459),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not a function")}},1966:(e,t,r)=>{"use strict";var n=r(2937),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o("Can't set "+s(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,r)=>{"use strict";var n=r(262),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not an object")}},1005:(e,t,r)=>{"use strict";var n=r(3273),s=r(4574),o=r(8130),i=function(e){return function(t,r,i){var a=n(t),_=o(a);if(0===_)return!e&&-1;var u,c=s(i,_);if(e&&r!=r){for(;_>c;)if((u=a[c++])!=u)return!0}else for(;_>c;c++)if((e||c in a)&&a[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},9932:(e,t,r)=>{"use strict";var n=r(6100),s=n({}.toString),o=n("".slice);e.exports=function(e){return o(s(e),8,-1)}},8407:(e,t,r)=>{"use strict";var n=r(4904),s=r(2769),o=r(9932),i=r(8655)("toStringTag"),a=Object,_="Arguments"===o(function(){return arguments}());e.exports=n?o: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),i))?r:_?o(t):"Object"===(n=o(t))&&s(t.callee)?"Arguments":n}},7464:(e,t,r)=>{"use strict";var n=r(701),s=r(5691),o=r(4543),i=r(9989);e.exports=function(e,t,r){for(var a=s(t),_=i.f,u=o.f,c=0;c<a.length;c++){var l=a[c];n(e,l)||r&&n(r,l)||_(e,l,u(t,l))}}},2871:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,r)=>{"use strict";var n=r(5024),s=r(9989),o=r(480);e.exports=n?function(e,t,r){return s.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,r)=>{"use strict";var n=r(3999);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},7525:(e,t,r)=>{"use strict";var n=r(8900),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}},5024:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,r)=>{"use strict";var n=r(8900),s=r(262),o=n.document,i=s(o)&&s(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3531:(e,t,r)=>{"use strict";var n=r(8900).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},5547:(e,t,r)=>{"use strict";var n,s,o=r(8900),i=r(3531),a=o.process,_=o.Deno,u=a&&a.versions||_&&_.version,c=u&&u.v8;c&&(s=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},3885:(e,t,r)=>{"use strict";var n=r(6100),s=Error,o=n("".replace),i=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,_=a.test(i);e.exports=function(e,t){if(_&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=o(e,a,"");return e}},4279:(e,t,r)=>{"use strict";var n=r(3999),s=r(3885),o=r(5791),i=Error.captureStackTrace;e.exports=function(e,t,r,a){o&&(i?i(e,t):n(e,"stack",s(r,a)))}},5791:(e,t,r)=>{"use strict";var n=r(1203),s=r(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9098:(e,t,r)=>{"use strict";var n=r(8900),s=r(7013),o=r(9344),i=r(2769),a=r(4543).f,_=r(8696),u=r(8099),c=r(4572),l=r(3999),d=r(701);r(3753);var m=function(e){var t=function(r,n,o){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,o)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,p,h,f,y,g,w,b,v=e.target,E=e.global,x=e.stat,M=e.proto,S=E?n:x?n[v]:n[v]&&n[v].prototype,A=E?u:u[v]||l(u,v,{})[v],T=A.prototype;for(h in t)s=!(r=_(E?h:v+(x?".":"#")+h,e.forced))&&S&&d(S,h),y=A[h],s&&(g=e.dontCallGetSet?(b=a(S,h))&&b.value:S[h]),f=s&&g?g:t[h],(r||M||typeof y!=typeof f)&&(w=e.bind&&s?c(f,n):e.wrap&&s?m(f):M&&i(f)?o(f):f,(e.sham||f&&f.sham||y&&y.sham)&&l(w,"sham",!0),l(A,h,w),M&&(d(u,p=v+"Prototype")||l(u,p,{}),l(u[p],h,f),e.real&&T&&(r||!T[h])&&l(T,h,f)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,o=s.apply,i=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?i.bind(o):function(){return i.apply(o,arguments)})},4572:(e,t,r)=>{"use strict";var n=r(9344),s=r(814),o=r(1780),i=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:o?i(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},3410:(e,t,r)=>{"use strict";var n=r(5024),s=r(701),o=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,a=s(o,"name"),_=a&&"something"===function(){}.name,u=a&&(!n||n&&i(o,"name").configurable);e.exports={EXISTS:a,PROPER:_,CONFIGURABLE:u}},3574:(e,t,r)=>{"use strict";var n=r(6100),s=r(814);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9344:(e,t,r)=>{"use strict";var n=r(9932),s=r(6100);e.exports=function(e){if("Function"===n(e))return s(e)}},6100:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,o=s.call,i=n&&s.bind.bind(o,o);e.exports=n?i:function(e){return function(){return o.apply(e,arguments)}}},1003:(e,t,r)=>{"use strict";var n=r(8099),s=r(8900),o=r(2769),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e])||i(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},967:(e,t,r)=>{"use strict";var n=r(8407),s=r(4674),o=r(3057),i=r(6625),a=r(8655)("iterator");e.exports=function(e){if(!o(e))return s(e,a)||s(e,"@@iterator")||i[n(e)]}},1613:(e,t,r)=>{"use strict";var n=r(4713),s=r(814),o=r(7235),i=r(459),a=r(967),_=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(s(r))return o(n(r,e));throw new _(i(e)+" is not iterable")}},4674:(e,t,r)=>{"use strict";var n=r(814),s=r(3057);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},8900: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")()},701:(e,t,r)=>{"use strict";var n=r(6100),s=r(2137),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(s(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,r)=>{"use strict";var n=r(1003);e.exports=n("document","documentElement")},9665:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203),o=r(9619);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,r)=>{"use strict";var n=r(6100),s=r(1203),o=r(9932),i=Object,a=n("".split);e.exports=s((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?a(e,""):i(e)}:i},3507:(e,t,r)=>{"use strict";var n=r(2769),s=r(262),o=r(3491);e.exports=function(e,t,r){var i,a;return o&&n(i=t.constructor)&&i!==r&&s(a=i.prototype)&&a!==r.prototype&&o(e,a),e}},8148:(e,t,r)=>{"use strict";var n=r(262),s=r(3999);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8417:(e,t,r)=>{"use strict";var n,s,o,i=r(1314),a=r(8900),_=r(262),u=r(3999),c=r(701),l=r(3753),d=r(4275),m=r(5241),p="Object already initialized",h=a.TypeError,f=a.WeakMap;if(i||l.state){var y=l.state||(l.state=new f);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new h(p);return t.facade=e,y.set(e,t),t},s=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var g=d("state");m[g]=!0,n=function(e,t){if(c(e,g))throw new h(p);return t.facade=e,u(e,g,t),t},s=function(e){return c(e,g)?e[g]:{}},o=function(e){return c(e,g)}}e.exports={set:n,get:s,has:o,enforce:function(e){return o(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!_(t)||(r=s(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}},2877:(e,t,r)=>{"use strict";var n=r(8655),s=r(6625),o=n("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||i[o]===e)}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696:(e,t,r)=>{"use strict";var n=r(1203),s=r(2769),o=/#|\.prototype\./,i=function(e,t){var r=_[a(e)];return r===c||r!==u&&(s(t)?n(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},_=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,r)=>{"use strict";var n=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},2937:(e,t,r)=>{"use strict";var n=r(262);e.exports=function(e){return n(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,r)=>{"use strict";var n=r(1003),s=r(2769),o=r(4317),i=r(7460),a=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&o(t.prototype,a(e))}},208:(e,t,r)=>{"use strict";var n=r(4572),s=r(4713),o=r(7235),i=r(459),a=r(2877),_=r(8130),u=r(4317),c=r(1613),l=r(967),d=r(1743),m=TypeError,p=function(e,t){this.stopped=e,this.result=t},h=p.prototype;e.exports=function(e,t,r){var f,y,g,w,b,v,E,x=r&&r.that,M=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),T=!(!r||!r.INTERRUPTED),O=n(t,x),I=function(e){return f&&d(f,"normal",e),new p(!0,e)},R=function(e){return M?(o(e),T?O(e[0],e[1],I):O(e[0],e[1])):T?O(e,I):O(e)};if(S)f=e.iterator;else if(A)f=e;else{if(!(y=l(e)))throw new m(i(e)+" is not iterable");if(a(y)){for(g=0,w=_(e);w>g;g++)if((b=R(e[g]))&&u(h,b))return b;return new p(!1)}f=c(e,y)}for(v=S?e.next:f.next;!(E=s(v,f)).done;){try{b=R(E.value)}catch(e){d(f,"throw",e)}if("object"==typeof b&&b&&u(h,b))return b}return new p(!1)}},1743:(e,t,r)=>{"use strict";var n=r(4713),s=r(7235),o=r(4674);e.exports=function(e,t,r){var i,a;s(e);try{if(!(i=o(e,"return"))){if("throw"===t)throw r;return r}i=n(i,e)}catch(e){a=!0,i=e}if("throw"===t)throw r;if(a)throw i;return s(i),r}},1926:(e,t,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),o=r(480),i=r(1811),a=r(6625),_=function(){return this};e.exports=function(e,t,r,u){var c=t+" Iterator";return e.prototype=s(n,{next:o(+!u,r)}),i(e,c,!1,!0),a[c]=_,e}},164:(e,t,r)=>{"use strict";var n=r(9098),s=r(4713),o=r(4871),i=r(3410),a=r(2769),_=r(1926),u=r(3671),c=r(3491),l=r(1811),d=r(3999),m=r(3508),p=r(8655),h=r(6625),f=r(2621),y=i.PROPER,g=i.CONFIGURABLE,w=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,v=p("iterator"),E="keys",x="values",M="entries",S=function(){return this};e.exports=function(e,t,r,i,p,f,A){_(r,t,i);var T,O,I,R=function(e){if(e===p&&k)return k;if(!b&&e&&e in j)return j[e];switch(e){case E:case x:case M:return function(){return new r(this,e)}}return function(){return new r(this)}},F=t+" Iterator",P=!1,j=e.prototype,N=j[v]||j["@@iterator"]||p&&j[p],k=!b&&N||R(p),C="Array"===t&&j.entries||N;if(C&&(T=u(C.call(new e)))!==Object.prototype&&T.next&&(o||u(T)===w||(c?c(T,w):a(T[v])||m(T,v,S)),l(T,F,!0,!0),o&&(h[F]=S)),y&&p===x&&N&&N.name!==x&&(!o&&g?d(j,"name",x):(P=!0,k=function(){return s(N,this)})),p)if(O={values:R(x),keys:f?k:R(E),entries:R(M)},A)for(I in O)(b||P||!(I in j))&&m(j,I,O[I]);else n({target:t,proto:!0,forced:b||P},O);return o&&!A||j[v]===k||m(j,v,k,{name:p}),h[t]=k,O}},2621:(e,t,r)=>{"use strict";var n,s,o,i=r(1203),a=r(2769),_=r(262),u=r(5780),c=r(3671),l=r(3508),d=r(8655),m=r(4871),p=d("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(s=c(c(o)))!==Object.prototype&&(n=s):h=!0),!_(n)||i((function(){var e={};return n[p].call(e)!==e}))?n={}:m&&(n=u(n)),a(n[p])||l(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},6625:e=>{"use strict";e.exports={}},8130:(e,t,r)=>{"use strict";var n=r(8146);e.exports=function(e){return n(e.length)}},5777: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)}},4879:(e,t,r)=>{"use strict";var n=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},5780:(e,t,r)=>{"use strict";var n,s=r(7235),o=r(7389),i=r(9683),a=r(5241),_=r(3489),u=r(9619),c=r(4275),l="prototype",d="script",m=c("IE_PROTO"),p=function(){},h=function(e){return"<"+d+">"+e+"</"+d+">"},f=function(e){e.write(h("")),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?f(n):(t=u("iframe"),r="java"+d+":",t.style.display="none",_.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):f(n);for(var s=i.length;s--;)delete y[l][i[s]];return y()};a[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[l]=s(e),r=new p,p[l]=null,r[m]=e):r=y(),void 0===t?r:o.f(r,t)}},7389:(e,t,r)=>{"use strict";var n=r(5024),s=r(1330),o=r(9989),i=r(7235),a=r(3273),_=r(8364);t.f=n&&!s?Object.defineProperties:function(e,t){i(e);for(var r,n=a(t),s=_(t),u=s.length,c=0;u>c;)o.f(e,r=s[c++],n[r]);return e}},9989:(e,t,r)=>{"use strict";var n=r(5024),s=r(9665),o=r(1330),i=r(7235),a=r(5341),_=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l="enumerable",d="configurable",m="writable";t.f=n?o?function(e,t,r){if(i(e),t=a(t),i(r),"function"==typeof e&&"prototype"===t&&"value"in r&&m in r&&!r[m]){var n=c(e,t);n&&n[m]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:l in r?r[l]:n[l],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(i(e),t=a(t),i(r),s)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new _("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},4543:(e,t,r)=>{"use strict";var n=r(5024),s=r(4713),o=r(7161),i=r(480),a=r(3273),_=r(5341),u=r(701),c=r(9665),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=a(e),t=_(t),c)try{return l(e,t)}catch(e){}if(u(e,t))return i(!s(o.f,e,t),e[t])}},5116:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,r)=>{"use strict";var n=r(701),s=r(2769),o=r(2137),i=r(4275),a=r(2871),_=i("IE_PROTO"),u=Object,c=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=o(e);if(n(t,_))return t[_];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?c:null}},4317:(e,t,r)=>{"use strict";var n=r(6100);e.exports=n({}.isPrototypeOf)},8600:(e,t,r)=>{"use strict";var n=r(6100),s=r(701),o=r(3273),i=r(1005).indexOf,a=r(5241),_=n([].push);e.exports=function(e,t){var r,n=o(e),u=0,c=[];for(r in n)!s(a,r)&&s(n,r)&&_(c,r);for(;t.length>u;)s(n,r=t[u++])&&(~i(c,r)||_(c,r));return c}},8364:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683);e.exports=Object.keys||function(e){return n(e,s)}},7161:(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},3491:(e,t,r)=>{"use strict";var n=r(3574),s=r(262),o=r(5426),i=r(1966);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 o(r),i(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},9559:(e,t,r)=>{"use strict";var n=r(4904),s=r(8407);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(e,t,r)=>{"use strict";var n=r(4713),s=r(2769),o=r(262),i=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&s(r=e.toString)&&!o(a=n(r,e)))return a;if(s(r=e.valueOf)&&!o(a=n(r,e)))return a;if("string"!==t&&s(r=e.toString)&&!o(a=n(r,e)))return a;throw new i("Can't convert object to primitive value")}},5691:(e,t,r)=>{"use strict";var n=r(1003),s=r(6100),o=r(5116),i=r(7313),a=r(7235),_=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=i.f;return r?_(t,r(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,r)=>{"use strict";var n=r(9989).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}})}},5426:(e,t,r)=>{"use strict";var n=r(3057),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},1811:(e,t,r)=>{"use strict";var n=r(4904),s=r(9989).f,o=r(3999),i=r(701),a=r(9559),_=r(8655)("toStringTag");e.exports=function(e,t,r,u){var c=r?e:e&&e.prototype;c&&(i(c,_)||s(c,_,{configurable:!0,value:t}),u&&!n&&o(c,"toString",a))}},4275:(e,t,r)=>{"use strict";var n=r(8141),s=r(1268),o=n("keys");e.exports=function(e){return o[e]||(o[e]=s(e))}},3753:(e,t,r)=>{"use strict";var n=r(4871),s=r(8900),o=r(7525),i="__core-js_shared__",a=e.exports=s[i]||o(i,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8141:(e,t,r)=>{"use strict";var n=r(3753);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},5571:(e,t,r)=>{"use strict";var n=r(6100),s=r(9903),o=r(1139),i=r(5426),a=n("".charAt),_=n("".charCodeAt),u=n("".slice),c=function(e){return function(t,r){var n,c,l=o(i(t)),d=s(r),m=l.length;return d<0||d>=m?e?"":void 0:(n=_(l,d))<55296||n>56319||d+1===m||(c=_(l,d+1))<56320||c>57343?e?a(l,d):n:e?u(l,d,d+2):c-56320+(n-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},4603:(e,t,r)=>{"use strict";var n=r(5547),s=r(1203),o=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4574:(e,t,r)=>{"use strict";var n=r(9903),s=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):o(r,t)}},3273:(e,t,r)=>{"use strict";var n=r(1395),s=r(5426);e.exports=function(e){return n(s(e))}},9903:(e,t,r)=>{"use strict";var n=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8146:(e,t,r)=>{"use strict";var n=r(9903),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},2137:(e,t,r)=>{"use strict";var n=r(5426),s=Object;e.exports=function(e){return s(n(e))}},493:(e,t,r)=>{"use strict";var n=r(4713),s=r(262),o=r(6281),i=r(4674),a=r(9258),_=r(8655),u=TypeError,c=_("toPrimitive");e.exports=function(e,t){if(!s(e)||o(e))return e;var r,_=i(e,c);if(_){if(void 0===t&&(t="default"),r=n(_,e,t),!s(r)||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5341:(e,t,r)=>{"use strict";var n=r(493),s=r(6281);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},4904:(e,t,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},1139:(e,t,r)=>{"use strict";var n=r(8407),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,r)=>{"use strict";var n=r(6100),s=0,o=Math.random(),i=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++s+o,36)}},7460:(e,t,r)=>{"use strict";var n=r(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,r)=>{"use strict";var n=r(8900),s=r(2769),o=n.WeakMap;e.exports=s(o)&&/native code/.test(String(o))},8655:(e,t,r)=>{"use strict";var n=r(8900),s=r(8141),o=r(701),i=r(1268),a=r(4603),_=r(7460),u=n.Symbol,c=s("wks"),l=_?u.for||u:u&&u.withoutSetter||i;e.exports=function(e){return o(c,e)||(c[e]=a&&o(u,e)?u[e]:l("Symbol."+e)),c[e]}},6453:(e,t,r)=>{"use strict";var n=r(1003),s=r(701),o=r(3999),i=r(4317),a=r(3491),_=r(7464),u=r(5516),c=r(3507),l=r(4879),d=r(8148),m=r(4279),p=r(5024),h=r(4871);e.exports=function(e,t,r,f){var y="stackTraceLimit",g=f?2:1,w=e.split("."),b=w[w.length-1],v=n.apply(null,w);if(v){var E=v.prototype;if(!h&&s(E,"cause")&&delete E.cause,!r)return v;var x=n("Error"),M=t((function(e,t){var r=l(f?t:e,void 0),n=f?new v(e):new v;return void 0!==r&&o(n,"message",r),m(n,M,n.stack,2),this&&i(E,this)&&c(n,this,M),arguments.length>g&&d(n,arguments[g]),n}));if(M.prototype=E,"Error"!==b?a?a(M,x):_(M,x,{name:!0}):p&&y in v&&(u(M,v,y),u(M,v,"prepareStackTrace")),_(M,v),!h)try{E.name!==b&&o(E,"name",b),E.constructor=M}catch(e){}return M}}},6138:(e,t,r)=>{"use strict";var n=r(9098),s=r(1003),o=r(7013),i=r(1203),a=r(6453),_="AggregateError",u=s(_),c=!i((function(){return 1!==u([1]).errors[0]}))&&i((function(){return 7!==u([1],_,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:c},{AggregateError:a(_,(function(e){return function(t,r){return o(e,this,arguments)}}),c,!0)})},3085:(e,t,r)=>{"use strict";var n=r(9098),s=r(4317),o=r(3671),i=r(3491),a=r(7464),_=r(5780),u=r(3999),c=r(480),l=r(8148),d=r(4279),m=r(208),p=r(4879),h=r(8655)("toStringTag"),f=Error,y=[].push,g=function(e,t){var r,n=s(w,this);i?r=i(new f,n?o(this):w):(r=n?this:_(w),u(r,h,"Error")),void 0!==t&&u(r,"message",p(t)),d(r,g,r.stack,1),arguments.length>2&&l(r,arguments[2]);var a=[];return m(e,y,{that:a}),u(r,"errors",a),r};i?i(g,f):a(g,f,{name:!0});var w=g.prototype=_(f.prototype,{constructor:c(1,g),message:c(1,""),name:c(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},5695:(e,t,r)=>{"use strict";r(3085)},9828:(e,t,r)=>{"use strict";var n=r(3273),s=r(8137),o=r(6625),i=r(8417),a=r(9989).f,_=r(164),u=r(877),c=r(4871),l=r(5024),d="Array Iterator",m=i.set,p=i.getterFor(d);e.exports=_(Array,"Array",(function(e,t){m(this,{type:d,target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,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 h=o.Arguments=o.Array;if(s("keys"),s("values"),s("entries"),!c&&l&&"values"!==h.name)try{a(h,"name",{value:"values"})}catch(e){}},484:(e,t,r)=>{"use strict";var n=r(9098),s=r(8900),o=r(7013),i=r(6453),a="WebAssembly",_=s[a],u=7!==new Error("e",{cause:7}).cause,c=function(e,t){var r={};r[e]=i(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},l=function(e,t){if(_&&_[e]){var r={};r[e]=i(a+"."+e,t,u),n({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};c("Error",(function(e){return function(t){return o(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),c("URIError",(function(e){return function(t){return o(e,this,arguments)}})),l("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),l("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),l("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},3832:(e,t,r)=>{"use strict";var n=r(5571).charAt,s=r(1139),o=r(8417),i=r(164),a=r(877),_="String Iterator",u=o.set,c=o.getterFor(_);i(String,"String",(function(e){u(this,{type:_,string:s(e),index:0})}),(function(){var e,t=c(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))}))},5442:(e,t,r)=>{"use strict";r(5695)},85:(e,t,r)=>{"use strict";r(9828);var n=r(1100),s=r(8900),o=r(1811),i=r(6625);for(var a in n)o(s[a],a),i[a]=i.Array},239:(e,t,r)=>{"use strict";r(5442);var n=r(6656);r(85),e.exports=n}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})();var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{detect:()=>jo,detectionRegExp:()=>Po,mediaTypes:()=>Fo,namespace:()=>ko,parse:()=>No});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>Xt,includesClasses:()=>Jt,includesSymbols:()=>Yt,isAnnotationElement:()=>Ht,isArrayElement:()=>Dt,isBooleanElement:()=>Bt,isCommentElement:()=>Gt,isElement:()=>kt,isLinkElement:()=>$t,isMemberElement:()=>qt,isNullElement:()=>Lt,isNumberElement:()=>Ut,isObjectElement:()=>Vt,isParseResultElement:()=>Zt,isPrimitiveElement:()=>Kt,isRefElement:()=>Wt,isSourceMapElement:()=>zt,isStringElement:()=>Ct});var t={};function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function n(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}function s(e){return function t(s,o){switch(arguments.length){case 0:return t;case 1:return r(s)?t:n((function(t){return e(s,t)}));default:return r(s)&&r(o)?t:r(s)?n((function(t){return e(t,o)})):r(o)?n((function(t){return e(s,t)})):e(s,o)}}}function o(e){return function t(o,i,a){switch(arguments.length){case 0:return t;case 1:return r(o)?t:s((function(t,r){return e(o,t,r)}));case 2:return r(o)&&r(i)?t:r(o)?s((function(t,r){return e(t,i,r)})):r(i)?s((function(t,r){return e(o,t,r)})):n((function(t){return e(o,i,t)}));default:return r(o)&&r(i)&&r(a)?t:r(o)&&r(i)?s((function(t,r){return e(t,r,a)})):r(o)&&r(a)?s((function(t,r){return e(t,i,r)})):r(i)&&r(a)?s((function(t,r){return e(o,t,r)})):r(o)?n((function(t){return e(t,i,a)})):r(i)?n((function(t){return e(o,t,a)})):r(a)?n((function(t){return e(o,i,t)})):e(o,i,a)}}}__webpack_require__.r(t),__webpack_require__.d(t,{isInfoElement:()=>po,isMainElement:()=>mo,isPrincipleElement:()=>ho,isRequirementElement:()=>fo,isRequirementLevelElement:()=>yo,isScenarioElement:()=>go,isStandardElement:()=>wo,isStandardIdentifierElement:()=>bo});const i=s((function(e,t){return null==t||t!=t?e:t})),a=Number.isInteger||function(e){return(e|0)===e};function _(e){return"[object String]"===Object.prototype.toString.call(e)}function u(e,t){var r=e<0?t.length+e:e;return _(t)?t.charAt(r):t[r]}const c=s((function(e,t){if(null!=t)return a(e)?u(e,t):t[e]}));const l=o((function(e,t,r){return i(e,c(t,r))}));var d=s((function(e,t){for(var r={},n={},s=0,o=e.length;s<o;)n[e[s]]=1,s+=1;for(var i in t)n.hasOwnProperty(i)||(r[i]=t[i]);return r}));const m=d;function p(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const h=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const f=n((function(e){return!!h(e)||!!e&&("object"==typeof e&&(!_(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var y="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function g(e,t,r){return function(n,s,o){if(f(o))return e(n,s,o);if(null==o)return s;if("function"==typeof o["fantasy-land/reduce"])return t(n,s,o,"fantasy-land/reduce");if(null!=o[y])return r(n,s,o[y]());if("function"==typeof o.next)return r(n,s,o);if("function"==typeof o.reduce)return t(n,s,o,"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 b(e,t,r,n){return r[n](e,t)}const v=g(p,b,w);function E(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!h(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 x(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}const M=function(){return this.xf["@@transducer/init"]()},S=function(e){return this.xf["@@transducer/result"](e)};var A=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=S,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const T=function(e){return function(t){return new A(e,t)}};function O(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,o){return t.apply(this,arguments)};case 6:return function(e,r,n,s,o,i){return t.apply(this,arguments)};case 7:return function(e,r,n,s,o,i,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,o,i,a,_){return t.apply(this,arguments)};case 9:return function(e,r,n,s,o,i,a,_,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,o,i,a,_,u,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function I(e,t,n){return function(){for(var s=[],o=0,i=e,a=0,_=!1;a<t.length||o<arguments.length;){var u;a<t.length&&(!r(t[a])||o>=arguments.length)?u=t[a]:(u=arguments[o],o+=1),s[a]=u,r(u)?_=!0:i-=1,a+=1}return!_&&i<=0?n.apply(this,s):O(Math.max(0,i),I(e,s,n))}}const R=s((function(e,t){return 1===e?n(t):O(e,I(e,[],t))}));function F(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var P=Object.prototype.toString;const j=function(){return"[object Arguments]"===P.call(arguments)?function(e){return"[object Arguments]"===P.call(e)}:function(e){return F("callee",e)}}();var N=!{toString:null}.propertyIsEnumerable("toString"),k=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],C=function(){return arguments.propertyIsEnumerable("length")}(),U=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},L="function"!=typeof Object.keys||C?n((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=C&&j(e);for(t in e)!F(t,e)||s&&"length"===t||(n[n.length]=t);if(N)for(r=k.length-1;r>=0;)F(t=k[r],e)&&!U(n,t)&&(n[n.length]=t),r-=1;return n})):n((function(e){return Object(e)!==e?[]:Object.keys(e)}));const B=L;const V=s(E(["fantasy-land/map","map"],T,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return R(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return p((function(r,n){return r[n]=e(t[n]),r}),{},B(t));default:return x(e,t)}})));const D=s((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))}:v((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,o=[];for(r=0;r<n;)o[o.length]=e[r],r+=1;for(r=0;r<s;)o[o.length]=t[r],r+=1;return o}(e,V(r,t))}),[],e)}));const q=s((function(e,t){var r=R(e,t);return R(e,(function(){return p(D,V(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const $=n((function(e){return q(e.length,e)}));const W=$(n((function(e){return!e})));function H(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function G(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}const Z="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const z=n((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function K(e,t,r,n){var s=H(e);function o(e,t){return X(e,t,r.slice(),n.slice())}return!G((function(e,t){return!G(o,t,e)}),H(t),s)}function X(e,t,r,n){if(Z(e,t))return!0;var s,o,i=z(e);if(i!==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(i){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(o=String(s).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Z(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Z(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(i){case"Map":return e.size===t.size&&K(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&K(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 _=B(e);if(_.length!==B(t).length)return!1;var u=r.concat([e]),c=n.concat([t]);for(a=_.length-1;a>=0;){var l=_[a];if(!F(l,t)||!X(t[l],e[l],u,c))return!1;a-=1}return!0}const Y=s((function(e,t){return X(e,t,[],[])}));const J=n((function(e){return function(){return e}}));var Q=J(void 0);const ee=Y(Q());const te=W(ee);var re=__webpack_require__(8326);function ne(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function se(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 oe=s((function(e,t){return O(e.length,(function(){return e.apply(t,arguments)}))}));function ie(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 ae(e,t,r,n){return e["@@transducer/result"](r[n](oe(e["@@transducer/step"],e),t))}const _e=g(se,ae,ie);var ue=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const ce=o((function(e,t,r){return _e("function"==typeof e?new ue(e):e,t,r)}));function le(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return h(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const de=o(le("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const me=n(le("tail",de(1,1/0)));function pe(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return O(arguments[0].length,ce(ne,arguments[0],me(arguments)))}var he=function(e,t){switch(arguments.length){case 0:return he;case 1:return function t(r){return 0===arguments.length?t:Z(e,r)};default:return Z(e,t)}};const fe=he;function ye(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(Y(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function ge(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 we=function(e){return(e<10?"0":"")+e};const be="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+we(e.getUTCMonth()+1)+"-"+we(e.getUTCDate())+"T"+we(e.getUTCHours())+":"+we(e.getUTCMinutes())+":"+we(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function ve(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ee=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=S,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function xe(e){return function(t){return new Ee(e,t)}}const Me=s(E(["fantasy-land/filter","filter"],xe,(function(e,t){return ve(t)?p((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},B(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 Se=s((function(e,t){return Me((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function Ae(e,t){var r=function(r){var n=t.concat([e]);return ye(r,n)?"<Circular>":Ae(r,n)},n=function(e,t){return x((function(t){return ge(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+x(r,e).join(", ")+"))";case"[object Array]":return"["+x(r,e).concat(n(e,Se((function(e){return/^\d+$/.test(e)}),B(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):ge(be(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())+")":ge(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,B(e)).join(", ")+"}"}}const Te=n((function(e){return Ae(e,[])}));function Oe(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=a(s)?u(s,r):r[s]}return r}const Ie=o((function(e,t,r){return e(Oe(t,r))}));function Re(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Fe=s((function(e,t){return e&&t}));const Pe=s((function(e,t){return Re(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:$(Fe)(e,t)}));const je=Y(null);var Ne=W(je);function ke(e){return ke="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},ke(e)}const Ce=R(1,Pe(Ne,(function(e){return"object"===ke(e)})));const Ue=s((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 o=Te(e),i=r(o,Te(t));return void 0!==i&&i===o?e:t}));const Le=s((function(e,t){return V(c(e),t)}));const Be=n((function(e){return R(ce(Ue,0,Le("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 Ve=R(1,pe(z,fe("GeneratorFunction")));const De=R(1,pe(z,fe("AsyncFunction")));const qe=Be([pe(z,fe("Function")),Ve,De]);var $e=pe(z,fe("Object")),We=pe(Te,Y(Te(Object))),He=Ie(Pe(qe,We),["constructor"]);const Ge=R(1,(function(e){if(!Ce(e)||!$e(e))return!1;var t=Object.getPrototypeOf(e);return!!je(t)||He(t)}));class Ze extends re.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const ze=Ze;class Ke extends re.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Xe=Ke;class Ye extends re.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(ee(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const Je=Ye;class Qe extends re.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new re.wE([e.start.row,e.start.column,e.start.char]),r=new re.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const et=Qe;class tt extends re.g${constructor(){super(),this.register("annotation",ze),this.register("comment",Xe),this.register("parseResult",Je),this.register("sourceMap",et)}}const rt=new tt,nt=e=>{const t=new tt;return Ge(e)&&t.use(e),t},st=rt;const ot=R(1,pe(z,fe("String"))),it=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",at=globalThis.fetch;qe(at)&&(globalThis.fetch=(...e)=>ot(e[0])&&e[0].endsWith("tree-sitter.wasm")?at.apply(globalThis,[it,me(e)]):at.apply(globalThis,e));var _t=__webpack_require__(3833),ut=__webpack_require__(1212);const ct=class extends ut{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 lt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(ct,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 dt=lt,mt=__webpack_require__.p+"8b9a42208b2f0cb650aa7e5c4e293a15.wasm";let pt=null,ht=null;const ft=async e=>{if(null===pt&&null===ht)ht=_t.init().then((()=>_t.Language.load(mt))).then((e=>{const t=new _t;return t.setLanguage(e),t})).finally((()=>{ht=null})),pt=await ht;else if(null===pt&&null!==ht)pt=await ht;else if(null===pt)throw new dt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return pt.parse(e)};const yt=class extends dt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},gt=(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},wt={},bt=e=>null==e?void 0:e.type,vt=e=>"string"==typeof bt(e),Et=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),xt=(e,{visitFnGetter:t=gt,nodeTypeGetter:r=bt,breakSymbol:n=wt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,exposeEdits:i=!1}={})=>{const a=Symbol("skip"),_=new Array(e.length).fill(a);return{enter(u,c,l,d,m,p){let h=u,f=!1;const y={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let u=0;u<e.length;u+=1)if(_[u]===a){const a=t(e[u],r(h),!1);if("function"==typeof a){const t=a.call(e[u],h,c,l,d,m,y);if("function"==typeof(null==t?void 0:t.then))throw new yt("Async visitor not supported in sync mode",{visitor:e[u],visitFn:a});if(t===o)_[u]=h;else if(t===n)_[u]=n;else{if(t===s)return t;if(void 0!==t){if(!i)return t;h=t,f=!0}}}}return f?h:void 0},leave(s,i,u,c,l,d){let m=s;const p={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(_[s]===a){const a=t(e[s],r(m),!0);if("function"==typeof a){const t=a.call(e[s],m,i,u,c,l,p);if("function"==typeof(null==t?void 0:t.then))throw new yt("Async visitor not supported in sync mode",{visitor:e[s],visitFn:a});if(t===n)_[s]=n;else if(void 0!==t&&t!==o)return t}}else _[s]===m&&(_[s]=a)}}};xt[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=gt,nodeTypeGetter:r=bt,breakSymbol:n=wt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,exposeEdits:i=!1}={})=>{const a=Symbol("skip"),_=new Array(e.length).fill(a);return{async enter(u,c,l,d,m,p){let h=u,f=!1;const y={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let u=0;u<e.length;u+=1)if(_[u]===a){const a=t(e[u],r(h),!1);if("function"==typeof a){const t=await a.call(e[u],h,c,l,d,m,y);if(t===o)_[u]=h;else if(t===n)_[u]=n;else{if(t===s)return t;if(void 0!==t){if(!i)return t;h=t,f=!0}}}}return f?h:void 0},async leave(s,i,u,c,l,d){let m=s;const p={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(_[s]===a){const a=t(e[s],r(m),!0);if("function"==typeof a){const t=await a.call(e[s],m,i,u,c,l,p);if(t===n)_[s]=n;else if(void 0!==t&&t!==o)return t}}else _[s]===m&&(_[s]=a)}}};const Mt=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=wt,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:i=!1,visitFnGetter:a=gt,nodeTypeGetter:_=bt,nodePredicate:u=vt,nodeCloneFn:c=Et,detectCycles:l=!0}={})=>{const d=r||{};let m,p,h=Array.isArray(e),f=[e],y=-1,g=[],w=e;const b=[],v=[];do{y+=1;const e=y===f.length;let r;const M=e&&0!==g.length;if(e){if(r=0===v.length?void 0:b.pop(),w=p,p=v.pop(),M)if(h){w=w.slice();let e=0;for(const[t,r]of g){const n=t-e;r===o?(w.splice(n,1),e+=1):w[n]=r}}else{w=c(w);for(const[e,t]of g)w[e]=t}y=m.index,f=m.keys,g=m.edits,h=m.inArray,m=m.prev}else if(p!==o&&void 0!==p){if(r=h?y:f[y],w=p[r],w===o||void 0===w)continue;b.push(r)}let S;if(!Array.isArray(w)){var E;if(!u(w))throw new yt(`Invalid AST Node: ${String(w)}`,{node:w});if(l&&v.includes(w)){b.pop();continue}const o=a(t,_(w),e);if(o){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,w,r,p,b,v):p&&(p[r]=t),e||(w=t)}};S=o.call(t,w,r,p,b,v,s)}if("function"==typeof(null===(E=S)||void 0===E?void 0:E.then))throw new yt("Async visitor not supported in sync mode",{visitor:t,visitFn:o});if(S===s)break;if(S===i){if(!e){b.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){b.pop();continue}w=S}}var x;if(void 0===S&&M&&g.push([r,w]),!e)m={inArray:h,index:y,keys:f,edits:g,prev:m},h=Array.isArray(w),f=h?w:null!==(x=d[_(w)])&&void 0!==x?x:[],y=-1,g=[],p!==o&&void 0!==p&&v.push(p),p=w}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};Mt[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=wt,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:i=!1,visitFnGetter:a=gt,nodeTypeGetter:_=bt,nodePredicate:u=vt,nodeCloneFn:c=Et,detectCycles:l=!0}={})=>{const d=r||{};let m,p,h=Array.isArray(e),f=[e],y=-1,g=[],w=e;const b=[],v=[];do{y+=1;const e=y===f.length;let r;const x=e&&0!==g.length;if(e){if(r=0===v.length?void 0:b.pop(),w=p,p=v.pop(),x)if(h){w=w.slice();let e=0;for(const[t,r]of g){const n=t-e;r===o?(w.splice(n,1),e+=1):w[n]=r}}else{w=c(w);for(const[e,t]of g)w[e]=t}y=m.index,f=m.keys,g=m.edits,h=m.inArray,m=m.prev}else if(p!==o&&void 0!==p){if(r=h?y:f[y],w=p[r],w===o||void 0===w)continue;b.push(r)}let M;if(!Array.isArray(w)){if(!u(w))throw new yt(`Invalid AST Node: ${String(w)}`,{node:w});if(l&&v.includes(w)){b.pop();continue}const o=a(t,_(w),e);if(o){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,w,r,p,b,v):p&&(p[r]=t),e||(w=t)}};M=await o.call(t,w,r,p,b,v,s)}if(M===s)break;if(M===i){if(!e){b.pop();continue}}else if(void 0!==M&&(g.push([r,M]),!e)){if(!u(M)){b.pop();continue}w=M}}var E;if(void 0===M&&x&&g.push([r,w]),!e)m={inArray:h,index:y,keys:f,edits:g,prev:m},h=Array.isArray(w),f=h?w:null!==(E=d[_(w)])&&void 0!==E?E:[],y=-1,g=[],p!==o&&void 0!==p&&v.push(p),p=w}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};var St=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){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 At(e){return function(t){return new St(e,t)}}const Tt=s(E(["all"],At,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));const Ot=n((function(e){return R(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}))(s(ye)),It=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Rt=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Ft=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Pt=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof re.wE)&&t.classes.includes(e),jt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Nt=e=>e({hasMethod:It,hasBasicElementProps:Rt,primitiveEq:Ft,isElementType:jt,hasClass:Pt}),kt=Nt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof re.Hg||e(r)&&t(void 0,r))),Ct=Nt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof re.Om||e(r)&&t("string",r))),Ut=Nt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof re.kT||e(r)&&t("number",r))),Lt=Nt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof re.Os||e(r)&&t("null",r))),Bt=Nt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof re.bd||e(r)&&t("boolean",r))),Vt=Nt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof re.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Dt=Nt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof re.wE&&!(n instanceof re.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),qt=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof re.Pr||e(n)&&t("member",n)&&r(void 0,n))),$t=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof re.Ft||e(n)&&t("link",n)&&r(void 0,n))),Wt=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof re.sI||e(n)&&t("ref",n)&&r(void 0,n))),Ht=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ze||e(n)&&t("annotation",n)&&r("array",n))),Gt=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xe||e(n)&&t("comment",n)&&r("string",n))),Zt=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Je||e(n)&&t("parseResult",n)&&r("array",n))),zt=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof et||e(n)&&t("sourceMap",n)&&r("array",n))),Kt=e=>jt("object",e)||jt("array",e)||jt("boolean",e)||jt("number",e)||jt("string",e)||jt("null",e)||jt("member",e),Xt=e=>zt(e.meta.get("sourceMap")),Yt=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Dt(r)&&Tt(Ot(r.toValue()),e)},Jt=(e,t)=>0===e.length||Tt(Ot(t.classes.toValue()),e);const Qt=class extends yt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const er=class extends Qt{};const tr=class extends Qt{},rr=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof re.KeyValuePair){const{key:t,value:s}=e,o=kt(t)?rr(t,n):t,i=kt(s)?rr(s,n):s,a=new re.KeyValuePair(o,i);return r.set(e,a),a}if(e instanceof re.ot){const t=e=>rr(e,n),s=[...e].map(t),o=new re.ot(s);return r.set(e,o),o}if(e instanceof re.G6){const t=e=>rr(e,n),s=[...e].map(t),o=new re.G6(s);return r.set(e,o),o}if(kt(e)){const t=or(e);if(r.set(e,t),e.content)if(kt(e.content))t.content=rr(e.content,n);else if(e.content instanceof re.KeyValuePair)t.content=rr(e.content,n);else if(Array.isArray(e.content)){const r=e=>rr(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new er("Value provided to cloneDeep function couldn't be cloned",{value:e})};rr.safe=e=>{try{return rr(e)}catch{return e}};const nr=e=>{const{key:t,value:r}=e;return new re.KeyValuePair(t,r)},sr=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=rr(e.meta)),e.attributes.length>0&&(t._attributes=rr(e.attributes)),kt(e.content)){const r=e.content;t.content=sr(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof re.KeyValuePair?t.content=nr(e.content):t.content=e.content;return t},or=e=>{if(e instanceof re.KeyValuePair)return nr(e);if(e instanceof re.ot)return(e=>{const t=[...e];return new re.ot(t)})(e);if(e instanceof re.G6)return(e=>{const t=[...e];return new re.G6(t)})(e);if(kt(e))return sr(e);throw new tr("Value provided to cloneShallow function couldn't be cloned",{value:e})};or.safe=e=>{try{return or(e)}catch{return e}};const ir=e=>Vt(e)?"ObjectElement":Dt(e)?"ArrayElement":qt(e)?"MemberElement":Ct(e)?"StringElement":Bt(e)?"BooleanElement":Ut(e)?"NumberElement":Lt(e)?"NullElement":$t(e)?"LinkElement":Wt(e)?"RefElement":void 0,ar=e=>kt(e)?or(e):Et(e),_r=pe(ir,ot),ur={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const cr=(e,t,{keyMap:r=ur,...n}={})=>Mt(e,t,{keyMap:r,nodeTypeGetter:ir,nodePredicate:_r,nodeCloneFn:ar,...n});cr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=ur,...n}={})=>Mt[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:ir,nodePredicate:_r,nodeCloneFn:ar,...n});const lr=o((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})F(n,t)&&(s[n]=F(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)F(n,r)&&!F(n,s)&&(s[n]=r[n]);return s}));const dr=o((function e(t,r,n){return lr((function(r,n,s){return ve(n)&&ve(s)?e(t,n,s):t(r,n,s)}),r,n)}));const mr=s((function(e,t){return dr((function(e,t,r){return r}),e,t)}));const pr=s(Oe);const hr=de(0,-1);const fr=s((function(e,t){return e.apply(this,t)}));const yr=W(qe);var gr=n((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():h(e)?[]:_(e)?"":ve(e)?{}:j(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 wr=gr;const br=n((function(e){return null!=e&&Y(e,wr(e))}));const vr=Pe(R(1,qe(Array.isArray)?Array.isArray:pe(z,fe("Array"))),br);const Er=R(3,(function(e,t,r){var n=pr(e,r),s=pr(hr(e),r);if(!yr(n)&&!vr(e)){var o=oe(n,s);return fr(o,t)}})),xr=()=>({predicates:{...e},namespace:st}),Mr={toolboxCreator:xr,visitorOptions:{nodeTypeGetter:ir,exposeEdits:!0}},Sr=(e,t,r={})=>{if(0===t.length)return e;const n=mr(Mr,r),{toolboxCreator:s,visitorOptions:o}=n,i=s(),a=t.map((e=>e(i))),_=xt(a.map(l({},"visitor")),{...o});a.forEach(Er(["pre"],[]));const u=cr(e,_,o);return a.forEach(Er(["post"],[])),u};Sr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=mr(Mr,r),{toolboxCreator:s,visitorOptions:o}=n,i=s(),a=t.map((e=>e(i))),_=xt[Symbol.for("nodejs.util.promisify.custom")],u=cr[Symbol.for("nodejs.util.promisify.custom")],c=_(a.map(l({},"visitor")),{...o});await Promise.allSettled(a.map(Er(["pre"],[])));const d=await u(e,c,o);return await Promise.allSettled(a.map(Er(["post"],[]))),d};const Ar=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return kt(e)&&(e.meta.length>0&&(n.meta=rr(e.meta)),e.attributes.length>0&&(n.attributes=rr(e.attributes))),Sr(n,r,{toolboxCreator:xr,visitorOptions:{nodeTypeGetter:ir}})},Tr=e=>(t,r={})=>Ar(t,{...r,Type:e});re.Sh.refract=Tr(re.Sh),re.wE.refract=Tr(re.wE),re.Om.refract=Tr(re.Om),re.bd.refract=Tr(re.bd),re.Os.refract=Tr(re.Os),re.kT.refract=Tr(re.kT),re.Ft.refract=Tr(re.Ft),re.sI.refract=Tr(re.sI),ze.refract=Tr(ze),Xe.refract=Tr(Xe),Je.refract=Tr(Je),et.refract=Tr(et);const Or=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}pushChildren(...e){this.children.push(...e)}};class Ir{static toPosition(e){const t=new re.wE([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new re.wE([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),r.classes.push("position"),[t,r]}sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(Kt);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}enter(e){if(e instanceof Or&&!e.isNamed&&e.isMissing){const t=e.type||e.text,r=new ze(`(Missing ${t})`);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}document(e){const t=new Je;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new re.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new re.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new re.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new re.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new re.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new re.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new re.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new re.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,r,n){const s=!e.hasError,o=e.text,i=new ze(s?`(Unexpected ${o})`:`(Error ${o})`);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===n.length){const e=new Je;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new et,n=Ir.toPosition(e);if(null!==n){const[e,t]=n;r.push(e),r.push(t)}r.astNode=e,t.meta.set("sourceMap",r)}}const Rr=Ir;class Fr{cursor;constructor(e){this.cursor=e}document(){return new Or(this.cursor)}object(){return new Or(this.cursor).setFieldName(this.cursor)}array(){return new Or(this.cursor).setFieldName(this.cursor)}pair(){return new Or(this.cursor)}string(){return new Or(this.cursor).setFieldName(this.cursor)}number(){return new Or(this.cursor).setFieldName(this.cursor)}null(){return new Or(this.cursor).setFieldName(this.cursor)}true(){return new Or(this.cursor).setFieldName(this.cursor)}false(){return new Or(this.cursor).setFieldName(this.cursor)}ERROR(){return new Or(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Or(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Fr(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Fr(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const Pr=Fr,jr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...ur},Nr=e=>Zt(e)?"ParseResultElement":kt(e)?ir(e):bt(e),kr=e=>kt(e)||vt(e),Cr=(e,{sourceMap:t=!1}={})=>{const r=new Rr,n=e.walk(),s=new Pr(n),[o]=Array.from(s);return Mt(o,r,{keyMap:jr,nodeTypeGetter:Nr,nodePredicate:kr,state:{sourceMap:t}})};class Ur{static type="point";type=Ur.type;row;column;char;constructor({row:e,column:t,char:r}){this.row=e,this.column=t,this.char=r}}class Lr{static type="position";type=Lr.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const Br=Lr;const Vr=n((function(e){return u(0,e)}));const Dr=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:r=!1}={}){this.type=this.constructor.type,this.isMissing=r,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}};const qr=class extends Dr{};const $r=class extends qr{static type="document";get child(){return Vr(this.children)}};const Wr=class extends Dr{static type="parseResult";get rootNode(){return Vr(this.children)}};const Hr=class extends Dr{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}},Gr=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Zr=e=>Gr("string",e),zr=e=>Gr("false",e),Kr=e=>Gr("true",e),Xr=e=>Gr("null",e),Yr=e=>Gr("number",e),Jr=e=>Gr("array",e),Qr=e=>Gr("object",e),en=e=>Gr("property",e),tn=e=>Gr("key",e);const rn=class extends qr{static type="object";get properties(){return this.children.filter(en)}};const nn=class extends qr{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>Gr("stringContent",e))(e)||(e=>Gr("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}};const sn=class extends nn{static type="key"};const on=class extends qr{static type="property";get key(){return this.children.find(tn)}get value(){return this.children.find((e=>zr(e)||Kr(e)||Xr(e)||Yr(e)||Zr(e)||Jr(e)||Qr(e)))}};const an=class extends qr{static type="array";get items(){return this.children.filter((e=>zr(e)||Kr(e)||Xr(e)||Yr(e)||Zr(e)||Jr(e)||Qr))}};const _n=class extends qr{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const un=class extends _n{static type="stringContent"};const cn=class extends _n{static type="number"};const ln=class extends _n{static type="null"};const dn=class extends _n{static type="true"};const mn=class extends _n{static type="false"};const pn=class extends Dr{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}},hn={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class fn{static toPosition(e){const t=new Ur({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=new Ur({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new Br({start:t,end:r})}document={enter:e=>{const t=fn.toPosition(e);return new $r({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Wr({children:[e]})};enter(e){if(e instanceof Or&&!e.isNamed){const t=fn.toPosition(e),r=e.type||e.text,{isMissing:n}=e;return new Hr({value:r,position:t,isMissing:n})}}object(e){const t=fn.toPosition(e);return new rn({children:e.children,position:t,isMissing:e.isMissing})}pair(e){const t=fn.toPosition(e),r=e.children.slice(1),{keyNode:n}=e,s=new sn({children:(null==n?void 0:n.children)||[],position:null!=n?fn.toPosition(n):void 0,isMissing:null!=n&&n.isMissing});return new on({children:[s,...r],position:t,isMissing:e.isMissing})}array(e){const t=fn.toPosition(e);return new an({children:e.children,position:t,isMissing:e.isMissing})}string(e){const t=fn.toPosition(e),r=new un({value:JSON.parse(e.text)});return new nn({children:[r],position:t,isMissing:e.isMissing})}number(e){const t=fn.toPosition(e),r=e.text;return new cn({value:r,position:t,isMissing:e.isMissing})}null(e){const t=fn.toPosition(e),r=e.text;return new ln({value:r,position:t,isMissing:e.isMissing})}true(e){const t=fn.toPosition(e),r=e.text;return new dn({value:r,position:t,isMissing:e.isMissing})}false(e){const t=fn.toPosition(e),r=e.text;return new mn({value:r,position:t,isMissing:e.isMissing})}ERROR(e,t,r,n){const s=fn.toPosition(e),o=new pn({children:e.children,position:s,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===n.length?new Wr({children:[o]}):o}}const yn=fn,gn={[Wr.type]:["children"],[$r.type]:["children"],[rn.type]:["children"],[on.type]:["children"],[an.type]:["children"],[pn.type]:["children"],...ur},wn=e=>Zt(e)?"ParseResultElement":kt(e)?ir(e):bt(e),bn=e=>kt(e)||vt(e);const vn=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(Kt);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}document(e){const t=new Je;return t._content=e.children,t}object(e){const t=new re.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new re.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new re.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new re.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new re.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new re.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new re.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new re.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new re.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,r=new ze(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 ${e.value})`:`(Error ${e.value})`,o=new ze(s);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===n.length){const e=new Je;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new et;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)}},En=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),n=new Pr(r),[s]=Array.from(n),o=new yn,i=new vn,a=Mt(s,o,{keyMap:hn,state:{sourceMap:t}});return Mt(a.rootNode,i,{keyMap:gn,nodeTypeGetter:wn,nodePredicate:bn,state:{sourceMap:t}})},xn=(nt(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);const Mn=s((function(e,t){return p((function(r,n){return r[n]=e(t[n],n,t),r}),{},B(t))}));const Sn=n((function(e){return null==e}));var An=s((function(e,t){if(0===e.length||Sn(t))return!1;for(var r=t,n=0;n<e.length;){if(Sn(r)||!F(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const Tn=An;var On=s((function(e,t){return Tn([e],t)}));const In=On;const Rn=o((function(e,t,r){return e(c(t,r))}));const Fn=n((function(e){return R(e.length,e)}));const Pn=s((function(e,t){return R(e+1,(function(){var r=arguments[e];if(null!=r&&Re(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Te(r)+' does not have a method named "'+t+'"')}))}));const jn=Pn(1,"split");var Nn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=S,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 kn(e){return function(t){return new Nn(e,t)}}const Cn=s(E(["dropWhile"],kn,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return de(r,1/0,t)})));const Un=Pn(1,"join");const Ln=Fn((function(e,t){return pe(jn(""),Cn(Ot(e)),Un(""))(t)})),Bn=(e,t)=>{const r=i(e,t);return Mn((e=>{if(Ge(e)&&In("$ref",e)&&Rn(ot,"$ref",e)){const t=pr(["$ref"],e),n=Ln("#/",t);return pr(n.split("/"),r)}return Ge(e)?Bn(e,r):e}),e)};const Vn=function(){return!0},Dn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:ir(e),qn={EphemeralObject:["content"],EphemeralArray:["content"],...ur},$n=(e,t,{keyMap:r=qn,...n}={})=>cr(e,t,{keyMap:r,nodeTypeGetter:Dn,nodePredicate:Vn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});$n[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=qn,...r}={})=>cr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Dn,nodePredicate:Vn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Wn=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 Hn=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 Gn{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Hn(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 Wn(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Ct(e.href)?e.href.toValue():""}}const Zn=e=>kt(e)?Ct(e)||Ut(e)||Bt(e)||Lt(e)?e.toValue():$n(e,new Gn):e,zn=e=>{const t=e.meta.length>0?rr(e.meta):void 0,r=e.attributes.length>0?rr(e.attributes):void 0;return new e.constructor(void 0,t,r)},Kn=(e,t)=>t.clone&&t.isMergeableElement(e)?Yn(zn(e),e,t):e,Xn={clone:!0,isMergeableElement:e=>Vt(e)||Dt(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>Kn(e,r))),objectElementMerge:(e,t,r)=>{const n=Vt(e)?zn(e):zn(t);return Vt(e)&&e.forEach(((e,t,s)=>{const o=or(s);o.value=Kn(e,r),n.content.push(o)})),t.forEach(((t,s,o)=>{const i=Zn(s);let a;if(Vt(e)&&e.hasKey(i)&&r.isMergeableElement(t)){const n=e.get(i);a=or(o),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Yn;const r=t.customMerge(e,t);return"function"==typeof r?r:Yn})(s,r)(n,t)}else a=or(o),a.value=Kn(t,r);n.remove(i),n.content.push(a)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Yn=(e,t,r)=>{var n,s,o;const i={...Xn,...r};i.isMergeableElement=null!==(n=i.isMergeableElement)&&void 0!==n?n:Xn.isMergeableElement,i.arrayElementMerge=null!==(s=i.arrayElementMerge)&&void 0!==s?s:Xn.arrayElementMerge,i.objectElementMerge=null!==(o=i.objectElementMerge)&&void 0!==o?o:Xn.objectElementMerge;const a=Dt(t);if(!(a===Dt(e)))return Kn(t,i);const _=a&&"function"==typeof i.arrayElementMerge?i.arrayElementMerge(e,t,i):i.objectElementMerge(e,t,i);return _.meta=(e=>"function"!=typeof e.customMetaMerge?e=>rr(e):e.customMetaMerge)(i)(e.meta,t.meta),_.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>rr(e):e.customAttributesMerge)(i)(e.attributes,t.attributes),_};Yn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new re.Sh:e.reduce(((e,r)=>Yn(e,r,t)),zn(e[0]))};const Jn=Yn;const Qn=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Jn(t.meta,e.meta),Xt(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Jn(t.attributes,e.attributes))}};const es=class extends Qn{enter(e){return this.element=rr(e),wt}},ts=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},rs=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:rs(r,[...t,r])},ns=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>rs(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,o=Object.create(s),i=rs(s);for(let t of e){let e=rs(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===i.indexOf(n)&&(ts(o,n,["constructor",...r]),i.push(n))}}return o.constructor=t,o},ss=e=>e.filter(((t,r)=>e.indexOf(t)==r)),os=(e,t)=>{const r=t.map((e=>rs(e)));let n=0,s=!0;for(;s;){s=!1;for(let o=t.length-1;o>=0;o--){const t=r[o][n];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[o][0]}n++}},is=(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(os(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==os(n,e)||void 0!==t[n],get:(r,n)=>(os(n,e)||t)[n],set(t,r,n){const s=os(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)))))}),as=null,_s="copy",us="copy",cs="deep",ls=new WeakMap,ds=e=>ls.get(e),ms=(e,t)=>{var r,n;const s=ss([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),o={};for(let i of s)o[i]=ss([...null!==(r=null==e?void 0:e[i])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[i])&&void 0!==n?n:[]]);return o},ps=(e,t)=>{var r,n,s,o;return{property:ms(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:ms(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(o=null==t?void 0:t.method)&&void 0!==o?o:{})}},hs=(e,t)=>{var r,n,s,o,i,a;return{class:ss([...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:ps(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(o=null==t?void 0:t.static)&&void 0!==o?o:{}),instance:ps(null!==(i=null==e?void 0:e.instance)&&void 0!==i?i:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},fs=new Map,ys=(...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=[...rs(e.prototype).map((e=>e.constructor)),...null!==(t=ds(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=>fs.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>hs(e,t)))},gs=e=>{let t=fs.get(e);return t||(t={},fs.set(e,t)),t};function ws(...e){var t,r,n;const s=e.map((e=>e.prototype)),o=as;if(null!==o){const e=s.map((e=>e[o])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[o]:t};s.push(r)}function i(...t){for(const r of e)ts(this,new r(...t));null!==o&&"function"==typeof this[o]&&this[o].apply(this,t)}var a,_;i.prototype="copy"===us?ns(s,i):(a=s,_=i,is([...a,{constructor:_}])),Object.setPrototypeOf(i,"copy"===_s?ns(e,null,["prototype"]):is(e,Function.prototype));let u=i;if("none"!==cs){const s="deep"===cs?ys(...e):((...e)=>{const t=e.map((e=>gs(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>hs(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)}bs(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},u),bs(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},u.prototype)}var c,l;return c=u,l=e,ls.set(c,l),u}const bs=(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 vs=s((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}));const Es=class extends Qn{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return vs(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=pr(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ie(qe,["visitors",...e],this.specObj)?pr(["visitors",...e],this.specObj):pr(["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 es&&(null==n?void 0:n.constructor)===es?rr(t):(cr(t,n,r),n.element)}};class xs extends re.Om{constructor(e,t,r){super(e,t,r),this.element="requirementLevel"}}const Ms=xs;class Ss extends(ws(Es,es)){StringElement(e){const t=new Ms(Zn(e));return this.copyMetaAndAttributes(e,t),this.element=t,wt}}const As=Ss;class Ts extends re.wE{constructor(e,t,r){super(e,t,r),this.element="standardIdentifier"}}const Os=Ts;class Is extends(ws(Es,es)){constructor(e){super(e),this.element=new Os}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","StandardIdentifier"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),wt}}const Rs=Is;class Fs extends re.Sh{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 Ps=Fs;const js=class extends Es{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(Ct(n)&&r.includes(Zn(n))&&!this.ignoredFields.includes(Zn(n))){const r=this.toRefractedElement([...t,"fixedFields",Zn(n)],e),o=new re.Pr(rr(n),r);o.classes.push("fixed-field"),this.copyMetaAndAttributes(s,o),this.element.content.push(o)}else this.ignoredFields.includes(Zn(n))||this.element.content.push(rr(s))})),this.copyMetaAndAttributes(e,this.element),wt}};class Ns extends(ws(js,es)){constructor(e){super(e),this.element=new Ps,this.specPath=J(["document","objects","Requirement"])}}const ks=Ns;class Cs extends re.Sh{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 Us=Cs;class Ls extends(ws(js,es)){constructor(e){super(e),this.element=new Us,this.specPath=J(["document","objects","Scenario"])}}const Bs=Ls;class Vs extends(ws(Es,es)){constructor(e){super(e),this.element=new re.wE,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),wt}}const Ds=Vs;class qs extends re.Sh{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 $s=qs;class Ws extends(ws(js,es)){constructor(e){super(e),this.element=new $s,this.specPath=J(["document","objects","Standard"])}}const Hs=Ws;class Gs extends re.Sh{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 Zs=Gs;class zs extends(ws(js,es)){constructor(e){super(e),this.element=new Zs,this.specPath=J(["document","objects","Principle"])}}const Ks=zs;class Xs extends re.Sh{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 Ys=Xs;class Js extends(ws(js,es)){constructor(e){super(e),this.specPath=J(["document","objects","Info"]),this.element=new Ys}}const Qs=Js;class eo extends re.Sh{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 to=eo;class ro extends(ws(js,es)){constructor(e){super(e),this.element=new to,this.specPath=J(["document","objects","Main"])}}const no=ro;class so extends(ws(Es,es)){constructor(e){super(e),this.element=new re.wE,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),wt}}const oo=so;class io extends(ws(Es,es)){constructor(e){super(e),this.element=new re.wE,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),wt}}const ao=io;class _o extends(ws(Es,es)){constructor(e){super(e),this.element=new re.wE,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),wt}}const uo={visitors:{value:es,document:{objects:{Main:{$visitor:no,fixedFields:{version:{$ref:"#/visitors/value"},info:{$ref:"#/visitors/document/objects/Info"},principles:oo,standards:ao,scenarios:_o}},Info:{$visitor:Qs,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Principle:{$visitor:Ks,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},iri:{$ref:"#/visitors/value"},level:{$ref:"#/visitors/document/objects/RequirementLevel"}}},Standard:{$visitor:Hs,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},level:{$ref:"#/visitors/document/objects/RequirementLevel"},iri:{$ref:"#/visitors/value"}}},Scenario:{$visitor:Bs,fixedFields:{description:{$ref:"#/visitors/value"},when:{$ref:"#/visitors/document/objects/StandardIdentifier"},then:Ds}},Requirement:{$visitor:ks,fixedFields:{subject:{$ref:"#/visitors/document/objects/StandardIdentifier"},level:{$ref:"#/visitors/document/objects/RequirementLevel"},values:{$ref:"#/visitors/value"},follows:{$ref:"#/visitors/value"}}},StandardIdentifier:{$visitor:Rs},RequirementLevel:{$visitor:As}}}}},co=e=>{if(kt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},lo={MainElement:["content"],InfoElement:["content"],PrincipleElement:["content"],StandardElement:["content"],ScenarioElement:["content"],RequirementElement:["content"],StandardIdentifierElement:["content"],RequirementLevelElement:[],...ur},mo=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof to||e(n)&&t("main",n)&&r("object",n))),po=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ys||e(n)&&t("info",n)&&r("object",n))),ho=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zs||e(n)&&t("principle",n)&&r("object",n))),fo=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ps||e(n)&&t("requirement",n)&&r("object",n))),yo=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ms||e(n)&&t("requirementLevel",n)&&r("string",n))),go=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Us||e(n)&&t("scenario",n)&&r("object",n))),wo=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $s||e(n)&&t("standard",n)&&r("object",n))),bo=Nt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Os||e(n)&&t("standardIdentifier",n)&&r("array",n))),vo={namespace:e=>{const{base:t}=e;return t.register("info",Ys),t.register("main",to),t.register("principle",Zs),t.register("requirement",Ps),t.register("requirementLevel",Ms),t.register("scenario",Us),t.register("standard",$s),t.register("standardIdentifier",Os),t}},Eo=()=>{const e=nt(vo);return{predicates:{...t,isStringElement:Ct},namespace:e}},xo=(e,{specPath:t=["visitors","document","objects","Main","$visitor"],plugins:r=[]}={})=>{const n=(0,re.e)(e),s=Bn(uo),o=new(pr(t,s))({specObj:s});return cr(n,o),Sr(o.element,r,{toolboxCreator:Eo,visitorOptions:{keyMap:lo,nodeTypeGetter:co}})},Mo=e=>(t,r={})=>xo(t,{...r,specPath:e});to.refract=Mo(["visitors","document","objects","Main","$visitor"]),Ys.refract=Mo(["visitors","document","objects","Info","$visitor"]),Zs.refract=Mo(["visitors","document","objects","Principle","$visitor"]),Ps.refract=Mo(["visitors","document","objects","Requirement","$visitor"]),Ms.refract=Mo(["visitors","document","objects","RequirementLevel","$visitor"]),Us.refract=Mo(["visitors","document","objects","Scenario","$visitor"]),$s.refract=Mo(["visitors","document","objects","Standard","$visitor"]),Os.refract=Mo(["visitors","document","objects","StandardIdentifier","$visitor"]);const So=n((function(e){return u(-1,e)}));const Ao=class extends dt{};const To=class extends Ao{};const Oo=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new To("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new To("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new To("latest method in MediaTypes class is not yet implemented.")}};class Io extends Oo{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 So(this.filterByFormat(e))}}const Ro=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"),Fo=new Io(...Ro.filterByFormat("generic"),...Ro.filterByFormat("json")),Po=/"version"\s*:\s*"(?<version_json>2021-05-07)"/,jo=async e=>Po.test(e)&&await(async e=>{if(!xn.test(e))return!1;try{return"ERROR"!==(await ft(e)).rootNode.type}catch{return!1}})(e),No=async(e,t={})=>{const r=l({},"refractorOpts",t),n=m(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const n=await ft(e);let s;return s="indirect"===r?En(n,{sourceMap:t}):Cr(n,{sourceMap:t}),s})(e,n),{result:o}=s;if(te(o)){const e=to.refract(o,r);e.classes.push("result"),s.replaceResult(e)}return s},ko=nt(vo)})(),__webpack_exports__})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterApiDesignSystemsJson=t():e.apidomParserAdapterApiDesignSystemsJson=t()}(self,(()=>(()=>{var __webpack_modules__={85:(e,t,r)=>{"use strict";r(9828);var n=r(1100),s=r(8900),o=r(1811),i=r(6625);for(var a in n)o(s[a],a),i[a]=i.Array},88:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},164:(e,t,r)=>{"use strict";var n=r(9098),s=r(4713),o=r(4871),i=r(3410),a=r(2769),_=r(1926),u=r(3671),c=r(3491),l=r(1811),d=r(3999),m=r(3508),p=r(8655),h=r(6625),f=r(2621),y=i.PROPER,g=i.CONFIGURABLE,w=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,v=p("iterator"),E="keys",x="values",M="entries",S=function(){return this};e.exports=function(e,t,r,i,p,f,A){_(r,t,i);var T,O,I,R=function(e){if(e===p&&C)return C;if(!b&&e&&e in j)return j[e];switch(e){case E:case x:case M:return function(){return new r(this,e)}}return function(){return new r(this)}},F=t+" Iterator",P=!1,j=e.prototype,N=j[v]||j["@@iterator"]||p&&j[p],C=!b&&N||R(p),k="Array"===t&&j.entries||N;if(k&&(T=u(k.call(new e)))!==Object.prototype&&T.next&&(o||u(T)===w||(c?c(T,w):a(T[v])||m(T,v,S)),l(T,F,!0,!0),o&&(h[F]=S)),y&&p===x&&N&&N.name!==x&&(!o&&g?d(j,"name",x):(P=!0,C=function(){return s(N,this)})),p)if(O={values:R(x),keys:f?C:R(E),entries:R(M)},A)for(I in O)(b||P||!(I in j))&&m(j,I,O[I]);else n({target:t,proto:!0,forced:b||P},O);return o&&!A||j[v]===C||m(j,v,C,{name:p}),h[t]=C,O}},195:(e,t,r)=>{var n=r(4882),s=r(8121),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},208:(e,t,r)=>{"use strict";var n=r(4572),s=r(4713),o=r(7235),i=r(459),a=r(2877),_=r(8130),u=r(4317),c=r(1613),l=r(967),d=r(1743),m=TypeError,p=function(e,t){this.stopped=e,this.result=t},h=p.prototype;e.exports=function(e,t,r){var f,y,g,w,b,v,E,x=r&&r.that,M=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),T=!(!r||!r.INTERRUPTED),O=n(t,x),I=function(e){return f&&d(f,"normal",e),new p(!0,e)},R=function(e){return M?(o(e),T?O(e[0],e[1],I):O(e[0],e[1])):T?O(e,I):O(e)};if(S)f=e.iterator;else if(A)f=e;else{if(!(y=l(e)))throw new m(i(e)+" is not iterable");if(a(y)){for(g=0,w=_(e);w>g;g++)if((b=R(e[g]))&&u(h,b))return b;return new p(!1)}f=c(e,y)}for(v=S?e.next:f.next;!(E=s(v,f)).done;){try{b=R(E.value)}catch(e){d(f,"throw",e)}if("object"==typeof b&&b&&u(h,b))return b}return new p(!1)}},239:(e,t,r)=>{"use strict";r(5442);var n=r(6656);r(85),e.exports=n},262:(e,t,r)=>{"use strict";var n=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},353:(e,t,r)=>{var n=r(1340),s=r(3934),o=r(8861),i=r(1182),a=r(8486),_=r(3142),u=r(5853),c=r(8666),l="[object Arguments]",d="[object Array]",m="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,h,f,y){var g=_(e),w=_(t),b=g?d:a(e),v=w?d:a(t),E=(b=b==l?m:b)==m,x=(v=v==l?m:v)==m,M=b==v;if(M&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(M&&!E)return y||(y=new n),g||c(e)?s(e,t,r,h,f,y):o(e,t,b,r,h,f,y);if(!(1&r)){var S=E&&p.call(e,"__wrapped__"),A=x&&p.call(t,"__wrapped__");if(S||A){var T=S?e.value():e,O=A?t.value():t;return y||(y=new n),f(T,O,r,h,y)}}return!!M&&(y||(y=new n),i(e,t,r,h,f,y))}},358:(e,t,r)=>{var n=r(6137),s=r(3283),o=r(3142),i=r(5853),a=r(9632),_=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),c=!r&&s(e),l=!r&&!c&&i(e),d=!r&&!c&&!l&&_(e),m=r||c||l||d,p=m?n(e.length,String):[],h=p.length;for(var f in e)!t&&!u.call(e,f)||m&&("length"==f||l&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,h))||p.push(f);return p}},393:(e,t,r)=>{var n=r(8244),s=r(7979),o=r(1211);e.exports=function(e){return n(e,o,s)}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const 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]))}))}}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},484:(e,t,r)=>{"use strict";var n=r(9098),s=r(8900),o=r(7013),i=r(6453),a="WebAssembly",_=s[a],u=7!==new Error("e",{cause:7}).cause,c=function(e,t){var r={};r[e]=i(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},l=function(e,t){if(_&&_[e]){var r={};r[e]=i(a+"."+e,t,u),n({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};c("Error",(function(e){return function(t){return o(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),c("URIError",(function(e){return function(t){return o(e,this,arguments)}})),l("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),l("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),l("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},493:(e,t,r)=>{"use strict";var n=r(4713),s=r(262),o=r(6281),i=r(4674),a=r(9258),_=r(8655),u=TypeError,c=_("toPrimitive");e.exports=function(e,t){if(!s(e)||o(e))return e;var r,_=i(e,c);if(_){if(void 0===t&&(t="default"),r=n(_,e,t),!s(r)||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,r)=>{const n=r(8631);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)}}},674:(e,t,r)=>{var n=r(7379),s=r(5387),o=r(547),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&s(e.length)&&!!i[n(e)]}},701:(e,t,r)=>{"use strict";var n=r(6100),s=r(2137),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(s(e),t)}},814:(e,t,r)=>{"use strict";var n=r(2769),s=r(459),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not a function")}},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},967:(e,t,r)=>{"use strict";var n=r(8407),s=r(4674),o=r(3057),i=r(6625),a=r(8655)("iterator");e.exports=function(e){if(!o(e))return s(e,a)||s(e,"@@iterator")||i[n(e)]}},986:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},1003:(e,t,r)=>{"use strict";var n=r(8099),s=r(8900),o=r(2769),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e])||i(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},1005:(e,t,r)=>{"use strict";var n=r(3273),s=r(4574),o=r(8130),i=function(e){return function(t,r,i){var a=n(t),_=o(a);if(0===_)return!e&&-1;var u,c=s(i,_);if(e&&r!=r){for(;_>c;)if((u=a[c++])!=u)return!0}else for(;_>c;c++)if((e||c in a)&&a[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},1112:(e,t,r)=>{var n=r(4497),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}},1129: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}},1139:(e,t,r)=>{"use strict";var n=r(8407),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},1182:(e,t,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,i,a){var _=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!_)return!1;for(var l=c;l--;){var d=u[l];if(!(_?d in t:s.call(t,d)))return!1}var m=a.get(e),p=a.get(t);if(m&&p)return m==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var f=_;++l<c;){var y=e[d=u[l]],g=t[d];if(o)var w=_?o(g,y,d,t,e,a):o(y,g,d,e,t,a);if(!(void 0===w?y===g||i(y,g,r,o,a):w)){h=!1;break}f||(f="constructor"==d)}if(h&&!f){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(h=!1)}return a.delete(e),a.delete(t),h}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1211:(e,t,r)=>{var n=r(358),s=r(195),o=r(6529);e.exports=function(e){return o(e)?n(e):s(e)}},1212:(e,t,r)=>{e.exports=r(8411)},1268:(e,t,r)=>{"use strict";var n=r(6100),s=0,o=Math.random(),i=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++s+o,36)}},1314:(e,t,r)=>{"use strict";var n=r(8900),s=r(2769),o=n.WeakMap;e.exports=s(o)&&/native code/.test(String(o))},1330:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,r)=>{var n=r(1386),s=r(4103),o=r(1779),i=r(4162),a=r(7462),_=r(6638);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=_,e.exports=u},1386:(e,t,r)=>{var n=r(2393),s=r(2049),o=r(7144),i=r(7452),a=r(3964);function _(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])}}_.prototype.clear=n,_.prototype.delete=s,_.prototype.get=o,_.prototype.has=i,_.prototype.set=a,e.exports=_},1395:(e,t,r)=>{"use strict";var n=r(6100),s=r(1203),o=r(9932),i=Object,a=n("".split);e.exports=s((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?a(e,""):i(e)}:i},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1613:(e,t,r)=>{"use strict";var n=r(4713),s=r(814),o=r(7235),i=r(459),a=r(967),_=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(s(r))return o(n(r,e));throw new _(i(e)+" is not iterable")}},1623:(e,t,r)=>{var n=r(8942).Uint8Array;e.exports=n},1743:(e,t,r)=>{"use strict";var n=r(4713),s=r(7235),o=r(4674);e.exports=function(e,t,r){var i,a;s(e);try{if(!(i=o(e,"return"))){if("throw"===t)throw r;return r}i=n(i,e)}catch(e){a=!0,i=e}if("throw"===t)throw r;if(a)throw i;return s(i),r}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},1780:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,r)=>{"use strict";var n=r(4904),s=r(9989).f,o=r(3999),i=r(701),a=r(9559),_=r(8655)("toStringTag");e.exports=function(e,t,r,u){var c=r?e:e&&e.prototype;c&&(i(c,_)||s(c,_,{configurable:!0,value:t}),u&&!n&&o(c,"toString",a))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),o=r(480),i=r(1811),a=r(6625),_=function(){return this};e.exports=function(e,t,r,u){var c=t+" Iterator";return e.prototype=s(n,{next:o(+!u,r)}),i(e,c,!1,!0),a[c]=_,e}},1950:(e,t,r)=>{var n=r(8942)["__core-js_shared__"];e.exports=n},1966:(e,t,r)=>{"use strict";var n=r(2937),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o("Can't set "+s(e)+" as a prototype")}},2049:(e,t,r)=>{var n=r(7034),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)}},2137:(e,t,r)=>{"use strict";var n=r(5426),s=Object;e.exports=function(e){return s(n(e))}},2306:(e,t,r)=>{e=r.nmd(e);var n=r(4967),s=t&&!t.nodeType&&t,o=s&&e&&!e.nodeType&&e,i=o&&o.exports===s&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2536:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},2555:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},2621:(e,t,r)=>{"use strict";var n,s,o,i=r(1203),a=r(2769),_=r(262),u=r(5780),c=r(3671),l=r(3508),d=r(8655),m=r(4871),p=d("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(s=c(c(o)))!==Object.prototype&&(n=s):h=!0),!_(n)||i((function(){var e={};return n[p].call(e)!==e}))?n={}:m&&(n=u(n)),a(n[p])||l(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2871:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,r)=>{"use strict";var n=r(8655),s=r(6625),o=n("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||i[o]===e)}},2937:(e,t,r)=>{"use strict";var n=r(262);e.exports=function(e){return n(e)||null===e}},3004:(e,t,r)=>{const n=r(8631);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")}}},3057:e=>{"use strict";e.exports=function(e){return null==e}},3078:()=>{},3085:(e,t,r)=>{"use strict";var n=r(9098),s=r(4317),o=r(3671),i=r(3491),a=r(7464),_=r(5780),u=r(3999),c=r(480),l=r(8148),d=r(4279),m=r(208),p=r(4879),h=r(8655)("toStringTag"),f=Error,y=[].push,g=function(e,t){var r,n=s(w,this);i?r=i(new f,n?o(this):w):(r=n?this:_(w),u(r,h,"Error")),void 0!==t&&u(r,"message",p(t)),d(r,g,r.stack,1),arguments.length>2&&l(r,arguments[2]);var a=[];return m(e,y,{that:a}),u(r,"errors",a),r};i?i(g,f):a(g,f,{name:!0});var w=g.prototype=_(f.prototype,{constructor:c(1,g),message:c(1,""),name:c(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},3103:(e,t,r)=>{var n=r(4715)(r(8942),"DataView");e.exports=n},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,r)=>{const n=r(394);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]))}))}}},3212:(e,t,r)=>{var n=r(8250),s=r(1877),o=r(8006);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=s,i.prototype.has=o,e.exports=i},3273:(e,t,r)=>{"use strict";var n=r(1395),s=r(5426);e.exports=function(e){return n(s(e))}},3283:(e,t,r)=>{var n=r(6027),s=r(547),o=Object.prototype,i=o.hasOwnProperty,a=o.propertyIsEnumerable,_=n(function(){return arguments}())?n:function(e){return s(e)&&i.call(e,"callee")&&!a.call(e,"callee")};e.exports=_},3305:(e,t,r)=>{var n=r(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},3311:(e,t,r)=>{const n=r(1517),s=r(4123);class o extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new o(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=o},3410:(e,t,r)=>{"use strict";var n=r(5024),s=r(701),o=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,a=s(o,"name"),_=a&&"something"===function(){}.name,u=a&&(!n||n&&i(o,"name").configurable);e.exports={EXISTS:a,PROPER:_,CONFIGURABLE:u}},3489:(e,t,r)=>{"use strict";var n=r(1003);e.exports=n("document","documentElement")},3491:(e,t,r)=>{"use strict";var n=r(3574),s=r(262),o=r(5426),i=r(1966);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 o(r),i(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},3507:(e,t,r)=>{"use strict";var n=r(2769),s=r(262),o=r(3491);e.exports=function(e,t,r){var i,a;return o&&n(i=t.constructor)&&i!==r&&s(a=i.prototype)&&a!==r.prototype&&o(e,a),e}},3508:(e,t,r)=>{"use strict";var n=r(3999);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},3531:(e,t,r)=>{"use strict";var n=r(8900).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},3574:(e,t,r)=>{"use strict";var n=r(6100),s=r(814);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},3655:(e,t,r)=>{var n=r(7379),s=r(1580);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}},3671:(e,t,r)=>{"use strict";var n=r(701),s=r(2769),o=r(2137),i=r(4275),a=r(2871),_=i("IE_PROTO"),u=Object,c=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=o(e);if(n(t,_))return t[_];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?c:null}},3753:(e,t,r)=>{"use strict";var n=r(4871),s=r(8900),o=r(7525),i="__core-js_shared__",a=e.exports=s[i]||o(i,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},3832:(e,t,r)=>{"use strict";var n=r(5571).charAt,s=r(1139),o=r(8417),i=r(164),a=r(877),_="String Iterator",u=o.set,c=o.getterFor(_);i(String,"String",(function(e){u(this,{type:_,string:s(e),index:0})}),(function(){var e,t=c(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))}))},3833:(module,__unused_webpack_exports,__webpack_require__)=>{var __dirname="/",Module=void 0!==Module?Module:{},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(3078),nodePath=__webpack_require__(4142);scriptDirectory=__dirname+"/",readBinary=e=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e)),readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise(((r,n)=>{fs.readFile(e,t?void 0:"utf8",((e,s)=>{e?n(e):r(t?s.buffer:s)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>isFileURI(e)?new Promise(((t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{(200==n.status||0==n.status&&n.response)&&r(n.response),t(n.status)},n.onerror=t,n.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary,wasmMemory;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP_DATA_VIEW;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies?.(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function findWasmBinary(){var e="tree-sitter.wasm";return isDataURI(e)?e:locateFile(e)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary?Promise.resolve().then((()=>getBinarySync(e))):readAsync(e).then((e=>new Uint8Array(e)),(()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(r,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,r,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,r,n):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(n,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,r,n)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})),{}}var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},LE_HEAP_LOAD_F32=e=>HEAP_DATA_VIEW.getFloat32(e,!0),LE_HEAP_LOAD_F64=e=>HEAP_DATA_VIEW.getFloat64(e,!0),LE_HEAP_LOAD_I16=e=>HEAP_DATA_VIEW.getInt16(e,!0),LE_HEAP_LOAD_I32=e=>HEAP_DATA_VIEW.getInt32(e,!0),LE_HEAP_LOAD_U32=e=>HEAP_DATA_VIEW.getUint32(e,!0),LE_HEAP_STORE_F32=(e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),LE_HEAP_STORE_F64=(e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),LE_HEAP_STORE_I16=(e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),LE_HEAP_STORE_I32=(e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),LE_HEAP_STORE_U32=(e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t,r)=>{for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,s));for(var o="";t<s;){var i=e[t++];if(128&i){var a=63&e[t++];if(192!=(224&i)){var _=63&e[t++];if((i=224==(240&i)?(15&i)<<12|a<<6|_:(7&i)<<18|a<<12|_<<6|63&e[t++])<65536)o+=String.fromCharCode(i);else{var u=i-65536;o+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else o+=String.fromCharCode((31&i)<<6|a)}else o+=String.fromCharCode(i)}return o},getDylinkMetadata=e=>{var t=0,r=0;function n(){for(var r=0,n=1;;){var s=e[t++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}function s(){var r=n();return UTF8ArrayToString(e,(t+=r)-r,r)}function o(e,t){if(e)throw new Error(t)}var i="dylink.0";if(e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,i);0===a.length&&(i="dylink",a=WebAssembly.Module.customSections(e,i)),o(0===a.length,"need dylink section"),r=(e=new Uint8Array(a[0])).length}else{var _=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);o(!(1836278016==_[0]||6386541==_[0]),"need to see wasm magic number"),o(0!==e[8],"need the dylink section to be first"),t=9;var u=n();r=t+u,i=s()}var c={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==i){c.memorySize=n(),c.memoryAlign=n(),c.tableSize=n(),c.tableAlign=n();for(var l=n(),d=0;d<l;++d){var m=s();c.neededDynlibs.push(m)}}else{o("dylink.0"!==i);for(;t<r;){var p=e[t++],h=n();if(1===p)c.memorySize=n(),c.memoryAlign=n(),c.tableSize=n(),c.tableAlign=n();else if(2===p)for(l=n(),d=0;d<l;++d)m=s(),c.neededDynlibs.push(m);else if(3===p)for(var f=n();f--;){var y=s();256&n()&&c.tlsExports.add(y)}else if(4===p)for(f=n();f--;){s(),y=s();1==(3&n())&&c.weakImports.add(y)}else t+=h}}return c};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,r)=>{var n={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=n,null!=t&&(LDSO.loadedLibsByHandle[t]=n),n},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=(e,t)=>(HEAPU8.fill(0,e,e+t),e),alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n<e.length;++n)r.parameters.push(t[e[n]]);return r},generateFuncType=(e,t)=>{var r=e.slice(0,1),n=e.slice(1),s={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(n.length,t);for(var o=0;o<n.length;++o)t.push(s[n[o]]);"v"==r?t.push(0):t.push(1,s[r])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,n),n.push(...r),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var s=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(s,{e:{f:e}}).exports.f},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;var s=convertJsFunctionToWasm(e,t);setWasmTableEntry(n,s)}return functionsInTableMap.set(e,n),n},updateGOT=(e,t)=>{for(var r in e)if(!isInternalSym(r)){var n=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[r].value)&&("function"==typeof n?GOT[r].value=addFunction(n):"number"==typeof n?GOT[r].value=n:err(`unhandled export type for '${r}': ${typeof n}`))}},relocateExports=(e,t,r)=>{var n={};for(var s in e){var o=e[s];"object"==typeof o&&(o=o.value),"number"==typeof o&&(o+=t),n[s]=o}return updateGOT(n,r),n},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,r)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...r)),dynCall=(e,t,r=[])=>e.includes("j")?dynCallLegacy(e,t,r):getWasmTableEntry(t)(...r),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...r)=>{var n=stackSave();try{return dynCall(e,t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var r;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")&&(r=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:r,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+8];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32(4*(handle+12>>2),memoryBase),LE_HEAP_STORE_I32(4*(handle+16>>2),metadata.memorySize),LE_HEAP_STORE_U32(4*(handle+20>>2),tableBase),LE_HEAP_STORE_I32(4*(handle+24>>2),metadata.tableSize))}else memoryBase=LE_HEAP_LOAD_U32(4*(handle+12>>2)),tableBase=LE_HEAP_LOAD_U32(4*(handle+20>>2));var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];var r;t in e||(e[t]=(...e)=>(r||=resolveSymbol(t),r(...e)));return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(","),cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags,localScope)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[r,n]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=n)};e(r);const t="__main_argc_argv";"main"==r&&e(t),r==t&&e("main"),r.startsWith("dynCall_")&&!Module.hasOwnProperty(r)&&(Module[r]=n)}},asyncLoad=(e,t,r,n)=>{var s=n?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),s&&removeRunDependency(s)}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),s&&addRunDependency(s)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,n){var s=LDSO.loadedLibsByName[e];if(s)return t.global?s.global||(s.global=!0,mergeLibSymbols(s.exports,e)):r&&Object.assign(r,s.exports),t.nodelete&&s.refcount!==1/0&&(s.refcount=1/0),s.refcount++,n&&(LDSO.loadedLibsByHandle[n]=s),!t.loadAsync||Promise.resolve(!0);function o(){if(n){var r=LE_HEAP_LOAD_U32(4*(n+28>>2)),s=LE_HEAP_LOAD_U32(4*(n+32>>2));if(r&&s){var o=HEAP8.slice(r,r+s);return t.loadAsync?Promise.resolve(o):o}}var i=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(i,e,t)}));if(!readBinary)throw new Error(`${i}: file not found, and synchronous loading of external files is not available`);return readBinary(i)}function i(){return t.loadAsync?o().then((s=>loadWebAssemblyModule(s,t,e,r,n))):loadWebAssemblyModule(o(),t,e,r,n)}function a(t){s.global?mergeLibSymbols(t,e):r&&Object.assign(r,t),s.exports=t}return(s=newDSO(e,n,"loading")).refcount=t.nodelete?1/0:1,s.global=t.global,t.loadAsync?i().then((e=>(a(e),!0))):(a(i()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else{if("number"!=typeof r)throw new Error(`bad export type for '${e}': ${typeof r}`);t.value=r}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("loadDylibs"),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")}))):reportUndefinedSymbols()},noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${r}`)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=(e,t,r)=>HEAPU8.copyWithin(e,t,t+r);__emscripten_memcpy_js.sig="vppp";var _emscripten_date_now=()=>Date.now(),_emscripten_get_now;_emscripten_date_now.sig="d",_emscripten_get_now=()=>performance.now(),_emscripten_get_now.sig="d";var getHeapMax=()=>2147483648,growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var n,s,o=1;o<=4;o*=2){var i=t*(1+.2/o);i=Math.min(i,e+100663296);var a=Math.min(r,(n=Math.max(e,i))+((s=65536)-n%s)%s);if(growMemory(a))return!0}return!1};_emscripten_resize_heap.sig="ip";var _fd_close=e=>52;_fd_close.sig="ii";var convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function _fd_seek(e,t,r,n,s){convertI32PairToI53Checked(t,r);return 70}_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var r=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(r,0)),r.length=0):r.push(t)},_fd_write=(e,t,r,n)=>{for(var s=0,o=0;o<r;o++){var i=LE_HEAP_LOAD_U32(4*(t>>2)),a=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var _=0;_<a;_++)printChar(e,HEAPU8[i+_]);s+=a}return LE_HEAP_STORE_U32(4*(n>>2),s),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const r=UTF8ToString(t);currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,n,s){const o=currentParseCallback(t,{row:r,column:n});"string"==typeof o?(setValue(s,o.length,"i32"),stringToUTF16(o,e,10240)):setValue(s,0,"i32")}_fd_write.sig="iippp";var runtimeKeepaliveCounter=0,keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0,_proc_exit=e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))};_proc_exit.sig="vi";var exitJS=(e,t)=>{EXITSTATUS=e,_proc_exit(e)},handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},lengthBytesUTF8=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},stringToUTF8Array=(e,t,r,n)=>{if(!(n>0))return 0;for(var s=r,o=r+n-1,i=0;i<e.length;++i){var a=e.charCodeAt(i);if(a>=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i);if(a<=127){if(r>=o)break;t[r++]=a}else if(a<=2047){if(r+1>=o)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=o)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=o)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},stringToUTF8=(e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},stringToUTF16=(e,t,r)=>{if(r??=2147483647,r<2)return 0;for(var n=t,s=(r-=2)<2*e.length?r/2:e.length,o=0;o<s;++o){var i=e.charCodeAt(o);LE_HEAP_STORE_I16(2*(t>>1),i),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-n},AsciiToString=e=>{for(var t="";;){var r=HEAPU8[e++];if(!r)return t;t+=String.fromCharCode(r)}},wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports.__wasm_call_ctors)(),___wasm_apply_data_relocs=()=>(___wasm_apply_data_relocs=wasmExports.__wasm_apply_data_relocs)(),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t),_realloc=Module._realloc=(e,t)=>(_realloc=Module._realloc=wasmExports.realloc)(e,t),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_ts_language_symbol_count=Module._ts_language_symbol_count=e=>(_ts_language_symbol_count=Module._ts_language_symbol_count=wasmExports.ts_language_symbol_count)(e),_ts_language_state_count=Module._ts_language_state_count=e=>(_ts_language_state_count=Module._ts_language_state_count=wasmExports.ts_language_state_count)(e),_ts_language_version=Module._ts_language_version=e=>(_ts_language_version=Module._ts_language_version=wasmExports.ts_language_version)(e),_ts_language_field_count=Module._ts_language_field_count=e=>(_ts_language_field_count=Module._ts_language_field_count=wasmExports.ts_language_field_count)(e),_ts_language_next_state=Module._ts_language_next_state=(e,t,r)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,r),_ts_language_symbol_name=Module._ts_language_symbol_name=(e,t)=>(_ts_language_symbol_name=Module._ts_language_symbol_name=wasmExports.ts_language_symbol_name)(e,t),_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=(e,t,r,n)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,r,n),_strncmp=Module._strncmp=(e,t,r)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,r),_ts_language_symbol_type=Module._ts_language_symbol_type=(e,t)=>(_ts_language_symbol_type=Module._ts_language_symbol_type=wasmExports.ts_language_symbol_type)(e,t),_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=(e,t)=>(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=wasmExports.ts_language_field_name_for_id)(e,t),_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=(e,t)=>(_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=wasmExports.ts_lookahead_iterator_new)(e,t),_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=e=>(_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=wasmExports.ts_lookahead_iterator_delete)(e),_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=(e,t)=>(_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=wasmExports.ts_lookahead_iterator_reset_state)(e,t),_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=(e,t,r)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,r),_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=e=>(_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=wasmExports.ts_lookahead_iterator_next)(e),_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=e=>(_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=wasmExports.ts_lookahead_iterator_current_symbol)(e),_memset=Module._memset=(e,t,r)=>(_memset=Module._memset=wasmExports.memset)(e,t,r),_memcpy=Module._memcpy=(e,t,r)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,r),_ts_parser_delete=Module._ts_parser_delete=e=>(_ts_parser_delete=Module._ts_parser_delete=wasmExports.ts_parser_delete)(e),_ts_parser_reset=Module._ts_parser_reset=e=>(_ts_parser_reset=Module._ts_parser_reset=wasmExports.ts_parser_reset)(e),_ts_parser_set_language=Module._ts_parser_set_language=(e,t)=>(_ts_parser_set_language=Module._ts_parser_set_language=wasmExports.ts_parser_set_language)(e,t),_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=e=>(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=wasmExports.ts_parser_timeout_micros)(e),_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=(e,t,r)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,r),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,r)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,r),_memmove=Module._memmove=(e,t,r)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,r),_memcmp=Module._memcmp=(e,t,r)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,r),_ts_query_new=Module._ts_query_new=(e,t,r,n,s)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,r,n,s),_ts_query_delete=Module._ts_query_delete=e=>(_ts_query_delete=Module._ts_query_delete=wasmExports.ts_query_delete)(e),_iswspace=Module._iswspace=e=>(_iswspace=Module._iswspace=wasmExports.iswspace)(e),_iswalnum=Module._iswalnum=e=>(_iswalnum=Module._iswalnum=wasmExports.iswalnum)(e),_ts_query_pattern_count=Module._ts_query_pattern_count=e=>(_ts_query_pattern_count=Module._ts_query_pattern_count=wasmExports.ts_query_pattern_count)(e),_ts_query_capture_count=Module._ts_query_capture_count=e=>(_ts_query_capture_count=Module._ts_query_capture_count=wasmExports.ts_query_capture_count)(e),_ts_query_string_count=Module._ts_query_string_count=e=>(_ts_query_string_count=Module._ts_query_string_count=wasmExports.ts_query_string_count)(e),_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=(e,t,r)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,r),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,r)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,r),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,r)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,r),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,r)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,r),_ts_tree_copy=Module._ts_tree_copy=e=>(_ts_tree_copy=Module._ts_tree_copy=wasmExports.ts_tree_copy)(e),_ts_tree_delete=Module._ts_tree_delete=e=>(_ts_tree_delete=Module._ts_tree_delete=wasmExports.ts_tree_delete)(e),_ts_init=Module._ts_init=()=>(_ts_init=Module._ts_init=wasmExports.ts_init)(),_ts_parser_new_wasm=Module._ts_parser_new_wasm=()=>(_ts_parser_new_wasm=Module._ts_parser_new_wasm=wasmExports.ts_parser_new_wasm)(),_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=(e,t)=>(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=wasmExports.ts_parser_enable_logger_wasm)(e,t),_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=(e,t,r,n,s)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,r,n,s),_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=e=>(_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=wasmExports.ts_parser_included_ranges_wasm)(e),_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=(e,t)=>(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=wasmExports.ts_language_type_is_named_wasm)(e,t),_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=(e,t)=>(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=wasmExports.ts_language_type_is_visible_wasm)(e,t),_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=e=>(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=wasmExports.ts_tree_root_node_wasm)(e),_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=e=>(_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=wasmExports.ts_tree_root_node_with_offset_wasm)(e),_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=e=>(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=wasmExports.ts_tree_edit_wasm)(e),_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=e=>(_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=wasmExports.ts_tree_included_ranges_wasm)(e),_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=(e,t)=>(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=wasmExports.ts_tree_get_changed_ranges_wasm)(e,t),_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=e=>(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=wasmExports.ts_tree_cursor_new_wasm)(e),_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=e=>(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=wasmExports.ts_tree_cursor_delete_wasm)(e),_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=e=>(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=wasmExports.ts_tree_cursor_reset_wasm)(e),_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=(e,t)=>(_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=wasmExports.ts_tree_cursor_reset_to_wasm)(e,t),_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=e=>(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=wasmExports.ts_tree_cursor_goto_first_child_wasm)(e),_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=e=>(_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=wasmExports.ts_tree_cursor_goto_last_child_wasm)(e),_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=e=>(_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_index_wasm)(e),_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=e=>(_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_position_wasm)(e),_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=e=>(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=wasmExports.ts_tree_cursor_goto_next_sibling_wasm)(e),_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=e=>(_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=wasmExports.ts_tree_cursor_goto_previous_sibling_wasm)(e),_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=(e,t)=>(_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=wasmExports.ts_tree_cursor_goto_descendant_wasm)(e,t),_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=e=>(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=wasmExports.ts_tree_cursor_goto_parent_wasm)(e),_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=e=>(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=wasmExports.ts_tree_cursor_current_node_type_id_wasm)(e),_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=e=>(_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=wasmExports.ts_tree_cursor_current_node_state_id_wasm)(e),_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=e=>(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=wasmExports.ts_tree_cursor_current_node_is_named_wasm)(e),_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=e=>(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=wasmExports.ts_tree_cursor_current_node_is_missing_wasm)(e),_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=e=>(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=wasmExports.ts_tree_cursor_current_node_id_wasm)(e),_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=e=>(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=wasmExports.ts_tree_cursor_start_position_wasm)(e),_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=e=>(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=wasmExports.ts_tree_cursor_end_position_wasm)(e),_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=e=>(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=wasmExports.ts_tree_cursor_start_index_wasm)(e),_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=e=>(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=wasmExports.ts_tree_cursor_end_index_wasm)(e),_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=e=>(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=wasmExports.ts_tree_cursor_current_field_id_wasm)(e),_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=e=>(_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=wasmExports.ts_tree_cursor_current_depth_wasm)(e),_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=e=>(_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=wasmExports.ts_tree_cursor_current_descendant_index_wasm)(e),_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=e=>(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=wasmExports.ts_tree_cursor_current_node_wasm)(e),_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=e=>(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=wasmExports.ts_node_symbol_wasm)(e),_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=(e,t)=>(_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=wasmExports.ts_node_field_name_for_child_wasm)(e,t),_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=(e,t)=>(_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=wasmExports.ts_node_children_by_field_id_wasm)(e,t),_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=e=>(_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=wasmExports.ts_node_first_child_for_byte_wasm)(e),_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=e=>(_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=wasmExports.ts_node_first_named_child_for_byte_wasm)(e),_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=e=>(_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=wasmExports.ts_node_grammar_symbol_wasm)(e),_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=e=>(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=wasmExports.ts_node_child_count_wasm)(e),_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=e=>(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=wasmExports.ts_node_named_child_count_wasm)(e),_ts_node_child_wasm=Module._ts_node_child_wasm=(e,t)=>(_ts_node_child_wasm=Module._ts_node_child_wasm=wasmExports.ts_node_child_wasm)(e,t),_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=(e,t)=>(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=wasmExports.ts_node_named_child_wasm)(e,t),_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=(e,t)=>(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=wasmExports.ts_node_child_by_field_id_wasm)(e,t),_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=e=>(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=wasmExports.ts_node_next_sibling_wasm)(e),_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=e=>(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=wasmExports.ts_node_prev_sibling_wasm)(e),_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=e=>(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=wasmExports.ts_node_next_named_sibling_wasm)(e),_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=e=>(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=wasmExports.ts_node_prev_named_sibling_wasm)(e),_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=e=>(_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=wasmExports.ts_node_descendant_count_wasm)(e),_ts_node_parent_wasm=Module._ts_node_parent_wasm=e=>(_ts_node_parent_wasm=Module._ts_node_parent_wasm=wasmExports.ts_node_parent_wasm)(e),_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=e=>(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=wasmExports.ts_node_descendant_for_index_wasm)(e),_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=e=>(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=wasmExports.ts_node_named_descendant_for_index_wasm)(e),_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=e=>(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=wasmExports.ts_node_descendant_for_position_wasm)(e),_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=e=>(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=wasmExports.ts_node_named_descendant_for_position_wasm)(e),_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=e=>(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=wasmExports.ts_node_start_point_wasm)(e),_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=e=>(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=wasmExports.ts_node_end_point_wasm)(e),_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=e=>(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=wasmExports.ts_node_start_index_wasm)(e),_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=e=>(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=wasmExports.ts_node_end_index_wasm)(e),_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=e=>(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=wasmExports.ts_node_to_string_wasm)(e),_ts_node_children_wasm=Module._ts_node_children_wasm=e=>(_ts_node_children_wasm=Module._ts_node_children_wasm=wasmExports.ts_node_children_wasm)(e),_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=e=>(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=wasmExports.ts_node_named_children_wasm)(e),_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=(e,t,r,n,s,o,i)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,r,n,s,o,i),_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=e=>(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=wasmExports.ts_node_is_named_wasm)(e),_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=e=>(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=wasmExports.ts_node_has_changes_wasm)(e),_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=e=>(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=wasmExports.ts_node_has_error_wasm)(e),_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=e=>(_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=wasmExports.ts_node_is_error_wasm)(e),_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=e=>(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=wasmExports.ts_node_is_missing_wasm)(e),_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=e=>(_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=wasmExports.ts_node_is_extra_wasm)(e),_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=e=>(_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=wasmExports.ts_node_parse_state_wasm)(e),_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=e=>(_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=wasmExports.ts_node_next_parse_state_wasm)(e),_ts_query_matches_wasm=Module._ts_query_matches_wasm=(e,t,r,n,s,o,i,a,_,u,c)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,r,n,s,o,i,a,_,u,c),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,r,n,s,o,i,a,_,u,c)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,r,n,s,o,i,a,_,u,c),_iswalpha=Module._iswalpha=e=>(_iswalpha=Module._iswalpha=wasmExports.iswalpha)(e),_iswblank=Module._iswblank=e=>(_iswblank=Module._iswblank=wasmExports.iswblank)(e),_iswdigit=Module._iswdigit=e=>(_iswdigit=Module._iswdigit=wasmExports.iswdigit)(e),_iswlower=Module._iswlower=e=>(_iswlower=Module._iswlower=wasmExports.iswlower)(e),_iswupper=Module._iswupper=e=>(_iswupper=Module._iswupper=wasmExports.iswupper)(e),_iswxdigit=Module._iswxdigit=e=>(_iswxdigit=Module._iswxdigit=wasmExports.iswxdigit)(e),_memchr=Module._memchr=(e,t,r)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,r),_strlen=Module._strlen=e=>(_strlen=Module._strlen=wasmExports.strlen)(e),_strcmp=Module._strcmp=(e,t)=>(_strcmp=Module._strcmp=wasmExports.strcmp)(e,t),_strncat=Module._strncat=(e,t,r)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,r),_strncpy=Module._strncpy=(e,t,r)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,r),_towlower=Module._towlower=e=>(_towlower=Module._towlower=wasmExports.towlower)(e),_towupper=Module._towupper=e=>(_towupper=Module._towupper=wasmExports.towupper)(e),_setThrew=(e,t)=>(_setThrew=wasmExports.setThrew)(e,t),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),dynCall_jiji=Module.dynCall_jiji=(e,t,r,n,s)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,r,n,s),_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=e=>(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=wasmExports.orig$ts_parser_timeout_micros)(e),_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=(e,t)=>(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=wasmExports.orig$ts_parser_set_timeout_micros)(e,t),calledRun;function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,n=stackAlloc(4*(r+1)),s=n;e.forEach((e=>{LE_HEAP_STORE_U32(4*(s>>2),stringToUTF8OnStack(e)),s+=4})),LE_HEAP_STORE_U32(4*(s>>2),0);try{var o=t(r,n);return exitJS(o,!0),o}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized?.(),shouldRunNow&&callMain(e),postRun()))}runDependencies>0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;let VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const r=C._ts_language_version(t);if(r<MIN_COMPATIBLE_VERSION||VERSION<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)currentParseCallback=(t,r)=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r?.includedRanges){n=r.includedRanges.length,s=C._calloc(n,SIZE_OF_RANGE);let e=s;for(let t=0;t<n;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}const o=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!o)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const i=new Tree(INTERNAL,o,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,i}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,r,n){assertInternal(e),this[0]=t,this.language=r,this.textCallback=n}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return n}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);if(!t)return null;return AsciiToString(t)}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return n}firstChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),r||(r=ZERO_POINT);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 o=C._malloc(SIZE_OF_INT*n.length);for(let e=0,t=n.length;e<t;e++)setValue(o+e*SIZE_OF_INT,n[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],o,n.length,t.row,t.column,r.row,r.column);const i=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),_=new Array(i);if(i>0){let e=a;for(let t=0;t<i;t++)_[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(a),C._free(o),_}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoFirstChildForIndex(e){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=lengthBytesUTF8(e),n=C._malloc(r+1);stringToUTF8(e,n,r+1);const s=C._ts_language_symbol_for_name(this[0],n,r,t);return C._free(n),s||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterable(INTERNAL,t,this):null}query(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1);const n=C._ts_query_new(this[0],r,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!n){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=getValue(TRANSFER_BUFFER,"i32"),s=UTF8ToString(r,n).length,o=e.substr(s,100).split("\n")[0];let i,a=o.match(QUERY_WORD_REGEX)[0];switch(t){case 2:i=new RangeError(`Bad node name '${a}'`);break;case 3:i=new RangeError(`Bad field name '${a}'`);break;case 4:i=new RangeError(`Bad capture name @${a}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${s}: '${o}'...`),a="";break;default:i=new SyntaxError(`Bad syntax at offset ${s}: '${o}'...`),a=""}throw i.index=s,i.length=a.length,C._free(r),i}const s=C._ts_query_string_count(n),o=C._ts_query_capture_count(n),i=C._ts_query_pattern_count(n),a=new Array(o),_=new Array(s);for(let e=0;e<o;e++){const t=C._ts_query_capture_name_for_id(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,r)}for(let e=0;e<s;e++){const t=C._ts_query_string_value_for_id(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");_[e]=UTF8ToString(t,r)}const u=new Array(i),c=new Array(i),l=new Array(i),d=new Array(i),m=new Array(i);for(let e=0;e<i;e++){const t=C._ts_query_predicates_for_pattern(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");d[e]=[],m[e]=[];const s=[];let o=t;for(let t=0;t<r;t++){const t=getValue(o,"i32");o+=SIZE_OF_INT;const r=getValue(o,"i32");if(o+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)s.push({type:"capture",name:a[r]});else if(t===PREDICATE_STEP_TYPE_STRING)s.push({type:"string",value:_[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,n=!0,o=!0;switch(t){case"any-not-eq?":case"not-eq?":n=!1;case"any-eq?":case"eq?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${s.length-1}`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}"`);if(o=!t.startsWith("any-"),"capture"===s[2].type){const t=s[1].name,r=s[2].name;m[e].push((e=>{const s=[],i=[];for(const n of e)n.name===t&&s.push(n.node),n.name===r&&i.push(n.node);const a=(e,t,r)=>r?e.text===t.text:e.text!==t.text;return o?s.every((e=>i.some((t=>a(e,t,n))))):s.some((e=>i.some((t=>a(e,t,n)))))}))}else{r=s[1].name;const t=s[2].value,i=e=>e.text===t,a=e=>e.text!==t;m[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node);const s=n?i:a;return o?t.every(s):t.some(s)}))}break;case"any-not-match?":case"not-match?":n=!1;case"any-match?":case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${s[2].value}.`);r=s[1].name;const i=new RegExp(s[2].value);o=!t.startsWith("any-"),m[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node.text);const s=(e,t)=>t?i.test(e):!i.test(e);return 0===t.length?!n:o?t.every((e=>s(e,n))):t.some((e=>s(e,n)))}));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 a="is?"===t?c:l;a[e]||(a[e]={}),a[e][s[1].value]=s[2]?s[2].value:null;break;case"not-any-of?":n=!1;case"any-of?":if(s.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}".`);for(let e=2;e<s.length;e++)if("string"!==s[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);r=s[1].name;const _=s.slice(2).map((e=>e.value));m[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node.text);return 0===t.length?!n:t.every((e=>_.includes(e)))===n}));break;default:d[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(c[e]),Object.freeze(l[e])}return C._free(r),new Query(INTERNAL,n,a,m,d,Object.freeze(u),Object.freeze(c),Object.freeze(l))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(3078);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>LANGUAGE_FUNCTION_REGEX.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 Language(INTERNAL,n)}))}}class LookaheadIterable{constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(e){return C._ts_lookahead_iterator_reset_state(this[0],e)}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}[Symbol.iterator](){const e=this;return{next:()=>C._ts_lookahead_iterator_next(e[0])?{done:!1,value:e.currentType}:{done:!0,value:""}}}}class Query{constructor(e,t,r,n,s,o,i,a){assertInternal(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=o,this.assertedProperties=i,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:n=0,endIndex:s=0,matchLimit:o=4294967295,maxStartDepth:i=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof o)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n,s,o,i,a);const _=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),l=new Array(_);this.exceededMatchLimit=Boolean(c);let d=0,m=u;for(let t=0;t<_;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const n=new Array(r);if(m=unmarshalCaptures(this,e.tree,m,n),this.textPredicates[t].every((e=>e(n)))){l[d]={pattern:t,captures:n};const e=this.setProperties[t];e&&(l[d].setProperties=e);const r=this.assertedProperties[t];r&&(l[d].assertedProperties=r);const s=this.refutedProperties[t];s&&(l[d].refutedProperties=s),d++}}return l.length=d,C._free(u),l}captures(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:n=0,endIndex:s=0,matchLimit:o=4294967295,maxStartDepth:i=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof o)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n,s,o,i,a);const _=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),l=[];this.exceededMatchLimit=Boolean(c);const d=[];let m=u;for(let t=0;t<_;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const n=getValue(m,"i32");if(m+=SIZE_OF_INT,d.length=r,m=unmarshalCaptures(this,e.tree,m,d),this.textPredicates[t].every((e=>e(d)))){const e=d[n],r=this.setProperties[t];r&&(e.setProperties=r);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const o=this.refutedProperties[t];o&&(e.refutedProperties=o),l.push(e)}}return C._free(u),l}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1),C._ts_query_disable_capture(this[0],r,t),C._free(r)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(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 unmarshalCaptures(e,t,r,n){for(let s=0,o=n.length;s<o;s++){const o=getValue(r,"i32"),i=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,n[s]={name:e.captureNames[o],node:i}}return r}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const r=getValue(t,"i32");if(0===r)return null;const n=getValue(t+=SIZE_OF_INT,"i32"),s=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),a=new Node(INTERNAL,e);return a.id=r,a.startIndex=n,a.startPosition={row:s,column:o},a[0]=i,a}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32"),setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32")>>>0,column:getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32")>>>0,t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}();module.exports=TreeSitter},3885:(e,t,r)=>{"use strict";var n=r(6100),s=Error,o=n("".replace),i=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,_=a.test(i);e.exports=function(e,t){if(_&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=o(e,a,"");return e}},3934:(e,t,r)=>{var n=r(3212),s=r(6465),o=r(5568);e.exports=function(e,t,r,i,a,_){var u=1&r,c=e.length,l=t.length;if(c!=l&&!(u&&l>c))return!1;var d=_.get(e),m=_.get(t);if(d&&m)return d==t&&m==e;var p=-1,h=!0,f=2&r?new n:void 0;for(_.set(e,t),_.set(t,e);++p<c;){var y=e[p],g=t[p];if(i)var w=u?i(g,y,p,t,e,_):i(y,g,p,e,t,_);if(void 0!==w){if(w)continue;h=!1;break}if(f){if(!s(t,(function(e,t){if(!o(f,t)&&(y===e||a(y,e,r,i,_)))return f.push(t)}))){h=!1;break}}else if(y!==g&&!a(y,g,r,i,_)){h=!1;break}}return _.delete(e),_.delete(t),h}},3964:(e,t,r)=>{var n=r(7034);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}},3999:(e,t,r)=>{"use strict";var n=r(5024),s=r(9989),o=r(480);e.exports=n?function(e,t,r){return s.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},4103:(e,t,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},4123:(e,t,r)=>{const n=r(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class o{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 o(this.elements.filter(e,t))}reject(e,t){return e=s(e),new o(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&&(o.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=o},4142:()=>{},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4275:(e,t,r)=>{"use strict";var n=r(8141),s=r(1268),o=n("keys");e.exports=function(e){return o[e]||(o[e]=s(e))}},4279:(e,t,r)=>{"use strict";var n=r(3999),s=r(3885),o=r(5791),i=Error.captureStackTrace;e.exports=function(e,t,r,a){o&&(i?i(e,t):n(e,"stack",s(r,a)))}},4317:(e,t,r)=>{"use strict";var n=r(6100);e.exports=n({}.isPrototypeOf)},4497:(e,t,r)=>{var n=r(4715)(Object,"create");e.exports=n},4512:(e,t,r)=>{var n=r(4715)(r(8942),"Set");e.exports=n},4543:(e,t,r)=>{"use strict";var n=r(5024),s=r(4713),o=r(7161),i=r(480),a=r(3273),_=r(5341),u=r(701),c=r(9665),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=a(e),t=_(t),c)try{return l(e,t)}catch(e){}if(u(e,t))return i(!s(o.f,e,t),e[t])}},4572:(e,t,r)=>{"use strict";var n=r(9344),s=r(814),o=r(1780),i=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:o?i(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,r)=>{"use strict";var n=r(9903),s=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):o(r,t)}},4603:(e,t,r)=>{"use strict";var n=r(5547),s=r(1203),o=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4674:(e,t,r)=>{"use strict";var n=r(814),s=r(3057);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},4687:(e,t,r)=>{var n=r(353),s=r(547);e.exports=function e(t,r,o,i,a){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,o,i,e,a))}},4700:(e,t,r)=>{var n=r(9067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},4713:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},4715:(e,t,r)=>{var n=r(9624),s=r(155);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},4732:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).has(e)}},4759:(e,t,r)=>{var n,s=r(1950),o=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},4772:e=>{e.exports=function(){return!1}},4871:e=>{"use strict";e.exports=!0},4879:(e,t,r)=>{"use strict";var n=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},4904:(e,t,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},4967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},5024:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,r)=>{var n=r(4497);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}},5098:(e,t,r)=>{var n=r(3305),s=r(9361),o=r(1112),i=r(5276),a=r(5071);function _(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])}}_.prototype.clear=n,_.prototype.delete=s,_.prototype.get=o,_.prototype.has=i,_.prototype.set=a,e.exports=_},5116:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5341:(e,t,r)=>{"use strict";var n=r(493),s=r(6281);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5426:(e,t,r)=>{"use strict";var n=r(3057),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},5442:(e,t,r)=>{"use strict";r(5695)},5516:(e,t,r)=>{"use strict";var n=r(9989).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}})}},5547:(e,t,r)=>{"use strict";var n,s,o=r(8900),i=r(3531),a=o.process,_=o.Deno,u=a&&a.versions||_&&_.version,c=u&&u.v8;c&&(s=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,r)=>{"use strict";var n=r(6100),s=r(9903),o=r(1139),i=r(5426),a=n("".charAt),_=n("".charCodeAt),u=n("".slice),c=function(e){return function(t,r){var n,c,l=o(i(t)),d=s(r),m=l.length;return d<0||d>=m?e?"":void 0:(n=_(l,d))<55296||n>56319||d+1===m||(c=_(l,d+1))<56320||c>57343?e?a(l,d):n:e?u(l,d,d+2):c-56320+(n-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},5642:(e,t,r)=>{const n=r(1517),s=r(1580),o=r(9796),i=r(7309),a=r(3311);e.exports=class extends o{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 i(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,o)=>{const i=e.bind(t)(n,s,o);i&&r.push(i)})),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)))}}},5650:(e,t,r)=>{var n=r(8942).Symbol;e.exports=n},5681:(e,t,r)=>{var n=r(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,r)=>{"use strict";var n=r(1003),s=r(6100),o=r(5116),i=r(7313),a=r(7235),_=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=i.f;return r?_(t,r(e)):t}},5695:(e,t,r)=>{"use strict";r(3085)},5735:(e,t,r)=>{const n=r(9310),s=r(8138),o=r(986),i=r(2563),a=r(1580),_=r(394),u=r(7547);class c{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(o,u.NumberElement,!1).detect(i,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 _(this)}}_.prototype.Namespace=c,e.exports=c},5777: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)}},5780:(e,t,r)=>{"use strict";var n,s=r(7235),o=r(7389),i=r(9683),a=r(5241),_=r(3489),u=r(9619),c=r(4275),l="prototype",d="script",m=c("IE_PROTO"),p=function(){},h=function(e){return"<"+d+">"+e+"</"+d+">"},f=function(e){e.write(h("")),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?f(n):(t=u("iframe"),r="java"+d+":",t.style.display="none",_.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):f(n);for(var s=i.length;s--;)delete y[l][i[s]];return y()};a[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[l]=s(e),r=new p,p[l]=null,r[m]=e):r=y(),void 0===t?r:o.f(r,t)}},5791:(e,t,r)=>{"use strict";var n=r(1203),s=r(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},5853:(e,t,r)=>{e=r.nmd(e);var n=r(8942),s=r(4772),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,_=(a?a.isBuffer:void 0)||s;e.exports=_},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},6027:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},6100:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,o=s.call,i=n&&s.bind.bind(o,o);e.exports=n?i:function(e){return function(){return o.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},6138:(e,t,r)=>{"use strict";var n=r(9098),s=r(1003),o=r(7013),i=r(1203),a=r(6453),_="AggregateError",u=s(_),c=!i((function(){return 1!==u([1]).errors[0]}))&&i((function(){return 7!==u([1],_,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:c},{AggregateError:a(_,(function(e){return function(t,r){return o(e,this,arguments)}}),c,!0)})},6281:(e,t,r)=>{"use strict";var n=r(1003),s=r(2769),o=r(4317),i=r(7460),a=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&o(t.prototype,a(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,r)=>{var n=r(4687);e.exports=function(e,t){return n(e,t)}},6453:(e,t,r)=>{"use strict";var n=r(1003),s=r(701),o=r(3999),i=r(4317),a=r(3491),_=r(7464),u=r(5516),c=r(3507),l=r(4879),d=r(8148),m=r(4279),p=r(5024),h=r(4871);e.exports=function(e,t,r,f){var y="stackTraceLimit",g=f?2:1,w=e.split("."),b=w[w.length-1],v=n.apply(null,w);if(v){var E=v.prototype;if(!h&&s(E,"cause")&&delete E.cause,!r)return v;var x=n("Error"),M=t((function(e,t){var r=l(f?t:e,void 0),n=f?new v(e):new v;return void 0!==r&&o(n,"message",r),m(n,M,n.stack,2),this&&i(E,this)&&c(n,this,M),arguments.length>g&&d(n,arguments[g]),n}));if(M.prototype=E,"Error"!==b?a?a(M,x):_(M,x,{name:!0}):p&&y in v&&(u(M,v,y),u(M,v,"prepareStackTrace")),_(M,v),!h)try{E.name!==b&&o(E,"name",b),E.constructor=M}catch(e){}return M}}},6465: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}},6529:(e,t,r)=>{var n=r(3655),s=r(5387);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,r)=>{var n=r(1386),s=r(9770),o=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!s||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(i)}return r.set(e,t),this.size=r.size,this}},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var n=r(8099);e.exports=n.AggregateError},7013:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,o=s.apply,i=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?i.bind(o):function(){return i.apply(o,arguments)})},7034:(e,t,r)=>{var n=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},7144:(e,t,r)=>{var n=r(7034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7161:(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},7202:(e,t,r)=>{"use strict";var n=r(239);e.exports=n},7235:(e,t,r)=>{"use strict";var n=r(262),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not an object")}},7309:(e,t,r)=>{const n=r(2322),s=r(8631);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)}}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7379:(e,t,r)=>{var n=r(5650),s=r(8870),o=r(9005),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?s(e):o(e)}},7389:(e,t,r)=>{"use strict";var n=r(5024),s=r(1330),o=r(9989),i=r(7235),a=r(3273),_=r(8364);t.f=n&&!s?Object.defineProperties:function(e,t){i(e);for(var r,n=a(t),s=_(t),u=s.length,c=0;u>c;)o.f(e,r=s[c++],n[r]);return e}},7447:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7452:(e,t,r)=>{var n=r(7034);e.exports=function(e){return n(this.__data__,e)>-1}},7460:(e,t,r)=>{"use strict";var n=r(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,r)=>{"use strict";var n=r(701),s=r(5691),o=r(4543),i=r(9989);e.exports=function(e,t,r){for(var a=s(t),_=i.f,u=o.f,c=0;c<a.length;c++){var l=a[c];n(e,l)||r&&n(r,l)||_(e,l,u(t,l))}}},7525:(e,t,r)=>{"use strict";var n=r(8900),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}},7547:(e,t,r)=>{const n=r(8631),s=r(3004),o=r(8712),i=r(2536),a=r(2555),_=r(9796),u=r(7309),c=r(5642),l=r(9620),d=r(593),m=r(4123),p=r(3311),h=r(2322);function f(e){if(e instanceof n)return e;if("string"==typeof e)return new o(e);if("number"==typeof e)return new i(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new _(e.map(f));if("object"==typeof e){return new c(e)}return e}n.prototype.ObjectElement=c,n.prototype.RefElement=d,n.prototype.MemberElement=u,n.prototype.refract=f,m.prototype.refract=f,e.exports={Element:n,NullElement:s,StringElement:o,NumberElement:i,BooleanElement:a,ArrayElement:_,MemberElement:u,ObjectElement:c,LinkElement:l,RefElement:d,refract:f,ArraySlice:m,ObjectSlice:p,KeyValuePair:h}},7979:(e,t,r)=>{var n=r(9847),s=r(9306),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return o.call(e,t)})))}:s;e.exports=a},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8099:e=>{"use strict";e.exports={}},8121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},8130:(e,t,r)=>{"use strict";var n=r(8146);e.exports=function(e){return n(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,r)=>{var n=r(7379),s=r(3142),o=r(547);e.exports=function(e){return"string"==typeof e||!s(e)&&o(e)&&"[object String]"==n(e)}},8141:(e,t,r)=>{"use strict";var n=r(3753);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},8146:(e,t,r)=>{"use strict";var n=r(9903),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},8148:(e,t,r)=>{"use strict";var n=r(262),s=r(3999);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8244:(e,t,r)=>{var n=r(1129),s=r(3142);e.exports=function(e,t,r){var o=t(e);return s(e)?o:n(o,r(e))}},8250:(e,t,r)=>{var n=r(9753),s=r(5681),o=r(88),i=r(4732),a=r(9068);function _(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])}}_.prototype.clear=n,_.prototype.delete=s,_.prototype.get=o,_.prototype.has=i,_.prototype.set=a,e.exports=_},8326:(e,t,r)=>{const n=r(5735),s=r(7547);t.g$=n,t.KeyValuePair=r(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,r(394),r(3148)},8337:(e,t,r)=>{"use strict";r(5442);var n=r(7202);e.exports=n},8364:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683);e.exports=Object.keys||function(e){return n(e,s)}},8407:(e,t,r)=>{"use strict";var n=r(4904),s=r(2769),o=r(9932),i=r(8655)("toStringTag"),a=Object,_="Arguments"===o(function(){return arguments}());e.exports=n?o: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),i))?r:_?o(t):"Object"===(n=o(t))&&s(t.callee)?"Arguments":n}},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8417:(e,t,r)=>{"use strict";var n,s,o,i=r(1314),a=r(8900),_=r(262),u=r(3999),c=r(701),l=r(3753),d=r(4275),m=r(5241),p="Object already initialized",h=a.TypeError,f=a.WeakMap;if(i||l.state){var y=l.state||(l.state=new f);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new h(p);return t.facade=e,y.set(e,t),t},s=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var g=d("state");m[g]=!0,n=function(e,t){if(c(e,g))throw new h(p);return t.facade=e,u(e,g,t),t},s=function(e){return c(e,g)?e[g]:{}},o=function(e){return c(e,g)}}e.exports={set:n,get:s,has:o,enforce:function(e){return o(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!_(t)||(r=s(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}},8486:(e,t,r)=>{var n=r(3103),s=r(9770),o=r(9413),i=r(4512),a=r(9270),_=r(7379),u=r(4066),c="[object Map]",l="[object Promise]",d="[object Set]",m="[object WeakMap]",p="[object DataView]",h=u(n),f=u(s),y=u(o),g=u(i),w=u(a),b=_;(n&&b(new n(new ArrayBuffer(1)))!=p||s&&b(new s)!=c||o&&b(o.resolve())!=l||i&&b(new i)!=d||a&&b(new a)!=m)&&(b=function(e){var t=_(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case h:return p;case f:return c;case y:return l;case g:return d;case w:return m}return t}),e.exports=b},8600:(e,t,r)=>{"use strict";var n=r(6100),s=r(701),o=r(3273),i=r(1005).indexOf,a=r(5241),_=n([].push);e.exports=function(e,t){var r,n=o(e),u=0,c=[];for(r in n)!s(a,r)&&s(n,r)&&_(c,r);for(;t.length>u;)s(n,r=t[u++])&&(~i(c,r)||_(c,r));return c}},8631:(e,t,r)=>{const n=r(6343),s=r(2322),o=r(4123);class i{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 i?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 o;const n=(e,t)=>(e.push(t),e),i=(e,r)=>{r.element===t&&e.push(r);const o=r.findRecursive(t);return o&&o.reduce(n,e),r.content instanceof s&&(r.content.key&&i(e,r.content.key),r.content.value&&i(e,r.content.value)),e};return this.content&&(this.content.element&&i(r,this.content),Array.isArray(this.content)&&this.content.reduce(i,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 i)this._content=e;else if(e instanceof o)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 o;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new o(this.content);if(this.content instanceof s){const e=new o([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof i?new o([this.content]):new o}get recursiveChildren(){const e=new o;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=i},8655:(e,t,r)=>{"use strict";var n=r(8900),s=r(8141),o=r(701),i=r(1268),a=r(4603),_=r(7460),u=n.Symbol,c=s("wks"),l=_?u.for||u:u&&u.withoutSetter||i;e.exports=function(e){return o(c,e)||(c[e]=a&&o(u,e)?u[e]:l("Symbol."+e)),c[e]}},8666:(e,t,r)=>{var n=r(674),s=r(9460),o=r(2306),i=o&&o.isTypedArray,a=i?s(i):n;e.exports=a},8696:(e,t,r)=>{"use strict";var n=r(1203),s=r(2769),o=/#|\.prototype\./,i=function(e,t){var r=_[a(e)];return r===c||r!==u&&(s(t)?n(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},_=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},8712:(e,t,r)=>{const n=r(8631);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}}},8861:(e,t,r)=>{var n=r(5650),s=r(1623),o=r(6285),i=r(3934),a=r(5894),_=r(7447),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,l,d){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||!l(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=a;case"[object Set]":var p=1&n;if(m||(m=_),e.size!=t.size&&!p)return!1;var h=d.get(e);if(h)return h==t;n|=2,d.set(e,t);var f=i(m(e),m(t),n,u,l,d);return d.delete(e),f;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},8870:(e,t,r)=>{var n=r(5650),s=Object.prototype,o=s.hasOwnProperty,i=s.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var s=i.call(e);return n&&(t?e[a]=r:delete e[a]),s}},8900: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")()},8942:(e,t,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,o=n||s||Function("return this")();e.exports=o},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9068:(e,t,r)=>{var n=r(4700);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}},9098:(e,t,r)=>{"use strict";var n=r(8900),s=r(7013),o=r(9344),i=r(2769),a=r(4543).f,_=r(8696),u=r(8099),c=r(4572),l=r(3999),d=r(701);r(3753);var m=function(e){var t=function(r,n,o){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,o)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,p,h,f,y,g,w,b,v=e.target,E=e.global,x=e.stat,M=e.proto,S=E?n:x?n[v]:n[v]&&n[v].prototype,A=E?u:u[v]||l(u,v,{})[v],T=A.prototype;for(h in t)s=!(r=_(E?h:v+(x?".":"#")+h,e.forced))&&S&&d(S,h),y=A[h],s&&(g=e.dontCallGetSet?(b=a(S,h))&&b.value:S[h]),f=s&&g?g:t[h],(r||M||typeof y!=typeof f)&&(w=e.bind&&s?c(f,n):e.wrap&&s?m(f):M&&i(f)?o(f):f,(e.sham||f&&f.sham||y&&y.sham)&&l(w,"sham",!0),l(A,h,w),M&&(d(u,p=v+"Prototype")||l(u,p,{}),l(u[p],h,f),e.real&&T&&(r||!T[h])&&l(T,h,f)))}},9258:(e,t,r)=>{"use strict";var n=r(4713),s=r(2769),o=r(262),i=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&s(r=e.toString)&&!o(a=n(r,e)))return a;if(s(r=e.valueOf)&&!o(a=n(r,e)))return a;if("string"!==t&&s(r=e.toString)&&!o(a=n(r,e)))return a;throw new i("Can't convert object to primitive value")}},9270:(e,t,r)=>{var n=r(4715)(r(8942),"WeakMap");e.exports=n},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,r)=>{"use strict";var n=r(9932),s=r(6100);e.exports=function(e){if("Function"===n(e))return s(e)}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},9413:(e,t,r)=>{var n=r(4715)(r(8942),"Promise");e.exports=n},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,r)=>{"use strict";var n=r(4904),s=r(8407);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9619:(e,t,r)=>{"use strict";var n=r(8900),s=r(262),o=n.document,i=s(o)&&s(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},9620:(e,t,r)=>{const n=r(8631);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)}}},9624:(e,t,r)=>{var n=r(3655),s=r(4759),o=r(1580),i=r(4066),a=/^\[object .+?Constructor\]$/,_=Function.prototype,u=Object.prototype,c=_.toString,l=u.hasOwnProperty,d=RegExp("^"+c.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||s(e))&&(n(e)?d:a).test(i(e))}},9632: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}},9665:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203),o=r(9619);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,r)=>{var n=r(5098),s=r(1386),o=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||s),string:new n}}},9770:(e,t,r)=>{var n=r(4715)(r(8942),"Map");e.exports=n},9796:(e,t,r)=>{const n=r(1517),s=r(8631),o=r(4123);class i 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 o(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,o)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,o)&&s.push(t)})),s}find(e){return new o(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)}}i.empty=function(){return new this},i["fantasy-land/empty"]=i.empty,"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=i},9828:(e,t,r)=>{"use strict";var n=r(3273),s=r(8137),o=r(6625),i=r(8417),a=r(9989).f,_=r(164),u=r(877),c=r(4871),l=r(5024),d="Array Iterator",m=i.set,p=i.getterFor(d);e.exports=_(Array,"Array",(function(e,t){m(this,{type:d,target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,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 h=o.Arguments=o.Array;if(s("keys"),s("values"),s("entries"),!c&&l&&"values"!==h.name)try{a(h,"name",{value:"values"})}catch(e){}},9847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[s++]=i)}return o}},9903:(e,t,r)=>{"use strict";var n=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},9932:(e,t,r)=>{"use strict";var n=r(6100),s=n({}.toString),o=n("".slice);e.exports=function(e){return o(s(e),8,-1)}},9989:(e,t,r)=>{"use strict";var n=r(5024),s=r(9665),o=r(1330),i=r(7235),a=r(5341),_=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l="enumerable",d="configurable",m="writable";t.f=n?o?function(e,t,r){if(i(e),t=a(t),i(r),"function"==typeof e&&"prototype"===t&&"value"in r&&m in r&&!r[m]){var n=c(e,t);n&&n[m]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:l in r?r[l]:n[l],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(i(e),t=a(t),i(r),s)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new _("Accessors not supported");return"value"in r&&(e[t]=r.value),e}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})();var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{detect:()=>Ao,detectionRegExp:()=>So,mediaTypes:()=>Mo,namespace:()=>Oo,parse:()=>To});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>Zt,includesClasses:()=>Kt,includesSymbols:()=>zt,isAnnotationElement:()=>$t,isArrayElement:()=>Bt,isBooleanElement:()=>Ut,isCommentElement:()=>Wt,isElement:()=>jt,isLinkElement:()=>Dt,isMemberElement:()=>Vt,isNullElement:()=>kt,isNumberElement:()=>Ct,isObjectElement:()=>Lt,isParseResultElement:()=>Ht,isPrimitiveElement:()=>Gt,isRefElement:()=>qt,isStringElement:()=>Nt});var t={};function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function n(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}function s(e){return function t(s,o){switch(arguments.length){case 0:return t;case 1:return r(s)?t:n((function(t){return e(s,t)}));default:return r(s)&&r(o)?t:r(s)?n((function(t){return e(t,o)})):r(o)?n((function(t){return e(s,t)})):e(s,o)}}}function o(e){return function t(o,i,a){switch(arguments.length){case 0:return t;case 1:return r(o)?t:s((function(t,r){return e(o,t,r)}));case 2:return r(o)&&r(i)?t:r(o)?s((function(t,r){return e(t,i,r)})):r(i)?s((function(t,r){return e(o,t,r)})):n((function(t){return e(o,i,t)}));default:return r(o)&&r(i)&&r(a)?t:r(o)&&r(i)?s((function(t,r){return e(t,r,a)})):r(o)&&r(a)?s((function(t,r){return e(t,i,r)})):r(i)&&r(a)?s((function(t,r){return e(o,t,r)})):r(o)?n((function(t){return e(t,i,a)})):r(i)?n((function(t){return e(o,t,a)})):r(a)?n((function(t){return e(o,i,t)})):e(o,i,a)}}}__webpack_require__.r(t),__webpack_require__.d(t,{isInfoElement:()=>io,isMainElement:()=>oo,isPrincipleElement:()=>ao,isRequirementElement:()=>_o,isRequirementLevelElement:()=>uo,isScenarioElement:()=>co,isStandardElement:()=>lo,isStandardIdentifierElement:()=>mo});const i=s((function(e,t){return null==t||t!=t?e:t})),a=Number.isInteger||function(e){return(e|0)===e};function _(e){return"[object String]"===Object.prototype.toString.call(e)}function u(e,t){var r=e<0?t.length+e:e;return _(t)?t.charAt(r):t[r]}const c=s((function(e,t){if(null!=t)return a(e)?u(e,t):t[e]}));const l=o((function(e,t,r){return i(e,c(t,r))}));var d=s((function(e,t){for(var r={},n={},s=0,o=e.length;s<o;)n[e[s]]=1,s+=1;for(var i in t)n.hasOwnProperty(i)||(r[i]=t[i]);return r}));const m=d;function p(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const h=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const f=n((function(e){return!!h(e)||!!e&&("object"==typeof e&&(!_(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var y="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function g(e,t,r){return function(n,s,o){if(f(o))return e(n,s,o);if(null==o)return s;if("function"==typeof o["fantasy-land/reduce"])return t(n,s,o,"fantasy-land/reduce");if(null!=o[y])return r(n,s,o[y]());if("function"==typeof o.next)return r(n,s,o);if("function"==typeof o.reduce)return t(n,s,o,"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 b(e,t,r,n){return r[n](e,t)}const v=g(p,b,w);function E(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!h(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 x(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}const M=function(){return this.xf["@@transducer/init"]()},S=function(e){return this.xf["@@transducer/result"](e)};var A=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=S,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const T=function(e){return function(t){return new A(e,t)}};function O(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,o){return t.apply(this,arguments)};case 6:return function(e,r,n,s,o,i){return t.apply(this,arguments)};case 7:return function(e,r,n,s,o,i,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,o,i,a,_){return t.apply(this,arguments)};case 9:return function(e,r,n,s,o,i,a,_,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,o,i,a,_,u,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function I(e,t,n){return function(){for(var s=[],o=0,i=e,a=0,_=!1;a<t.length||o<arguments.length;){var u;a<t.length&&(!r(t[a])||o>=arguments.length)?u=t[a]:(u=arguments[o],o+=1),s[a]=u,r(u)?_=!0:i-=1,a+=1}return!_&&i<=0?n.apply(this,s):O(Math.max(0,i),I(e,s,n))}}const R=s((function(e,t){return 1===e?n(t):O(e,I(e,[],t))}));function F(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var P=Object.prototype.toString;const j=function(){return"[object Arguments]"===P.call(arguments)?function(e){return"[object Arguments]"===P.call(e)}:function(e){return F("callee",e)}}();var N=!{toString:null}.propertyIsEnumerable("toString"),C=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=function(){return arguments.propertyIsEnumerable("length")}(),U=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},L="function"!=typeof Object.keys||k?n((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=k&&j(e);for(t in e)!F(t,e)||s&&"length"===t||(n[n.length]=t);if(N)for(r=C.length-1;r>=0;)F(t=C[r],e)&&!U(n,t)&&(n[n.length]=t),r-=1;return n})):n((function(e){return Object(e)!==e?[]:Object.keys(e)}));const B=L;const V=s(E(["fantasy-land/map","map"],T,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return R(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return p((function(r,n){return r[n]=e(t[n]),r}),{},B(t));default:return x(e,t)}})));const D=s((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))}:v((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,o=[];for(r=0;r<n;)o[o.length]=e[r],r+=1;for(r=0;r<s;)o[o.length]=t[r],r+=1;return o}(e,V(r,t))}),[],e)}));const q=s((function(e,t){var r=R(e,t);return R(e,(function(){return p(D,V(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const $=n((function(e){return q(e.length,e)}));const W=$(n((function(e){return!e})));function H(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function G(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}const Z="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const z=n((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function K(e,t,r,n){var s=H(e);function o(e,t){return X(e,t,r.slice(),n.slice())}return!G((function(e,t){return!G(o,t,e)}),H(t),s)}function X(e,t,r,n){if(Z(e,t))return!0;var s,o,i=z(e);if(i!==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(i){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(o=String(s).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Z(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Z(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(i){case"Map":return e.size===t.size&&K(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&K(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 _=B(e);if(_.length!==B(t).length)return!1;var u=r.concat([e]),c=n.concat([t]);for(a=_.length-1;a>=0;){var l=_[a];if(!F(l,t)||!X(t[l],e[l],u,c))return!1;a-=1}return!0}const Y=s((function(e,t){return X(e,t,[],[])}));const J=n((function(e){return function(){return e}}));var Q=J(void 0);const ee=Y(Q());const te=W(ee);var re=__webpack_require__(8326);function ne(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function se(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 oe=s((function(e,t){return O(e.length,(function(){return e.apply(t,arguments)}))}));function ie(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 ae(e,t,r,n){return e["@@transducer/result"](r[n](oe(e["@@transducer/step"],e),t))}const _e=g(se,ae,ie);var ue=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const ce=o((function(e,t,r){return _e("function"==typeof e?new ue(e):e,t,r)}));function le(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return h(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const de=o(le("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const me=n(le("tail",de(1,1/0)));function pe(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return O(arguments[0].length,ce(ne,arguments[0],me(arguments)))}var he=function(e,t){switch(arguments.length){case 0:return he;case 1:return function t(r){return 0===arguments.length?t:Z(e,r)};default:return Z(e,t)}};const fe=he;function ye(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(Y(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function ge(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 we=function(e){return(e<10?"0":"")+e};const be="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+we(e.getUTCMonth()+1)+"-"+we(e.getUTCDate())+"T"+we(e.getUTCHours())+":"+we(e.getUTCMinutes())+":"+we(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function ve(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ee=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=S,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function xe(e){return function(t){return new Ee(e,t)}}const Me=s(E(["fantasy-land/filter","filter"],xe,(function(e,t){return ve(t)?p((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},B(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 Se=s((function(e,t){return Me((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function Ae(e,t){var r=function(r){var n=t.concat([e]);return ye(r,n)?"<Circular>":Ae(r,n)},n=function(e,t){return x((function(t){return ge(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+x(r,e).join(", ")+"))";case"[object Array]":return"["+x(r,e).concat(n(e,Se((function(e){return/^\d+$/.test(e)}),B(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):ge(be(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())+")":ge(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,B(e)).join(", ")+"}"}}const Te=n((function(e){return Ae(e,[])}));function Oe(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=a(s)?u(s,r):r[s]}return r}const Ie=o((function(e,t,r){return e(Oe(t,r))}));function Re(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Fe=s((function(e,t){return e&&t}));const Pe=s((function(e,t){return Re(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:$(Fe)(e,t)}));const je=Y(null);var Ne=W(je);function Ce(e){return Ce="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},Ce(e)}const ke=R(1,Pe(Ne,(function(e){return"object"===Ce(e)})));const Ue=s((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 o=Te(e),i=r(o,Te(t));return void 0!==i&&i===o?e:t}));const Le=s((function(e,t){return V(c(e),t)}));const Be=n((function(e){return R(ce(Ue,0,Le("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 Ve=R(1,pe(z,fe("GeneratorFunction")));const De=R(1,pe(z,fe("AsyncFunction")));const qe=Be([pe(z,fe("Function")),Ve,De]);var $e=pe(z,fe("Object")),We=pe(Te,Y(Te(Object))),He=Ie(Pe(qe,We),["constructor"]);const Ge=R(1,(function(e){if(!ke(e)||!$e(e))return!1;var t=Object.getPrototypeOf(e);return!!je(t)||He(t)}));class Ze extends re.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const ze=Ze;class Ke extends re.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Xe=Ke;class Ye extends re.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(ee(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const Je=Ye;class Qe extends re.g${constructor(){super(),this.register("annotation",ze),this.register("comment",Xe),this.register("parseResult",Je)}}const et=new Qe,tt=e=>{const t=new Qe;return Ge(e)&&t.use(e),t},rt=et;const nt=R(1,pe(z,fe("String"))),st=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",ot=globalThis.fetch;qe(ot)&&(globalThis.fetch=(...e)=>nt(e[0])&&e[0].endsWith("tree-sitter.wasm")?ot.apply(globalThis,[st,me(e)]):ot.apply(globalThis,e));var it=__webpack_require__(3833),at=__webpack_require__(1212);const _t=class extends at{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 ut extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(_t,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 ct=ut,lt=__webpack_require__.p+"8b9a42208b2f0cb650aa7e5c4e293a15.wasm";let dt=null,mt=null;const pt=async e=>{if(null===dt&&null===mt)mt=it.init().then((()=>it.Language.load(lt))).then((e=>{const t=new it;return t.setLanguage(e),t})).finally((()=>{mt=null})),dt=await mt;else if(null===dt&&null!==mt)dt=await mt;else if(null===dt)throw new ct("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return dt.parse(e)};const ht=class extends ct{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},ft=(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},yt={},gt=e=>null==e?void 0:e.type,wt=e=>"string"==typeof gt(e),bt=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),vt=(e,{visitFnGetter:t=ft,nodeTypeGetter:r=gt,breakSymbol:n=yt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,exposeEdits:i=!1}={})=>{const a=Symbol("skip"),_=new Array(e.length).fill(a);return{enter(u,c,l,d,m,p){let h=u,f=!1;const y={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let u=0;u<e.length;u+=1)if(_[u]===a){const a=t(e[u],r(h),!1);if("function"==typeof a){const t=a.call(e[u],h,c,l,d,m,y);if("function"==typeof(null==t?void 0:t.then))throw new ht("Async visitor not supported in sync mode",{visitor:e[u],visitFn:a});if(t===o)_[u]=h;else if(t===n)_[u]=n;else{if(t===s)return t;if(void 0!==t){if(!i)return t;h=t,f=!0}}}}return f?h:void 0},leave(s,i,u,c,l,d){let m=s;const p={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(_[s]===a){const a=t(e[s],r(m),!0);if("function"==typeof a){const t=a.call(e[s],m,i,u,c,l,p);if("function"==typeof(null==t?void 0:t.then))throw new ht("Async visitor not supported in sync mode",{visitor:e[s],visitFn:a});if(t===n)_[s]=n;else if(void 0!==t&&t!==o)return t}}else _[s]===m&&(_[s]=a)}}};vt[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=ft,nodeTypeGetter:r=gt,breakSymbol:n=yt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,exposeEdits:i=!1}={})=>{const a=Symbol("skip"),_=new Array(e.length).fill(a);return{async enter(u,c,l,d,m,p){let h=u,f=!1;const y={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let u=0;u<e.length;u+=1)if(_[u]===a){const a=t(e[u],r(h),!1);if("function"==typeof a){const t=await a.call(e[u],h,c,l,d,m,y);if(t===o)_[u]=h;else if(t===n)_[u]=n;else{if(t===s)return t;if(void 0!==t){if(!i)return t;h=t,f=!0}}}}return f?h:void 0},async leave(s,i,u,c,l,d){let m=s;const p={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(_[s]===a){const a=t(e[s],r(m),!0);if("function"==typeof a){const t=await a.call(e[s],m,i,u,c,l,p);if(t===n)_[s]=n;else if(void 0!==t&&t!==o)return t}}else _[s]===m&&(_[s]=a)}}};const Et=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=yt,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:i=!1,visitFnGetter:a=ft,nodeTypeGetter:_=gt,nodePredicate:u=wt,nodeCloneFn:c=bt,detectCycles:l=!0,detectCyclesCallback:d=null}={})=>{const m=r||{};let p,h,f=Array.isArray(e),y=[e],g=-1,w=[],b=e;const v=[],E=[];do{g+=1;const e=g===y.length;let r;const S=e&&0!==w.length;if(e){if(r=0===E.length?void 0:v.pop(),b=h,h=E.pop(),S)if(f){b=b.slice();let e=0;for(const[t,r]of w){const n=t-e;r===o?(b.splice(n,1),e+=1):b[n]=r}}else{b=c(b);for(const[e,t]of w)b[e]=t}g=p.index,y=p.keys,w=p.edits,f=p.inArray,p=p.prev}else if(h!==o&&void 0!==h){if(r=f?g:y[g],b=h[r],b===o||void 0===b)continue;v.push(r)}let A;if(!Array.isArray(b)){var x;if(!u(b))throw new ht(`Invalid AST Node: ${String(b)}`,{node:b});if(l&&E.includes(b)){"function"==typeof d&&d(b,r,h,v,E),v.pop();continue}const o=a(t,_(b),e);if(o){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,b,r,h,v,E):h&&(h[r]=t),e||(b=t)}};A=o.call(t,b,r,h,v,E,s)}if("function"==typeof(null===(x=A)||void 0===x?void 0:x.then))throw new ht("Async visitor not supported in sync mode",{visitor:t,visitFn:o});if(A===s)break;if(A===i){if(!e){v.pop();continue}}else if(void 0!==A&&(w.push([r,A]),!e)){if(!u(A)){v.pop();continue}b=A}}var M;if(void 0===A&&S&&w.push([r,b]),!e)p={inArray:f,index:g,keys:y,edits:w,prev:p},f=Array.isArray(b),y=f?b:null!==(M=m[_(b)])&&void 0!==M?M:[],g=-1,w=[],h!==o&&void 0!==h&&E.push(h),h=b}while(void 0!==p);return 0!==w.length?w[w.length-1][1]:e};Et[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=yt,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:i=!1,visitFnGetter:a=ft,nodeTypeGetter:_=gt,nodePredicate:u=wt,nodeCloneFn:c=bt,detectCycles:l=!0,detectCyclesCallback:d=null}={})=>{const m=r||{};let p,h,f=Array.isArray(e),y=[e],g=-1,w=[],b=e;const v=[],E=[];do{g+=1;const e=g===y.length;let r;const M=e&&0!==w.length;if(e){if(r=0===E.length?void 0:v.pop(),b=h,h=E.pop(),M)if(f){b=b.slice();let e=0;for(const[t,r]of w){const n=t-e;r===o?(b.splice(n,1),e+=1):b[n]=r}}else{b=c(b);for(const[e,t]of w)b[e]=t}g=p.index,y=p.keys,w=p.edits,f=p.inArray,p=p.prev}else if(h!==o&&void 0!==h){if(r=f?g:y[g],b=h[r],b===o||void 0===b)continue;v.push(r)}let S;if(!Array.isArray(b)){if(!u(b))throw new ht(`Invalid AST Node: ${String(b)}`,{node:b});if(l&&E.includes(b)){"function"==typeof d&&d(b,r,h,v,E),v.pop();continue}const o=a(t,_(b),e);if(o){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,b,r,h,v,E):h&&(h[r]=t),e||(b=t)}};S=await o.call(t,b,r,h,v,E,s)}if(S===s)break;if(S===i){if(!e){v.pop();continue}}else if(void 0!==S&&(w.push([r,S]),!e)){if(!u(S)){v.pop();continue}b=S}}var x;if(void 0===S&&M&&w.push([r,b]),!e)p={inArray:f,index:g,keys:y,edits:w,prev:p},f=Array.isArray(b),y=f?b:null!==(x=m[_(b)])&&void 0!==x?x:[],g=-1,w=[],h!==o&&void 0!==h&&E.push(h),h=b}while(void 0!==p);return 0!==w.length?w[w.length-1][1]:e};var xt=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){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 Mt(e){return function(t){return new xt(e,t)}}const St=s(E(["all"],Mt,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));const At=n((function(e){return R(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}))(s(ye)),Tt=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ot=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,It=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Rt=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof re.wE)&&t.classes.includes(e),Ft=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Pt=e=>e({hasMethod:Tt,hasBasicElementProps:Ot,primitiveEq:It,isElementType:Ft,hasClass:Rt}),jt=Pt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof re.Hg||e(r)&&t(void 0,r))),Nt=Pt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof re.Om||e(r)&&t("string",r))),Ct=Pt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof re.kT||e(r)&&t("number",r))),kt=Pt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof re.Os||e(r)&&t("null",r))),Ut=Pt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof re.bd||e(r)&&t("boolean",r))),Lt=Pt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof re.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Bt=Pt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof re.wE&&!(n instanceof re.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Vt=Pt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof re.Pr||e(n)&&t("member",n)&&r(void 0,n))),Dt=Pt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof re.Ft||e(n)&&t("link",n)&&r(void 0,n))),qt=Pt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof re.sI||e(n)&&t("ref",n)&&r(void 0,n))),$t=Pt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ze||e(n)&&t("annotation",n)&&r("array",n))),Wt=Pt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xe||e(n)&&t("comment",n)&&r("string",n))),Ht=Pt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Je||e(n)&&t("parseResult",n)&&r("array",n))),Gt=e=>Ft("object",e)||Ft("array",e)||Ft("boolean",e)||Ft("number",e)||Ft("string",e)||Ft("null",e)||Ft("member",e),Zt=e=>!!jt(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),zt=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Bt(r)&&St(At(r.toValue()),e)},Kt=(e,t)=>0===e.length||St(At(t.classes.toValue()),e);const Xt=class extends ht{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Yt=class extends Xt{};const Jt=class extends Xt{};const Qt=s((function(e,t){return p((function(r,n){return r[n]=e(t[n],n,t),r}),{},B(t))}));const er=n((function(e){return null==e}));var tr=s((function(e,t){if(0===e.length||er(t))return!1;for(var r=t,n=0;n<e.length;){if(er(r)||!F(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const rr=tr;var nr=s((function(e,t){return rr([e],t)}));const sr=nr;const or=o((function(e,t,r){return e(c(t,r))}));const ir=s(Oe);const ar=n((function(e){return R(e.length,e)}));const _r=s((function(e,t){return R(e+1,(function(){var r=arguments[e];if(null!=r&&Re(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Te(r)+' does not have a method named "'+t+'"')}))}));const ur=_r(1,"split");var cr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=S,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 lr(e){return function(t){return new cr(e,t)}}const dr=s(E(["dropWhile"],lr,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return de(r,1/0,t)})));const mr=_r(1,"join");const pr=ar((function(e,t){return pe(ur(""),dr(At(e)),mr(""))(t)})),hr=(e,t)=>{const r=i(e,t);return Qt((e=>{if(Ge(e)&&sr("$ref",e)&&or(nt,"$ref",e)){const t=ir(["$ref"],e),n=pr("#/",t);return ir(n.split("/"),r)}return Ge(e)?hr(e,r):e}),e)},fr=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e),yr=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof re.KeyValuePair){const{key:t,value:s}=e,o=jt(t)?yr(t,n):t,i=jt(s)?yr(s,n):s,a=new re.KeyValuePair(o,i);return r.set(e,a),a}if(e instanceof re.ot){const t=e=>yr(e,n),s=[...e].map(t),o=new re.ot(s);return r.set(e,o),o}if(e instanceof re.G6){const t=e=>yr(e,n),s=[...e].map(t),o=new re.G6(s);return r.set(e,o),o}if(jt(e)){const t=br(e);if(r.set(e,t),e.content)if(jt(e.content))t.content=yr(e.content,n);else if(e.content instanceof re.KeyValuePair)t.content=yr(e.content,n);else if(Array.isArray(e.content)){const r=e=>yr(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Yt("Value provided to cloneDeep function couldn't be cloned",{value:e})};yr.safe=e=>{try{return yr(e)}catch{return e}};const gr=e=>{const{key:t,value:r}=e;return new re.KeyValuePair(t,r)},wr=e=>{const t=new e.constructor;if(t.element=e.element,Zt(e)&&fr(t,e),e.meta.length>0&&(t._meta=yr(e.meta)),e.attributes.length>0&&(t._attributes=yr(e.attributes)),jt(e.content)){const r=e.content;t.content=wr(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof re.KeyValuePair?t.content=gr(e.content):t.content=e.content;return t},br=e=>{if(e instanceof re.KeyValuePair)return gr(e);if(e instanceof re.ot)return(e=>{const t=[...e];return new re.ot(t)})(e);if(e instanceof re.G6)return(e=>{const t=[...e];return new re.G6(t)})(e);if(jt(e))return wr(e);throw new Jt("Value provided to cloneShallow function couldn't be cloned",{value:e})};br.safe=e=>{try{return br(e)}catch{return e}};const vr=e=>Lt(e)?"ObjectElement":Bt(e)?"ArrayElement":Vt(e)?"MemberElement":Nt(e)?"StringElement":Ut(e)?"BooleanElement":Ct(e)?"NumberElement":kt(e)?"NullElement":Dt(e)?"LinkElement":qt(e)?"RefElement":void 0,Er=e=>jt(e)?br(e):bt(e),xr=pe(vr,nt),Mr={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const Sr=(e,t,{keyMap:r=Mr,...n}={})=>Et(e,t,{keyMap:r,nodeTypeGetter:vr,nodePredicate:xr,nodeCloneFn:Er,...n});Sr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Mr,...n}={})=>Et[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:vr,nodePredicate:xr,nodeCloneFn:Er,...n});const Ar=o((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})F(n,t)&&(s[n]=F(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)F(n,r)&&!F(n,s)&&(s[n]=r[n]);return s}));const Tr=o((function e(t,r,n){return Ar((function(r,n,s){return ve(n)&&ve(s)?e(t,n,s):t(r,n,s)}),r,n)}));const Or=s((function(e,t){return Tr((function(e,t,r){return r}),e,t)}));const Ir=de(0,-1);const Rr=s((function(e,t){return e.apply(this,t)}));const Fr=W(qe);var Pr=n((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():h(e)?[]:_(e)?"":ve(e)?{}:j(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const jr=Pr;const Nr=n((function(e){return null!=e&&Y(e,jr(e))}));const Cr=Pe(R(1,qe(Array.isArray)?Array.isArray:pe(z,fe("Array"))),Nr);const kr=R(3,(function(e,t,r){var n=ir(e,r),s=ir(Ir(e),r);if(!Fr(n)&&!Cr(e)){var o=oe(n,s);return Rr(o,t)}})),Ur=()=>({predicates:{...e},namespace:rt}),Lr={toolboxCreator:Ur,visitorOptions:{nodeTypeGetter:vr,exposeEdits:!0}},Br=(e,t,r={})=>{if(0===t.length)return e;const n=Or(Lr,r),{toolboxCreator:s,visitorOptions:o}=n,i=s(),a=t.map((e=>e(i))),_=vt(a.map(l({},"visitor")),{...o});a.forEach(kr(["pre"],[]));const u=Sr(e,_,o);return a.forEach(kr(["post"],[])),u};Br[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=Or(Lr,r),{toolboxCreator:s,visitorOptions:o}=n,i=s(),a=t.map((e=>e(i))),_=vt[Symbol.for("nodejs.util.promisify.custom")],u=Sr[Symbol.for("nodejs.util.promisify.custom")],c=_(a.map(l({},"visitor")),{...o});await Promise.allSettled(a.map(kr(["pre"],[])));const d=await u(e,c,o);return await Promise.allSettled(a.map(kr(["post"],[]))),d};const Vr=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return jt(e)&&(e.meta.length>0&&(n.meta=yr(e.meta)),e.attributes.length>0&&(n.attributes=yr(e.attributes))),Br(n,r,{toolboxCreator:Ur,visitorOptions:{nodeTypeGetter:vr}})},Dr=e=>(t,r={})=>Vr(t,{...r,Type:e});re.Sh.refract=Dr(re.Sh),re.wE.refract=Dr(re.wE),re.Om.refract=Dr(re.Om),re.bd.refract=Dr(re.bd),re.Os.refract=Dr(re.Os),re.kT.refract=Dr(re.kT),re.Ft.refract=Dr(re.Ft),re.sI.refract=Dr(re.sI),ze.refract=Dr(ze),Xe.refract=Dr(Xe),Je.refract=Dr(Je);const qr=class{type;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];constructor(e){this.type=e.nodeType,this.startPositionRow=e.startPosition.row,this.startPositionColumn=e.startPosition.column,this.startIndex=e.startIndex,this.endPositionRow=e.endPosition.row,this.endPositionColumn=e.endPosition.column,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}pushChildren(...e){this.children.push(...e)}};const $r=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(Gt);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}enter(e){if(e instanceof qr&&!e.isNamed&&e.isMissing){const t=e.type||e.text,r=new ze(`(Missing ${t})`);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}document(e){const t=new Je;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new re.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new re.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new re.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new re.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new re.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new re.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new re.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new re.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,r,n){const s=!e.hasError,o=e.text,i=new ze(s?`(Unexpected ${o})`:`(Error ${o})`);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===n.length){const e=new Je;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){this.sourceMap&&fr(t,e)}};class Wr{cursor;constructor(e){this.cursor=e}document(){return new qr(this.cursor)}object(){return new qr(this.cursor).setFieldName(this.cursor)}array(){return new qr(this.cursor).setFieldName(this.cursor)}pair(){return new qr(this.cursor)}string(){return new qr(this.cursor).setFieldName(this.cursor)}number(){return new qr(this.cursor).setFieldName(this.cursor)}null(){return new qr(this.cursor).setFieldName(this.cursor)}true(){return new qr(this.cursor).setFieldName(this.cursor)}false(){return new qr(this.cursor).setFieldName(this.cursor)}ERROR(){return new qr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new qr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Wr(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Wr(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const Hr=Wr,Gr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...Mr},Zr=e=>Ht(e)?"ParseResultElement":jt(e)?vr(e):gt(e),zr=e=>jt(e)||wt(e),Kr=(e,{sourceMap:t=!1}={})=>{const r=new $r,n=e.walk(),s=new Hr(n),[o]=Array.from(s);return Et(o,r,{keyMap:Gr,nodeTypeGetter:Zr,nodePredicate:zr,state:{sourceMap:t}})};const Xr=n((function(e){return u(0,e)}));const Yr=class{static type="node";type="node";isMissing;children;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;constructor({children:e=[],isMissing:t=!1,startPositionRow:r,startPositionColumn:n,startIndex:s,endPositionRow:o,endPositionColumn:i,endIndex:a}={}){this.type=this.constructor.type,this.isMissing=t,this.children=e,this.startPositionRow=r,this.startPositionColumn=n,this.startIndex=s,this.endPositionRow=o,this.endPositionColumn=i,this.endIndex=a}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}};const Jr=class extends Yr{};const Qr=class extends Jr{static type="document";get child(){return Xr(this.children)}};const en=class extends Yr{static type="parseResult";get rootNode(){return Xr(this.children)}};const tn=class extends Yr{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}},rn=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,nn=e=>rn("string",e),sn=e=>rn("false",e),on=e=>rn("true",e),an=e=>rn("null",e),_n=e=>rn("number",e),un=e=>rn("array",e),cn=e=>rn("object",e),ln=e=>rn("property",e),dn=e=>rn("key",e);const mn=class extends Jr{static type="object";get properties(){return this.children.filter(ln)}};const pn=class extends Jr{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>rn("stringContent",e))(e)||(e=>rn("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}};const hn=class extends pn{static type="key"};const fn=class extends Jr{static type="property";get key(){return this.children.find(dn)}get value(){return this.children.find((e=>sn(e)||on(e)||an(e)||_n(e)||nn(e)||un(e)||cn(e)))}};const yn=class extends Jr{static type="array";get items(){return this.children.filter((e=>sn(e)||on(e)||an(e)||_n(e)||nn(e)||un(e)||cn))}};const gn=class extends Jr{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const wn=class extends gn{static type="stringContent"};const bn=class extends gn{static type="number"};const vn=class extends gn{static type="null"};const En=class extends gn{static type="true"};const xn=class extends gn{static type="false"};const Mn=class extends Yr{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}},Sn={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};const An=class{document={enter:e=>new Qr(fr({children:e.children,isMissing:e.isMissing},e)),leave:e=>new en({children:[e]})};enter(e){if(e instanceof qr&&!e.isNamed){const t=e.type||e.text,{isMissing:r}=e;return new tn(fr({value:t,isMissing:r},e))}}object(e){return new mn(fr({children:e.children,isMissing:e.isMissing},e))}pair(e){const t=e.children.slice(1),{keyNode:r}=e,n=new hn(fr({children:(null==r?void 0:r.children)||[],isMissing:null!=r&&r.isMissing},r));return new fn(fr({children:[n,...t],isMissing:e.isMissing},e))}array(e){return new yn(fr({children:e.children,isMissing:e.isMissing},e))}string(e){const t=new wn({value:JSON.parse(e.text)});return new pn(fr({children:[t],isMissing:e.isMissing},e))}number(e){const t=e.text;return new bn(fr({value:t,isMissing:e.isMissing},e))}null(e){const t=e.text;return new vn(fr({value:t,isMissing:e.isMissing},e))}true(e){const t=e.text;return new En(fr({value:t,isMissing:e.isMissing},e))}false(e){const t=e.text;return new xn(fr({value:t,isMissing:e.isMissing},e))}ERROR(e,t,r,n){const s=new Mn(fr({children:e.children,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text},e));return 0===n.length?new en({children:[s]}):s}},Tn={[en.type]:["children"],[Qr.type]:["children"],[mn.type]:["children"],[fn.type]:["children"],[yn.type]:["children"],[Mn.type]:["children"],...Mr},On=e=>Ht(e)?"ParseResultElement":jt(e)?vr(e):gt(e),In=e=>jt(e)||wt(e);const Rn=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(Gt);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}document(e){const t=new Je;return t._content=e.children,t}object(e){const t=new re.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new re.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new re.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new re.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new re.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new re.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new re.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new re.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new re.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,r=new ze(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 ${e.value})`:`(Error ${e.value})`,o=new ze(s);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===n.length){const e=new Je;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){this.sourceMap&&fr(t,e)}},Fn=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),n=new Hr(r),[s]=Array.from(n),o=new An,i=new Rn,a=Et(s,o,{keyMap:Sn,state:{sourceMap:t}});return Et(a.rootNode,i,{keyMap:Tn,nodeTypeGetter:On,nodePredicate:In,state:{sourceMap:t}})},Pn=(tt(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);const jn=function(){return!0},Nn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:vr(e),Cn={EphemeralObject:["content"],EphemeralArray:["content"],...Mr},kn=(e,t,{keyMap:r=Cn,...n}={})=>Sr(e,t,{keyMap:r,nodeTypeGetter:Nn,nodePredicate:jn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});kn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Cn,...r}={})=>Sr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Nn,nodePredicate:jn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Un=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 Ln=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 Bn{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Ln(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 Un(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Nt(e.href)?e.href.toValue():""}}const Vn=e=>jt(e)?Nt(e)||Ct(e)||Ut(e)||kt(e)?e.toValue():kn(e,new Bn):e,Dn=e=>{const t=e.meta.length>0?yr(e.meta):void 0,r=e.attributes.length>0?yr(e.attributes):void 0;return new e.constructor(void 0,t,r)},qn=(e,t)=>t.clone&&t.isMergeableElement(e)?Wn(Dn(e),e,t):e,$n={clone:!0,isMergeableElement:e=>Lt(e)||Bt(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>qn(e,r))),objectElementMerge:(e,t,r)=>{const n=Lt(e)?Dn(e):Dn(t);return Lt(e)&&e.forEach(((e,t,s)=>{const o=br(s);o.value=qn(e,r),n.content.push(o)})),t.forEach(((t,s,o)=>{const i=Vn(s);let a;if(Lt(e)&&e.hasKey(i)&&r.isMergeableElement(t)){const n=e.get(i);a=br(o),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Wn;const r=t.customMerge(e,t);return"function"==typeof r?r:Wn})(s,r)(n,t,r)}else a=br(o),a.value=qn(t,r);n.remove(i),n.content.push(a)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Wn=(e,t,r)=>{var n,s,o;const i={...$n,...r};i.isMergeableElement=null!==(n=i.isMergeableElement)&&void 0!==n?n:$n.isMergeableElement,i.arrayElementMerge=null!==(s=i.arrayElementMerge)&&void 0!==s?s:$n.arrayElementMerge,i.objectElementMerge=null!==(o=i.objectElementMerge)&&void 0!==o?o:$n.objectElementMerge;const a=Bt(t);if(!(a===Bt(e)))return qn(t,i);const _=a&&"function"==typeof i.arrayElementMerge?i.arrayElementMerge(e,t,i):i.objectElementMerge(e,t,i);return _.meta=(e=>"function"!=typeof e.customMetaMerge?e=>yr(e):e.customMetaMerge)(i)(e.meta,t.meta),_.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>yr(e):e.customAttributesMerge)(i)(e.attributes,t.attributes),_};Wn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new re.Sh:e.reduce(((e,r)=>Wn(e,r,t)),Dn(e[0]))};const Hn=Wn;const Gn=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Hn(t.meta,e.meta)),Zt(e)&&fr(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Hn(t.attributes,e.attributes))}};const Zn=class extends Gn{enter(e){return this.element=yr(e),yt}},zn=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},Kn=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:Kn(r,[...t,r])},Xn=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>Kn(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,o=Object.create(s),i=Kn(s);for(let t of e){let e=Kn(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===i.indexOf(n)&&(zn(o,n,["constructor",...r]),i.push(n))}}return o.constructor=t,o},Yn=e=>e.filter(((t,r)=>e.indexOf(t)==r)),Jn=(e,t)=>{const r=t.map((e=>Kn(e)));let n=0,s=!0;for(;s;){s=!1;for(let o=t.length-1;o>=0;o--){const t=r[o][n];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[o][0]}n++}},Qn=(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(Jn(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==Jn(n,e)||void 0!==t[n],get:(r,n)=>(Jn(n,e)||t)[n],set(t,r,n){const s=Jn(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)))))}),es=null,ts="copy",rs="copy",ns="deep",ss=new WeakMap,os=e=>ss.get(e),is=(e,t)=>{var r,n;const s=Yn([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),o={};for(let i of s)o[i]=Yn([...null!==(r=null==e?void 0:e[i])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[i])&&void 0!==n?n:[]]);return o},as=(e,t)=>{var r,n,s,o;return{property:is(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:is(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(o=null==t?void 0:t.method)&&void 0!==o?o:{})}},_s=(e,t)=>{var r,n,s,o,i,a;return{class:Yn([...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:as(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(o=null==t?void 0:t.static)&&void 0!==o?o:{}),instance:as(null!==(i=null==e?void 0:e.instance)&&void 0!==i?i:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},us=new Map,cs=(...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=[...Kn(e.prototype).map((e=>e.constructor)),...null!==(t=os(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=>us.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>_s(e,t)))},ls=e=>{let t=us.get(e);return t||(t={},us.set(e,t)),t};function ds(...e){var t,r,n;const s=e.map((e=>e.prototype)),o=es;if(null!==o){const e=s.map((e=>e[o])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[o]:t};s.push(r)}function i(...t){for(const r of e)zn(this,new r(...t));null!==o&&"function"==typeof this[o]&&this[o].apply(this,t)}var a,_;i.prototype="copy"===rs?Xn(s,i):(a=s,_=i,Qn([...a,{constructor:_}])),Object.setPrototypeOf(i,"copy"===ts?Xn(e,null,["prototype"]):Qn(e,Function.prototype));let u=i;if("none"!==ns){const s="deep"===ns?cs(...e):((...e)=>{const t=e.map((e=>ls(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>_s(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)}ms(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},u),ms(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},u.prototype)}var c,l;return c=u,l=e,ss.set(c,l),u}const ms=(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 ps=s((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}));const hs=class extends Gn{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return ps(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=ir(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ie(qe,["visitors",...e],this.specObj)?ir(["visitors",...e],this.specObj):ir(["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 Zn&&(null==n?void 0:n.constructor)===Zn?yr(t):(Sr(t,n,r),n.element)}};class fs extends re.Om{constructor(e,t,r){super(e,t,r),this.element="requirementLevel"}}const ys=fs;class gs extends(ds(hs,Zn)){StringElement(e){const t=new ys(Vn(e));return this.copyMetaAndAttributes(e,t),this.element=t,yt}}const ws=gs;class bs extends re.wE{constructor(e,t,r){super(e,t,r),this.element="standardIdentifier"}}const vs=bs;class Es extends(ds(hs,Zn)){constructor(e){super(e),this.element=new vs}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","StandardIdentifier"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),yt}}const xs=Es;class Ms extends re.Sh{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 Ss=Ms;const As=class extends hs{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(Nt(n)&&r.includes(Vn(n))&&!this.ignoredFields.includes(Vn(n))){const r=this.toRefractedElement([...t,"fixedFields",Vn(n)],e),o=new re.Pr(yr(n),r);o.classes.push("fixed-field"),this.copyMetaAndAttributes(s,o),this.element.content.push(o)}else this.ignoredFields.includes(Vn(n))||this.element.content.push(yr(s))})),this.copyMetaAndAttributes(e,this.element),yt}};class Ts extends(ds(As,Zn)){constructor(e){super(e),this.element=new Ss,this.specPath=J(["document","objects","Requirement"])}}const Os=Ts;class Is extends re.Sh{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 Rs=Is;class Fs extends(ds(As,Zn)){constructor(e){super(e),this.element=new Rs,this.specPath=J(["document","objects","Scenario"])}}const Ps=Fs;class js extends(ds(hs,Zn)){constructor(e){super(e),this.element=new re.wE,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),yt}}const Ns=js;class Cs extends re.Sh{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 ks=Cs;class Us extends(ds(As,Zn)){constructor(e){super(e),this.element=new ks,this.specPath=J(["document","objects","Standard"])}}const Ls=Us;class Bs extends re.Sh{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 Vs=Bs;class Ds extends(ds(As,Zn)){constructor(e){super(e),this.element=new Vs,this.specPath=J(["document","objects","Principle"])}}const qs=Ds;class $s extends re.Sh{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 Ws=$s;class Hs extends(ds(As,Zn)){constructor(e){super(e),this.specPath=J(["document","objects","Info"]),this.element=new Ws}}const Gs=Hs;class Zs extends re.Sh{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 zs=Zs;class Ks extends(ds(As,Zn)){constructor(e){super(e),this.element=new zs,this.specPath=J(["document","objects","Main"])}}const Xs=Ks;class Ys extends(ds(hs,Zn)){constructor(e){super(e),this.element=new re.wE,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),yt}}const Js=Ys;class Qs extends(ds(hs,Zn)){constructor(e){super(e),this.element=new re.wE,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),yt}}const eo=Qs;class to extends(ds(hs,Zn)){constructor(e){super(e),this.element=new re.wE,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),yt}}const ro={visitors:{value:Zn,document:{objects:{Main:{$visitor:Xs,fixedFields:{version:{$ref:"#/visitors/value"},info:{$ref:"#/visitors/document/objects/Info"},principles:Js,standards:eo,scenarios:to}},Info:{$visitor:Gs,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Principle:{$visitor:qs,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},iri:{$ref:"#/visitors/value"},level:{$ref:"#/visitors/document/objects/RequirementLevel"}}},Standard:{$visitor:Ls,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},level:{$ref:"#/visitors/document/objects/RequirementLevel"},iri:{$ref:"#/visitors/value"}}},Scenario:{$visitor:Ps,fixedFields:{description:{$ref:"#/visitors/value"},when:{$ref:"#/visitors/document/objects/StandardIdentifier"},then:Ns}},Requirement:{$visitor:Os,fixedFields:{subject:{$ref:"#/visitors/document/objects/StandardIdentifier"},level:{$ref:"#/visitors/document/objects/RequirementLevel"},values:{$ref:"#/visitors/value"},follows:{$ref:"#/visitors/value"}}},StandardIdentifier:{$visitor:xs},RequirementLevel:{$visitor:ws}}}}},no=e=>{if(jt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},so={MainElement:["content"],InfoElement:["content"],PrincipleElement:["content"],StandardElement:["content"],ScenarioElement:["content"],RequirementElement:["content"],StandardIdentifierElement:["content"],RequirementLevelElement:[],...Mr},oo=Pt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zs||e(n)&&t("main",n)&&r("object",n))),io=Pt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ws||e(n)&&t("info",n)&&r("object",n))),ao=Pt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vs||e(n)&&t("principle",n)&&r("object",n))),_o=Pt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ss||e(n)&&t("requirement",n)&&r("object",n))),uo=Pt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ys||e(n)&&t("requirementLevel",n)&&r("string",n))),co=Pt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rs||e(n)&&t("scenario",n)&&r("object",n))),lo=Pt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ks||e(n)&&t("standard",n)&&r("object",n))),mo=Pt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vs||e(n)&&t("standardIdentifier",n)&&r("array",n))),po={namespace:e=>{const{base:t}=e;return t.register("info",Ws),t.register("main",zs),t.register("principle",Vs),t.register("requirement",Ss),t.register("requirementLevel",ys),t.register("scenario",Rs),t.register("standard",ks),t.register("standardIdentifier",vs),t}},ho=()=>{const e=tt(po);return{predicates:{...t,isStringElement:Nt},namespace:e}},fo=(e,{specPath:t=["visitors","document","objects","Main","$visitor"],plugins:r=[]}={})=>{const n=(0,re.e)(e),s=hr(ro),o=new(ir(t,s))({specObj:s});return Sr(n,o),Br(o.element,r,{toolboxCreator:ho,visitorOptions:{keyMap:so,nodeTypeGetter:no}})},yo=e=>(t,r={})=>fo(t,{...r,specPath:e});zs.refract=yo(["visitors","document","objects","Main","$visitor"]),Ws.refract=yo(["visitors","document","objects","Info","$visitor"]),Vs.refract=yo(["visitors","document","objects","Principle","$visitor"]),Ss.refract=yo(["visitors","document","objects","Requirement","$visitor"]),ys.refract=yo(["visitors","document","objects","RequirementLevel","$visitor"]),Rs.refract=yo(["visitors","document","objects","Scenario","$visitor"]),ks.refract=yo(["visitors","document","objects","Standard","$visitor"]),vs.refract=yo(["visitors","document","objects","StandardIdentifier","$visitor"]);const go=n((function(e){return u(-1,e)}));const wo=class extends ct{};const bo=class extends wo{};const vo=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new bo("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new bo("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new bo("latest method in MediaTypes class is not yet implemented.")}};class Eo extends vo{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 go(this.filterByFormat(e))}}const xo=new Eo("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"),Mo=new Eo(...xo.filterByFormat("generic"),...xo.filterByFormat("json")),So=/"version"\s*:\s*"(?<version_json>2021-05-07)"/,Ao=async e=>So.test(e)&&await(async e=>{if(!Pn.test(e))return!1;try{return"ERROR"!==(await pt(e)).rootNode.type}catch{return!1}})(e),To=async(e,t={})=>{const r=l({},"refractorOpts",t),n=m(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const n=await pt(e);let s;return s="indirect"===r?Fn(n,{sourceMap:t}):Kr(n,{sourceMap:t}),s})(e,n),{result:o}=s;if(te(o)){const e=zs.refract(o,r);e.classes.push("result"),s.replaceResult(e)}return s},Oo=tt(po)})(),__webpack_exports__})()));