Files
simple-mail-cleaner/backend/node_modules/chevrotain/lib/chevrotain.min.js
2026-01-23 01:33:35 +01:00

2 lines
201 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see chevrotain.min.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("chevrotain",[],e):"object"==typeof exports?exports.chevrotain=e():t.chevrotain=e()}("undefined"!=typeof self?self:this,(()=>(()=>{var t={4466:(t,e,r)=>{var n=r(5234)(r(3250),"DataView");t.exports=n},5208:(t,e,r)=>{var n=r(4440),o=r(4108),i=r(1085),a=r(7706),s=r(8636);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},1998:(t,e,r)=>{var n=r(266),o=r(2875),i=r(5828),a=r(4115),s=r(7690);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},2887:(t,e,r)=>{var n=r(5234)(r(3250),"Map");t.exports=n},5678:(t,e,r)=>{var n=r(9016),o=r(2363),i=r(4348),a=r(3062),s=r(262);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},5747:(t,e,r)=>{var n=r(5234)(r(3250),"Promise");t.exports=n},6616:(t,e,r)=>{var n=r(5234)(r(3250),"Set");t.exports=n},4546:(t,e,r)=>{var n=r(5678),o=r(3937),i=r(5009);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},9549:(t,e,r)=>{var n=r(1998),o=r(3210),i=r(8603),a=r(8947),s=r(885),u=r(8938);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},861:(t,e,r)=>{var n=r(3250).Symbol;t.exports=n},3526:(t,e,r)=>{var n=r(3250).Uint8Array;t.exports=n},8001:(t,e,r)=>{var n=r(5234)(r(3250),"WeakMap");t.exports=n},2274:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},8660:t=>{t.exports=function(t,e,r,n){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(n,a,r(a),t)}return n}},4004:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},9865:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}},2493:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},5436:(t,e,r)=>{var n=r(4365);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},9105:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},5825:(t,e,r)=>{var n=r(8509),o=r(9312),i=r(5589),a=r(5778),s=r(5023),u=r(922),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),f=!r&&!l&&a(t),p=!r&&!l&&!f&&u(t),d=r||l||f||p,h=d?n(t.length,String):[],v=h.length;for(var y in t)!e&&!c.call(t,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,v))||h.push(y);return h}},9233:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},111:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},5115:t=>{t.exports=function(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}},1831:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},9512:t=>{t.exports=function(t){return t.split("")}},3192:(t,e,r)=>{var n=r(7500),o=r(8260),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},8498:(t,e,r)=>{var n=r(8260);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},3792:(t,e,r)=>{var n=r(1701);t.exports=function(t,e,r,o){return n(t,(function(t,n,i){e(o,t,r(t),i)})),o}},4265:(t,e,r)=>{var n=r(8618),o=r(2096);t.exports=function(t,e){return t&&n(e,o(e),t)}},1629:(t,e,r)=>{var n=r(8618),o=r(9882);t.exports=function(t,e){return t&&n(e,o(e),t)}},7500:(t,e,r)=>{var n=r(5595);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},8361:(t,e,r)=>{var n=r(9549),o=r(4004),i=r(3192),a=r(4265),s=r(1629),u=r(6502),c=r(2166),l=r(7272),f=r(2066),p=r(4357),d=r(5713),h=r(7493),v=r(2865),y=r(1908),m=r(4046),T=r(5589),E=r(5778),_=r(7613),g=r(3702),O=r(693),R=r(2096),A=r(9882),N="[object Arguments]",x="[object Function]",I="[object Object]",P={};P[N]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[I]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[x]=P["[object WeakMap]"]=!1,t.exports=function t(e,r,S,b,L,k){var C,M=1&r,D=2&r,w=4&r;if(S&&(C=L?S(e,b,L,k):S(e)),void 0!==C)return C;if(!g(e))return e;var F=T(e);if(F){if(C=v(e),!M)return c(e,C)}else{var j=h(e),U=j==x||"[object GeneratorFunction]"==j;if(E(e))return u(e,M);if(j==I||j==N||U&&!L){if(C=D||U?{}:m(e),!M)return D?f(e,s(C,e)):l(e,a(C,e))}else{if(!P[j])return L?e:{};C=y(e,j,M)}}k||(k=new n);var G=k.get(e);if(G)return G;k.set(e,C),O(e)?e.forEach((function(n){C.add(t(n,r,S,n,e,k))})):_(e)&&e.forEach((function(n,o){C.set(o,t(n,r,S,o,e,k))}));var B=F?void 0:(w?D?d:p:D?A:R)(e);return o(B||e,(function(n,o){B&&(n=e[o=n]),i(C,o,t(n,r,S,o,e,k))})),C}},7890:(t,e,r)=>{var n=r(3702),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},3700:(t,e,r)=>{var n=r(4546),o=r(5436),i=r(9105),a=r(9233),s=r(1525),u=r(7026);t.exports=function(t,e,r,c){var l=-1,f=o,p=!0,d=t.length,h=[],v=e.length;if(!d)return h;r&&(e=a(e,s(r))),c?(f=i,p=!1):e.length>=200&&(f=u,p=!1,e=new n(e));t:for(;++l<d;){var y=t[l],m=null==r?y:r(y);if(y=c||0!==y?y:0,p&&m==m){for(var T=v;T--;)if(e[T]===m)continue t;h.push(y)}else f(e,m,c)||h.push(y)}return h}},1701:(t,e,r)=>{var n=r(4003),o=r(6313)(n);t.exports=o},5869:(t,e,r)=>{var n=r(1701);t.exports=function(t,e){var r=!0;return n(t,(function(t,n,o){return r=!!e(t,n,o)})),r}},8146:(t,e,r)=>{var n=r(1701);t.exports=function(t,e){var r=[];return n(t,(function(t,n,o){e(t,n,o)&&r.push(t)})),r}},4770:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},6640:(t,e,r)=>{var n=r(111),o=r(7123);t.exports=function t(e,r,i,a,s){var u=-1,c=e.length;for(i||(i=o),s||(s=[]);++u<c;){var l=e[u];r>0&&i(l)?r>1?t(l,r-1,i,a,s):n(s,l):a||(s[s.length]=l)}return s}},9943:(t,e,r)=>{var n=r(2545)();t.exports=n},4003:(t,e,r)=>{var n=r(9943),o=r(2096);t.exports=function(t,e){return t&&n(t,e,o)}},548:(t,e,r)=>{var n=r(4007),o=r(6040);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},4468:(t,e,r)=>{var n=r(111),o=r(5589);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},9823:(t,e,r)=>{var n=r(861),o=r(1339),i=r(5151),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},2586:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t,r){return null!=t&&e.call(t,r)}},2902:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},4365:(t,e,r)=>{var n=r(4770),o=r(6963),i=r(5898);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},3016:(t,e,r)=>{var n=r(9823),o=r(440);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},4662:(t,e,r)=>{var n=r(8968),o=r(440);t.exports=function t(e,r,i,a,s){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,s))}},8968:(t,e,r)=>{var n=r(9549),o=r(4952),i=r(1080),a=r(6524),s=r(7493),u=r(5589),c=r(5778),l=r(922),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,y,m){var T=u(t),E=u(e),_=T?p:s(t),g=E?p:s(e),O=(_=_==f?d:_)==d,R=(g=g==f?d:g)==d,A=_==g;if(A&&c(t)){if(!c(e))return!1;T=!0,O=!1}if(A&&!O)return m||(m=new n),T||l(t)?o(t,e,r,v,y,m):i(t,e,_,r,v,y,m);if(!(1&r)){var N=O&&h.call(t,"__wrapped__"),x=R&&h.call(e,"__wrapped__");if(N||x){var I=N?t.value():t,P=x?e.value():e;return m||(m=new n),y(I,P,r,v,m)}}return!!A&&(m||(m=new n),a(t,e,r,v,y,m))}},2275:(t,e,r)=>{var n=r(7493),o=r(440);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},2972:(t,e,r)=>{var n=r(9549),o=r(4662);t.exports=function(t,e,r,i){var a=r.length,s=a,u=!i;if(null==t)return!s;for(t=Object(t);a--;){var c=r[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var l=(c=r[a])[0],f=t[l],p=c[1];if(u&&c[2]){if(void 0===f&&!(l in t))return!1}else{var d=new n;if(i)var h=i(f,p,l,t,e,d);if(!(void 0===h?o(p,f,3,i,d):h))return!1}}return!0}},6963:t=>{t.exports=function(t){return t!=t}},9817:(t,e,r)=>{var n=r(5563),o=r(8597),i=r(3702),a=r(5784),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:s).test(a(t))}},8261:(t,e,r)=>{var n=r(9823),o=r(440);t.exports=function(t){return o(t)&&"[object RegExp]"==n(t)}},7170:(t,e,r)=>{var n=r(7493),o=r(440);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},2448:(t,e,r)=>{var n=r(9823),o=r(6052),i=r(440),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},5833:(t,e,r)=>{var n=r(5640),o=r(9906),i=r(229),a=r(5589),s=r(4437);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):s(t)}},1351:(t,e,r)=>{var n=r(2840),o=r(2825),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},1309:(t,e,r)=>{var n=r(3702),o=r(2840),i=r(4866),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&r.push(s);return r}},8068:(t,e,r)=>{var n=r(1701),o=r(568);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},5640:(t,e,r)=>{var n=r(2972),o=r(2198),i=r(4656);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},9906:(t,e,r)=>{var n=r(4662),o=r(3546),i=r(6708),a=r(5130),s=r(8802),u=r(4656),c=r(6040);t.exports=function(t,e){return a(t)&&s(e)?u(c(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},7121:(t,e,r)=>{var n=r(548),o=r(2619),i=r(4007);t.exports=function(t,e,r){for(var a=-1,s=e.length,u={};++a<s;){var c=e[a],l=n(t,c);r(l,c)&&o(u,i(c,t),l)}return u}},6174:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3293:(t,e,r)=>{var n=r(548);t.exports=function(t){return function(e){return n(e,t)}}},4306:t=>{t.exports=function(t,e,r,n,o){return o(t,(function(t,o,i){r=n?(n=!1,t):e(r,t,o,i)})),r}},9735:(t,e,r)=>{var n=r(229),o=r(340),i=r(4173);t.exports=function(t,e){return i(o(t,e,n),t+"")}},2619:(t,e,r)=>{var n=r(3192),o=r(4007),i=r(5023),a=r(3702),s=r(6040);t.exports=function(t,e,r,u){if(!a(t))return t;for(var c=-1,l=(e=o(e,t)).length,f=l-1,p=t;null!=p&&++c<l;){var d=s(e[c]),h=r;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(c!=f){var v=p[d];void 0===(h=u?u(v,d,p):void 0)&&(h=a(v)?v:i(e[c+1])?[]:{})}n(p,d,h),p=p[d]}return t}},6739:(t,e,r)=>{var n=r(9203),o=r(5595),i=r(229),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},7379:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},854:(t,e,r)=>{var n=r(1701);t.exports=function(t,e){var r;return n(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r}},8509:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},6245:(t,e,r)=>{var n=r(861),o=r(9233),i=r(5589),a=r(2624),s=n?n.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},1656:(t,e,r)=>{var n=r(2438),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},1525:t=>{t.exports=function(t){return function(e){return t(e)}}},135:(t,e,r)=>{var n=r(4546),o=r(5436),i=r(9105),a=r(7026),s=r(6262),u=r(7969);t.exports=function(t,e,r){var c=-1,l=o,f=t.length,p=!0,d=[],h=d;if(r)p=!1,l=i;else if(f>=200){var v=e?null:s(t);if(v)return u(v);p=!1,l=a,h=new n}else h=e?[]:d;t:for(;++c<f;){var y=t[c],m=e?e(y):y;if(y=r||0!==y?y:0,p&&m==m){for(var T=h.length;T--;)if(h[T]===m)continue t;e&&h.push(m),d.push(y)}else l(h,m,r)||(h!==d&&h.push(m),d.push(y))}return d}},71:(t,e,r)=>{var n=r(9233);t.exports=function(t,e){return n(e,(function(e){return t[e]}))}},7026:t=>{t.exports=function(t,e){return t.has(e)}},4781:(t,e,r)=>{var n=r(229);t.exports=function(t){return"function"==typeof t?t:n}},4007:(t,e,r)=>{var n=r(5589),o=r(5130),i=r(4041),a=r(9835);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},3237:(t,e,r)=>{var n=r(7379);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},2962:(t,e,r)=>{var n=r(3526);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},6502:(t,e,r)=>{t=r.nmd(t);var n=r(3250),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=s?s(r):new t.constructor(r);return t.copy(n),n}},7037:(t,e,r)=>{var n=r(2962);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},3429:t=>{var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},9349:(t,e,r)=>{var n=r(861),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},1327:(t,e,r)=>{var n=r(2962);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},2166:t=>{t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},8618:(t,e,r)=>{var n=r(3192),o=r(7500);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var s=-1,u=e.length;++s<u;){var c=e[s],l=i?i(r[c],t[c],c,r,t):void 0;void 0===l&&(l=t[c]),a?o(r,c,l):n(r,c,l)}return r}},7272:(t,e,r)=>{var n=r(8618),o=r(4450);t.exports=function(t,e){return n(t,o(t),e)}},2066:(t,e,r)=>{var n=r(8618),o=r(4969);t.exports=function(t,e){return n(t,o(t),e)}},1622:(t,e,r)=>{var n=r(3250)["__core-js_shared__"];t.exports=n},7325:(t,e,r)=>{var n=r(8660),o=r(3792),i=r(5833),a=r(5589);t.exports=function(t,e){return function(r,s){var u=a(r)?n:o,c=e?e():{};return u(r,t,i(s,2),c)}}},6948:(t,e,r)=>{var n=r(9735),o=r(8132);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var u=r[n];u&&t(e,u,n,a)}return e}))}},6313:(t,e,r)=>{var n=r(568);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,s=Object(r);(e?a--:++a<i)&&!1!==o(s[a],a,s););return r}}},2545:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),s=a.length;s--;){var u=a[t?s:++o];if(!1===r(i[u],u,i))break}return e}}},1254:(t,e,r)=>{var n=r(3237),o=r(3932),i=r(5233),a=r(9835);t.exports=function(t){return function(e){e=a(e);var r=o(e)?i(e):void 0,s=r?r[0]:e.charAt(0),u=r?n(r,1).join(""):e.slice(1);return s[t]()+u}}},9301:(t,e,r)=>{var n=r(5833),o=r(568),i=r(2096);t.exports=function(t){return function(e,r,a){var s=Object(e);if(!o(e)){var u=n(r,3);e=i(e),r=function(t){return u(s[t],t,s)}}var c=t(e,r,a);return c>-1?s[u?e[c]:c]:void 0}}},6262:(t,e,r)=>{var n=r(6616),o=r(1607),i=r(7969),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},5595:(t,e,r)=>{var n=r(5234),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},4952:(t,e,r)=>{var n=r(4546),o=r(1831),i=r(7026);t.exports=function(t,e,r,a,s,u){var c=1&r,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var p=u.get(t),d=u.get(e);if(p&&d)return p==e&&d==t;var h=-1,v=!0,y=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++h<l;){var m=t[h],T=e[h];if(a)var E=c?a(T,m,h,e,t,u):a(m,T,h,t,e,u);if(void 0!==E){if(E)continue;v=!1;break}if(y){if(!o(e,(function(t,e){if(!i(y,e)&&(m===t||s(m,t,r,a,u)))return y.push(e)}))){v=!1;break}}else if(m!==T&&!s(m,T,r,a,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},1080:(t,e,r)=>{var n=r(861),o=r(3526),i=r(8260),a=r(4952),s=r(1140),u=r(7969),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,r,n,c,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=s;case"[object Set]":var h=1&n;if(d||(d=u),t.size!=e.size&&!h)return!1;var v=p.get(t);if(v)return v==e;n|=2,p.set(t,e);var y=a(d(t),d(e),n,c,f,p);return p.delete(t),y;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6524:(t,e,r)=>{var n=r(4357),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,s){var u=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!u)return!1;for(var f=l;f--;){var p=c[f];if(!(u?p in e:o.call(e,p)))return!1}var d=s.get(t),h=s.get(e);if(d&&h)return d==e&&h==t;var v=!0;s.set(t,e),s.set(e,t);for(var y=u;++f<l;){var m=t[p=c[f]],T=e[p];if(i)var E=u?i(T,m,p,e,t,s):i(m,T,p,t,e,s);if(!(void 0===E?m===T||a(m,T,r,i,s):E)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var _=t.constructor,g=e.constructor;_==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof g&&g instanceof g||(v=!1)}return s.delete(t),s.delete(e),v}},302:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},4357:(t,e,r)=>{var n=r(4468),o=r(4450),i=r(2096);t.exports=function(t){return n(t,i,o)}},5713:(t,e,r)=>{var n=r(4468),o=r(4969),i=r(9882);t.exports=function(t){return n(t,i,o)}},7570:(t,e,r)=>{var n=r(8949);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},2198:(t,e,r)=>{var n=r(8802),o=r(2096);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},5234:(t,e,r)=>{var n=r(9817),o=r(7736);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},8490:(t,e,r)=>{var n=r(3540)(Object.getPrototypeOf,Object);t.exports=n},1339:(t,e,r)=>{var n=r(861),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[s]=r:delete t[s]),o}},4450:(t,e,r)=>{var n=r(2493),o=r(4506),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=s},4969:(t,e,r)=>{var n=r(111),o=r(8490),i=r(4450),a=r(4506),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:a;t.exports=s},7493:(t,e,r)=>{var n=r(4466),o=r(2887),i=r(5747),a=r(6616),s=r(8001),u=r(9823),c=r(5784),l="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",h="[object DataView]",v=c(n),y=c(o),m=c(i),T=c(a),E=c(s),_=u;(n&&_(new n(new ArrayBuffer(1)))!=h||o&&_(new o)!=l||i&&_(i.resolve())!=f||a&&_(new a)!=p||s&&_(new s)!=d)&&(_=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case v:return h;case y:return l;case m:return f;case T:return p;case E:return d}return e}),t.exports=_},7736:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},3544:(t,e,r)=>{var n=r(4007),o=r(9312),i=r(5589),a=r(5023),s=r(6052),u=r(6040);t.exports=function(t,e,r){for(var c=-1,l=(e=n(e,t)).length,f=!1;++c<l;){var p=u(e[c]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&s(l)&&a(p,l)&&(i(t)||o(t))}},3932:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},4440:(t,e,r)=>{var n=r(4545);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},4108:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},1085:(t,e,r)=>{var n=r(4545),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},7706:(t,e,r)=>{var n=r(4545),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},8636:(t,e,r)=>{var n=r(4545);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},2865:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},1908:(t,e,r)=>{var n=r(2962),o=r(7037),i=r(3429),a=r(9349),s=r(1327);t.exports=function(t,e,r){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return o(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return i(t);case"[object Symbol]":return a(t)}}},4046:(t,e,r)=>{var n=r(7890),o=r(8490),i=r(2840);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},7123:(t,e,r)=>{var n=r(861),o=r(9312),i=r(5589),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},5023:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},8132:(t,e,r)=>{var n=r(8260),o=r(568),i=r(5023),a=r(3702);t.exports=function(t,e,r){if(!a(r))return!1;var s=typeof e;return!!("number"==s?o(r)&&i(e,r.length):"string"==s&&e in r)&&n(r[e],t)}},5130:(t,e,r)=>{var n=r(5589),o=r(2624),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},8949:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},8597:(t,e,r)=>{var n,o=r(1622),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},2840:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},8802:(t,e,r)=>{var n=r(3702);t.exports=function(t){return t==t&&!n(t)}},266:t=>{t.exports=function(){this.__data__=[],this.size=0}},2875:(t,e,r)=>{var n=r(8498),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},5828:(t,e,r)=>{var n=r(8498);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},4115:(t,e,r)=>{var n=r(8498);t.exports=function(t){return n(this.__data__,t)>-1}},7690:(t,e,r)=>{var n=r(8498);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},9016:(t,e,r)=>{var n=r(5208),o=r(1998),i=r(2887);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},2363:(t,e,r)=>{var n=r(7570);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},4348:(t,e,r)=>{var n=r(7570);t.exports=function(t){return n(this,t).get(t)}},3062:(t,e,r)=>{var n=r(7570);t.exports=function(t){return n(this,t).has(t)}},262:(t,e,r)=>{var n=r(7570);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},1140:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},4656:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},2924:(t,e,r)=>{var n=r(7997);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},4545:(t,e,r)=>{var n=r(5234)(Object,"create");t.exports=n},2825:(t,e,r)=>{var n=r(3540)(Object.keys,Object);t.exports=n},4866:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},8690:(t,e,r)=>{t=r.nmd(t);var n=r(302),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},5151:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3540:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},340:(t,e,r)=>{var n=r(2274),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,s=o(i.length-e,0),u=Array(s);++a<s;)u[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=r(u),n(t,this,c)}}},3250:(t,e,r)=>{var n=r(302),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},3937:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},5009:t=>{t.exports=function(t){return this.__data__.has(t)}},7969:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},4173:(t,e,r)=>{var n=r(6739),o=r(7357)(n);t.exports=o},7357:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},3210:(t,e,r)=>{var n=r(1998);t.exports=function(){this.__data__=new n,this.size=0}},8603:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},8947:t=>{t.exports=function(t){return this.__data__.get(t)}},885:t=>{t.exports=function(t){return this.__data__.has(t)}},8938:(t,e,r)=>{var n=r(1998),o=r(2887),i=r(5678);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},5898:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},5233:(t,e,r)=>{var n=r(9512),o=r(3932),i=r(2205);t.exports=function(t){return o(t)?i(t):n(t)}},4041:(t,e,r)=>{var n=r(2924),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},6040:(t,e,r)=>{var n=r(2624);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},5784:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},2438:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},2205:t=>{var e="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",n="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+e+"|"+r+")?",s="[\\ufe0e\\ufe0f]?",u=s+a+"(?:\\u200d(?:"+[n,o,i].join("|")+")"+s+a+")*",c="(?:"+[n+e+"?",e,o,i,"[\\ud800-\\udfff]"].join("|")+")",l=RegExp(r+"(?="+r+")|"+c+u,"g");t.exports=function(t){return t.match(l)||[]}},311:(t,e,r)=>{var n=r(3192),o=r(8618),i=r(6948),a=r(568),s=r(2840),u=r(2096),c=Object.prototype.hasOwnProperty,l=i((function(t,e){if(s(e)||a(e))o(e,u(e),t);else for(var r in e)c.call(e,r)&&n(t,r,e[r])}));t.exports=l},7953:(t,e,r)=>{var n=r(8361);t.exports=function(t){return n(t,4)}},6494:t=>{t.exports=function(t){for(var e=-1,r=null==t?0:t.length,n=0,o=[];++e<r;){var i=t[e];i&&(o[n++]=i)}return o}},9203:t=>{t.exports=function(t){return function(){return t}}},3821:(t,e,r)=>{var n=r(9735),o=r(8260),i=r(8132),a=r(9882),s=Object.prototype,u=s.hasOwnProperty,c=n((function(t,e){t=Object(t);var r=-1,n=e.length,c=n>2?e[2]:void 0;for(c&&i(e[0],e[1],c)&&(n=1);++r<n;)for(var l=e[r],f=a(l),p=-1,d=f.length;++p<d;){var h=f[p],v=t[h];(void 0===v||o(v,s[h])&&!u.call(t,h))&&(t[h]=l[h])}return t}));t.exports=c},5271:(t,e,r)=>{var n=r(3700),o=r(6640),i=r(9735),a=r(8268),s=i((function(t,e){return a(t)?n(t,o(e,1,a,!0)):[]}));t.exports=s},9239:(t,e,r)=>{var n=r(7379),o=r(6843);t.exports=function(t,e,r){var i=null==t?0:t.length;return i?(e=r||void 0===e?1:o(e),n(t,e<0?0:e,i)):[]}},682:(t,e,r)=>{var n=r(7379),o=r(6843);t.exports=function(t,e,r){var i=null==t?0:t.length;return i?(e=r||void 0===e?1:o(e),n(t,0,(e=i-e)<0?0:e)):[]}},8260:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},1198:(t,e,r)=>{var n=r(9865),o=r(5869),i=r(5833),a=r(5589),s=r(8132);t.exports=function(t,e,r){var u=a(t)?n:o;return r&&s(t,e,r)&&(e=void 0),u(t,i(e,3))}},4663:(t,e,r)=>{var n=r(2493),o=r(8146),i=r(5833),a=r(5589);t.exports=function(t,e){return(a(t)?n:o)(t,i(e,3))}},6969:(t,e,r)=>{var n=r(9301)(r(564));t.exports=n},564:(t,e,r)=>{var n=r(4770),o=r(5833),i=r(6843),a=Math.max;t.exports=function(t,e,r){var s=null==t?0:t.length;if(!s)return-1;var u=null==r?0:i(r);return u<0&&(u=a(s+u,0)),n(t,o(e,3),u)}},8936:(t,e,r)=>{t.exports=r(5718)},9875:(t,e,r)=>{var n=r(6640),o=r(9107);t.exports=function(t,e){return n(o(t,e),1)}},2923:(t,e,r)=>{var n=r(6640);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},7734:(t,e,r)=>{var n=r(4004),o=r(1701),i=r(4781),a=r(5589);t.exports=function(t,e){return(a(t)?n:o)(t,i(e))}},3546:(t,e,r)=>{var n=r(548);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},9907:(t,e,r)=>{var n=r(7500),o=r(7325),i=Object.prototype.hasOwnProperty,a=o((function(t,e,r){i.call(t,r)?t[r].push(e):n(t,r,[e])}));t.exports=a},5346:(t,e,r)=>{var n=r(2586),o=r(3544);t.exports=function(t,e){return null!=t&&o(t,e,n)}},6708:(t,e,r)=>{var n=r(2902),o=r(3544);t.exports=function(t,e){return null!=t&&o(t,e,n)}},5718:t=>{t.exports=function(t){return t&&t.length?t[0]:void 0}},229:t=>{t.exports=function(t){return t}},2876:(t,e,r)=>{var n=r(4365),o=r(568),i=r(6705),a=r(6843),s=r(1682),u=Math.max;t.exports=function(t,e,r,c){t=o(t)?t:s(t),r=r&&!c?a(r):0;var l=t.length;return r<0&&(r=u(l+r,0)),i(t)?r<=l&&t.indexOf(e,r)>-1:!!l&&n(t,e,r)>-1}},7318:(t,e,r)=>{var n=r(4365),o=r(6843),i=Math.max;t.exports=function(t,e,r){var a=null==t?0:t.length;if(!a)return-1;var s=null==r?0:o(r);return s<0&&(s=i(a+s,0)),n(t,e,s)}},9312:(t,e,r)=>{var n=r(3016),o=r(440),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},5589:t=>{var e=Array.isArray;t.exports=e},568:(t,e,r)=>{var n=r(5563),o=r(6052);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},8268:(t,e,r)=>{var n=r(568),o=r(440);t.exports=function(t){return o(t)&&n(t)}},5778:(t,e,r)=>{t=r.nmd(t);var n=r(3250),o=r(7999),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,s=a&&a.exports===i?n.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;t.exports=u},9787:(t,e,r)=>{var n=r(1351),o=r(7493),i=r(9312),a=r(5589),s=r(568),u=r(5778),c=r(2840),l=r(922),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!n(t).length;for(var r in t)if(f.call(t,r))return!1;return!0}},5563:(t,e,r)=>{var n=r(9823),o=r(3702);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},6052:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7613:(t,e,r)=>{var n=r(2275),o=r(1525),i=r(8690),a=i&&i.isMap,s=a?o(a):n;t.exports=s},3702:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},440:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},8290:(t,e,r)=>{var n=r(8261),o=r(1525),i=r(8690),a=i&&i.isRegExp,s=a?o(a):n;t.exports=s},693:(t,e,r)=>{var n=r(7170),o=r(1525),i=r(8690),a=i&&i.isSet,s=a?o(a):n;t.exports=s},6705:(t,e,r)=>{var n=r(9823),o=r(5589),i=r(440);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},2624:(t,e,r)=>{var n=r(9823),o=r(440);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},922:(t,e,r)=>{var n=r(2448),o=r(1525),i=r(8690),a=i&&i.isTypedArray,s=a?o(a):n;t.exports=s},6474:t=>{t.exports=function(t){return void 0===t}},2096:(t,e,r)=>{var n=r(5825),o=r(1351),i=r(568);t.exports=function(t){return i(t)?n(t):o(t)}},9882:(t,e,r)=>{var n=r(5825),o=r(1309),i=r(568);t.exports=function(t){return i(t)?n(t,!0):o(t)}},7875:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},9107:(t,e,r)=>{var n=r(9233),o=r(5833),i=r(8068),a=r(5589);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},7997:(t,e,r)=>{var n=r(5678);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},606:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},1607:t=>{t.exports=function(){}},7383:(t,e,r)=>{var n=r(9233),o=r(5833),i=r(7121),a=r(5713);t.exports=function(t,e){if(null==t)return{};var r=n(a(t),(function(t){return[t]}));return e=o(e),i(t,r,(function(t,r){return e(t,r[0])}))}},4437:(t,e,r)=>{var n=r(6174),o=r(3293),i=r(5130),a=r(6040);t.exports=function(t){return i(t)?n(a(t)):o(t)}},7682:(t,e,r)=>{var n=r(5115),o=r(1701),i=r(5833),a=r(4306),s=r(5589);t.exports=function(t,e,r){var u=s(t)?n:a,c=arguments.length<3;return u(t,i(e,4),r,c,o)}},4171:(t,e,r)=>{var n=r(2493),o=r(8146),i=r(5833),a=r(5589),s=r(606);t.exports=function(t,e){return(a(t)?n:o)(t,s(i(e,3)))}},9040:(t,e,r)=>{var n=r(1831),o=r(5833),i=r(854),a=r(5589),s=r(8132);t.exports=function(t,e,r){var u=a(t)?n:i;return r&&s(t,e,r)&&(e=void 0),u(t,o(e,3))}},4506:t=>{t.exports=function(){return[]}},7999:t=>{t.exports=function(){return!1}},9558:(t,e,r)=>{var n=r(9153);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},6843:(t,e,r)=>{var n=r(9558);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},9153:(t,e,r)=>{var n=r(1656),o=r(3702),i=r(2624),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=s.test(t);return r||u.test(t)?c(t.slice(2),r?2:8):a.test(t)?NaN:+t}},9835:(t,e,r)=>{var n=r(6245);t.exports=function(t){return null==t?"":n(t)}},292:(t,e,r)=>{var n=r(135);t.exports=function(t){return t&&t.length?n(t):[]}},7584:(t,e,r)=>{var n=r(1254)("toUpperCase");t.exports=n},1682:(t,e,r)=>{var n=r(71),o=r(2096);t.exports=function(t){return null==t?[]:n(t,o(t))}},7968:function(t,e){var r,n;"undefined"!=typeof self&&self,void 0===(n="function"==typeof(r=function(){function t(){}t.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},t.prototype.restoreState=function(t){this.idx=t.idx,this.input=t.input,this.groupIdx=t.groupIdx},t.prototype.pattern=function(t){this.idx=0,this.input=t,this.groupIdx=0,this.consumeChar("/");var e=this.disjunction();this.consumeChar("/");for(var r={type:"Flags",loc:{begin:this.idx,end:t.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(r,"global");break;case"i":s(r,"ignoreCase");break;case"m":s(r,"multiLine");break;case"u":s(r,"unicode");break;case"y":s(r,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:e,loc:this.loc(0)}},t.prototype.disjunction=function(){var t=[],e=this.idx;for(t.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),t.push(this.alternative());return{type:"Disjunction",value:t,loc:this.loc(e)}},t.prototype.alternative=function(){for(var t=[],e=this.idx;this.isTerm();)t.push(this.term());return{type:"Alternative",value:t,loc:this.loc(e)}},t.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},t.prototype.assertion=function(){var t=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(t)};case"$":return{type:"EndAnchor",loc:this.loc(t)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(t)};case"B":return{type:"NonWordBoundary",loc:this.loc(t)}}throw Error("Invalid Assertion Escape");case"(":var e;switch(this.consumeChar("?"),this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}u(e);var r=this.disjunction();return this.consumeChar(")"),{type:e,value:r,loc:this.loc(t)}}!function(){throw Error("Internal Error - Should never get here!")}()},t.prototype.quantifier=function(t){var e,r=this.idx;switch(this.popChar()){case"*":e={atLeast:0,atMost:1/0};break;case"+":e={atLeast:1,atMost:1/0};break;case"?":e={atLeast:0,atMost:1};break;case"{":var n=this.integerIncludingZero();switch(this.popChar()){case"}":e={atLeast:n,atMost:n};break;case",":e=this.isDigit()?{atLeast:n,atMost:this.integerIncludingZero()}:{atLeast:n,atMost:1/0},this.consumeChar("}")}if(!0===t&&void 0===e)return;u(e)}if(!0!==t||void 0!==e)return u(e),"?"===this.peekChar(0)?(this.consumeChar("?"),e.greedy=!1):e.greedy=!0,e.type="Quantifier",e.loc=this.loc(r),e},t.prototype.atom=function(){var t,e=this.idx;switch(this.peekChar()){case".":t=this.dotAll();break;case"\\":t=this.atomEscape();break;case"[":t=this.characterClass();break;case"(":t=this.group()}return void 0===t&&this.isPatternCharacter()&&(t=this.patternCharacter()),u(t),t.loc=this.loc(e),this.isQuantifier()&&(t.quantifier=this.quantifier()),t},t.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[i("\n"),i("\r"),i("\u2028"),i("\u2029")]}},t.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},t.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},t.prototype.characterClassEscape=function(){var t,e=!1;switch(this.popChar()){case"d":t=c;break;case"D":t=c,e=!0;break;case"s":t=f;break;case"S":t=f,e=!0;break;case"w":t=l;break;case"W":t=l,e=!0}return u(t),{type:"Set",value:t,complement:e}},t.prototype.controlEscapeAtom=function(){var t;switch(this.popChar()){case"f":t=i("\f");break;case"n":t=i("\n");break;case"r":t=i("\r");break;case"t":t=i("\t");break;case"v":t=i("\v")}return u(t),{type:"Character",value:t}},t.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var t=this.popChar();if(!1===/[a-zA-Z]/.test(t))throw Error("Invalid ");return{type:"Character",value:t.toUpperCase().charCodeAt(0)-64}},t.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:i("\0")}},t.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},t.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},t.prototype.identityEscapeAtom=function(){return{type:"Character",value:i(this.popChar())}},t.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:i(this.popChar())}}},t.prototype.characterClass=function(){var t=[],e=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),e=!0);this.isClassAtom();){var r=this.classAtom();if("Character"===r.type&&this.isRangeDash()){this.consumeChar("-");var n=this.classAtom();if("Character"===n.type){if(n.value<r.value)throw Error("Range out of order in character class");t.push({from:r.value,to:n.value})}else a(r.value,t),t.push(i("-")),a(n.value,t)}else a(r.value,t)}return this.consumeChar("]"),{type:"Set",complement:e,value:t}},t.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},t.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:i("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},t.prototype.group=function(){var t=!0;this.consumeChar("("),"?"===this.peekChar(0)?(this.consumeChar("?"),this.consumeChar(":"),t=!1):this.groupIdx++;var e=this.disjunction();this.consumeChar(")");var r={type:"Group",capturing:t,value:e};return t&&(r.idx=this.groupIdx),r},t.prototype.positiveInteger=function(){var t=this.popChar();if(!1===o.test(t))throw Error("Expecting a positive integer");for(;n.test(this.peekChar(0));)t+=this.popChar();return parseInt(t,10)},t.prototype.integerIncludingZero=function(){var t=this.popChar();if(!1===n.test(t))throw Error("Expecting an integer");for(;n.test(this.peekChar(0));)t+=this.popChar();return parseInt(t,10)},t.prototype.patternCharacter=function(){var t=this.popChar();switch(t){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:i(t)}}},t.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},t.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},t.prototype.isDigit=function(){return n.test(this.peekChar(0))},t.prototype.isClassAtom=function(t){switch(void 0===t&&(t=0),this.peekChar(t)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},t.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},t.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},t.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},t.prototype.isQuantifier=function(){var t=this.saveState();try{return void 0!==this.quantifier(!0)}catch(t){return!1}finally{this.restoreState(t)}},t.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},t.prototype.parseHexDigits=function(t){for(var e="",n=0;n<t;n++){var o=this.popChar();if(!1===r.test(o))throw Error("Expecting a HexDecimal digits");e+=o}return{type:"Character",value:parseInt(e,16)}},t.prototype.peekChar=function(t){return void 0===t&&(t=0),this.input[this.idx+t]},t.prototype.popChar=function(){var t=this.peekChar(0);return this.consumeChar(),t},t.prototype.consumeChar=function(t){if(void 0!==t&&this.input[this.idx]!==t)throw Error("Expected: '"+t+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},t.prototype.loc=function(t){return{begin:t,end:this.idx}};var e,r=/[0-9a-fA-F]/,n=/[0-9]/,o=/[1-9]/;function i(t){return t.charCodeAt(0)}function a(t,e){void 0!==t.length?t.forEach((function(t){e.push(t)})):e.push(t)}function s(t,e){if(!0===t[e])throw"duplicate flag "+e;t[e]=!0}function u(t){if(void 0===t)throw Error("Internal Error - Should never get here!")}var c=[];for(e=i("0");e<=i("9");e++)c.push(e);var l=[i("_")].concat(c);for(e=i("a");e<=i("z");e++)l.push(e);for(e=i("A");e<=i("Z");e++)l.push(e);var f=[i(" "),i("\f"),i("\n"),i("\r"),i("\t"),i("\v"),i("\t"),i(" "),i(""),i(" "),i(""),i(""),i(""),i(""),i(""),i(""),i(""),i(""),i(""),i(""),i("\u2028"),i("\u2029"),i(""),i(""),i(" "),i("\ufeff")];function p(){}return p.prototype.visitChildren=function(t){for(var e in t){var r=t[e];t.hasOwnProperty(e)&&(void 0!==r.type?this.visit(r):Array.isArray(r)&&r.forEach((function(t){this.visit(t)}),this))}},p.prototype.visit=function(t){switch(t.type){case"Pattern":this.visitPattern(t);break;case"Flags":this.visitFlags(t);break;case"Disjunction":this.visitDisjunction(t);break;case"Alternative":this.visitAlternative(t);break;case"StartAnchor":this.visitStartAnchor(t);break;case"EndAnchor":this.visitEndAnchor(t);break;case"WordBoundary":this.visitWordBoundary(t);break;case"NonWordBoundary":this.visitNonWordBoundary(t);break;case"Lookahead":this.visitLookahead(t);break;case"NegativeLookahead":this.visitNegativeLookahead(t);break;case"Character":this.visitCharacter(t);break;case"Set":this.visitSet(t);break;case"Group":this.visitGroup(t);break;case"GroupBackReference":this.visitGroupBackReference(t);break;case"Quantifier":this.visitQuantifier(t)}this.visitChildren(t)},p.prototype.visitPattern=function(t){},p.prototype.visitFlags=function(t){},p.prototype.visitDisjunction=function(t){},p.prototype.visitAlternative=function(t){},p.prototype.visitStartAnchor=function(t){},p.prototype.visitEndAnchor=function(t){},p.prototype.visitWordBoundary=function(t){},p.prototype.visitNonWordBoundary=function(t){},p.prototype.visitLookahead=function(t){},p.prototype.visitNegativeLookahead=function(t){},p.prototype.visitCharacter=function(t){},p.prototype.visitSet=function(t){},p.prototype.visitGroup=function(t){},p.prototype.visitGroupBackReference=function(t){},p.prototype.visitQuantifier=function(t){},{RegExpParser:t,BaseRegExpVisitor:p,VERSION:"0.5.0"}})?r.apply(e,[]):r)||(t.exports=n)},5781:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSyntaxDiagramsCode=void 0;var n=r(7979);e.createSyntaxDiagramsCode=function(t,e){var r=void 0===e?{}:e,o=r.resourceBase,i=void 0===o?"https://unpkg.com/chevrotain@".concat(n.VERSION,"/diagrams/"):o,a=r.css,s=void 0===a?"https://unpkg.com/chevrotain@".concat(n.VERSION,"/diagrams/diagrams.css"):a;return'\n\x3c!-- This is a generated file --\x3e\n<!DOCTYPE html>\n<meta charset="utf-8">\n<style>\n body {\n background-color: hsl(30, 20%, 95%)\n }\n</style>\n\n'+"\n<link rel='stylesheet' href='".concat(s,"'>\n")+"\n<script src='".concat(i,"vendor/railroad-diagrams.js'><\/script>\n<script src='").concat(i,"src/diagrams_builder.js'><\/script>\n<script src='").concat(i,"src/diagrams_behavior.js'><\/script>\n<script src='").concat(i,"src/main.js'><\/script>\n")+'\n<div id="diagrams" align="center"></div> \n'+"\n<script>\n window.serializedGrammar = ".concat(JSON.stringify(t,null," "),";\n<\/script>\n")+'\n<script>\n var diagramsDiv = document.getElementById("diagrams");\n main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);\n<\/script>\n'}},4105:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defineNameProp=void 0,e.defineNameProp=function(t,e){Object.defineProperty(t,"name",{enumerable:!1,configurable:!0,writable:!1,value:e})}},3710:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IN=void 0,e.IN="_~IN~_"},7485:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addNoneTerminalToCst=e.addTerminalToCst=e.setNodeLocationFull=e.setNodeLocationOnlyOffset=void 0,e.setNodeLocationOnlyOffset=function(t,e){!0===isNaN(t.startOffset)?(t.startOffset=e.startOffset,t.endOffset=e.endOffset):t.endOffset<e.endOffset==1&&(t.endOffset=e.endOffset)},e.setNodeLocationFull=function(t,e){!0===isNaN(t.startOffset)?(t.startOffset=e.startOffset,t.startColumn=e.startColumn,t.startLine=e.startLine,t.endOffset=e.endOffset,t.endColumn=e.endColumn,t.endLine=e.endLine):t.endOffset<e.endOffset==1&&(t.endOffset=e.endOffset,t.endColumn=e.endColumn,t.endLine=e.endLine)},e.addTerminalToCst=function(t,e,r){void 0===t.children[r]?t.children[r]=[e]:t.children[r].push(e)},e.addNoneTerminalToCst=function(t,e,r){void 0===t.children[e]?t.children[e]=[r]:t.children[e].push(r)}},8169:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.validateMissingCstMethods=e.validateVisitor=e.CstVisitorDefinitionError=e.createBaseVisitorConstructorWithDefaults=e.createBaseSemanticVisitorConstructor=e.defaultVisit=void 0;var o,i=n(r(9787)),a=n(r(6494)),s=n(r(5589)),u=n(r(9107)),c=n(r(7734)),l=n(r(4663)),f=n(r(2096)),p=n(r(5563)),d=n(r(6474)),h=r(4105);function v(t,e){for(var r=(0,f.default)(t),n=r.length,o=0;o<n;o++)for(var i=t[r[o]],a=i.length,s=0;s<a;s++){var u=i[s];void 0===u.tokenTypeIdx&&this[u.name](u.children,e)}}function y(t,e){return m(t,e)}function m(t,e){var r=(0,l.default)(e,(function(e){return!1===(0,p.default)(t[e])})),n=(0,u.default)(r,(function(e){return{msg:"Missing visitor method: <".concat(e,"> on ").concat(t.constructor.name," CST Visitor."),type:o.MISSING_METHOD,methodName:e}}));return(0,a.default)(n)}e.defaultVisit=v,e.createBaseSemanticVisitorConstructor=function(t,e){var r=function(){};return(0,h.defineNameProp)(r,t+"BaseSemantics"),(r.prototype={visit:function(t,e){if((0,s.default)(t)&&(t=t[0]),!(0,d.default)(t))return this[t.name](t.children,e)},validateVisitor:function(){var t=y(this,e);if(!(0,i.default)(t)){var r=(0,u.default)(t,(function(t){return t.msg}));throw Error("Errors Detected in CST Visitor <".concat(this.constructor.name,">:\n\t")+"".concat(r.join("\n\n").replace(/\n/g,"\n\t")))}}}).constructor=r,r._RULE_NAMES=e,r},e.createBaseVisitorConstructorWithDefaults=function(t,e,r){var n=function(){};(0,h.defineNameProp)(n,t+"BaseSemanticsWithDefaults");var o=Object.create(r.prototype);return(0,c.default)(e,(function(t){o[t]=v})),(n.prototype=o).constructor=n,n},function(t){t[t.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",t[t.MISSING_METHOD=1]="MISSING_METHOD"}(o=e.CstVisitorDefinitionError||(e.CstVisitorDefinitionError={})),e.validateVisitor=y,e.validateMissingCstMethods=m},1007:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultGrammarValidatorErrorProvider=e.defaultGrammarResolverErrorProvider=e.defaultParserErrorProvider=void 0;var o=r(6736),i=n(r(8936)),a=n(r(9107)),s=n(r(7682)),u=r(7729),c=r(7729);e.defaultParserErrorProvider={buildMismatchTokenMessage:function(t){var e=t.expected,r=t.actual,n=(t.previous,t.ruleName,(0,o.hasTokenLabel)(e)?"--\x3e ".concat((0,o.tokenLabel)(e)," <--"):"token of type --\x3e ".concat(e.name," <--"));return"Expecting ".concat(n," but found --\x3e '").concat(r.image,"' <--")},buildNotAllInputParsedMessage:function(t){var e=t.firstRedundant;return t.ruleName,"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage:function(t){var e=t.expectedPathsPerAlt,r=t.actual,n=(t.previous,t.customUserDescription),u=(t.ruleName,"Expecting: "),c="\nbut found: '"+(0,i.default)(r).image+"'";if(n)return u+n+c;var l=(0,s.default)(e,(function(t,e){return t.concat(e)}),[]),f=(0,a.default)(l,(function(t){return"[".concat((0,a.default)(t,(function(t){return(0,o.tokenLabel)(t)})).join(", "),"]")})),p=(0,a.default)(f,(function(t,e){return" ".concat(e+1,". ").concat(t)}));return u+"one of these possible Token sequences:\n".concat(p.join("\n"))+c},buildEarlyExitMessage:function(t){var e=t.expectedIterationPaths,r=t.actual,n=t.customUserDescription,s=(t.ruleName,"Expecting: "),u="\nbut found: '"+(0,i.default)(r).image+"'";if(n)return s+n+u;var c=(0,a.default)(e,(function(t){return"[".concat((0,a.default)(t,(function(t){return(0,o.tokenLabel)(t)})).join(","),"]")}));return s+"expecting at least one iteration which starts with one of these possible Token sequences::\n "+"<".concat(c.join(" ,"),">")+u}},Object.freeze(e.defaultParserErrorProvider),e.defaultGrammarResolverErrorProvider={buildRuleNotFoundError:function(t,e){return"Invalid grammar, reference to a rule which is not defined: ->"+e.nonTerminalName+"<-\ninside top level rule: ->"+t.name+"<-"}},e.defaultGrammarValidatorErrorProvider={buildDuplicateFoundError:function(t,e){var r,n=t.name,o=(0,i.default)(e),a=o.idx,s=(0,c.getProductionDslName)(o),l=(r=o)instanceof u.Terminal?r.terminalType.name:r instanceof u.NonTerminal?r.nonTerminalName:"",f=a>0,p="->".concat(s).concat(f?a:"","<- ").concat(l?"with argument: ->".concat(l,"<-"):"","\n appears more than once (").concat(e.length," times) in the top level rule: ->").concat(n,"<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n ");return(p=p.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildNamespaceConflictError:function(t){return"Namespace conflict found in grammar.\n"+"The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <".concat(t.name,">.\n")+"To resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."},buildAlternationPrefixAmbiguityError:function(t){var e=(0,a.default)(t.prefixPath,(function(t){return(0,o.tokenLabel)(t)})).join(", "),r=0===t.alternation.idx?"":t.alternation.idx;return"Ambiguous alternatives: <".concat(t.ambiguityIndices.join(" ,"),"> due to common lookahead prefix\n")+"in <OR".concat(r,"> inside <").concat(t.topLevelRule.name,"> Rule,\n")+"<".concat(e,"> may appears as a prefix path in all these alternatives.\n")+"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."},buildAlternationAmbiguityError:function(t){var e=(0,a.default)(t.prefixPath,(function(t){return(0,o.tokenLabel)(t)})).join(", "),r=0===t.alternation.idx?"":t.alternation.idx;return"Ambiguous Alternatives Detected: <".concat(t.ambiguityIndices.join(" ,"),"> in <OR").concat(r,">")+" inside <".concat(t.topLevelRule.name,"> Rule,\n")+"<".concat(e,"> may appears as a prefix path in all these alternatives.\n")+"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."},buildEmptyRepetitionError:function(t){var e=(0,c.getProductionDslName)(t.repetition);return 0!==t.repetition.idx&&(e+=t.repetition.idx),"The repetition <".concat(e,"> within Rule <").concat(t.topLevelRule.name,"> can never consume any tokens.\n")+"This could lead to an infinite loop."},buildTokenNameError:function(t){return"deprecated"},buildEmptyAlternationError:function(t){return"Ambiguous empty alternative: <".concat(t.emptyChoiceIdx+1,">")+" in <OR".concat(t.alternation.idx,"> inside <").concat(t.topLevelRule.name,"> Rule.\n")+"Only the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(t){return"An Alternation cannot have more than 256 alternatives:\n"+"<OR".concat(t.alternation.idx,"> inside <").concat(t.topLevelRule.name,"> Rule.\n has ").concat(t.alternation.definition.length+1," alternatives.")},buildLeftRecursionError:function(t){var e=t.topLevelRule.name,r=(0,a.default)(t.leftRecursionPath,(function(t){return t.name})),n="".concat(e," --\x3e ").concat(r.concat([e]).join(" --\x3e "));return"Left Recursion found in grammar.\n"+"rule: <".concat(e,"> can be invoked from itself (directly or indirectly)\n")+"without consuming any Tokens. The grammar path that causes this is: \n ".concat(n,"\n")+" To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_factoring."},buildInvalidRuleNameError:function(t){return"deprecated"},buildDuplicateRuleNameError:function(t){var e;return e=t.topLevelRule instanceof u.Rule?t.topLevelRule.name:t.topLevelRule,"Duplicate definition, rule: ->".concat(e,"<- is already defined in the grammar: ->").concat(t.grammarName,"<-")}}},643:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.EarlyExitException=e.NotAllInputParsedException=e.NoViableAltException=e.MismatchedTokenException=e.isRecognitionException=void 0;var a=i(r(2876)),s="MismatchedTokenException",u="NoViableAltException",c="EarlyExitException",l="NotAllInputParsedException",f=[s,u,c,l];Object.freeze(f),e.isRecognitionException=function(t){return(0,a.default)(f,t.name)};var p=function(t){function e(e,r){var n=this.constructor,o=t.call(this,e)||this;return o.token=r,o.resyncedTokens=[],Object.setPrototypeOf(o,n.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,o.constructor),o}return o(e,t),e}(Error),d=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.previousToken=n,o.name=s,o}return o(e,t),e}(p);e.MismatchedTokenException=d;var h=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.previousToken=n,o.name=u,o}return o(e,t),e}(p);e.NoViableAltException=h;var v=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.name=l,n}return o(e,t),e}(p);e.NotAllInputParsedException=v;var y=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.previousToken=n,o.name=c,o}return o(e,t),e}(p);e.EarlyExitException=y},3870:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkPrefixAlternativesAmbiguities=e.validateSomeNonEmptyLookaheadPath=e.validateTooManyAlts=e.RepetitionCollector=e.validateAmbiguousAlternationAlternatives=e.validateEmptyOrAlternative=e.getFirstNoneTerminal=e.validateNoLeftRecursion=e.validateRuleIsOverridden=e.validateRuleDoesNotAlreadyExist=e.OccurrenceValidationCollector=e.identifyProductionForDuplicates=e.validateGrammar=e.validateLookahead=void 0;var s=a(r(8936)),u=a(r(9787)),c=a(r(9239)),l=a(r(2923)),f=a(r(4663)),p=a(r(4171)),d=a(r(5271)),h=a(r(9107)),v=a(r(7734)),y=a(r(9907)),m=a(r(7682)),T=a(r(7383)),E=a(r(1682)),_=a(r(2876)),g=a(r(9875)),O=a(r(7953)),R=r(2941),A=r(7729),N=r(4677),x=r(9985),I=r(7729),P=r(7729),S=a(r(682)),b=a(r(6494)),L=r(1201);function k(t){return"".concat((0,A.getProductionDslName)(t),"_#_").concat(t.idx,"_#_").concat(C(t))}function C(t){return t instanceof I.Terminal?t.terminalType.name:t instanceof I.NonTerminal?t.nonTerminalName:""}e.validateLookahead=function(t){var e=t.lookaheadStrategy.validate({rules:t.rules,tokenTypes:t.tokenTypes,grammarName:t.grammarName});return(0,h.default)(e,(function(t){return i({type:R.ParserDefinitionErrorType.CUSTOM_LOOKAHEAD_VALIDATION},t)}))},e.validateGrammar=function(t,e,r,n){var o=(0,g.default)(t,(function(t){return function(t,e){var r=new M;t.accept(r);var n=r.allProductions,o=(0,y.default)(n,k),i=(0,T.default)(o,(function(t){return t.length>1}));return(0,h.default)((0,E.default)(i),(function(r){var n=(0,s.default)(r),o=e.buildDuplicateFoundError(t,r),i=(0,A.getProductionDslName)(n),a={message:o,type:R.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:i,occurrence:n.idx},u=C(n);return u&&(a.parameter=u),a}))}(t,r)})),i=function(t,e,r){var n=[],o=(0,h.default)(e,(function(t){return t.name}));return(0,v.default)(t,(function(t){var e=t.name;if((0,_.default)(o,e)){var i=r.buildNamespaceConflictError(t);n.push({message:i,type:R.ParserDefinitionErrorType.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:e})}})),n}(t,e,r),a=(0,g.default)(t,(function(t){return U(t,r)})),u=(0,g.default)(t,(function(e){return D(e,t,n,r)}));return o.concat(i,a,u)},e.identifyProductionForDuplicates=k;var M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.allProductions=[],e}return o(e,t),e.prototype.visitNonTerminal=function(t){this.allProductions.push(t)},e.prototype.visitOption=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionWithSeparator=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionMandatory=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){this.allProductions.push(t)},e.prototype.visitRepetition=function(t){this.allProductions.push(t)},e.prototype.visitAlternation=function(t){this.allProductions.push(t)},e.prototype.visitTerminal=function(t){this.allProductions.push(t)},e}(P.GAstVisitor);function D(t,e,r,n){var o=[];if((0,m.default)(e,(function(e,r){return r.name===t.name?e+1:e}),0)>1){var i=n.buildDuplicateRuleNameError({topLevelRule:t,grammarName:r});o.push({message:i,type:R.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:t.name})}return o}function w(t){var e=[];if((0,u.default)(t))return e;var r=(0,s.default)(t);if(r instanceof I.NonTerminal)e.push(r.referencedRule);else if(r instanceof I.Alternative||r instanceof I.Option||r instanceof I.RepetitionMandatory||r instanceof I.RepetitionMandatoryWithSeparator||r instanceof I.RepetitionWithSeparator||r instanceof I.Repetition)e=e.concat(w(r.definition));else if(r instanceof I.Alternation)e=(0,l.default)((0,h.default)(r.definition,(function(t){return w(t.definition)})));else if(!(r instanceof I.Terminal))throw Error("non exhaustive match");var n=(0,A.isOptionalProd)(r),o=t.length>1;if(n&&o){var i=(0,c.default)(t);return e.concat(w(i))}return e}e.OccurrenceValidationCollector=M,e.validateRuleDoesNotAlreadyExist=D,e.validateRuleIsOverridden=function(t,e,r){var n,o=[];return(0,_.default)(e,t)||(n="Invalid rule override, rule: ->".concat(t,"<- cannot be overridden in the grammar: ->").concat(r,"<-")+"as it is not defined in any of the super grammars ",o.push({message:n,type:R.ParserDefinitionErrorType.INVALID_RULE_OVERRIDE,ruleName:t})),o},e.validateNoLeftRecursion=function t(e,r,n,o){void 0===o&&(o=[]);var i=[],a=w(r.definition);if((0,u.default)(a))return[];var s=e.name;(0,_.default)(a,e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:o}),type:R.ParserDefinitionErrorType.LEFT_RECURSION,ruleName:s});var c=(0,d.default)(a,o.concat([e])),l=(0,g.default)(c,(function(r){var i=(0,O.default)(o);return i.push(r),t(e,r,n,i)}));return i.concat(l)},e.getFirstNoneTerminal=w;var F=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.alternations=[],e}return o(e,t),e.prototype.visitAlternation=function(t){this.alternations.push(t)},e}(P.GAstVisitor);e.validateEmptyOrAlternative=function(t,e){var r=new F;t.accept(r);var n=r.alternations;return(0,g.default)(n,(function(r){var n=(0,S.default)(r.definition);return(0,g.default)(n,(function(n,o){var i=(0,x.nextPossibleTokensAfter)([n],[],L.tokenStructuredMatcher,1);return(0,u.default)(i)?[{message:e.buildEmptyAlternationError({topLevelRule:t,alternation:r,emptyChoiceIdx:o}),type:R.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,ruleName:t.name,occurrence:r.idx,alternative:o+1}]:[]}))}))},e.validateAmbiguousAlternationAlternatives=function(t,e,r){var n=new F;t.accept(n);var o=n.alternations;o=(0,p.default)(o,(function(t){return!0===t.ignoreAmbiguities}));var i=(0,g.default)(o,(function(n){var o=n.idx,i=n.maxLookahead||e,a=(0,N.getLookaheadPathsForOr)(o,t,i,n),s=function(t,e,r,n){var o=[],i=(0,m.default)(t,(function(r,n,i){return!0===e.definition[i].ignoreAmbiguities||(0,v.default)(n,(function(n){var a=[i];(0,v.default)(t,(function(t,r){i!==r&&(0,N.containsPath)(t,n)&&!0!==e.definition[r].ignoreAmbiguities&&a.push(r)})),a.length>1&&!(0,N.containsPath)(o,n)&&(o.push(n),r.push({alts:a,path:n}))})),r}),[]);return(0,h.default)(i,(function(t){var o=(0,h.default)(t.alts,(function(t){return t+1}));return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:o,prefixPath:t.path}),type:R.ParserDefinitionErrorType.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:e.idx,alternatives:t.alts}}))}(a,n,t,r),u=G(a,n,t,r);return s.concat(u)}));return i};var j=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.allProductions=[],e}return o(e,t),e.prototype.visitRepetitionWithSeparator=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionMandatory=function(t){this.allProductions.push(t)},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){this.allProductions.push(t)},e.prototype.visitRepetition=function(t){this.allProductions.push(t)},e}(P.GAstVisitor);function U(t,e){var r=new F;t.accept(r);var n=r.alternations;return(0,g.default)(n,(function(r){return r.definition.length>255?[{message:e.buildTooManyAlternativesError({topLevelRule:t,alternation:r}),type:R.ParserDefinitionErrorType.TOO_MANY_ALTS,ruleName:t.name,occurrence:r.idx}]:[]}))}function G(t,e,r,n){var o=(0,m.default)(t,(function(t,e,r){var n=(0,h.default)(e,(function(t){return{idx:r,path:t}}));return t.concat(n)}),[]);return(0,b.default)((0,g.default)(o,(function(t){if(!0===e.definition[t.idx].ignoreAmbiguities)return[];var i=t.idx,a=t.path,s=(0,f.default)(o,(function(t){return!0!==e.definition[t.idx].ignoreAmbiguities&&t.idx<i&&(0,N.isStrictPrefixOfPath)(t.path,a)}));return(0,h.default)(s,(function(t){var o=[t.idx+1,i+1],a=0===e.idx?"":e.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:e,ambiguityIndices:o,prefixPath:t.path}),type:R.ParserDefinitionErrorType.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:a,alternatives:o}}))})))}e.RepetitionCollector=j,e.validateTooManyAlts=U,e.validateSomeNonEmptyLookaheadPath=function(t,e,r){var n=[];return(0,v.default)(t,(function(t){var o=new j;t.accept(o);var i=o.allProductions;(0,v.default)(i,(function(o){var i=(0,N.getProdType)(o),a=o.maxLookahead||e,s=o.idx,c=(0,N.getLookaheadPathsForOptionalProd)(s,t,i,a)[0];if((0,u.default)((0,l.default)(c))){var f=r.buildEmptyRepetitionError({topLevelRule:t,repetition:o});n.push({message:f,type:R.ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD,ruleName:t.name})}}))})),n},e.checkPrefixAlternativesAmbiguities=G},8052:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.firstForTerminal=e.firstForBranching=e.firstForSequence=e.first=void 0;var o=n(r(2923)),i=n(r(292)),a=n(r(9107)),s=r(7729),u=r(7729);function c(t){if(t instanceof s.NonTerminal)return c(t.referencedRule);if(t instanceof s.Terminal)return p(t);if((0,u.isSequenceProd)(t))return l(t);if((0,u.isBranchingProd)(t))return f(t);throw Error("non exhaustive match")}function l(t){for(var e,r=[],n=t.definition,o=0,a=n.length>o,s=!0;a&&s;)e=n[o],s=(0,u.isOptionalProd)(e),r=r.concat(c(e)),o+=1,a=n.length>o;return(0,i.default)(r)}function f(t){var e=(0,a.default)(t.definition,(function(t){return c(t)}));return(0,i.default)((0,o.default)(e))}function p(t){return[t.terminalType]}e.first=c,e.firstForSequence=l,e.firstForBranching=f,e.firstForTerminal=p},4917:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.buildInProdFollowPrefix=e.buildBetweenProdsFollowPrefix=e.computeAllProdsFollows=e.ResyncFollowsWalker=void 0;var a=r(8567),s=r(8052),u=i(r(7734)),c=i(r(311)),l=r(3710),f=r(7729),p=function(t){function e(e){var r=t.call(this)||this;return r.topProd=e,r.follows={},r}return o(e,t),e.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},e.prototype.walkTerminal=function(t,e,r){},e.prototype.walkProdRef=function(t,e,r){var n=d(t.referencedRule,t.idx)+this.topProd.name,o=e.concat(r),i=new f.Alternative({definition:o}),a=(0,s.first)(i);this.follows[n]=a},e}(a.RestWalker);function d(t,e){return t.name+e+l.IN}e.ResyncFollowsWalker=p,e.computeAllProdsFollows=function(t){var e={};return(0,u.default)(t,(function(t){var r=new p(t).startWalking();(0,c.default)(e,r)})),e},e.buildBetweenProdsFollowPrefix=d,e.buildInProdFollowPrefix=function(t){return t.terminalType.name+t.idx+l.IN}},1665:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.validateGrammar=e.resolveGrammar=void 0;var o=n(r(7734)),i=n(r(3821)),a=r(6304),s=r(3870),u=r(1007);e.resolveGrammar=function(t){var e=(0,i.default)(t,{errMsgProvider:u.defaultGrammarResolverErrorProvider}),r={};return(0,o.default)(t.rules,(function(t){r[t.name]=t})),(0,a.resolveGrammar)(r,e.errMsgProvider)},e.validateGrammar=function(t){return t=(0,i.default)(t,{errMsgProvider:u.defaultGrammarValidatorErrorProvider}),(0,s.validateGrammar)(t.rules,t.tokenTypes,t.errMsgProvider,t.grammarName)}},9985:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.nextPossibleTokensAfter=e.possiblePathsFrom=e.NextTerminalAfterAtLeastOneSepWalker=e.NextTerminalAfterAtLeastOneWalker=e.NextTerminalAfterManySepWalker=e.NextTerminalAfterManyWalker=e.AbstractNextTerminalAfterProductionWalker=e.NextAfterTokenWalker=e.AbstractNextPossibleTokensWalker=void 0;var a=r(8567),s=i(r(8936)),u=i(r(9787)),c=i(r(682)),l=i(r(9239)),f=i(r(7875)),p=i(r(7734)),d=i(r(7953)),h=r(8052),v=r(7729),y=function(t){function e(e,r){var n=t.call(this)||this;return n.topProd=e,n.path=r,n.possibleTokTypes=[],n.nextProductionName="",n.nextProductionOccurrence=0,n.found=!1,n.isAtEndOfPath=!1,n}return o(e,t),e.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=(0,d.default)(this.path.ruleStack).reverse(),this.occurrenceStack=(0,d.default)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},e.prototype.walk=function(e,r){void 0===r&&(r=[]),this.found||t.prototype.walk.call(this,e,r)},e.prototype.walkProdRef=function(t,e,r){if(t.referencedRule.name===this.nextProductionName&&t.idx===this.nextProductionOccurrence){var n=e.concat(r);this.updateExpectedNext(),this.walk(t.referencedRule,n)}},e.prototype.updateExpectedNext=function(){(0,u.default)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},e}(a.RestWalker);e.AbstractNextPossibleTokensWalker=y;var m=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.path=r,n.nextTerminalName="",n.nextTerminalOccurrence=0,n.nextTerminalName=n.path.lastTok.name,n.nextTerminalOccurrence=n.path.lastTokOccurrence,n}return o(e,t),e.prototype.walkTerminal=function(t,e,r){if(this.isAtEndOfPath&&t.terminalType.name===this.nextTerminalName&&t.idx===this.nextTerminalOccurrence&&!this.found){var n=e.concat(r),o=new v.Alternative({definition:n});this.possibleTokTypes=(0,h.first)(o),this.found=!0}},e}(y);e.NextAfterTokenWalker=m;var T=function(t){function e(e,r){var n=t.call(this)||this;return n.topRule=e,n.occurrence=r,n.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},n}return o(e,t),e.prototype.startWalking=function(){return this.walk(this.topRule),this.result},e}(a.RestWalker);e.AbstractNextTerminalAfterProductionWalker=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.walkMany=function(e,r,n){if(e.idx===this.occurrence){var o=(0,s.default)(r.concat(n));this.result.isEndOfRule=void 0===o,o instanceof v.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else t.prototype.walkMany.call(this,e,r,n)},e}(T);e.NextTerminalAfterManyWalker=E;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.walkManySep=function(e,r,n){if(e.idx===this.occurrence){var o=(0,s.default)(r.concat(n));this.result.isEndOfRule=void 0===o,o instanceof v.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else t.prototype.walkManySep.call(this,e,r,n)},e}(T);e.NextTerminalAfterManySepWalker=_;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.walkAtLeastOne=function(e,r,n){if(e.idx===this.occurrence){var o=(0,s.default)(r.concat(n));this.result.isEndOfRule=void 0===o,o instanceof v.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else t.prototype.walkAtLeastOne.call(this,e,r,n)},e}(T);e.NextTerminalAfterAtLeastOneWalker=g;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.walkAtLeastOneSep=function(e,r,n){if(e.idx===this.occurrence){var o=(0,s.default)(r.concat(n));this.result.isEndOfRule=void 0===o,o instanceof v.Terminal&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else t.prototype.walkAtLeastOneSep.call(this,e,r,n)},e}(T);function R(t,e,r,n){var o=(0,d.default)(r);o.push(t.name);var i=(0,d.default)(n);return i.push(1),{idx:e,def:t.definition,ruleStack:o,occurrenceStack:i}}e.NextTerminalAfterAtLeastOneSepWalker=O,e.possiblePathsFrom=function t(e,r,n){void 0===n&&(n=[]),n=(0,d.default)(n);var o=[],i=0;function a(a){var s=t(a.concat((0,l.default)(e,i+1)),r,n);return o.concat(s)}for(;n.length<r&&i<e.length;){var s=e[i];if(s instanceof v.Alternative)return a(s.definition);if(s instanceof v.NonTerminal)return a(s.definition);if(s instanceof v.Option)o=a(s.definition);else{if(s instanceof v.RepetitionMandatory)return a(c=s.definition.concat([new v.Repetition({definition:s.definition})]));if(s instanceof v.RepetitionMandatoryWithSeparator)return a(c=[new v.Alternative({definition:s.definition}),new v.Repetition({definition:[new v.Terminal({terminalType:s.separator})].concat(s.definition)})]);if(s instanceof v.RepetitionWithSeparator){var c=s.definition.concat([new v.Repetition({definition:[new v.Terminal({terminalType:s.separator})].concat(s.definition)})]);o=a(c)}else if(s instanceof v.Repetition)c=s.definition.concat([new v.Repetition({definition:s.definition})]),o=a(c);else{if(s instanceof v.Alternation)return(0,p.default)(s.definition,(function(t){!1===(0,u.default)(t.definition)&&(o=a(t.definition))})),o;if(!(s instanceof v.Terminal))throw Error("non exhaustive match");n.push(s.terminalType)}}i++}return o.push({partialPath:n,suffixDef:(0,l.default)(e,i)}),o},e.nextPossibleTokensAfter=function(t,e,r,n){var o="EXIT_NONE_TERMINAL",i=[o],a="EXIT_ALTERNATIVE",s=!1,p=e.length,h=p-n-1,y=[],m=[];for(m.push({idx:-1,def:t,ruleStack:[],occurrenceStack:[]});!(0,u.default)(m);){var T=m.pop();if(T!==a){var E=T.def,_=T.idx,g=T.ruleStack,O=T.occurrenceStack;if(!(0,u.default)(E)){var A=E[0];if(A===o){var N={idx:_,def:(0,l.default)(E),ruleStack:(0,c.default)(g),occurrenceStack:(0,c.default)(O)};m.push(N)}else if(A instanceof v.Terminal)if(_<p-1){var x=_+1;r(e[x],A.terminalType)&&(N={idx:x,def:(0,l.default)(E),ruleStack:g,occurrenceStack:O},m.push(N))}else{if(_!==p-1)throw Error("non exhaustive match");y.push({nextTokenType:A.terminalType,nextTokenOccurrence:A.idx,ruleStack:g,occurrenceStack:O}),s=!0}else if(A instanceof v.NonTerminal){var I=(0,d.default)(g);I.push(A.nonTerminalName);var P=(0,d.default)(O);P.push(A.idx),N={idx:_,def:A.definition.concat(i,(0,l.default)(E)),ruleStack:I,occurrenceStack:P},m.push(N)}else if(A instanceof v.Option){var S={idx:_,def:(0,l.default)(E),ruleStack:g,occurrenceStack:O};m.push(S),m.push(a);var b={idx:_,def:A.definition.concat((0,l.default)(E)),ruleStack:g,occurrenceStack:O};m.push(b)}else if(A instanceof v.RepetitionMandatory){var L=new v.Repetition({definition:A.definition,idx:A.idx});N={idx:_,def:A.definition.concat([L],(0,l.default)(E)),ruleStack:g,occurrenceStack:O},m.push(N)}else if(A instanceof v.RepetitionMandatoryWithSeparator){var k=new v.Terminal({terminalType:A.separator});L=new v.Repetition({definition:[k].concat(A.definition),idx:A.idx}),N={idx:_,def:A.definition.concat([L],(0,l.default)(E)),ruleStack:g,occurrenceStack:O},m.push(N)}else if(A instanceof v.RepetitionWithSeparator){S={idx:_,def:(0,l.default)(E),ruleStack:g,occurrenceStack:O},m.push(S),m.push(a),k=new v.Terminal({terminalType:A.separator});var C=new v.Repetition({definition:[k].concat(A.definition),idx:A.idx});b={idx:_,def:A.definition.concat([C],(0,l.default)(E)),ruleStack:g,occurrenceStack:O},m.push(b)}else if(A instanceof v.Repetition)S={idx:_,def:(0,l.default)(E),ruleStack:g,occurrenceStack:O},m.push(S),m.push(a),C=new v.Repetition({definition:A.definition,idx:A.idx}),b={idx:_,def:A.definition.concat([C],(0,l.default)(E)),ruleStack:g,occurrenceStack:O},m.push(b);else if(A instanceof v.Alternation)for(var M=A.definition.length-1;M>=0;M--){var D={idx:_,def:A.definition[M].definition.concat((0,l.default)(E)),ruleStack:g,occurrenceStack:O};m.push(D),m.push(a)}else if(A instanceof v.Alternative)m.push({idx:_,def:A.definition.concat((0,l.default)(E)),ruleStack:g,occurrenceStack:O});else{if(!(A instanceof v.Rule))throw Error("non exhaustive match");m.push(R(A,_,g,O))}}}else s&&(0,f.default)(m).idx<=h&&m.pop()}return y}},8209:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getKeyForAutomaticLookahead=e.AT_LEAST_ONE_SEP_IDX=e.MANY_SEP_IDX=e.AT_LEAST_ONE_IDX=e.MANY_IDX=e.OPTION_IDX=e.OR_IDX=e.BITS_FOR_ALT_IDX=e.BITS_FOR_RULE_IDX=e.BITS_FOR_OCCURRENCE_IDX=e.BITS_FOR_METHOD_TYPE=void 0,e.BITS_FOR_METHOD_TYPE=4,e.BITS_FOR_OCCURRENCE_IDX=8,e.BITS_FOR_RULE_IDX=12,e.BITS_FOR_ALT_IDX=8,e.OR_IDX=1<<e.BITS_FOR_OCCURRENCE_IDX,e.OPTION_IDX=2<<e.BITS_FOR_OCCURRENCE_IDX,e.MANY_IDX=3<<e.BITS_FOR_OCCURRENCE_IDX,e.AT_LEAST_ONE_IDX=4<<e.BITS_FOR_OCCURRENCE_IDX,e.MANY_SEP_IDX=5<<e.BITS_FOR_OCCURRENCE_IDX,e.AT_LEAST_ONE_SEP_IDX=6<<e.BITS_FOR_OCCURRENCE_IDX,e.getKeyForAutomaticLookahead=function(t,e,r){return r|e|t},e.BITS_FOR_ALT_IDX},7042:function(t,e,r){"use strict";var n=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.LLkLookaheadStrategy=void 0;var i=o(r(9875)),a=o(r(9787)),s=r(1007),u=r(2941),c=r(3870),l=r(4677),f=function(){function t(t){var e;this.maxLookahead=null!==(e=null==t?void 0:t.maxLookahead)&&void 0!==e?e:u.DEFAULT_PARSER_CONFIG.maxLookahead}return t.prototype.validate=function(t){var e=this.validateNoLeftRecursion(t.rules);if((0,a.default)(e)){var r=this.validateEmptyOrAlternatives(t.rules),o=this.validateAmbiguousAlternationAlternatives(t.rules,this.maxLookahead),i=this.validateSomeNonEmptyLookaheadPath(t.rules,this.maxLookahead);return n(n(n(n([],e,!0),r,!0),o,!0),i,!0)}return e},t.prototype.validateNoLeftRecursion=function(t){return(0,i.default)(t,(function(t){return(0,c.validateNoLeftRecursion)(t,t,s.defaultGrammarValidatorErrorProvider)}))},t.prototype.validateEmptyOrAlternatives=function(t){return(0,i.default)(t,(function(t){return(0,c.validateEmptyOrAlternative)(t,s.defaultGrammarValidatorErrorProvider)}))},t.prototype.validateAmbiguousAlternationAlternatives=function(t,e){return(0,i.default)(t,(function(t){return(0,c.validateAmbiguousAlternationAlternatives)(t,e,s.defaultGrammarValidatorErrorProvider)}))},t.prototype.validateSomeNonEmptyLookaheadPath=function(t,e){return(0,c.validateSomeNonEmptyLookaheadPath)(t,e,s.defaultGrammarValidatorErrorProvider)},t.prototype.buildLookaheadForAlternation=function(t){return(0,l.buildLookaheadFuncForOr)(t.prodOccurrence,t.rule,t.maxLookahead,t.hasPredicates,t.dynamicTokensEnabled,l.buildAlternativesLookAheadFunc)},t.prototype.buildLookaheadForOptional=function(t){return(0,l.buildLookaheadFuncForOptionalProd)(t.prodOccurrence,t.rule,t.maxLookahead,t.dynamicTokensEnabled,(0,l.getProdType)(t.prodType),l.buildSingleAlternativeLookaheadFunction)},t}();e.LLkLookaheadStrategy=f},4677:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.areTokenCategoriesNotUsed=e.isStrictPrefixOfPath=e.containsPath=e.getLookaheadPathsForOptionalProd=e.getLookaheadPathsForOr=e.lookAheadSequenceFromAlternatives=e.buildSingleAlternativeLookaheadFunction=e.buildAlternativesLookAheadFunc=e.buildLookaheadFuncForOptionalProd=e.buildLookaheadFuncForOr=e.getLookaheadPaths=e.getProdType=e.PROD_TYPE=void 0;var a,s=i(r(9787)),u=i(r(2923)),c=i(r(1198)),l=i(r(9107)),f=i(r(7734)),p=i(r(5346)),d=i(r(7682)),h=r(9985),v=r(8567),y=r(1201),m=r(7729),T=r(7729);function E(t){if(t instanceof m.Option||"Option"===t)return a.OPTION;if(t instanceof m.Repetition||"Repetition"===t)return a.REPETITION;if(t instanceof m.RepetitionMandatory||"RepetitionMandatory"===t)return a.REPETITION_MANDATORY;if(t instanceof m.RepetitionMandatoryWithSeparator||"RepetitionMandatoryWithSeparator"===t)return a.REPETITION_MANDATORY_WITH_SEPARATOR;if(t instanceof m.RepetitionWithSeparator||"RepetitionWithSeparator"===t)return a.REPETITION_WITH_SEPARATOR;if(t instanceof m.Alternation||"Alternation"===t)return a.ALTERNATION;throw Error("non exhaustive match")}!function(t){t[t.OPTION=0]="OPTION",t[t.REPETITION=1]="REPETITION",t[t.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",t[t.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",t[t.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",t[t.ALTERNATION=5]="ALTERNATION"}(a=e.PROD_TYPE||(e.PROD_TYPE={})),e.getProdType=E,e.getLookaheadPaths=function(t){var e=t.occurrence,r=t.rule,n=t.prodType,o=t.maxLookahead,i=E(n);return i===a.ALTERNATION?x(e,r,o):I(e,r,i,o)},e.buildLookaheadFuncForOr=function(t,e,r,n,o,i){var a=x(t,e,r);return i(a,n,S(a)?y.tokenStructuredMatcherNoCategories:y.tokenStructuredMatcher,o)},e.buildLookaheadFuncForOptionalProd=function(t,e,r,n,o,i){var a=I(t,e,o,r),s=S(a)?y.tokenStructuredMatcherNoCategories:y.tokenStructuredMatcher;return i(a[0],s,n)},e.buildAlternativesLookAheadFunc=function(t,e,r,n){var o=t.length,i=(0,c.default)(t,(function(t){return(0,c.default)(t,(function(t){return 1===t.length}))}));if(e)return function(e){for(var n=(0,l.default)(e,(function(t){return t.GATE})),i=0;i<o;i++){var a=t[i],s=a.length,u=n[i];if(void 0===u||!1!==u.call(this))t:for(var c=0;c<s;c++){for(var f=a[c],p=f.length,d=0;d<p;d++){var h=this.LA(d+1);if(!1===r(h,f[d]))continue t}return i}}};if(i&&!n){var a=(0,l.default)(t,(function(t){return(0,u.default)(t)})),s=(0,d.default)(a,(function(t,e,r){return(0,f.default)(e,(function(e){(0,p.default)(t,e.tokenTypeIdx)||(t[e.tokenTypeIdx]=r),(0,f.default)(e.categoryMatches,(function(e){(0,p.default)(t,e)||(t[e]=r)}))})),t}),{});return function(){var t=this.LA(1);return s[t.tokenTypeIdx]}}return function(){for(var e=0;e<o;e++){var n=t[e],i=n.length;t:for(var a=0;a<i;a++){for(var s=n[a],u=s.length,c=0;c<u;c++){var l=this.LA(c+1);if(!1===r(l,s[c]))continue t}return e}}}},e.buildSingleAlternativeLookaheadFunction=function(t,e,r){var n=(0,c.default)(t,(function(t){return 1===t.length})),o=t.length;if(n&&!r){var i=(0,u.default)(t);if(1===i.length&&(0,s.default)(i[0].categoryMatches)){var a=i[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===a}}var l=(0,d.default)(i,(function(t,e,r){return t[e.tokenTypeIdx]=!0,(0,f.default)(e.categoryMatches,(function(e){t[e]=!0})),t}),[]);return function(){var t=this.LA(1);return!0===l[t.tokenTypeIdx]}}return function(){t:for(var r=0;r<o;r++){for(var n=t[r],i=n.length,a=0;a<i;a++){var s=this.LA(a+1);if(!1===e(s,n[a]))continue t}return!0}return!1}};var _=function(t){function e(e,r,n){var o=t.call(this)||this;return o.topProd=e,o.targetOccurrence=r,o.targetProdType=n,o}return o(e,t),e.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},e.prototype.checkIsTarget=function(t,e,r,n){return t.idx===this.targetOccurrence&&this.targetProdType===e&&(this.restDef=r.concat(n),!0)},e.prototype.walkOption=function(e,r,n){this.checkIsTarget(e,a.OPTION,r,n)||t.prototype.walkOption.call(this,e,r,n)},e.prototype.walkAtLeastOne=function(e,r,n){this.checkIsTarget(e,a.REPETITION_MANDATORY,r,n)||t.prototype.walkOption.call(this,e,r,n)},e.prototype.walkAtLeastOneSep=function(e,r,n){this.checkIsTarget(e,a.REPETITION_MANDATORY_WITH_SEPARATOR,r,n)||t.prototype.walkOption.call(this,e,r,n)},e.prototype.walkMany=function(e,r,n){this.checkIsTarget(e,a.REPETITION,r,n)||t.prototype.walkOption.call(this,e,r,n)},e.prototype.walkManySep=function(e,r,n){this.checkIsTarget(e,a.REPETITION_WITH_SEPARATOR,r,n)||t.prototype.walkOption.call(this,e,r,n)},e}(v.RestWalker),g=function(t){function e(e,r,n){var o=t.call(this)||this;return o.targetOccurrence=e,o.targetProdType=r,o.targetRef=n,o.result=[],o}return o(e,t),e.prototype.checkIsTarget=function(t,e){t.idx!==this.targetOccurrence||this.targetProdType!==e||void 0!==this.targetRef&&t!==this.targetRef||(this.result=t.definition)},e.prototype.visitOption=function(t){this.checkIsTarget(t,a.OPTION)},e.prototype.visitRepetition=function(t){this.checkIsTarget(t,a.REPETITION)},e.prototype.visitRepetitionMandatory=function(t){this.checkIsTarget(t,a.REPETITION_MANDATORY)},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){this.checkIsTarget(t,a.REPETITION_MANDATORY_WITH_SEPARATOR)},e.prototype.visitRepetitionWithSeparator=function(t){this.checkIsTarget(t,a.REPETITION_WITH_SEPARATOR)},e.prototype.visitAlternation=function(t){this.checkIsTarget(t,a.ALTERNATION)},e}(T.GAstVisitor);function O(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=[];return e}function R(t){for(var e=[""],r=0;r<t.length;r++){for(var n=t[r],o=[],i=0;i<e.length;i++){var a=e[i];o.push(a+"_"+n.tokenTypeIdx);for(var s=0;s<n.categoryMatches.length;s++){var u="_"+n.categoryMatches[s];o.push(a+u)}}e=o}return e}function A(t,e,r){for(var n=0;n<t.length;n++)if(n!==r)for(var o=t[n],i=0;i<e.length;i++)if(!0===o[e[i]])return!1;return!0}function N(t,e){for(var r=(0,l.default)(t,(function(t){return(0,h.possiblePathsFrom)([t],1)})),n=O(r.length),o=(0,l.default)(r,(function(t){var e={};return(0,f.default)(t,(function(t){var r=R(t.partialPath);(0,f.default)(r,(function(t){e[t]=!0}))})),e})),i=r,a=1;a<=e;a++){var u=i;i=O(u.length);for(var c=function(t){for(var r=u[t],c=0;c<r.length;c++){var l=r[c].partialPath,p=r[c].suffixDef,d=R(l);if(A(o,d,t)||(0,s.default)(p)||l.length===e){var v=n[t];if(!1===P(v,l)){v.push(l);for(var y=0;y<d.length;y++){var m=d[y];o[t][m]=!0}}}else{var T=(0,h.possiblePathsFrom)(p,a+1,l);i[t]=i[t].concat(T),(0,f.default)(T,(function(e){var r=R(e.partialPath);(0,f.default)(r,(function(e){o[t][e]=!0}))}))}}},p=0;p<u.length;p++)c(p)}return n}function x(t,e,r,n){var o=new g(t,a.ALTERNATION,n);return e.accept(o),N(o.result,r)}function I(t,e,r,n){var o=new g(t,r);e.accept(o);var i=o.result,a=new _(e,t,r).startWalking();return N([new m.Alternative({definition:i}),new m.Alternative({definition:a})],n)}function P(t,e){t:for(var r=0;r<t.length;r++){var n=t[r];if(n.length===e.length){for(var o=0;o<n.length;o++){var i=e[o],a=n[o];if(!1==(i===a||void 0!==a.categoryMatchesMap[i.tokenTypeIdx]))continue t}return!0}}return!1}function S(t){return(0,c.default)(t,(function(t){return(0,c.default)(t,(function(t){return(0,c.default)(t,(function(t){return(0,s.default)(t.categoryMatches)}))}))}))}e.lookAheadSequenceFromAlternatives=N,e.getLookaheadPathsForOr=x,e.getLookaheadPathsForOptionalProd=I,e.containsPath=P,e.isStrictPrefixOfPath=function(t,e){return t.length<e.length&&(0,c.default)(t,(function(t,r){var n=e[r];return t===n||n.categoryMatchesMap[t.tokenTypeIdx]}))},e.areTokenCategoriesNotUsed=S},6304:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GastRefResolverVisitor=e.resolveGrammar=void 0;var a=r(2941),s=i(r(7734)),u=i(r(1682)),c=r(7729);e.resolveGrammar=function(t,e){var r=new l(t,e);return r.resolveRefs(),r.errors};var l=function(t){function e(e,r){var n=t.call(this)||this;return n.nameToTopRule=e,n.errMsgProvider=r,n.errors=[],n}return o(e,t),e.prototype.resolveRefs=function(){var t=this;(0,s.default)((0,u.default)(this.nameToTopRule),(function(e){t.currTopLevel=e,e.accept(t)}))},e.prototype.visitNonTerminal=function(t){var e=this.nameToTopRule[t.nonTerminalName];if(e)t.referencedRule=e;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,t);this.errors.push({message:r,type:a.ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:t.nonTerminalName})}},e}(c.GAstVisitor);e.GastRefResolverVisitor=l},8567:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RestWalker=void 0;var o=n(r(9239)),i=n(r(7734)),a=r(7729),s=function(){function t(){}return t.prototype.walk=function(t,e){var r=this;void 0===e&&(e=[]),(0,i.default)(t.definition,(function(n,i){var s=(0,o.default)(t.definition,i+1);if(n instanceof a.NonTerminal)r.walkProdRef(n,s,e);else if(n instanceof a.Terminal)r.walkTerminal(n,s,e);else if(n instanceof a.Alternative)r.walkFlat(n,s,e);else if(n instanceof a.Option)r.walkOption(n,s,e);else if(n instanceof a.RepetitionMandatory)r.walkAtLeastOne(n,s,e);else if(n instanceof a.RepetitionMandatoryWithSeparator)r.walkAtLeastOneSep(n,s,e);else if(n instanceof a.RepetitionWithSeparator)r.walkManySep(n,s,e);else if(n instanceof a.Repetition)r.walkMany(n,s,e);else{if(!(n instanceof a.Alternation))throw Error("non exhaustive match");r.walkOr(n,s,e)}}))},t.prototype.walkTerminal=function(t,e,r){},t.prototype.walkProdRef=function(t,e,r){},t.prototype.walkFlat=function(t,e,r){var n=e.concat(r);this.walk(t,n)},t.prototype.walkOption=function(t,e,r){var n=e.concat(r);this.walk(t,n)},t.prototype.walkAtLeastOne=function(t,e,r){var n=[new a.Option({definition:t.definition})].concat(e,r);this.walk(t,n)},t.prototype.walkAtLeastOneSep=function(t,e,r){var n=u(t,e,r);this.walk(t,n)},t.prototype.walkMany=function(t,e,r){var n=[new a.Option({definition:t.definition})].concat(e,r);this.walk(t,n)},t.prototype.walkManySep=function(t,e,r){var n=u(t,e,r);this.walk(t,n)},t.prototype.walkOr=function(t,e,r){var n=this,o=e.concat(r);(0,i.default)(t.definition,(function(t){var e=new a.Alternative({definition:[t]});n.walk(e,o)}))},t}();function u(t,e,r){return[new a.Option({definition:[new a.Terminal({terminalType:t.separator})].concat(t.definition)})].concat(e,r)}e.RestWalker=s},2941:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.EmbeddedActionsParser=e.CstParser=e.Parser=e.EMPTY_ALT=e.ParserDefinitionErrorType=e.DEFAULT_RULE_CONFIG=e.DEFAULT_PARSER_CONFIG=e.END_OF_FILE=void 0;var a,s=i(r(9787)),u=i(r(9107)),c=i(r(7734)),l=i(r(1682)),f=i(r(5346)),p=i(r(7953)),d=r(7146),h=r(4917),v=r(6736),y=r(1007),m=r(1665),T=r(9992),E=r(161),_=r(3225),g=r(598),O=r(8503),R=r(3273),A=r(9464),N=r(1625),x=r(6688),I=r(146),P=r(4803),S=r(3870);e.END_OF_FILE=(0,v.createTokenInstance)(v.EOF,"",NaN,NaN,NaN,NaN,NaN,NaN),Object.freeze(e.END_OF_FILE),e.DEFAULT_PARSER_CONFIG=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:y.defaultParserErrorProvider,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),e.DEFAULT_RULE_CONFIG=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0}),(a=e.ParserDefinitionErrorType||(e.ParserDefinitionErrorType={}))[a.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",a[a.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",a[a.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",a[a.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",a[a.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",a[a.LEFT_RECURSION=5]="LEFT_RECURSION",a[a.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",a[a.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",a[a.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",a[a.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",a[a.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",a[a.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",a[a.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",a[a.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION",e.EMPTY_ALT=function(t){return void 0===t&&(t=void 0),function(){return t}};var b=function(){function t(t,r){this.definitionErrors=[],this.selfAnalysisDone=!1;var n=this;if(n.initErrorHandler(r),n.initLexerAdapter(),n.initLooksAhead(r),n.initRecognizerEngine(t,r),n.initRecoverable(r),n.initTreeBuilder(r),n.initContentAssist(),n.initGastRecorder(r),n.initPerformanceTracer(r),(0,f.default)(r,"ignoredIssues"))throw new Error("The <ignoredIssues> IParserConfig property has been deprecated.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n\tSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\tFor further details.");this.skipValidations=(0,f.default)(r,"skipValidations")?r.skipValidations:e.DEFAULT_PARSER_CONFIG.skipValidations}return t.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")},t.prototype.performSelfAnalysis=function(){var e=this;this.TRACE_INIT("performSelfAnalysis",(function(){var r;e.selfAnalysisDone=!0;var n=e.className;e.TRACE_INIT("toFastProps",(function(){(0,d.toFastProperties)(e)})),e.TRACE_INIT("Grammar Recording",(function(){try{e.enableRecording(),(0,c.default)(e.definedRulesNames,(function(t){var r,n=e[t].originalGrammarAction;e.TRACE_INIT("".concat(t," Rule"),(function(){r=e.topLevelRuleRecord(t,n)})),e.gastProductionsCache[t]=r}))}finally{e.disableRecording()}}));var o=[];if(e.TRACE_INIT("Grammar Resolving",(function(){o=(0,m.resolveGrammar)({rules:(0,l.default)(e.gastProductionsCache)}),e.definitionErrors=e.definitionErrors.concat(o)})),e.TRACE_INIT("Grammar Validations",(function(){if((0,s.default)(o)&&!1===e.skipValidations){var t=(0,m.validateGrammar)({rules:(0,l.default)(e.gastProductionsCache),tokenTypes:(0,l.default)(e.tokensMap),errMsgProvider:y.defaultGrammarValidatorErrorProvider,grammarName:n}),r=(0,S.validateLookahead)({lookaheadStrategy:e.lookaheadStrategy,rules:(0,l.default)(e.gastProductionsCache),tokenTypes:(0,l.default)(e.tokensMap),grammarName:n});e.definitionErrors=e.definitionErrors.concat(t,r)}})),(0,s.default)(e.definitionErrors)&&(e.recoveryEnabled&&e.TRACE_INIT("computeAllProdsFollows",(function(){var t=(0,h.computeAllProdsFollows)((0,l.default)(e.gastProductionsCache));e.resyncFollows=t})),e.TRACE_INIT("ComputeLookaheadFunctions",(function(){var t,r;null===(r=(t=e.lookaheadStrategy).initialize)||void 0===r||r.call(t,{rules:(0,l.default)(e.gastProductionsCache)}),e.preComputeLookaheadFunctions((0,l.default)(e.gastProductionsCache))}))),!t.DEFER_DEFINITION_ERRORS_HANDLING&&!(0,s.default)(e.definitionErrors))throw r=(0,u.default)(e.definitionErrors,(function(t){return t.message})),new Error("Parser Definition Errors detected:\n ".concat(r.join("\n-------------------------------\n")))}))},t.DEFER_DEFINITION_ERRORS_HANDLING=!1,t}();e.Parser=b,(0,P.applyMixins)(b,[T.Recoverable,E.LooksAhead,_.TreeBuilder,g.LexerAdapter,R.RecognizerEngine,O.RecognizerApi,A.ErrorHandler,N.ContentAssist,x.GastRecorder,I.PerformanceTracer]);var L=function(t){function r(r,n){void 0===n&&(n=e.DEFAULT_PARSER_CONFIG);var o=(0,p.default)(n);return o.outputCst=!0,t.call(this,r,o)||this}return o(r,t),r}(b);e.CstParser=L;var k=function(t){function r(r,n){void 0===n&&(n=e.DEFAULT_PARSER_CONFIG);var o=(0,p.default)(n);return o.outputCst=!1,t.call(this,r,o)||this}return o(r,t),r}(b);e.EmbeddedActionsParser=k},1625:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ContentAssist=void 0;var o=r(9985),i=n(r(8936)),a=n(r(6474)),s=function(){function t(){}return t.prototype.initContentAssist=function(){},t.prototype.computeContentAssist=function(t,e){var r=this.gastProductionsCache[t];if((0,a.default)(r))throw Error("Rule ->".concat(t,"<- does not exist in this grammar."));return(0,o.nextPossibleTokensAfter)([r],e,this.tokenMatcher,this.maxLookahead)},t.prototype.getNextPossibleTokenTypes=function(t){var e=(0,i.default)(t.ruleStack),r=this.getGAstProductions()[e];return new o.NextAfterTokenWalker(r,t).startWalking()},t}();e.ContentAssist=s},9464:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorHandler=void 0;var o=r(643),i=n(r(5346)),a=n(r(7953)),s=r(4677),u=r(2941),c=function(){function t(){}return t.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=(0,i.default)(t,"errorMessageProvider")?t.errorMessageProvider:u.DEFAULT_PARSER_CONFIG.errorMessageProvider},t.prototype.SAVE_ERROR=function(t){if((0,o.isRecognitionException)(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:(0,a.default)(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(t.prototype,"errors",{get:function(){return(0,a.default)(this._errors)},set:function(t){this._errors=t},enumerable:!1,configurable:!0}),t.prototype.raiseEarlyExitException=function(t,e,r){for(var n=this.getCurrRuleFullName(),i=this.getGAstProductions()[n],a=(0,s.getLookaheadPathsForOptionalProd)(t,i,e,this.maxLookahead)[0],u=[],c=1;c<=this.maxLookahead;c++)u.push(this.LA(c));var l=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:a,actual:u,previous:this.LA(0),customUserDescription:r,ruleName:n});throw this.SAVE_ERROR(new o.EarlyExitException(l,this.LA(1),this.LA(0)))},t.prototype.raiseNoAltException=function(t,e){for(var r=this.getCurrRuleFullName(),n=this.getGAstProductions()[r],i=(0,s.getLookaheadPathsForOr)(t,n,this.maxLookahead),a=[],u=1;u<=this.maxLookahead;u++)a.push(this.LA(u));var c=this.LA(0),l=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:i,actual:a,previous:c,customUserDescription:e,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new o.NoViableAltException(l,this.LA(1),c))},t}();e.ErrorHandler=c},6688:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GastRecorder=void 0;var o=n(r(7875)),i=n(r(5589)),a=n(r(9040)),s=n(r(7734)),u=n(r(5563)),c=n(r(5346)),l=r(7729),f=r(9027),p=r(1201),d=r(6736),h=r(2941),v=r(8209),y={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(y);var m=Math.pow(2,v.BITS_FOR_OCCURRENCE_IDX)-1,T=(0,d.createToken)({name:"RECORDING_PHASE_TOKEN",pattern:f.Lexer.NA});(0,p.augmentTokenTypes)([T]);var E=(0,d.createTokenInstance)(T,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(E);var _={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",children:{}},g=function(){function t(){}return t.prototype.initGastRecorder=function(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1},t.prototype.enableRecording=function(){var t=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",(function(){for(var e=function(e){var r=e>0?e:"";t["CONSUME".concat(r)]=function(t,r){return this.consumeInternalRecord(t,e,r)},t["SUBRULE".concat(r)]=function(t,r){return this.subruleInternalRecord(t,e,r)},t["OPTION".concat(r)]=function(t){return this.optionInternalRecord(t,e)},t["OR".concat(r)]=function(t){return this.orInternalRecord(t,e)},t["MANY".concat(r)]=function(t){this.manyInternalRecord(e,t)},t["MANY_SEP".concat(r)]=function(t){this.manySepFirstInternalRecord(e,t)},t["AT_LEAST_ONE".concat(r)]=function(t){this.atLeastOneInternalRecord(e,t)},t["AT_LEAST_ONE_SEP".concat(r)]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}},r=0;r<10;r++)e(r);t.consume=function(t,e,r){return this.consumeInternalRecord(e,t,r)},t.subrule=function(t,e,r){return this.subruleInternalRecord(e,t,r)},t.option=function(t,e){return this.optionInternalRecord(e,t)},t.or=function(t,e){return this.orInternalRecord(e,t)},t.many=function(t,e){this.manyInternalRecord(t,e)},t.atLeastOne=function(t,e){this.atLeastOneInternalRecord(t,e)},t.ACTION=t.ACTION_RECORD,t.BACKTRACK=t.BACKTRACK_RECORD,t.LA=t.LA_RECORD}))},t.prototype.disableRecording=function(){var t=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",(function(){for(var e=t,r=0;r<10;r++){var n=r>0?r:"";delete e["CONSUME".concat(n)],delete e["SUBRULE".concat(n)],delete e["OPTION".concat(n)],delete e["OR".concat(n)],delete e["MANY".concat(n)],delete e["MANY_SEP".concat(n)],delete e["AT_LEAST_ONE".concat(n)],delete e["AT_LEAST_ONE_SEP".concat(n)]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA}))},t.prototype.ACTION_RECORD=function(t){},t.prototype.BACKTRACK_RECORD=function(t,e){return function(){return!0}},t.prototype.LA_RECORD=function(t){return h.END_OF_FILE},t.prototype.topLevelRuleRecord=function(t,e){try{var r=new l.Rule({definition:[],name:t});return r.name=t,this.recordingProdStack.push(r),e.call(this),this.recordingProdStack.pop(),r}catch(t){if(!0!==t.KNOWN_RECORDER_ERROR)try{t.message=t.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://chevrotain.io/docs/guide/internals.html#grammar-recording'}catch(e){throw t}throw t}},t.prototype.optionInternalRecord=function(t,e){return O.call(this,l.Option,t,e)},t.prototype.atLeastOneInternalRecord=function(t,e){O.call(this,l.RepetitionMandatory,e,t)},t.prototype.atLeastOneSepFirstInternalRecord=function(t,e){O.call(this,l.RepetitionMandatoryWithSeparator,e,t,!0)},t.prototype.manyInternalRecord=function(t,e){O.call(this,l.Repetition,e,t)},t.prototype.manySepFirstInternalRecord=function(t,e){O.call(this,l.RepetitionWithSeparator,e,t,!0)},t.prototype.orInternalRecord=function(t,e){return R.call(this,t,e)},t.prototype.subruleInternalRecord=function(t,e,r){if(N(e),!t||!1===(0,c.default)(t,"ruleName")){var n=new Error("<SUBRULE".concat(A(e),"> argument is invalid")+" expecting a Parser method reference but got: <".concat(JSON.stringify(t),">")+"\n inside top level rule: <".concat(this.recordingProdStack[0].name,">"));throw n.KNOWN_RECORDER_ERROR=!0,n}var i=(0,o.default)(this.recordingProdStack),a=t.ruleName,s=new l.NonTerminal({idx:e,nonTerminalName:a,label:null==r?void 0:r.LABEL,referencedRule:void 0});return i.definition.push(s),this.outputCst?_:y},t.prototype.consumeInternalRecord=function(t,e,r){if(N(e),!(0,p.hasShortKeyProperty)(t)){var n=new Error("<CONSUME".concat(A(e),"> argument is invalid")+" expecting a TokenType reference but got: <".concat(JSON.stringify(t),">")+"\n inside top level rule: <".concat(this.recordingProdStack[0].name,">"));throw n.KNOWN_RECORDER_ERROR=!0,n}var i=(0,o.default)(this.recordingProdStack),a=new l.Terminal({idx:e,terminalType:t,label:null==r?void 0:r.LABEL});return i.definition.push(a),E},t}();function O(t,e,r,n){void 0===n&&(n=!1),N(r);var i=(0,o.default)(this.recordingProdStack),a=(0,u.default)(e)?e:e.DEF,s=new t({definition:[],idx:r});return n&&(s.separator=e.SEP),(0,c.default)(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),i.definition.push(s),this.recordingProdStack.pop(),y}function R(t,e){var r=this;N(e);var n=(0,o.default)(this.recordingProdStack),f=!1===(0,i.default)(t),p=!1===f?t:t.DEF,d=new l.Alternation({definition:[],idx:e,ignoreAmbiguities:f&&!0===t.IGNORE_AMBIGUITIES});(0,c.default)(t,"MAX_LOOKAHEAD")&&(d.maxLookahead=t.MAX_LOOKAHEAD);var h=(0,a.default)(p,(function(t){return(0,u.default)(t.GATE)}));return d.hasPredicates=h,n.definition.push(d),(0,s.default)(p,(function(t){var e=new l.Alternative({definition:[]});d.definition.push(e),(0,c.default)(t,"IGNORE_AMBIGUITIES")?e.ignoreAmbiguities=t.IGNORE_AMBIGUITIES:(0,c.default)(t,"GATE")&&(e.ignoreAmbiguities=!0),r.recordingProdStack.push(e),t.ALT.call(r),r.recordingProdStack.pop()})),y}function A(t){return 0===t?"":"".concat(t)}function N(t){if(t<0||t>m){var e=new Error("Invalid DSL Method idx value: <".concat(t,">\n\t")+"Idx value must be a none negative value smaller than ".concat(m+1));throw e.KNOWN_RECORDER_ERROR=!0,e}}e.GastRecorder=g},598:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LexerAdapter=void 0;var n=r(2941),o=function(){function t(){}return t.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(t.prototype,"input",{get:function(){return this.tokVector},set:function(t){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},enumerable:!1,configurable:!0}),t.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):n.END_OF_FILE},t.prototype.LA=function(t){var e=this.currIdx+t;return e<0||this.tokVectorLength<=e?n.END_OF_FILE:this.tokVector[e]},t.prototype.consumeToken=function(){this.currIdx++},t.prototype.exportLexerState=function(){return this.currIdx},t.prototype.importLexerState=function(t){this.currIdx=t},t.prototype.resetLexerState=function(){this.currIdx=-1},t.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},t.prototype.getLexerPosition=function(){return this.exportLexerState()},t}();e.LexerAdapter=o},161:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.collectMethods=e.LooksAhead=void 0;var a=i(r(7734)),s=i(r(5346)),u=r(2941),c=r(8209),l=r(7729),f=r(7729),p=r(7042),d=function(){function t(){}return t.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=(0,s.default)(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:u.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled,this.maxLookahead=(0,s.default)(t,"maxLookahead")?t.maxLookahead:u.DEFAULT_PARSER_CONFIG.maxLookahead,this.lookaheadStrategy=(0,s.default)(t,"lookaheadStrategy")?t.lookaheadStrategy:new p.LLkLookaheadStrategy({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map},t.prototype.preComputeLookaheadFunctions=function(t){var e=this;(0,a.default)(t,(function(t){e.TRACE_INIT("".concat(t.name," Rule Lookahead"),(function(){var r=y(t),n=r.alternation,o=r.repetition,i=r.option,s=r.repetitionMandatory,u=r.repetitionMandatoryWithSeparator,l=r.repetitionWithSeparator;(0,a.default)(n,(function(r){var n=0===r.idx?"":r.idx;e.TRACE_INIT("".concat((0,f.getProductionDslName)(r)).concat(n),(function(){var n=e.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:r.idx,rule:t,maxLookahead:r.maxLookahead||e.maxLookahead,hasPredicates:r.hasPredicates,dynamicTokensEnabled:e.dynamicTokensEnabled}),o=(0,c.getKeyForAutomaticLookahead)(e.fullRuleNameToShort[t.name],c.OR_IDX,r.idx);e.setLaFuncCache(o,n)}))})),(0,a.default)(o,(function(r){e.computeLookaheadFunc(t,r.idx,c.MANY_IDX,"Repetition",r.maxLookahead,(0,f.getProductionDslName)(r))})),(0,a.default)(i,(function(r){e.computeLookaheadFunc(t,r.idx,c.OPTION_IDX,"Option",r.maxLookahead,(0,f.getProductionDslName)(r))})),(0,a.default)(s,(function(r){e.computeLookaheadFunc(t,r.idx,c.AT_LEAST_ONE_IDX,"RepetitionMandatory",r.maxLookahead,(0,f.getProductionDslName)(r))})),(0,a.default)(u,(function(r){e.computeLookaheadFunc(t,r.idx,c.AT_LEAST_ONE_SEP_IDX,"RepetitionMandatoryWithSeparator",r.maxLookahead,(0,f.getProductionDslName)(r))})),(0,a.default)(l,(function(r){e.computeLookaheadFunc(t,r.idx,c.MANY_SEP_IDX,"RepetitionWithSeparator",r.maxLookahead,(0,f.getProductionDslName)(r))}))}))}))},t.prototype.computeLookaheadFunc=function(t,e,r,n,o,i){var a=this;this.TRACE_INIT("".concat(i).concat(0===e?"":e),(function(){var i=a.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:e,rule:t,maxLookahead:o||a.maxLookahead,dynamicTokensEnabled:a.dynamicTokensEnabled,prodType:n}),s=(0,c.getKeyForAutomaticLookahead)(a.fullRuleNameToShort[t.name],r,e);a.setLaFuncCache(s,i)}))},t.prototype.getKeyForAutomaticLookahead=function(t,e){var r=this.getLastExplicitRuleShortName();return(0,c.getKeyForAutomaticLookahead)(r,t,e)},t.prototype.getLaFuncFromCache=function(t){return this.lookAheadFuncsCache.get(t)},t.prototype.setLaFuncCache=function(t,e){this.lookAheadFuncsCache.set(t,e)},t}();e.LooksAhead=d;var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},e}return o(e,t),e.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},e.prototype.visitOption=function(t){this.dslMethods.option.push(t)},e.prototype.visitRepetitionWithSeparator=function(t){this.dslMethods.repetitionWithSeparator.push(t)},e.prototype.visitRepetitionMandatory=function(t){this.dslMethods.repetitionMandatory.push(t)},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){this.dslMethods.repetitionMandatoryWithSeparator.push(t)},e.prototype.visitRepetition=function(t){this.dslMethods.repetition.push(t)},e.prototype.visitAlternation=function(t){this.dslMethods.alternation.push(t)},e}(l.GAstVisitor),v=new h;function y(t){v.reset(),t.accept(v);var e=v.dslMethods;return v.reset(),e}e.collectMethods=y},146:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.PerformanceTracer=void 0;var o=n(r(5346)),i=r(7146),a=r(2941),s=function(){function t(){}return t.prototype.initPerformanceTracer=function(t){if((0,o.default)(t,"traceInitPerf")){var e=t.traceInitPerf,r="number"==typeof e;this.traceInitMaxIdent=r?e:1/0,this.traceInitPerf=r?e>0:e}else this.traceInitMaxIdent=0,this.traceInitPerf=a.DEFAULT_PARSER_CONFIG.traceInitPerf;this.traceInitIndent=-1},t.prototype.TRACE_INIT=function(t,e){if(!0===this.traceInitPerf){this.traceInitIndent++;var r=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log("".concat(r,"--\x3e <").concat(t,">"));var n=(0,i.timer)(e),o=n.time,a=n.value,s=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s("".concat(r,"<-- <").concat(t,"> time: ").concat(o,"ms")),this.traceInitIndent--,a}return e()},t}();e.PerformanceTracer=s},8503:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RecognizerApi=void 0;var o=n(r(1682)),i=n(r(2876)),a=r(643),s=r(2941),u=r(1007),c=r(3870),l=r(7729),f=function(){function t(){}return t.prototype.ACTION=function(t){return t.call(this)},t.prototype.consume=function(t,e,r){return this.consumeInternal(e,t,r)},t.prototype.subrule=function(t,e,r){return this.subruleInternal(e,t,r)},t.prototype.option=function(t,e){return this.optionInternal(e,t)},t.prototype.or=function(t,e){return this.orInternal(e,t)},t.prototype.many=function(t,e){return this.manyInternal(t,e)},t.prototype.atLeastOne=function(t,e){return this.atLeastOneInternal(t,e)},t.prototype.CONSUME=function(t,e){return this.consumeInternal(t,0,e)},t.prototype.CONSUME1=function(t,e){return this.consumeInternal(t,1,e)},t.prototype.CONSUME2=function(t,e){return this.consumeInternal(t,2,e)},t.prototype.CONSUME3=function(t,e){return this.consumeInternal(t,3,e)},t.prototype.CONSUME4=function(t,e){return this.consumeInternal(t,4,e)},t.prototype.CONSUME5=function(t,e){return this.consumeInternal(t,5,e)},t.prototype.CONSUME6=function(t,e){return this.consumeInternal(t,6,e)},t.prototype.CONSUME7=function(t,e){return this.consumeInternal(t,7,e)},t.prototype.CONSUME8=function(t,e){return this.consumeInternal(t,8,e)},t.prototype.CONSUME9=function(t,e){return this.consumeInternal(t,9,e)},t.prototype.SUBRULE=function(t,e){return this.subruleInternal(t,0,e)},t.prototype.SUBRULE1=function(t,e){return this.subruleInternal(t,1,e)},t.prototype.SUBRULE2=function(t,e){return this.subruleInternal(t,2,e)},t.prototype.SUBRULE3=function(t,e){return this.subruleInternal(t,3,e)},t.prototype.SUBRULE4=function(t,e){return this.subruleInternal(t,4,e)},t.prototype.SUBRULE5=function(t,e){return this.subruleInternal(t,5,e)},t.prototype.SUBRULE6=function(t,e){return this.subruleInternal(t,6,e)},t.prototype.SUBRULE7=function(t,e){return this.subruleInternal(t,7,e)},t.prototype.SUBRULE8=function(t,e){return this.subruleInternal(t,8,e)},t.prototype.SUBRULE9=function(t,e){return this.subruleInternal(t,9,e)},t.prototype.OPTION=function(t){return this.optionInternal(t,0)},t.prototype.OPTION1=function(t){return this.optionInternal(t,1)},t.prototype.OPTION2=function(t){return this.optionInternal(t,2)},t.prototype.OPTION3=function(t){return this.optionInternal(t,3)},t.prototype.OPTION4=function(t){return this.optionInternal(t,4)},t.prototype.OPTION5=function(t){return this.optionInternal(t,5)},t.prototype.OPTION6=function(t){return this.optionInternal(t,6)},t.prototype.OPTION7=function(t){return this.optionInternal(t,7)},t.prototype.OPTION8=function(t){return this.optionInternal(t,8)},t.prototype.OPTION9=function(t){return this.optionInternal(t,9)},t.prototype.OR=function(t){return this.orInternal(t,0)},t.prototype.OR1=function(t){return this.orInternal(t,1)},t.prototype.OR2=function(t){return this.orInternal(t,2)},t.prototype.OR3=function(t){return this.orInternal(t,3)},t.prototype.OR4=function(t){return this.orInternal(t,4)},t.prototype.OR5=function(t){return this.orInternal(t,5)},t.prototype.OR6=function(t){return this.orInternal(t,6)},t.prototype.OR7=function(t){return this.orInternal(t,7)},t.prototype.OR8=function(t){return this.orInternal(t,8)},t.prototype.OR9=function(t){return this.orInternal(t,9)},t.prototype.MANY=function(t){this.manyInternal(0,t)},t.prototype.MANY1=function(t){this.manyInternal(1,t)},t.prototype.MANY2=function(t){this.manyInternal(2,t)},t.prototype.MANY3=function(t){this.manyInternal(3,t)},t.prototype.MANY4=function(t){this.manyInternal(4,t)},t.prototype.MANY5=function(t){this.manyInternal(5,t)},t.prototype.MANY6=function(t){this.manyInternal(6,t)},t.prototype.MANY7=function(t){this.manyInternal(7,t)},t.prototype.MANY8=function(t){this.manyInternal(8,t)},t.prototype.MANY9=function(t){this.manyInternal(9,t)},t.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},t.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},t.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},t.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},t.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},t.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},t.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},t.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},t.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},t.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},t.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},t.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},t.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},t.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},t.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},t.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},t.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},t.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},t.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},t.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},t.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},t.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},t.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},t.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},t.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},t.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},t.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},t.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},t.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},t.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},t.prototype.RULE=function(t,e,r){if(void 0===r&&(r=s.DEFAULT_RULE_CONFIG),(0,i.default)(this.definedRulesNames,t)){var n={message:u.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),type:s.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(n)}this.definedRulesNames.push(t);var o=this.defineRule(t,e,r);return this[t]=o,o},t.prototype.OVERRIDE_RULE=function(t,e,r){void 0===r&&(r=s.DEFAULT_RULE_CONFIG);var n=(0,c.validateRuleIsOverridden)(t,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(n);var o=this.defineRule(t,e,r);return this[t]=o,o},t.prototype.BACKTRACK=function(t,e){return function(){this.isBackTrackingStack.push(1);var r=this.saveRecogState();try{return t.apply(this,e),!0}catch(t){if((0,a.isRecognitionException)(t))return!1;throw t}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}},t.prototype.getGAstProductions=function(){return this.gastProductionsCache},t.prototype.getSerializedGastProductions=function(){return(0,l.serializeGrammar)((0,o.default)(this.gastProductionsCache))},t}();e.RecognizerApi=f},3273:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RecognizerEngine=void 0;var o=n(r(9787)),i=n(r(5589)),a=n(r(2923)),s=n(r(1198)),u=n(r(292)),c=n(r(3702)),l=n(r(5346)),f=n(r(1682)),p=n(r(7682)),d=n(r(7953)),h=r(8209),v=r(643),y=r(4677),m=r(9985),T=r(2941),E=r(9992),_=r(6736),g=r(1201),O=function(){function t(){}return t.prototype.initRecognizerEngine=function(t,e){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=g.tokenStructuredMatcherNoCategories,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},(0,l.default)(e,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if((0,i.default)(t)){if((0,o.default)(t))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof t[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if((0,i.default)(t))this.tokensMap=(0,p.default)(t,(function(t,e){return t[e.name]=e,t}),{});else if((0,l.default)(t,"modes")&&(0,s.default)((0,a.default)((0,f.default)(t.modes)),g.isTokenType)){var r=(0,a.default)((0,f.default)(t.modes)),n=(0,u.default)(r);this.tokensMap=(0,p.default)(n,(function(t,e){return t[e.name]=e,t}),{})}else{if(!(0,c.default)(t))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=(0,d.default)(t)}this.tokensMap.EOF=_.EOF;var h=(0,l.default)(t,"modes")?(0,a.default)((0,f.default)(t.modes)):(0,f.default)(t),v=(0,s.default)(h,(function(t){return(0,o.default)(t.categoryMatches)}));this.tokenMatcher=v?g.tokenStructuredMatcherNoCategories:g.tokenStructuredMatcher,(0,g.augmentTokenTypes)((0,f.default)(this.tokensMap))},t.prototype.defineRule=function(t,e,r){if(this.selfAnalysisDone)throw Error("Grammar rule <".concat(t,"> may not be defined after the 'performSelfAnalysis' method has been called'\n")+"Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var n,o=(0,l.default)(r,"resyncEnabled")?r.resyncEnabled:T.DEFAULT_RULE_CONFIG.resyncEnabled,i=(0,l.default)(r,"recoveryValueFunc")?r.recoveryValueFunc:T.DEFAULT_RULE_CONFIG.recoveryValueFunc,a=this.ruleShortNameIdx<<h.BITS_FOR_METHOD_TYPE+h.BITS_FOR_OCCURRENCE_IDX;return this.ruleShortNameIdx++,this.shortRuleNameToFull[a]=t,this.fullRuleNameToShort[t]=a,n=!0===this.outputCst?function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{this.ruleInvocationStateUpdate(a,t,this.subruleIdx),e.apply(this,r);var s=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(s),s}catch(t){return this.invokeRuleCatch(t,o,i)}finally{this.ruleFinallyStateUpdate()}}:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{return this.ruleInvocationStateUpdate(a,t,this.subruleIdx),e.apply(this,r)}catch(t){return this.invokeRuleCatch(t,o,i)}finally{this.ruleFinallyStateUpdate()}},Object.assign(n,{ruleName:t,originalGrammarAction:e})},t.prototype.invokeRuleCatch=function(t,e,r){var n=1===this.RULE_STACK.length,o=e&&!this.isBackTracking()&&this.recoveryEnabled;if((0,v.isRecognitionException)(t)){var i=t;if(o){var a,s=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(s))return i.resyncedTokens=this.reSyncTo(s),this.outputCst?((a=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,a):r(t);throw this.outputCst&&((a=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,i.partialCstResult=a),i}if(n)return this.moveToTerminatedState(),r(t);throw i}throw t},t.prototype.optionInternal=function(t,e){var r=this.getKeyForAutomaticLookahead(h.OPTION_IDX,e);return this.optionInternalLogic(t,e,r)},t.prototype.optionInternalLogic=function(t,e,r){var n,o=this,i=this.getLaFuncFromCache(r);if("function"!=typeof t){n=t.DEF;var a=t.GATE;if(void 0!==a){var s=i;i=function(){return a.call(o)&&s.call(o)}}}else n=t;if(!0===i.call(this))return n.call(this)},t.prototype.atLeastOneInternal=function(t,e){var r=this.getKeyForAutomaticLookahead(h.AT_LEAST_ONE_IDX,t);return this.atLeastOneInternalLogic(t,e,r)},t.prototype.atLeastOneInternalLogic=function(t,e,r){var n,o=this,i=this.getLaFuncFromCache(r);if("function"!=typeof e){n=e.DEF;var a=e.GATE;if(void 0!==a){var s=i;i=function(){return a.call(o)&&s.call(o)}}}else n=e;if(!0!==i.call(this))throw this.raiseEarlyExitException(t,y.PROD_TYPE.REPETITION_MANDATORY,e.ERR_MSG);for(var u=this.doSingleRepetition(n);!0===i.call(this)&&!0===u;)u=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,e],i,h.AT_LEAST_ONE_IDX,t,m.NextTerminalAfterAtLeastOneWalker)},t.prototype.atLeastOneSepFirstInternal=function(t,e){var r=this.getKeyForAutomaticLookahead(h.AT_LEAST_ONE_SEP_IDX,t);this.atLeastOneSepFirstInternalLogic(t,e,r)},t.prototype.atLeastOneSepFirstInternalLogic=function(t,e,r){var n=this,o=e.DEF,i=e.SEP;if(!0!==this.getLaFuncFromCache(r).call(this))throw this.raiseEarlyExitException(t,y.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,e.ERR_MSG);o.call(this);for(var a=function(){return n.tokenMatcher(n.LA(1),i)};!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,i,a,o,m.NextTerminalAfterAtLeastOneSepWalker],a,h.AT_LEAST_ONE_SEP_IDX,t,m.NextTerminalAfterAtLeastOneSepWalker)},t.prototype.manyInternal=function(t,e){var r=this.getKeyForAutomaticLookahead(h.MANY_IDX,t);return this.manyInternalLogic(t,e,r)},t.prototype.manyInternalLogic=function(t,e,r){var n,o=this,i=this.getLaFuncFromCache(r);if("function"!=typeof e){n=e.DEF;var a=e.GATE;if(void 0!==a){var s=i;i=function(){return a.call(o)&&s.call(o)}}}else n=e;for(var u=!0;!0===i.call(this)&&!0===u;)u=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.manyInternal,[t,e],i,h.MANY_IDX,t,m.NextTerminalAfterManyWalker,u)},t.prototype.manySepFirstInternal=function(t,e){var r=this.getKeyForAutomaticLookahead(h.MANY_SEP_IDX,t);this.manySepFirstInternalLogic(t,e,r)},t.prototype.manySepFirstInternalLogic=function(t,e,r){var n=this,o=e.DEF,i=e.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){o.call(this);for(var a=function(){return n.tokenMatcher(n.LA(1),i)};!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,i,a,o,m.NextTerminalAfterManySepWalker],a,h.MANY_SEP_IDX,t,m.NextTerminalAfterManySepWalker)}},t.prototype.repetitionSepSecondInternal=function(t,e,r,n,o){for(;r();)this.CONSUME(e),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,e,r,n,o],r,h.AT_LEAST_ONE_SEP_IDX,t,o)},t.prototype.doSingleRepetition=function(t){var e=this.getLexerPosition();return t.call(this),this.getLexerPosition()>e},t.prototype.orInternal=function(t,e){var r=this.getKeyForAutomaticLookahead(h.OR_IDX,e),n=(0,i.default)(t)?t:t.DEF,o=this.getLaFuncFromCache(r).call(this,n);if(void 0!==o)return n[o].ALT.call(this);this.raiseNoAltException(e,t.ERR_MSG)},t.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var t=this.LA(1),e=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new v.NotAllInputParsedException(e,t))}},t.prototype.subruleInternal=function(t,e,r){var n;try{var o=void 0!==r?r.ARGS:void 0;return this.subruleIdx=e,n=t.apply(this,o),this.cstPostNonTerminal(n,void 0!==r&&void 0!==r.LABEL?r.LABEL:t.ruleName),n}catch(e){throw this.subruleInternalError(e,r,t.ruleName)}},t.prototype.subruleInternalError=function(t,e,r){throw(0,v.isRecognitionException)(t)&&void 0!==t.partialCstResult&&(this.cstPostNonTerminal(t.partialCstResult,void 0!==e&&void 0!==e.LABEL?e.LABEL:r),delete t.partialCstResult),t},t.prototype.consumeInternal=function(t,e,r){var n;try{var o=this.LA(1);!0===this.tokenMatcher(o,t)?(this.consumeToken(),n=o):this.consumeInternalError(t,o,r)}catch(r){n=this.consumeInternalRecovery(t,e,r)}return this.cstPostTerminal(void 0!==r&&void 0!==r.LABEL?r.LABEL:t.name,n),n},t.prototype.consumeInternalError=function(t,e,r){var n,o=this.LA(0);throw n=void 0!==r&&r.ERR_MSG?r.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:e,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new v.MismatchedTokenException(n,e,o))},t.prototype.consumeInternalRecovery=function(t,e,r){if(!this.recoveryEnabled||"MismatchedTokenException"!==r.name||this.isBackTracking())throw r;var n=this.getFollowsForInRuleRecovery(t,e);try{return this.tryInRuleRecovery(t,n)}catch(t){throw t.name===E.IN_RULE_RECOVERY_EXCEPTION?r:t}},t.prototype.saveRecogState=function(){var t=this.errors,e=(0,d.default)(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:e,CST_STACK:this.CST_STACK}},t.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},t.prototype.ruleInvocationStateUpdate=function(t,e,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(e)},t.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},t.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},t.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},t.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),_.EOF)},t.prototype.reset=function(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},t}();e.RecognizerEngine=O},9992:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.attemptInRepetitionRecovery=e.Recoverable=e.InRuleRecoveryException=e.IN_RULE_RECOVERY_EXCEPTION=e.EOF_FOLLOW_KEY=void 0;var a=r(6736),s=i(r(9787)),u=i(r(682)),c=i(r(2923)),l=i(r(9107)),f=i(r(6969)),p=i(r(5346)),d=i(r(2876)),h=i(r(7953)),v=r(643),y=r(3710),m=r(2941);e.EOF_FOLLOW_KEY={},e.IN_RULE_RECOVERY_EXCEPTION="InRuleRecoveryException";var T=function(t){function r(r){var n=t.call(this,r)||this;return n.name=e.IN_RULE_RECOVERY_EXCEPTION,n}return o(r,t),r}(Error);e.InRuleRecoveryException=T;var E=function(){function t(){}return t.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=(0,p.default)(t,"recoveryEnabled")?t.recoveryEnabled:m.DEFAULT_PARSER_CONFIG.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=_)},t.prototype.getTokenToInsert=function(t){var e=(0,a.createTokenInstance)(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return e.isInsertedInRecovery=!0,e},t.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},t.prototype.canTokenTypeBeDeletedInRecovery=function(t){return!0},t.prototype.tryInRepetitionRecovery=function(t,e,r,n){for(var o=this,i=this.findReSyncTokenType(),a=this.exportLexerState(),s=[],c=!1,l=this.LA(1),f=this.LA(1),p=function(){var t=o.LA(0),e=o.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:l,previous:t,ruleName:o.getCurrRuleFullName()}),r=new v.MismatchedTokenException(e,l,o.LA(0));r.resyncedTokens=(0,u.default)(s),o.SAVE_ERROR(r)};!c;){if(this.tokenMatcher(f,n))return void p();if(r.call(this))return p(),void t.apply(this,e);this.tokenMatcher(f,i)?c=!0:(f=this.SKIP_TOKEN(),this.addToResyncTokens(f,s))}this.importLexerState(a)},t.prototype.shouldInRepetitionRecoveryBeTried=function(t,e,r){return!1!==r&&!this.tokenMatcher(this.LA(1),t)&&!this.isBackTracking()&&!this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,e))},t.prototype.getFollowsForInRuleRecovery=function(t,e){var r=this.getCurrentGrammarPath(t,e);return this.getNextPossibleTokenTypes(r)},t.prototype.tryInRuleRecovery=function(t,e){if(this.canRecoverWithSingleTokenInsertion(t,e))return this.getTokenToInsert(t);if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new T("sad sad panda")},t.prototype.canPerformInRuleRecovery=function(t,e){return this.canRecoverWithSingleTokenInsertion(t,e)||this.canRecoverWithSingleTokenDeletion(t)},t.prototype.canRecoverWithSingleTokenInsertion=function(t,e){var r=this;if(!this.canTokenTypeBeInsertedInRecovery(t))return!1;if((0,s.default)(e))return!1;var n=this.LA(1);return void 0!==(0,f.default)(e,(function(t){return r.tokenMatcher(n,t)}))},t.prototype.canRecoverWithSingleTokenDeletion=function(t){return!!this.canTokenTypeBeDeletedInRecovery(t)&&this.tokenMatcher(this.LA(2),t)},t.prototype.isInCurrentRuleReSyncSet=function(t){var e=this.getCurrFollowKey(),r=this.getFollowSetFromFollowKey(e);return(0,d.default)(r,t)},t.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),e=this.LA(1),r=2;;){var n=(0,f.default)(t,(function(t){return(0,a.tokenMatcher)(e,t)}));if(void 0!==n)return n;e=this.LA(r),r++}},t.prototype.getCurrFollowKey=function(){if(1===this.RULE_STACK.length)return e.EOF_FOLLOW_KEY;var t=this.getLastExplicitRuleShortName(),r=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(n)}},t.prototype.buildFullFollowKeyStack=function(){var t=this,r=this.RULE_STACK,n=this.RULE_OCCURRENCE_STACK;return(0,l.default)(r,(function(o,i){return 0===i?e.EOF_FOLLOW_KEY:{ruleName:t.shortRuleNameToFullName(o),idxInCallingRule:n[i],inRule:t.shortRuleNameToFullName(r[i-1])}}))},t.prototype.flattenFollowSet=function(){var t=this,e=(0,l.default)(this.buildFullFollowKeyStack(),(function(e){return t.getFollowSetFromFollowKey(e)}));return(0,c.default)(e)},t.prototype.getFollowSetFromFollowKey=function(t){if(t===e.EOF_FOLLOW_KEY)return[a.EOF];var r=t.ruleName+t.idxInCallingRule+y.IN+t.inRule;return this.resyncFollows[r]},t.prototype.addToResyncTokens=function(t,e){return this.tokenMatcher(t,a.EOF)||e.push(t),e},t.prototype.reSyncTo=function(t){for(var e=[],r=this.LA(1);!1===this.tokenMatcher(r,t);)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,e);return(0,u.default)(e)},t.prototype.attemptInRepetitionRecovery=function(t,e,r,n,o,i,a){},t.prototype.getCurrentGrammarPath=function(t,e){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:(0,h.default)(this.RULE_OCCURRENCE_STACK),lastTok:t,lastTokOccurrence:e}},t.prototype.getHumanReadableRuleStack=function(){var t=this;return(0,l.default)(this.RULE_STACK,(function(e){return t.shortRuleNameToFullName(e)}))},t}();function _(t,e,r,n,o,i,s){var u=this.getKeyForAutomaticLookahead(n,o),c=this.firstAfterRepMap[u];if(void 0===c){var l=this.getCurrRuleFullName();c=new i(this.getGAstProductions()[l],o).startWalking(),this.firstAfterRepMap[u]=c}var f=c.token,p=c.occurrence,d=c.isEndOfRule;1===this.RULE_STACK.length&&d&&void 0===f&&(f=a.EOF,p=1),void 0!==f&&void 0!==p&&this.shouldInRepetitionRecoveryBeTried(f,p,s)&&this.tryInRepetitionRecovery(t,e,r,f)}e.Recoverable=E,e.attemptInRepetitionRecovery=_},3225:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TreeBuilder=void 0;var o=r(7485),i=n(r(1607)),a=n(r(5346)),s=n(r(2096)),u=n(r(6474)),c=r(8169),l=r(2941),f=function(){function t(){}return t.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=(0,a.default)(t,"nodeLocationTracking")?t.nodeLocationTracking:l.DEFAULT_PARSER_CONFIG.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=o.setNodeLocationFull,this.setNodeLocationFromNode=o.setNodeLocationFull,this.cstPostRule=i.default,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=i.default,this.setNodeLocationFromNode=i.default,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=o.setNodeLocationOnlyOffset,this.setNodeLocationFromNode=o.setNodeLocationOnlyOffset,this.cstPostRule=i.default,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=i.default,this.setNodeLocationFromNode=i.default,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error('Invalid <nodeLocationTracking> config option: "'.concat(t.nodeLocationTracking,'"'));this.setNodeLocationFromToken=i.default,this.setNodeLocationFromNode=i.default,this.cstPostRule=i.default,this.setInitialNodeLocation=i.default}else this.cstInvocationStateUpdate=i.default,this.cstFinallyStateUpdate=i.default,this.cstPostTerminal=i.default,this.cstPostNonTerminal=i.default,this.cstPostRule=i.default},t.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},t.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},t.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},t.prototype.setInitialNodeLocationFullRegular=function(t){var e=this.LA(1);t.location={startOffset:e.startOffset,startLine:e.startLine,startColumn:e.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},t.prototype.cstInvocationStateUpdate=function(t){var e={name:t,children:Object.create(null)};this.setInitialNodeLocation(e),this.CST_STACK.push(e)},t.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},t.prototype.cstPostRuleFull=function(t){var e=this.LA(0),r=t.location;r.startOffset<=e.startOffset==1?(r.endOffset=e.endOffset,r.endLine=e.endLine,r.endColumn=e.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)},t.prototype.cstPostRuleOnlyOffset=function(t){var e=this.LA(0),r=t.location;r.startOffset<=e.startOffset==1?r.endOffset=e.endOffset:r.startOffset=NaN},t.prototype.cstPostTerminal=function(t,e){var r=this.CST_STACK[this.CST_STACK.length-1];(0,o.addTerminalToCst)(r,e,t),this.setNodeLocationFromToken(r.location,e)},t.prototype.cstPostNonTerminal=function(t,e){var r=this.CST_STACK[this.CST_STACK.length-1];(0,o.addNoneTerminalToCst)(r,e,t),this.setNodeLocationFromNode(r.location,t.location)},t.prototype.getBaseCstVisitorConstructor=function(){if((0,u.default)(this.baseCstVisitorConstructor)){var t=(0,c.createBaseSemanticVisitorConstructor)(this.className,(0,s.default)(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},t.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if((0,u.default)(this.baseCstVisitorWithDefaultsConstructor)){var t=(0,c.createBaseVisitorConstructorWithDefaults)(this.className,(0,s.default)(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},t.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},t.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},t.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},t}();e.TreeBuilder=f},4803:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyMixins=void 0,e.applyMixins=function(t,e){e.forEach((function(e){var r=e.prototype;Object.getOwnPropertyNames(r).forEach((function(n){if("constructor"!==n){var o=Object.getOwnPropertyDescriptor(r,n);o&&(o.get||o.set)?Object.defineProperty(t.prototype,n,o):t.prototype[n]=e.prototype[n]}}))}))}},6178:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.charCodeToOptimizedIndex=e.minOptimizationVal=e.buildLineBreakIssueMessage=e.LineTerminatorOptimizedTester=e.isShortPattern=e.isCustomPattern=e.cloneEmptyGroups=e.performWarningRuntimeChecks=e.performRuntimeChecks=e.addStickyFlag=e.addStartOfInput=e.findUnreachablePatterns=e.findModesThatDoNotExist=e.findInvalidGroupType=e.findDuplicatePatterns=e.findUnsupportedFlags=e.findStartOfInputAnchor=e.findEmptyMatchRegExps=e.findEndOfInputAnchor=e.findInvalidPatterns=e.findMissingPatterns=e.validatePatterns=e.analyzeTokenTypes=e.enableSticky=e.disableSticky=e.SUPPORT_STICKY=e.MODES=e.DEFAULT_MODE=void 0;var a=r(7968),s=r(9027),u=i(r(8936)),c=i(r(9787)),l=i(r(6494)),f=i(r(5589)),p=i(r(1682)),d=i(r(2923)),h=i(r(4171)),v=i(r(5271)),y=i(r(7318)),m=i(r(9107)),T=i(r(7734)),E=i(r(6705)),_=i(r(5563)),g=i(r(6474)),O=i(r(6969)),R=i(r(5346)),A=i(r(2096)),N=i(r(8290)),x=i(r(4663)),I=i(r(3821)),P=i(r(7682)),S=i(r(2876)),b=r(7146),L=r(1480),k=r(3067);function C(t){var e=(0,x.default)(t,(function(t){return!(0,R.default)(t,"PATTERN")}));return{errors:(0,m.default)(e,(function(t){return{message:"Token Type: ->"+t.name+"<- missing static 'PATTERN' property",type:s.LexerDefinitionErrorType.MISSING_PATTERN,tokenTypes:[t]}})),valid:(0,v.default)(t,e)}}function M(t){var e=(0,x.default)(t,(function(t){var e=t.PATTERN;return!((0,N.default)(e)||(0,_.default)(e)||(0,R.default)(e,"exec")||(0,E.default)(e))}));return{errors:(0,m.default)(e,(function(t){return{message:"Token Type: ->"+t.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:s.LexerDefinitionErrorType.INVALID_PATTERN,tokenTypes:[t]}})),valid:(0,v.default)(t,e)}}e.DEFAULT_MODE="defaultMode",e.MODES="modes",e.SUPPORT_STICKY="boolean"==typeof new RegExp("(?:)").sticky,e.disableSticky=function(){e.SUPPORT_STICKY=!1},e.enableSticky=function(){e.SUPPORT_STICKY=!0},e.analyzeTokenTypes=function(t,r){var n,o=(r=(0,I.default)(r,{useSticky:e.SUPPORT_STICKY,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(t,e){return e()}})).tracer;o("initCharCodeToOptimizedIndexMap",(function(){!function(){if((0,c.default)(J)){J=new Array(65536);for(var t=0;t<65536;t++)J[t]=t>255?255+~~(t/255):t}}()})),o("Reject Lexer.NA",(function(){n=(0,h.default)(t,(function(t){return t.PATTERN===s.Lexer.NA}))}));var i,a,u,l,p,d,v,O,A,x,k,C=!1;o("Transform Patterns",(function(){C=!1,i=(0,m.default)(n,(function(t){var e=t.PATTERN;if((0,N.default)(e)){var n=e.source;return 1!==n.length||"^"===n||"$"===n||"."===n||e.ignoreCase?2!==n.length||"\\"!==n[0]||(0,S.default)(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],n[1])?r.useSticky?Y(e):K(e):n[1]:n}if((0,_.default)(e))return C=!0,{exec:e};if("object"==typeof e)return C=!0,e;if("string"==typeof e){if(1===e.length)return e;var o=e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),i=new RegExp(o);return r.useSticky?Y(i):K(i)}throw Error("non exhaustive match")}))})),o("misc mapping",(function(){a=(0,m.default)(n,(function(t){return t.tokenTypeIdx})),u=(0,m.default)(n,(function(t){var e=t.GROUP;if(e!==s.Lexer.SKIPPED){if((0,E.default)(e))return e;if((0,g.default)(e))return!1;throw Error("non exhaustive match")}})),l=(0,m.default)(n,(function(t){var e=t.LONGER_ALT;if(e)return(0,f.default)(e)?(0,m.default)(e,(function(t){return(0,y.default)(n,t)})):[(0,y.default)(n,e)]})),p=(0,m.default)(n,(function(t){return t.PUSH_MODE})),d=(0,m.default)(n,(function(t){return(0,R.default)(t,"POP_MODE")}))})),o("Line Terminator Handling",(function(){var t=Q(r.lineTerminatorCharacters);v=(0,m.default)(n,(function(t){return!1})),"onlyOffset"!==r.positionTracking&&(v=(0,m.default)(n,(function(e){return(0,R.default)(e,"LINE_BREAKS")?!!e.LINE_BREAKS:!1===q(e,t)&&(0,L.canMatchCharCode)(t,e.PATTERN)})))})),o("Misc Mapping #2",(function(){O=(0,m.default)(n,H),A=(0,m.default)(i,X),x=(0,P.default)(n,(function(t,e){var r=e.GROUP;return(0,E.default)(r)&&r!==s.Lexer.SKIPPED&&(t[r]=[]),t}),{}),k=(0,m.default)(i,(function(t,e){return{pattern:i[e],longerAlt:l[e],canLineTerminator:v[e],isCustom:O[e],short:A[e],group:u[e],push:p[e],pop:d[e],tokenTypeIdx:a[e],tokenType:n[e]}}))}));var M=!0,D=[];return r.safeMode||o("First Char Optimization",(function(){D=(0,P.default)(n,(function(t,e,n){if("string"==typeof e.PATTERN){var o=tt(e.PATTERN.charCodeAt(0));Z(t,o,k[n])}else if((0,f.default)(e.START_CHARS_HINT)){var i;(0,T.default)(e.START_CHARS_HINT,(function(e){var r=tt("string"==typeof e?e.charCodeAt(0):e);i!==r&&(i=r,Z(t,r,k[n]))}))}else if((0,N.default)(e.PATTERN))if(e.PATTERN.unicode)M=!1,r.ensureOptimizations&&(0,b.PRINT_ERROR)("".concat(L.failedOptimizationPrefixMsg)+"\tUnable to analyze < ".concat(e.PATTERN.toString()," > pattern.\n")+"\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");else{var a=(0,L.getOptimizedStartCodesIndices)(e.PATTERN,r.ensureOptimizations);(0,c.default)(a)&&(M=!1),(0,T.default)(a,(function(e){Z(t,e,k[n])}))}else r.ensureOptimizations&&(0,b.PRINT_ERROR)("".concat(L.failedOptimizationPrefixMsg)+"\tTokenType: <".concat(e.name,"> is using a custom token pattern without providing <start_chars_hint> parameter.\n")+"\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"),M=!1;return t}),[])})),{emptyGroups:x,patternIdxToConfig:k,charCodeToPatternIdxToConfig:D,hasCustom:C,canBeOptimized:M}},e.validatePatterns=function(t,e){var r=[],n=C(t);r=r.concat(n.errors);var o=M(n.valid),i=o.valid;return r=(r=r.concat(o.errors)).concat(function(t){var e=[],r=(0,x.default)(t,(function(t){return(0,N.default)(t.PATTERN)}));return(e=(e=(e=(e=e.concat(w(r))).concat(U(r))).concat(G(r))).concat(B(r))).concat(F(r))}(i)),(r=(r=r.concat(W(i))).concat(V(i,e))).concat(z(i))},e.findMissingPatterns=C,e.findInvalidPatterns=M;var D=/[^\\][$]/;function w(t){var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.found=!1,e}return o(e,t),e.prototype.visitEndAnchor=function(t){this.found=!0},e}(a.BaseRegExpVisitor),r=(0,x.default)(t,(function(t){var r=t.PATTERN;try{var n=(0,k.getRegExpAst)(r),o=new e;return o.visit(n),o.found}catch(t){return D.test(r.source)}}));return(0,m.default)(r,(function(t){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+t.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:s.LexerDefinitionErrorType.EOI_ANCHOR_FOUND,tokenTypes:[t]}}))}function F(t){var e=(0,x.default)(t,(function(t){return t.PATTERN.test("")}));return(0,m.default)(e,(function(t){return{message:"Token Type: ->"+t.name+"<- static 'PATTERN' must not match an empty string",type:s.LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,tokenTypes:[t]}}))}e.findEndOfInputAnchor=w,e.findEmptyMatchRegExps=F;var j=/[^\\[][\^]|^\^/;function U(t){var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.found=!1,e}return o(e,t),e.prototype.visitStartAnchor=function(t){this.found=!0},e}(a.BaseRegExpVisitor),r=(0,x.default)(t,(function(t){var r=t.PATTERN;try{var n=(0,k.getRegExpAst)(r),o=new e;return o.visit(n),o.found}catch(t){return j.test(r.source)}}));return(0,m.default)(r,(function(t){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+t.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:s.LexerDefinitionErrorType.SOI_ANCHOR_FOUND,tokenTypes:[t]}}))}function G(t){var e=(0,x.default)(t,(function(t){var e=t.PATTERN;return e instanceof RegExp&&(e.multiline||e.global)}));return(0,m.default)(e,(function(t){return{message:"Token Type: ->"+t.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:s.LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[t]}}))}function B(t){var e=[],r=(0,m.default)(t,(function(r){return(0,P.default)(t,(function(t,n){return r.PATTERN.source!==n.PATTERN.source||(0,S.default)(e,n)||n.PATTERN===s.Lexer.NA||(e.push(n),t.push(n)),t}),[])}));r=(0,l.default)(r);var n=(0,x.default)(r,(function(t){return t.length>1}));return(0,m.default)(n,(function(t){var e=(0,m.default)(t,(function(t){return t.name})),r=(0,u.default)(t).PATTERN;return{message:"The same RegExp pattern ->".concat(r,"<-")+"has been used in all of the following Token Types: ".concat(e.join(", ")," <-"),type:s.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,tokenTypes:t}}))}function W(t){var e=(0,x.default)(t,(function(t){if(!(0,R.default)(t,"GROUP"))return!1;var e=t.GROUP;return e!==s.Lexer.SKIPPED&&e!==s.Lexer.NA&&!(0,E.default)(e)}));return(0,m.default)(e,(function(t){return{message:"Token Type: ->"+t.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:s.LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,tokenTypes:[t]}}))}function V(t,e){var r=(0,x.default)(t,(function(t){return void 0!==t.PUSH_MODE&&!(0,S.default)(e,t.PUSH_MODE)}));return(0,m.default)(r,(function(t){return{message:"Token Type: ->".concat(t.name,"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->").concat(t.PUSH_MODE,"<-")+"which does not exist",type:s.LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[t]}}))}function z(t){var e=[],r=(0,P.default)(t,(function(t,e,r){var n,o,i=e.PATTERN;return i===s.Lexer.NA||((0,E.default)(i)?t.push({str:i,idx:r,tokenType:e}):(0,N.default)(i)&&(n=i,o=[".","\\","[","]","|","^","$","(",")","?","*","+","{"],void 0===(0,O.default)(o,(function(t){return-1!==n.source.indexOf(t)})))&&t.push({str:i.source,idx:r,tokenType:e})),t}),[]);return(0,T.default)(t,(function(t,n){(0,T.default)(r,(function(r){var o=r.str,i=r.idx,a=r.tokenType;if(n<i&&function(t,e){if((0,N.default)(e)){var r=e.exec(t);return null!==r&&0===r.index}if((0,_.default)(e))return e(t,0,[],{});if((0,R.default)(e,"exec"))return e.exec(t,0,[],{});if("string"==typeof e)return e===t;throw Error("non exhaustive match")}(o,t.PATTERN)){var u="Token: ->".concat(a.name,"<- can never be matched.\n")+"Because it appears AFTER the Token Type ->".concat(t.name,"<-")+"in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE";e.push({message:u,type:s.LexerDefinitionErrorType.UNREACHABLE_PATTERN,tokenTypes:[t,a]})}}))})),e}function K(t){var e=t.ignoreCase?"i":"";return new RegExp("^(?:".concat(t.source,")"),e)}function Y(t){var e=t.ignoreCase?"iy":"y";return new RegExp("".concat(t.source),e)}function H(t){var e=t.PATTERN;if((0,N.default)(e))return!1;if((0,_.default)(e))return!0;if((0,R.default)(e,"exec"))return!0;if((0,E.default)(e))return!1;throw Error("non exhaustive match")}function X(t){return!(!(0,E.default)(t)||1!==t.length)&&t.charCodeAt(0)}function q(t,e){if((0,R.default)(t,"LINE_BREAKS"))return!1;if((0,N.default)(t.PATTERN)){try{(0,L.canMatchCharCode)(e,t.PATTERN)}catch(t){return{issue:s.LexerDefinitionErrorType.IDENTIFY_TERMINATOR,errMsg:t.message}}return!1}if((0,E.default)(t.PATTERN))return!1;if(H(t))return{issue:s.LexerDefinitionErrorType.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function $(t,e){if(e.issue===s.LexerDefinitionErrorType.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n"+"\tThe problem is in the <".concat(t.name,"> Token Type\n")+"\t Root cause: ".concat(e.errMsg,".\n")+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(e.issue===s.LexerDefinitionErrorType.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the <line_breaks> option.\n"+"\tThe problem is in the <".concat(t.name,"> Token Type\n")+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function Q(t){return(0,m.default)(t,(function(t){return(0,E.default)(t)?t.charCodeAt(0):t}))}function Z(t,e,r){void 0===t[e]?t[e]=[r]:t[e].push(r)}e.findStartOfInputAnchor=U,e.findUnsupportedFlags=G,e.findDuplicatePatterns=B,e.findInvalidGroupType=W,e.findModesThatDoNotExist=V,e.findUnreachablePatterns=z,e.addStartOfInput=K,e.addStickyFlag=Y,e.performRuntimeChecks=function(t,r,n){var o=[];return(0,R.default)(t,e.DEFAULT_MODE)||o.push({message:"A MultiMode Lexer cannot be initialized without a <"+e.DEFAULT_MODE+"> property in its definition\n",type:s.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),(0,R.default)(t,e.MODES)||o.push({message:"A MultiMode Lexer cannot be initialized without a <"+e.MODES+"> property in its definition\n",type:s.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),(0,R.default)(t,e.MODES)&&(0,R.default)(t,e.DEFAULT_MODE)&&!(0,R.default)(t.modes,t.defaultMode)&&o.push({message:"A MultiMode Lexer cannot be initialized with a ".concat(e.DEFAULT_MODE,": <").concat(t.defaultMode,">")+"which does not exist\n",type:s.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),(0,R.default)(t,e.MODES)&&(0,T.default)(t.modes,(function(t,e){(0,T.default)(t,(function(r,n){if((0,g.default)(r))o.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+"<".concat(e,"> at index: <").concat(n,">\n"),type:s.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if((0,R.default)(r,"LONGER_ALT")){var i=(0,f.default)(r.LONGER_ALT)?r.LONGER_ALT:[r.LONGER_ALT];(0,T.default)(i,(function(n){(0,g.default)(n)||(0,S.default)(t,n)||o.push({message:"A MultiMode Lexer cannot be initialized with a longer_alt <".concat(n.name,"> on token <").concat(r.name,"> outside of mode <").concat(e,">\n"),type:s.LexerDefinitionErrorType.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})}))}}))})),o},e.performWarningRuntimeChecks=function(t,e,r){var n=[],o=!1,i=(0,l.default)((0,d.default)((0,p.default)(t.modes))),a=(0,h.default)(i,(function(t){return t.PATTERN===s.Lexer.NA})),u=Q(r);return e&&(0,T.default)(a,(function(t){var e=q(t,u);if(!1!==e){var r={message:$(t,e),type:e.issue,tokenType:t};n.push(r)}else(0,R.default)(t,"LINE_BREAKS")?!0===t.LINE_BREAKS&&(o=!0):(0,L.canMatchCharCode)(u,t.PATTERN)&&(o=!0)})),e&&!o&&n.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:s.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS}),n},e.cloneEmptyGroups=function(t){var e={},r=(0,A.default)(t);return(0,T.default)(r,(function(r){var n=t[r];if(!(0,f.default)(n))throw Error("non exhaustive match");e[r]=[]})),e},e.isCustomPattern=H,e.isShortPattern=X,e.LineTerminatorOptimizedTester={test:function(t){for(var e=t.length,r=this.lastIndex;r<e;r++){var n=t.charCodeAt(r);if(10===n)return this.lastIndex=r+1,!0;if(13===n)return 10===t.charCodeAt(r+1)?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},lastIndex:0},e.buildLineBreakIssueMessage=$,e.minOptimizationVal=256;var J=[];function tt(t){return t<e.minOptimizationVal?t:J[t]}e.charCodeToOptimizedIndex=tt},495:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultLexerErrorProvider=void 0,e.defaultLexerErrorProvider={buildUnableToPopLexerModeMessage:function(t){return"Unable to pop Lexer Mode after encountering Token ->".concat(t.image,"<- The Mode Stack is empty")},buildUnexpectedCharactersMessage:function(t,e,r,n,o){return"unexpected character: ->".concat(t.charAt(e),"<- at offset: ").concat(e,",")+" skipped ".concat(r," characters.")}}},9027:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Lexer=e.LexerDefinitionErrorType=void 0;var o,i=r(6178),a=n(r(1607)),s=n(r(9787)),u=n(r(5589)),c=n(r(7875)),l=n(r(4171)),f=n(r(9107)),p=n(r(7734)),d=n(r(2096)),h=n(r(6474)),v=n(r(229)),y=n(r(311)),m=n(r(7682)),T=n(r(7953)),E=r(7146),_=r(1201),g=r(495),O=r(3067);(o=e.LexerDefinitionErrorType||(e.LexerDefinitionErrorType={}))[o.MISSING_PATTERN=0]="MISSING_PATTERN",o[o.INVALID_PATTERN=1]="INVALID_PATTERN",o[o.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",o[o.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",o[o.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",o[o.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",o[o.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",o[o.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",o[o.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",o[o.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",o[o.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",o[o.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",o[o.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",o[o.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",o[o.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",o[o.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",o[o.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",o[o.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE";var R={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:g.defaultLexerErrorProvider,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(R);var A=function(){function t(t,e){void 0===e&&(e=R);var r=this;if(this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=function(t,e){if(!0===r.traceInitPerf){r.traceInitIndent++;var n=new Array(r.traceInitIndent+1).join("\t");r.traceInitIndent<r.traceInitMaxIdent&&console.log("".concat(n,"--\x3e <").concat(t,">"));var o=(0,E.timer)(e),i=o.time,a=o.value,s=i>10?console.warn:console.log;return r.traceInitIndent<r.traceInitMaxIdent&&s("".concat(n,"<-- <").concat(t,"> time: ").concat(i,"ms")),r.traceInitIndent--,a}return e()},"boolean"==typeof e)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=(0,y.default)({},R,e);var n=this.config.traceInitPerf;!0===n?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof n&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",(function(){var n,o=!0;r.TRACE_INIT("Lexer Config handling",(function(){if(r.config.lineTerminatorsPattern===R.lineTerminatorsPattern)r.config.lineTerminatorsPattern=i.LineTerminatorOptimizedTester;else if(r.config.lineTerminatorCharacters===R.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(e.safeMode&&e.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');r.trackStartLines=/full|onlyStart/i.test(r.config.positionTracking),r.trackEndLines=/full/i.test(r.config.positionTracking),(0,u.default)(t)?n={modes:{defaultMode:(0,T.default)(t)},defaultMode:i.DEFAULT_MODE}:(o=!1,n=(0,T.default)(t))})),!1===r.config.skipValidations&&(r.TRACE_INIT("performRuntimeChecks",(function(){r.lexerDefinitionErrors=r.lexerDefinitionErrors.concat((0,i.performRuntimeChecks)(n,r.trackStartLines,r.config.lineTerminatorCharacters))})),r.TRACE_INIT("performWarningRuntimeChecks",(function(){r.lexerDefinitionWarning=r.lexerDefinitionWarning.concat((0,i.performWarningRuntimeChecks)(n,r.trackStartLines,r.config.lineTerminatorCharacters))}))),n.modes=n.modes?n.modes:{},(0,p.default)(n.modes,(function(t,e){n.modes[e]=(0,l.default)(t,(function(t){return(0,h.default)(t)}))}));var c=(0,d.default)(n.modes);if((0,p.default)(n.modes,(function(t,n){r.TRACE_INIT("Mode: <".concat(n,"> processing"),(function(){var o;r.modes.push(n),!1===r.config.skipValidations&&r.TRACE_INIT("validatePatterns",(function(){r.lexerDefinitionErrors=r.lexerDefinitionErrors.concat((0,i.validatePatterns)(t,c))})),(0,s.default)(r.lexerDefinitionErrors)&&((0,_.augmentTokenTypes)(t),r.TRACE_INIT("analyzeTokenTypes",(function(){o=(0,i.analyzeTokenTypes)(t,{lineTerminatorCharacters:r.config.lineTerminatorCharacters,positionTracking:e.positionTracking,ensureOptimizations:e.ensureOptimizations,safeMode:e.safeMode,tracer:r.TRACE_INIT})})),r.patternIdxToConfig[n]=o.patternIdxToConfig,r.charCodeToPatternIdxToConfig[n]=o.charCodeToPatternIdxToConfig,r.emptyGroups=(0,y.default)({},r.emptyGroups,o.emptyGroups),r.hasCustom=o.hasCustom||r.hasCustom,r.canModeBeOptimized[n]=o.canBeOptimized)}))})),r.defaultMode=n.defaultMode,!(0,s.default)(r.lexerDefinitionErrors)&&!r.config.deferDefinitionErrorsHandling){var g=(0,f.default)(r.lexerDefinitionErrors,(function(t){return t.message})).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+g)}(0,p.default)(r.lexerDefinitionWarning,(function(t){(0,E.PRINT_WARNING)(t.message)})),r.TRACE_INIT("Choosing sub-methods implementations",(function(){if(i.SUPPORT_STICKY?(r.chopInput=v.default,r.match=r.matchWithTest):(r.updateLastIndex=a.default,r.match=r.matchWithExec),o&&(r.handleModes=a.default),!1===r.trackStartLines&&(r.computeNewColumn=v.default),!1===r.trackEndLines&&(r.updateTokenEndLineColumnLocation=a.default),/full/i.test(r.config.positionTracking))r.createTokenInstance=r.createFullToken;else if(/onlyStart/i.test(r.config.positionTracking))r.createTokenInstance=r.createStartOnlyToken;else{if(!/onlyOffset/i.test(r.config.positionTracking))throw Error('Invalid <positionTracking> config option: "'.concat(r.config.positionTracking,'"'));r.createTokenInstance=r.createOffsetOnlyToken}r.hasCustom?(r.addToken=r.addTokenUsingPush,r.handlePayload=r.handlePayloadWithCustom):(r.addToken=r.addTokenUsingMemberAccess,r.handlePayload=r.handlePayloadNoCustom)})),r.TRACE_INIT("Failed Optimization Warnings",(function(){var t=(0,m.default)(r.canModeBeOptimized,(function(t,e,r){return!1===e&&t.push(r),t}),[]);if(e.ensureOptimizations&&!(0,s.default)(t))throw Error("Lexer Modes: < ".concat(t.join(", ")," > cannot be optimized.\n")+'\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.')})),r.TRACE_INIT("clearRegExpParserCache",(function(){(0,O.clearRegExpParserCache)()})),r.TRACE_INIT("toFastProperties",(function(){(0,E.toFastProperties)(r)}))}))}return t.prototype.tokenize=function(t,e){if(void 0===e&&(e=this.defaultMode),!(0,s.default)(this.lexerDefinitionErrors)){var r=(0,f.default)(this.lexerDefinitionErrors,(function(t){return t.message})).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+r)}return this.tokenizeInternal(t,e)},t.prototype.tokenizeInternal=function(t,e){var r,n,o,a,s,u,l,f,p,d,h,v,y,m,T,E,_=this,g=t,O=g.length,R=0,A=0,N=this.hasCustom?0:Math.floor(t.length/10),x=new Array(N),I=[],P=this.trackStartLines?1:void 0,S=this.trackStartLines?1:void 0,b=(0,i.cloneEmptyGroups)(this.emptyGroups),L=this.trackStartLines,k=this.config.lineTerminatorsPattern,C=0,M=[],D=[],w=[],F=[];function j(){return M}function U(t){var e=(0,i.charCodeToOptimizedIndex)(t),r=D[e];return void 0===r?F:r}Object.freeze(F);var G,B=function(t){if(1===w.length&&void 0===t.tokenType.PUSH_MODE){var e=_.config.errorMessageProvider.buildUnableToPopLexerModeMessage(t);I.push({offset:t.startOffset,line:t.startLine,column:t.startColumn,length:t.image.length,message:e})}else{w.pop();var r=(0,c.default)(w);M=_.patternIdxToConfig[r],D=_.charCodeToPatternIdxToConfig[r],C=M.length;var n=_.canModeBeOptimized[r]&&!1===_.config.safeMode;E=D&&n?U:j}};function W(t){w.push(t),D=this.charCodeToPatternIdxToConfig[t],M=this.patternIdxToConfig[t],C=M.length,C=M.length;var e=this.canModeBeOptimized[t]&&!1===this.config.safeMode;E=D&&e?U:j}W.call(this,e);for(var V=this.config.recoveryEnabled;R<O;){u=null;var z=g.charCodeAt(R),K=E(z),Y=K.length;for(r=0;r<Y;r++){var H=(G=K[r]).pattern;if(l=null,!1!==(ot=G.short)?z===ot&&(u=H):!0===G.isCustom?null!==(T=H.exec(g,R,x,b))?(u=T[0],void 0!==T.payload&&(l=T.payload)):u=null:(this.updateLastIndex(H,R),u=this.match(H,t,R)),null!==u){if(void 0!==(s=G.longerAlt)){var X=s.length;for(o=0;o<X;o++){var q=M[s[o]],$=q.pattern;if(f=null,!0===q.isCustom?null!==(T=$.exec(g,R,x,b))?(a=T[0],void 0!==T.payload&&(f=T.payload)):a=null:(this.updateLastIndex($,R),a=this.match($,t,R)),a&&a.length>u.length){u=a,l=f,G=q;break}}}break}}if(null!==u){if(p=u.length,void 0!==(d=G.group)&&(h=G.tokenTypeIdx,v=this.createTokenInstance(u,R,h,G.tokenType,P,S,p),this.handlePayload(v,l),!1===d?A=this.addToken(x,A,v):b[d].push(v)),t=this.chopInput(t,p),R+=p,S=this.computeNewColumn(S,p),!0===L&&!0===G.canLineTerminator){var Q=0,Z=void 0,J=void 0;k.lastIndex=0;do{!0===(Z=k.test(u))&&(J=k.lastIndex-1,Q++)}while(!0===Z);0!==Q&&(P+=Q,S=p-J,this.updateTokenEndLineColumnLocation(v,d,J,Q,P,S,p))}this.handleModes(G,B,W,v)}else{for(var tt=R,et=P,rt=S,nt=!1===V;!1===nt&&R<O;)for(t=this.chopInput(t,1),R++,n=0;n<C;n++){var ot,it=M[n];if(H=it.pattern,!1!==(ot=it.short)?g.charCodeAt(R)===ot&&(nt=!0):!0===it.isCustom?nt=null!==H.exec(g,R,x,b):(this.updateLastIndex(H,R),nt=null!==H.exec(t)),!0===nt)break}if(y=R-tt,m=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(g,tt,y,et,rt),I.push({offset:tt,line:et,column:rt,length:y,message:m}),!1===V)break}}return this.hasCustom||(x.length=A),{tokens:x,groups:b,errors:I}},t.prototype.handleModes=function(t,e,r,n){if(!0===t.pop){var o=t.push;e(n),void 0!==o&&r.call(this,o)}else void 0!==t.push&&r.call(this,t.push)},t.prototype.chopInput=function(t,e){return t.substring(e)},t.prototype.updateLastIndex=function(t,e){t.lastIndex=e},t.prototype.updateTokenEndLineColumnLocation=function(t,e,r,n,o,i,a){var s,u;void 0!==e&&(u=(s=r===a-1)?-1:0,1===n&&!0===s||(t.endLine=o+u,t.endColumn=i-1-u))},t.prototype.computeNewColumn=function(t,e){return t+e},t.prototype.createOffsetOnlyToken=function(t,e,r,n){return{image:t,startOffset:e,tokenTypeIdx:r,tokenType:n}},t.prototype.createStartOnlyToken=function(t,e,r,n,o,i){return{image:t,startOffset:e,startLine:o,startColumn:i,tokenTypeIdx:r,tokenType:n}},t.prototype.createFullToken=function(t,e,r,n,o,i,a){return{image:t,startOffset:e,endOffset:e+a-1,startLine:o,endLine:o,startColumn:i,endColumn:i+a-1,tokenTypeIdx:r,tokenType:n}},t.prototype.addTokenUsingPush=function(t,e,r){return t.push(r),e},t.prototype.addTokenUsingMemberAccess=function(t,e,r){return t[e]=r,++e},t.prototype.handlePayloadNoCustom=function(t,e){},t.prototype.handlePayloadWithCustom=function(t,e){null!==e&&(t.payload=e)},t.prototype.matchWithTest=function(t,e,r){return!0===t.test(e)?e.substring(r,t.lastIndex):null},t.prototype.matchWithExec=function(t,e){var r=t.exec(e);return null!==r?r[0]:null},t.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",t.NA=/NOT_APPLICABLE/,t}();e.Lexer=A},1480:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.canMatchCharCode=e.firstCharOptimizedIndices=e.getOptimizedStartCodesIndices=e.failedOptimizationPrefixMsg=void 0;var a=r(7968),s=i(r(5589)),u=i(r(1198)),c=i(r(7734)),l=i(r(6969)),f=i(r(1682)),p=i(r(2876)),d=r(7146),h=r(3067),v=r(6178),y="Complement Sets are not supported for first char optimization";function m(t,e,r){switch(t.type){case"Disjunction":for(var n=0;n<t.value.length;n++)m(t.value[n],e,r);break;case"Alternative":var o=t.value;for(n=0;n<o.length;n++){var i=o[n];switch(i.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var a=i;switch(a.type){case"Character":T(a.value,e,r);break;case"Set":if(!0===a.complement)throw Error(y);(0,c.default)(a.value,(function(t){if("number"==typeof t)T(t,e,r);else{var n=t;if(!0===r)for(var o=n.from;o<=n.to;o++)T(o,e,r);else{for(o=n.from;o<=n.to&&o<v.minOptimizationVal;o++)T(o,e,r);if(n.to>=v.minOptimizationVal)for(var i=n.from>=v.minOptimizationVal?n.from:v.minOptimizationVal,a=n.to,s=(0,v.charCodeToOptimizedIndex)(i),u=(0,v.charCodeToOptimizedIndex)(a),c=s;c<=u;c++)e[c]=c}}}));break;case"Group":m(a.value,e,r);break;default:throw Error("Non Exhaustive Match")}var s=void 0!==a.quantifier&&0===a.quantifier.atLeast;if("Group"===a.type&&!1===_(a)||"Group"!==a.type&&!1===s)break}break;default:throw Error("non exhaustive match!")}return(0,f.default)(e)}function T(t,e,r){var n=(0,v.charCodeToOptimizedIndex)(t);e[n]=n,!0===r&&function(t,e){var r=String.fromCharCode(t),n=r.toUpperCase();if(n!==r)e[o=(0,v.charCodeToOptimizedIndex)(n.charCodeAt(0))]=o;else{var o,i=r.toLowerCase();i!==r&&(e[o=(0,v.charCodeToOptimizedIndex)(i.charCodeAt(0))]=o)}}(t,e)}function E(t,e){return(0,l.default)(t.value,(function(t){if("number"==typeof t)return(0,p.default)(e,t);var r=t;return void 0!==(0,l.default)(e,(function(t){return r.from<=t&&t<=r.to}))}))}function _(t){var e=t.quantifier;return!(!e||0!==e.atLeast)||!!t.value&&((0,s.default)(t.value)?(0,u.default)(t.value,_):_(t.value))}e.failedOptimizationPrefixMsg='Unable to use "first char" lexer optimizations:\n',e.getOptimizedStartCodesIndices=function(t,r){void 0===r&&(r=!1);try{var n=(0,h.getRegExpAst)(t);return m(n.value,{},n.flags.ignoreCase)}catch(n){if(n.message===y)r&&(0,d.PRINT_WARNING)("".concat(e.failedOptimizationPrefixMsg)+"\tUnable to optimize: < ".concat(t.toString()," >\n")+"\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.");else{var o="";r&&(o="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),(0,d.PRINT_ERROR)("".concat(e.failedOptimizationPrefixMsg,"\n")+"\tFailed parsing: < ".concat(t.toString()," >\n")+"\tUsing the regexp-to-ast library version: ".concat(a.VERSION,"\n")+"\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues"+o)}}return[]},e.firstCharOptimizedIndices=m;var g=function(t){function e(e){var r=t.call(this)||this;return r.targetCharCodes=e,r.found=!1,r}return o(e,t),e.prototype.visitChildren=function(e){if(!0!==this.found){switch(e.type){case"Lookahead":return void this.visitLookahead(e);case"NegativeLookahead":return void this.visitNegativeLookahead(e)}t.prototype.visitChildren.call(this,e)}},e.prototype.visitCharacter=function(t){(0,p.default)(this.targetCharCodes,t.value)&&(this.found=!0)},e.prototype.visitSet=function(t){t.complement?void 0===E(t,this.targetCharCodes)&&(this.found=!0):void 0!==E(t,this.targetCharCodes)&&(this.found=!0)},e}(a.BaseRegExpVisitor);e.canMatchCharCode=function(t,e){if(e instanceof RegExp){var r=(0,h.getRegExpAst)(e),n=new g(t);return n.visit(r),n.found}return void 0!==(0,l.default)(e,(function(e){return(0,p.default)(t,e.charCodeAt(0))}))}},3067:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearRegExpParserCache=e.getRegExpAst=void 0;var n=r(7968),o={},i=new n.RegExpParser;e.getRegExpAst=function(t){var e=t.toString();if(o.hasOwnProperty(e))return o[e];var r=i.pattern(e);return o[e]=r,r},e.clearRegExpParserCache=function(){o={}}},1201:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isTokenType=e.hasExtendingTokensTypesMapProperty=e.hasExtendingTokensTypesProperty=e.hasCategoriesProperty=e.hasShortKeyProperty=e.singleAssignCategoriesToksMap=e.assignCategoriesMapProp=e.assignCategoriesTokensProp=e.assignTokenDefaultProps=e.expandCategories=e.augmentTokenTypes=e.tokenIdxToClass=e.tokenShortNameIdx=e.tokenStructuredMatcherNoCategories=e.tokenStructuredMatcher=void 0;var o=n(r(9787)),i=n(r(6494)),a=n(r(5589)),s=n(r(2923)),u=n(r(5271)),c=n(r(9107)),l=n(r(7734)),f=n(r(5346)),p=n(r(2876)),d=n(r(7953));function h(t){for(var e=(0,d.default)(t),r=t,n=!0;n;){r=(0,i.default)((0,s.default)((0,c.default)(r,(function(t){return t.CATEGORIES}))));var a=(0,u.default)(r,e);e=e.concat(a),(0,o.default)(a)?n=!1:r=a}return e}function v(t){(0,l.default)(t,(function(t){E(t)||(e.tokenIdxToClass[e.tokenShortNameIdx]=t,t.tokenTypeIdx=e.tokenShortNameIdx++),_(t)&&!(0,a.default)(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),_(t)||(t.CATEGORIES=[]),g(t)||(t.categoryMatches=[]),O(t)||(t.categoryMatchesMap={})}))}function y(t){(0,l.default)(t,(function(t){t.categoryMatches=[],(0,l.default)(t.categoryMatchesMap,(function(r,n){t.categoryMatches.push(e.tokenIdxToClass[n].tokenTypeIdx)}))}))}function m(t){(0,l.default)(t,(function(t){T([],t)}))}function T(t,e){(0,l.default)(t,(function(t){e.categoryMatchesMap[t.tokenTypeIdx]=!0})),(0,l.default)(e.CATEGORIES,(function(r){var n=t.concat(e);(0,p.default)(n,r)||T(n,r)}))}function E(t){return(0,f.default)(t,"tokenTypeIdx")}function _(t){return(0,f.default)(t,"CATEGORIES")}function g(t){return(0,f.default)(t,"categoryMatches")}function O(t){return(0,f.default)(t,"categoryMatchesMap")}e.tokenStructuredMatcher=function(t,e){var r=t.tokenTypeIdx;return r===e.tokenTypeIdx||!0===e.isParent&&!0===e.categoryMatchesMap[r]},e.tokenStructuredMatcherNoCategories=function(t,e){return t.tokenTypeIdx===e.tokenTypeIdx},e.tokenShortNameIdx=1,e.tokenIdxToClass={},e.augmentTokenTypes=function(t){var e=h(t);v(e),m(e),y(e),(0,l.default)(e,(function(t){t.isParent=t.categoryMatches.length>0}))},e.expandCategories=h,e.assignTokenDefaultProps=v,e.assignCategoriesTokensProp=y,e.assignCategoriesMapProp=m,e.singleAssignCategoriesToksMap=T,e.hasShortKeyProperty=E,e.hasCategoriesProperty=_,e.hasExtendingTokensTypesProperty=g,e.hasExtendingTokensTypesMapProperty=O,e.isTokenType=function(t){return(0,f.default)(t,"tokenTypeIdx")}},6736:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.tokenMatcher=e.createTokenInstance=e.EOF=e.createToken=e.hasTokenLabel=e.tokenName=e.tokenLabel=void 0;var o=n(r(6705)),i=n(r(5346)),a=n(r(6474)),s=r(9027),u=r(1201);function c(t){return(0,o.default)(t.LABEL)&&""!==t.LABEL}e.tokenLabel=function(t){return c(t)?t.LABEL:t.name},e.tokenName=function(t){return t.name},e.hasTokenLabel=c;function l(t){return function(t){var e=t.pattern,r={};if(r.name=t.name,(0,a.default)(e)||(r.PATTERN=e),(0,i.default)(t,"parent"))throw"The parent property is no longer supported.\nSee: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.";return(0,i.default)(t,"categories")&&(r.CATEGORIES=t.categories),(0,u.augmentTokenTypes)([r]),(0,i.default)(t,"label")&&(r.LABEL=t.label),(0,i.default)(t,"group")&&(r.GROUP=t.group),(0,i.default)(t,"pop_mode")&&(r.POP_MODE=t.pop_mode),(0,i.default)(t,"push_mode")&&(r.PUSH_MODE=t.push_mode),(0,i.default)(t,"longer_alt")&&(r.LONGER_ALT=t.longer_alt),(0,i.default)(t,"line_breaks")&&(r.LINE_BREAKS=t.line_breaks),(0,i.default)(t,"start_chars_hint")&&(r.START_CHARS_HINT=t.start_chars_hint),r}(t)}e.createToken=l,e.EOF=l({name:"EOF",pattern:s.Lexer.NA}),(0,u.augmentTokenTypes)([e.EOF]),e.createTokenInstance=function(t,e,r,n,o,i,a,s){return{image:e,startOffset:r,endOffset:n,startLine:o,endLine:i,startColumn:a,endColumn:s,tokenTypeIdx:t.tokenTypeIdx,tokenType:t}},e.tokenMatcher=function(t,e){return(0,u.tokenStructuredMatcher)(t,e)}},7979:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="10.5.0"},8962:function(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.generateCstDts=void 0;var o=r(7842),i=r(1871),a={includeVisitorInterface:!0,visitorInterfaceName:"ICstNodeVisitor"};e.generateCstDts=function(t,e){var r=n(n({},a),e),s=(0,o.buildModel)(t);return(0,i.genDts)(s,r)}},1871:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.genDts=void 0;var o=n(r(2923)),i=n(r(5589)),a=n(r(9107)),s=n(r(7682)),u=n(r(292)),c=n(r(7584));function l(t){return"token"===t.kind?"IToken":f(t.name)}function f(t){return(0,c.default)(t)+"CstNode"}function p(t){return(0,c.default)(t)+"CstChildren"}e.genDts=function(t,e){var r,n,c=[];return c=(c=c.concat('import type { CstNode, ICstVisitor, IToken } from "chevrotain";')).concat((0,o.default)((0,a.default)(t,(function(t){return function(t){var e=function(t){var e=f(t.name),r=p(t.name);return"export interface ".concat(e,' extends CstNode {\n name: "').concat(t.name,'";\n children: ').concat(r,";\n}")}(t),r=function(t){var e=p(t.name);return"export type ".concat(e," = {\n ").concat((0,a.default)(t.properties,(function(t){return function(t){var e=function(t){if((0,i.default)(t)){var e=(0,u.default)((0,a.default)(t,(function(t){return l(t)})));return"("+(0,s.default)(e,(function(t,e){return t+" | "+e}))+")"}return l(t)}(t.type);return"".concat(t.name).concat(t.optional?"?":"",": ").concat(e,"[];")}(t)})).join("\n "),"\n};")}(t);return[e,r]}(t)})))),e.includeVisitorInterface&&(c=c.concat((r=e.visitorInterfaceName,n=t,"export interface ".concat(r,"<IN, OUT> extends ICstVisitor<IN, OUT> {\n ").concat((0,a.default)(n,(function(t){return function(t){var e=p(t.name);return"".concat(t.name,"(children: ").concat(e,", param?: IN): OUT;")}(t)})).join("\n "),"\n}")))),c.join("\n\n")+"\n"}},7842:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.buildModel=void 0;var a=r(7729),s=i(r(9107)),u=i(r(2923)),c=i(r(1682)),l=i(r(9040)),f=i(r(9907)),p=i(r(311));e.buildModel=function(t){var e=new d,r=(0,c.default)(t);return(0,s.default)(r,(function(t){return e.visitRule(t)}))};var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visitRule=function(t){var e=this.visitEach(t.definition),r=(0,f.default)(e,(function(t){return t.propertyName})),n=(0,s.default)(r,(function(t,e){var r=!(0,l.default)(t,(function(t){return!t.canBeNull})),n=t[0].type;return t.length>1&&(n=(0,s.default)(t,(function(t){return t.type}))),{name:e,type:n,optional:r}}));return{name:t.name,properties:n}},e.prototype.visitAlternative=function(t){return this.visitEachAndOverrideWith(t.definition,{canBeNull:!0})},e.prototype.visitOption=function(t){return this.visitEachAndOverrideWith(t.definition,{canBeNull:!0})},e.prototype.visitRepetition=function(t){return this.visitEachAndOverrideWith(t.definition,{canBeNull:!0})},e.prototype.visitRepetitionMandatory=function(t){return this.visitEach(t.definition)},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){return this.visitEach(t.definition).concat({propertyName:t.separator.name,canBeNull:!0,type:h(t.separator)})},e.prototype.visitRepetitionWithSeparator=function(t){return this.visitEachAndOverrideWith(t.definition,{canBeNull:!0}).concat({propertyName:t.separator.name,canBeNull:!0,type:h(t.separator)})},e.prototype.visitAlternation=function(t){return this.visitEachAndOverrideWith(t.definition,{canBeNull:!0})},e.prototype.visitTerminal=function(t){return[{propertyName:t.label||t.terminalType.name,canBeNull:!1,type:h(t)}]},e.prototype.visitNonTerminal=function(t){return[{propertyName:t.label||t.nonTerminalName,canBeNull:!1,type:h(t)}]},e.prototype.visitEachAndOverrideWith=function(t,e){return(0,s.default)(this.visitEach(t),(function(t){return(0,p.default)({},t,e)}))},e.prototype.visitEach=function(t){var e=this;return(0,u.default)((0,s.default)(t,(function(t){return e.visit(t)})))},e}(a.GAstVisitor);function h(t){return t instanceof a.NonTerminal?{kind:"rule",name:t.referencedRule.name}:{kind:"token"}}},7729:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSequenceProd=e.isBranchingProd=e.isOptionalProd=e.getProductionDslName=e.GAstVisitor=e.serializeProduction=e.serializeGrammar=e.Alternative=e.Alternation=e.RepetitionWithSeparator=e.RepetitionMandatoryWithSeparator=e.RepetitionMandatory=e.Repetition=e.Option=e.NonTerminal=e.Terminal=e.Rule=void 0;var n=r(5700);Object.defineProperty(e,"Rule",{enumerable:!0,get:function(){return n.Rule}}),Object.defineProperty(e,"Terminal",{enumerable:!0,get:function(){return n.Terminal}}),Object.defineProperty(e,"NonTerminal",{enumerable:!0,get:function(){return n.NonTerminal}}),Object.defineProperty(e,"Option",{enumerable:!0,get:function(){return n.Option}}),Object.defineProperty(e,"Repetition",{enumerable:!0,get:function(){return n.Repetition}}),Object.defineProperty(e,"RepetitionMandatory",{enumerable:!0,get:function(){return n.RepetitionMandatory}}),Object.defineProperty(e,"RepetitionMandatoryWithSeparator",{enumerable:!0,get:function(){return n.RepetitionMandatoryWithSeparator}}),Object.defineProperty(e,"RepetitionWithSeparator",{enumerable:!0,get:function(){return n.RepetitionWithSeparator}}),Object.defineProperty(e,"Alternation",{enumerable:!0,get:function(){return n.Alternation}}),Object.defineProperty(e,"Alternative",{enumerable:!0,get:function(){return n.Alternative}}),Object.defineProperty(e,"serializeGrammar",{enumerable:!0,get:function(){return n.serializeGrammar}}),Object.defineProperty(e,"serializeProduction",{enumerable:!0,get:function(){return n.serializeProduction}});var o=r(7694);Object.defineProperty(e,"GAstVisitor",{enumerable:!0,get:function(){return o.GAstVisitor}});var i=r(2515);Object.defineProperty(e,"getProductionDslName",{enumerable:!0,get:function(){return i.getProductionDslName}}),Object.defineProperty(e,"isOptionalProd",{enumerable:!0,get:function(){return i.isOptionalProd}}),Object.defineProperty(e,"isBranchingProd",{enumerable:!0,get:function(){return i.isBranchingProd}}),Object.defineProperty(e,"isSequenceProd",{enumerable:!0,get:function(){return i.isSequenceProd}})},2515:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getProductionDslName=e.isBranchingProd=e.isOptionalProd=e.isSequenceProd=void 0;var o=n(r(9040)),i=n(r(1198)),a=n(r(2876)),s=r(5700);e.isSequenceProd=function(t){return t instanceof s.Alternative||t instanceof s.Option||t instanceof s.Repetition||t instanceof s.RepetitionMandatory||t instanceof s.RepetitionMandatoryWithSeparator||t instanceof s.RepetitionWithSeparator||t instanceof s.Terminal||t instanceof s.Rule},e.isOptionalProd=function t(e,r){return void 0===r&&(r=[]),!!(e instanceof s.Option||e instanceof s.Repetition||e instanceof s.RepetitionWithSeparator)||(e instanceof s.Alternation?(0,o.default)(e.definition,(function(e){return t(e,r)})):!(e instanceof s.NonTerminal&&(0,a.default)(r,e))&&e instanceof s.AbstractProduction&&(e instanceof s.NonTerminal&&r.push(e),(0,i.default)(e.definition,(function(e){return t(e,r)}))))},e.isBranchingProd=function(t){return t instanceof s.Alternation},e.getProductionDslName=function(t){if(t instanceof s.NonTerminal)return"SUBRULE";if(t instanceof s.Option)return"OPTION";if(t instanceof s.Alternation)return"OR";if(t instanceof s.RepetitionMandatory)return"AT_LEAST_ONE";if(t instanceof s.RepetitionMandatoryWithSeparator)return"AT_LEAST_ONE_SEP";if(t instanceof s.RepetitionWithSeparator)return"MANY_SEP";if(t instanceof s.Repetition)return"MANY";if(t instanceof s.Terminal)return"CONSUME";throw Error("non exhaustive match")}},5700:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.serializeProduction=e.serializeGrammar=e.Terminal=e.Alternation=e.RepetitionWithSeparator=e.Repetition=e.RepetitionMandatoryWithSeparator=e.RepetitionMandatory=e.Option=e.Alternative=e.Rule=e.NonTerminal=e.AbstractProduction=void 0;var a=i(r(9107)),s=i(r(7734)),u=i(r(6705)),c=i(r(8290)),l=i(r(7383)),f=i(r(311));var p=function(){function t(t){this._definition=t}return Object.defineProperty(t.prototype,"definition",{get:function(){return this._definition},set:function(t){this._definition=t},enumerable:!1,configurable:!0}),t.prototype.accept=function(t){t.visit(this),(0,s.default)(this.definition,(function(e){e.accept(t)}))},t}();e.AbstractProduction=p;var d=function(t){function e(e){var r=t.call(this,[])||this;return r.idx=1,(0,f.default)(r,(0,l.default)(e,(function(t){return void 0!==t}))),r}return o(e,t),Object.defineProperty(e.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(t){},enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this)},e}(p);e.NonTerminal=d;var h=function(t){function e(e){var r=t.call(this,e.definition)||this;return r.orgText="",(0,f.default)(r,(0,l.default)(e,(function(t){return void 0!==t}))),r}return o(e,t),e}(p);e.Rule=h;var v=function(t){function e(e){var r=t.call(this,e.definition)||this;return r.ignoreAmbiguities=!1,(0,f.default)(r,(0,l.default)(e,(function(t){return void 0!==t}))),r}return o(e,t),e}(p);e.Alternative=v;var y=function(t){function e(e){var r=t.call(this,e.definition)||this;return r.idx=1,(0,f.default)(r,(0,l.default)(e,(function(t){return void 0!==t}))),r}return o(e,t),e}(p);e.Option=y;var m=function(t){function e(e){var r=t.call(this,e.definition)||this;return r.idx=1,(0,f.default)(r,(0,l.default)(e,(function(t){return void 0!==t}))),r}return o(e,t),e}(p);e.RepetitionMandatory=m;var T=function(t){function e(e){var r=t.call(this,e.definition)||this;return r.idx=1,(0,f.default)(r,(0,l.default)(e,(function(t){return void 0!==t}))),r}return o(e,t),e}(p);e.RepetitionMandatoryWithSeparator=T;var E=function(t){function e(e){var r=t.call(this,e.definition)||this;return r.idx=1,(0,f.default)(r,(0,l.default)(e,(function(t){return void 0!==t}))),r}return o(e,t),e}(p);e.Repetition=E;var _=function(t){function e(e){var r=t.call(this,e.definition)||this;return r.idx=1,(0,f.default)(r,(0,l.default)(e,(function(t){return void 0!==t}))),r}return o(e,t),e}(p);e.RepetitionWithSeparator=_;var g=function(t){function e(e){var r=t.call(this,e.definition)||this;return r.idx=1,r.ignoreAmbiguities=!1,r.hasPredicates=!1,(0,f.default)(r,(0,l.default)(e,(function(t){return void 0!==t}))),r}return o(e,t),Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(t){this._definition=t},enumerable:!1,configurable:!0}),e}(p);e.Alternation=g;var O=function(){function t(t){this.idx=1,(0,f.default)(this,(0,l.default)(t,(function(t){return void 0!==t})))}return t.prototype.accept=function(t){t.visit(this)},t}();function R(t){function e(t){return(0,a.default)(t,R)}if(t instanceof d){var r={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return(0,u.default)(t.label)&&(r.label=t.label),r}if(t instanceof v)return{type:"Alternative",definition:e(t.definition)};if(t instanceof y)return{type:"Option",idx:t.idx,definition:e(t.definition)};if(t instanceof m)return{type:"RepetitionMandatory",idx:t.idx,definition:e(t.definition)};if(t instanceof T)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:R(new O({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof _)return{type:"RepetitionWithSeparator",idx:t.idx,separator:R(new O({terminalType:t.separator})),definition:e(t.definition)};if(t instanceof E)return{type:"Repetition",idx:t.idx,definition:e(t.definition)};if(t instanceof g)return{type:"Alternation",idx:t.idx,definition:e(t.definition)};if(t instanceof O){var n={type:"Terminal",name:t.terminalType.name,label:(i=t.terminalType,s=i,(0,u.default)(s.LABEL)&&""!==s.LABEL?i.LABEL:i.name),idx:t.idx};(0,u.default)(t.label)&&(n.terminalLabel=t.label);var o=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(n.pattern=(0,c.default)(o)?o.source:o),n}var i,s;if(t instanceof h)return{type:"Rule",name:t.name,orgText:t.orgText,definition:e(t.definition)};throw Error("non exhaustive match")}e.Terminal=O,e.serializeGrammar=function(t){return(0,a.default)(t,R)},e.serializeProduction=R},7694:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GAstVisitor=void 0;var n=r(5700),o=function(){function t(){}return t.prototype.visit=function(t){var e=t;switch(e.constructor){case n.NonTerminal:return this.visitNonTerminal(e);case n.Alternative:return this.visitAlternative(e);case n.Option:return this.visitOption(e);case n.RepetitionMandatory:return this.visitRepetitionMandatory(e);case n.RepetitionMandatoryWithSeparator:return this.visitRepetitionMandatoryWithSeparator(e);case n.RepetitionWithSeparator:return this.visitRepetitionWithSeparator(e);case n.Repetition:return this.visitRepetition(e);case n.Alternation:return this.visitAlternation(e);case n.Terminal:return this.visitTerminal(e);case n.Rule:return this.visitRule(e);default:throw Error("non exhaustive match")}},t.prototype.visitNonTerminal=function(t){},t.prototype.visitAlternative=function(t){},t.prototype.visitOption=function(t){},t.prototype.visitRepetition=function(t){},t.prototype.visitRepetitionMandatory=function(t){},t.prototype.visitRepetitionMandatoryWithSeparator=function(t){},t.prototype.visitRepetitionWithSeparator=function(t){},t.prototype.visitAlternation=function(t){},t.prototype.visitTerminal=function(t){},t.prototype.visitRule=function(t){},t}();e.GAstVisitor=o},7146:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toFastProperties=e.timer=e.PRINT_ERROR=e.PRINT_WARNING=void 0;var n=r(6910);Object.defineProperty(e,"PRINT_WARNING",{enumerable:!0,get:function(){return n.PRINT_WARNING}}),Object.defineProperty(e,"PRINT_ERROR",{enumerable:!0,get:function(){return n.PRINT_ERROR}});var o=r(150);Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return o.timer}});var i=r(4470);Object.defineProperty(e,"toFastProperties",{enumerable:!0,get:function(){return i.toFastProperties}})},6910:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PRINT_WARNING=e.PRINT_ERROR=void 0,e.PRINT_ERROR=function(t){console&&console.error&&console.error("Error: ".concat(t))},e.PRINT_WARNING=function(t){console&&console.warn&&console.warn("Warning: ".concat(t))}},150:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.timer=void 0,e.timer=function(t){var e=(new Date).getTime(),r=t();return{time:(new Date).getTime()-e,value:r}}},4470:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toFastProperties=void 0,e.toFastProperties=function(t){function e(){}e.prototype=t;var r=new e;function n(){return typeof r.bar}return n(),n(),t}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";var t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.createSyntaxDiagramsCode=t.clearCache=t.generateCstDts=t.GAstVisitor=t.serializeProduction=t.serializeGrammar=t.Terminal=t.Rule=t.RepetitionWithSeparator=t.RepetitionMandatoryWithSeparator=t.RepetitionMandatory=t.Repetition=t.Option=t.NonTerminal=t.Alternative=t.Alternation=t.defaultLexerErrorProvider=t.NoViableAltException=t.NotAllInputParsedException=t.MismatchedTokenException=t.isRecognitionException=t.EarlyExitException=t.defaultParserErrorProvider=t.LLkLookaheadStrategy=t.getLookaheadPaths=t.tokenName=t.tokenMatcher=t.tokenLabel=t.EOF=t.createTokenInstance=t.createToken=t.LexerDefinitionErrorType=t.Lexer=t.EMPTY_ALT=t.ParserDefinitionErrorType=t.EmbeddedActionsParser=t.CstParser=t.VERSION=void 0;var e=r(7979);Object.defineProperty(t,"VERSION",{enumerable:!0,get:function(){return e.VERSION}});var o=r(2941);Object.defineProperty(t,"CstParser",{enumerable:!0,get:function(){return o.CstParser}}),Object.defineProperty(t,"EmbeddedActionsParser",{enumerable:!0,get:function(){return o.EmbeddedActionsParser}}),Object.defineProperty(t,"ParserDefinitionErrorType",{enumerable:!0,get:function(){return o.ParserDefinitionErrorType}}),Object.defineProperty(t,"EMPTY_ALT",{enumerable:!0,get:function(){return o.EMPTY_ALT}});var i=r(9027);Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return i.Lexer}}),Object.defineProperty(t,"LexerDefinitionErrorType",{enumerable:!0,get:function(){return i.LexerDefinitionErrorType}});var a=r(6736);Object.defineProperty(t,"createToken",{enumerable:!0,get:function(){return a.createToken}}),Object.defineProperty(t,"createTokenInstance",{enumerable:!0,get:function(){return a.createTokenInstance}}),Object.defineProperty(t,"EOF",{enumerable:!0,get:function(){return a.EOF}}),Object.defineProperty(t,"tokenLabel",{enumerable:!0,get:function(){return a.tokenLabel}}),Object.defineProperty(t,"tokenMatcher",{enumerable:!0,get:function(){return a.tokenMatcher}}),Object.defineProperty(t,"tokenName",{enumerable:!0,get:function(){return a.tokenName}});var s=r(4677);Object.defineProperty(t,"getLookaheadPaths",{enumerable:!0,get:function(){return s.getLookaheadPaths}});var u=r(7042);Object.defineProperty(t,"LLkLookaheadStrategy",{enumerable:!0,get:function(){return u.LLkLookaheadStrategy}});var c=r(1007);Object.defineProperty(t,"defaultParserErrorProvider",{enumerable:!0,get:function(){return c.defaultParserErrorProvider}});var l=r(643);Object.defineProperty(t,"EarlyExitException",{enumerable:!0,get:function(){return l.EarlyExitException}}),Object.defineProperty(t,"isRecognitionException",{enumerable:!0,get:function(){return l.isRecognitionException}}),Object.defineProperty(t,"MismatchedTokenException",{enumerable:!0,get:function(){return l.MismatchedTokenException}}),Object.defineProperty(t,"NotAllInputParsedException",{enumerable:!0,get:function(){return l.NotAllInputParsedException}}),Object.defineProperty(t,"NoViableAltException",{enumerable:!0,get:function(){return l.NoViableAltException}});var f=r(495);Object.defineProperty(t,"defaultLexerErrorProvider",{enumerable:!0,get:function(){return f.defaultLexerErrorProvider}});var p=r(7729);Object.defineProperty(t,"Alternation",{enumerable:!0,get:function(){return p.Alternation}}),Object.defineProperty(t,"Alternative",{enumerable:!0,get:function(){return p.Alternative}}),Object.defineProperty(t,"NonTerminal",{enumerable:!0,get:function(){return p.NonTerminal}}),Object.defineProperty(t,"Option",{enumerable:!0,get:function(){return p.Option}}),Object.defineProperty(t,"Repetition",{enumerable:!0,get:function(){return p.Repetition}}),Object.defineProperty(t,"RepetitionMandatory",{enumerable:!0,get:function(){return p.RepetitionMandatory}}),Object.defineProperty(t,"RepetitionMandatoryWithSeparator",{enumerable:!0,get:function(){return p.RepetitionMandatoryWithSeparator}}),Object.defineProperty(t,"RepetitionWithSeparator",{enumerable:!0,get:function(){return p.RepetitionWithSeparator}}),Object.defineProperty(t,"Rule",{enumerable:!0,get:function(){return p.Rule}}),Object.defineProperty(t,"Terminal",{enumerable:!0,get:function(){return p.Terminal}});var d=r(7729);Object.defineProperty(t,"serializeGrammar",{enumerable:!0,get:function(){return d.serializeGrammar}}),Object.defineProperty(t,"serializeProduction",{enumerable:!0,get:function(){return d.serializeProduction}}),Object.defineProperty(t,"GAstVisitor",{enumerable:!0,get:function(){return d.GAstVisitor}});var h=r(8962);Object.defineProperty(t,"generateCstDts",{enumerable:!0,get:function(){return h.generateCstDts}}),t.clearCache=function(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n\t It performs no action other than printing this message.\n\t Please avoid using it as it will be completely removed in the future")};var v=r(5781);Object.defineProperty(t,"createSyntaxDiagramsCode",{enumerable:!0,get:function(){return v.createSyntaxDiagramsCode}});t.Parser=function(){throw new Error("The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.\t\nSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_7-0-0")}})(),n})()));