@yorkie-js/schema 0.7.0 → 0.7.3-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/yorkie-js-schema.d.ts +9 -1
- package/dist/yorkie-js-schema.es.js +4692 -4429
- package/dist/yorkie-js-schema.js +64 -60
- package/package.json +1 -1
package/dist/yorkie-js-schema.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(_r,Rn){typeof exports=="object"&&typeof module<"u"?Rn(exports):typeof define=="function"&&define.amd?define(["exports"],Rn):(_r=typeof globalThis<"u"?globalThis:_r||self,Rn(_r["yorkie-js-schema"]={}))})(this,(function(_r){"use strict";var Rn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mr={},Ki={},Cu;function _p(){if(Cu)return Ki;Cu=1;return Object.defineProperty(Ki,"__esModule",{value:!0}),Ki}var Qi={},Ou;function mp(){if(Ou)return Qi;Ou=1;return Object.defineProperty(Qi,"__esModule",{value:!0}),Qi}var gr={};function gp(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Ru={exports:{}},Re=Ru.exports={},Qe,Je;function Ji(){throw new Error("setTimeout has not been defined")}function Zi(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Qe=setTimeout:Qe=Ji}catch{Qe=Ji}try{typeof clearTimeout=="function"?Je=clearTimeout:Je=Zi}catch{Je=Zi}})();function Pu(u){if(Qe===setTimeout)return setTimeout(u,0);if((Qe===Ji||!Qe)&&setTimeout)return Qe=setTimeout,setTimeout(u,0);try{return Qe(u,0)}catch{try{return Qe.call(null,u,0)}catch{return Qe.call(this,u,0)}}}function vp(u){if(Je===clearTimeout)return clearTimeout(u);if((Je===Zi||!Je)&&clearTimeout)return Je=clearTimeout,clearTimeout(u);try{return Je(u)}catch{try{return Je.call(null,u)}catch{return Je.call(this,u)}}}var Ye=[],Pn=!1,vr,Ni=-1;function Ap(){!Pn||!vr||(Pn=!1,vr.length?Ye=vr.concat(Ye):Ni=-1,Ye.length&&Du())}function Du(){if(!Pn){var u=Pu(Ap);Pn=!0;for(var i=Ye.length;i;){for(vr=Ye,Ye=[];++Ni<i;)vr&&vr[Ni].run();Ni=-1,i=Ye.length}vr=null,Pn=!1,vp(u)}}Re.nextTick=function(u){var i=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)i[c-1]=arguments[c];Ye.push(new Iu(u,i)),Ye.length===1&&!Pn&&Pu(Du)};function Iu(u,i){this.fun=u,this.array=i}Iu.prototype.run=function(){this.fun.apply(null,this.array)},Re.title="browser",Re.browser=!0,Re.env={},Re.argv=[],Re.version="",Re.versions={};function et(){}Re.on=et,Re.addListener=et,Re.once=et,Re.off=et,Re.removeListener=et,Re.removeAllListeners=et,Re.emit=et,Re.prependListener=et,Re.prependOnceListener=et,Re.listeners=function(u){return[]},Re.binding=function(u){throw new Error("process.binding is not supported")},Re.cwd=function(){return"/"},Re.chdir=function(u){throw new Error("process.chdir is not supported")},Re.umask=function(){return 0};var Tp=Ru.exports;const be=gp(Tp);var Yi={exports:{}},eo={},to={},ro={},no,wu;function io(){return wu||(wu=1,no=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var i={},c=Symbol("test"),h=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(h)!=="[object Symbol]")return!1;var p=42;i[c]=p;for(var a in i)return!1;if(typeof Object.keys=="function"&&Object.keys(i).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(i).length!==0)return!1;var r=Object.getOwnPropertySymbols(i);if(r.length!==1||r[0]!==c||!Object.prototype.propertyIsEnumerable.call(i,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(i,c);if(n.value!==p||n.enumerable!==!0)return!1}return!0}),no}var oo,Lu;function bi(){if(Lu)return oo;Lu=1;var u=io();return oo=function(){return u()&&!!Symbol.toStringTag},oo}var so,Fu;function uo(){return Fu||(Fu=1,so=Object),so}var ao,Bu;function Ep(){return Bu||(Bu=1,ao=Error),ao}var lo,ju;function Sp(){return ju||(ju=1,lo=EvalError),lo}var co,Mu;function Np(){return Mu||(Mu=1,co=RangeError),co}var fo,qu;function bp(){return qu||(qu=1,fo=ReferenceError),fo}var ho,ku;function Uu(){return ku||(ku=1,ho=SyntaxError),ho}var po,zu;function Mn(){return zu||(zu=1,po=TypeError),po}var xo,Hu;function Cp(){return Hu||(Hu=1,xo=URIError),xo}var yo,Vu;function Op(){return Vu||(Vu=1,yo=Math.abs),yo}var _o,Wu;function Rp(){return Wu||(Wu=1,_o=Math.floor),_o}var mo,Gu;function Pp(){return Gu||(Gu=1,mo=Math.max),mo}var go,Xu;function Dp(){return Xu||(Xu=1,go=Math.min),go}var vo,$u;function Ip(){return $u||($u=1,vo=Math.pow),vo}var Ao,Ku;function wp(){return Ku||(Ku=1,Ao=Math.round),Ao}var To,Qu;function Lp(){return Qu||(Qu=1,To=Number.isNaN||function(i){return i!==i}),To}var Eo,Ju;function Fp(){if(Ju)return Eo;Ju=1;var u=Lp();return Eo=function(c){return u(c)||c===0?c:c<0?-1:1},Eo}var So,Zu;function Bp(){return Zu||(Zu=1,So=Object.getOwnPropertyDescriptor),So}var No,Yu;function Dn(){if(Yu)return No;Yu=1;var u=Bp();if(u)try{u([],"length")}catch{u=null}return No=u,No}var bo,ea;function Ci(){if(ea)return bo;ea=1;var u=Object.defineProperty||!1;if(u)try{u({},"a",{value:1})}catch{u=!1}return bo=u,bo}var Co,ta;function jp(){if(ta)return Co;ta=1;var u=typeof Symbol<"u"&&Symbol,i=io();return Co=function(){return typeof u!="function"||typeof Symbol!="function"||typeof u("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:i()},Co}var Oo,ra;function na(){return ra||(ra=1,Oo=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Oo}var Ro,ia;function oa(){if(ia)return Ro;ia=1;var u=uo();return Ro=u.getPrototypeOf||null,Ro}var Po,sa;function Mp(){if(sa)return Po;sa=1;var u="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,c=Math.max,h="[object Function]",p=function(t,s){for(var e=[],o=0;o<t.length;o+=1)e[o]=t[o];for(var l=0;l<s.length;l+=1)e[l+t.length]=s[l];return e},a=function(t,s){for(var e=[],o=s,l=0;o<t.length;o+=1,l+=1)e[l]=t[o];return e},r=function(n,t){for(var s="",e=0;e<n.length;e+=1)s+=n[e],e+1<n.length&&(s+=t);return s};return Po=function(t){var s=this;if(typeof s!="function"||i.apply(s)!==h)throw new TypeError(u+s);for(var e=a(arguments,1),o,l=function(){if(this instanceof o){var m=s.apply(this,p(e,arguments));return Object(m)===m?m:this}return s.apply(t,p(e,arguments))},f=c(0,s.length-e.length),d=[],g=0;g<f;g++)d[g]="$"+g;if(o=Function("binder","return function ("+r(d,",")+"){ return binder.apply(this,arguments); }")(l),s.prototype){var x=function(){};x.prototype=s.prototype,o.prototype=new x,x.prototype=null}return o},Po}var Do,ua;function qn(){if(ua)return Do;ua=1;var u=Mp();return Do=Function.prototype.bind||u,Do}var Io,aa;function wo(){return aa||(aa=1,Io=Function.prototype.call),Io}var Lo,la;function Fo(){return la||(la=1,Lo=Function.prototype.apply),Lo}var Bo,ca;function qp(){return ca||(ca=1,Bo=typeof Reflect<"u"&&Reflect&&Reflect.apply),Bo}var jo,fa;function ha(){if(fa)return jo;fa=1;var u=qn(),i=Fo(),c=wo(),h=qp();return jo=h||u.call(c,i),jo}var Mo,pa;function qo(){if(pa)return Mo;pa=1;var u=qn(),i=Mn(),c=wo(),h=ha();return Mo=function(a){if(a.length<1||typeof a[0]!="function")throw new i("a function is required");return h(u,c,a)},Mo}var ko,da;function kp(){if(da)return ko;da=1;var u=qo(),i=Dn(),c;try{c=[].__proto__===Array.prototype}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var h=!!c&&i&&i(Object.prototype,"__proto__"),p=Object,a=p.getPrototypeOf;return ko=h&&typeof h.get=="function"?u([h.get]):typeof a=="function"?function(n){return a(n==null?n:p(n))}:!1,ko}var Uo,xa;function zo(){if(xa)return Uo;xa=1;var u=na(),i=oa(),c=kp();return Uo=u?function(p){return u(p)}:i?function(p){if(!p||typeof p!="object"&&typeof p!="function")throw new TypeError("getProto: not an object");return i(p)}:c?function(p){return c(p)}:null,Uo}var Ho,ya;function _a(){if(ya)return Ho;ya=1;var u=Function.prototype.call,i=Object.prototype.hasOwnProperty,c=qn();return Ho=c.call(u,i),Ho}var Vo,ma;function Wo(){if(ma)return Vo;ma=1;var u,i=uo(),c=Ep(),h=Sp(),p=Np(),a=bp(),r=Uu(),n=Mn(),t=Cp(),s=Op(),e=Rp(),o=Pp(),l=Dp(),f=Ip(),d=wp(),g=Fp(),x=Function,m=function(I){try{return x('"use strict"; return ('+I+").constructor;")()}catch{}},y=Dn(),_=Ci(),v=function(){throw new n},N=y?(function(){try{return arguments.callee,v}catch{try{return y(arguments,"callee").get}catch{return v}}})():v,T=jp()(),b=zo(),O=oa(),D=na(),k=Fo(),z=wo(),U={},te=typeof Uint8Array>"u"||!b?u:b(Uint8Array),ie={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?u:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?u:ArrayBuffer,"%ArrayIteratorPrototype%":T&&b?b([][Symbol.iterator]()):u,"%AsyncFromSyncIteratorPrototype%":u,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":typeof Atomics>"u"?u:Atomics,"%BigInt%":typeof BigInt>"u"?u:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?u:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?u:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?u:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":c,"%eval%":eval,"%EvalError%":h,"%Float16Array%":typeof Float16Array>"u"?u:Float16Array,"%Float32Array%":typeof Float32Array>"u"?u:Float32Array,"%Float64Array%":typeof Float64Array>"u"?u:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?u:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":U,"%Int8Array%":typeof Int8Array>"u"?u:Int8Array,"%Int16Array%":typeof Int16Array>"u"?u:Int16Array,"%Int32Array%":typeof Int32Array>"u"?u:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&b?b(b([][Symbol.iterator]())):u,"%JSON%":typeof JSON=="object"?JSON:u,"%Map%":typeof Map>"u"?u:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!b?u:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":y,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?u:Promise,"%Proxy%":typeof Proxy>"u"?u:Proxy,"%RangeError%":p,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?u:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?u:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!b?u:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?u:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&b?b(""[Symbol.iterator]()):u,"%Symbol%":T?Symbol:u,"%SyntaxError%":r,"%ThrowTypeError%":N,"%TypedArray%":te,"%TypeError%":n,"%Uint8Array%":typeof Uint8Array>"u"?u:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?u:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?u:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?u:Uint32Array,"%URIError%":t,"%WeakMap%":typeof WeakMap>"u"?u:WeakMap,"%WeakRef%":typeof WeakRef>"u"?u:WeakRef,"%WeakSet%":typeof WeakSet>"u"?u:WeakSet,"%Function.prototype.call%":z,"%Function.prototype.apply%":k,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":O,"%Math.abs%":s,"%Math.floor%":e,"%Math.max%":o,"%Math.min%":l,"%Math.pow%":f,"%Math.round%":d,"%Math.sign%":g,"%Reflect.getPrototypeOf%":D};if(b)try{null.error}catch(I){var oe=b(b(I));ie["%Error.prototype%"]=oe}var he=function I(M){var W;if(M==="%AsyncFunction%")W=m("async function () {}");else if(M==="%GeneratorFunction%")W=m("function* () {}");else if(M==="%AsyncGeneratorFunction%")W=m("async function* () {}");else if(M==="%AsyncGenerator%"){var G=I("%AsyncGeneratorFunction%");G&&(W=G.prototype)}else if(M==="%AsyncIteratorPrototype%"){var w=I("%AsyncGenerator%");w&&b&&(W=b(w.prototype))}return ie[M]=W,W},Ee={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},le=qn(),Z=_a(),ee=le.call(z,Array.prototype.concat),J=le.call(k,Array.prototype.splice),F=le.call(z,String.prototype.replace),E=le.call(z,String.prototype.slice),A=le.call(z,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,P=function(M){var W=E(M,0,1),G=E(M,-1);if(W==="%"&&G!=="%")throw new r("invalid intrinsic syntax, expected closing `%`");if(G==="%"&&W!=="%")throw new r("invalid intrinsic syntax, expected opening `%`");var w=[];return F(M,S,function(L,H,X,Y){w[w.length]=X?F(Y,C,"$1"):H||L}),w},R=function(M,W){var G=M,w;if(Z(Ee,G)&&(w=Ee[G],G="%"+w[0]+"%"),Z(ie,G)){var L=ie[G];if(L===U&&(L=he(G)),typeof L>"u"&&!W)throw new n("intrinsic "+M+" exists, but is not available. Please file an issue!");return{alias:w,name:G,value:L}}throw new r("intrinsic "+M+" does not exist!")};return Vo=function(M,W){if(typeof M!="string"||M.length===0)throw new n("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof W!="boolean")throw new n('"allowMissing" argument must be a boolean');if(A(/^%?[^%]*%?$/,M)===null)throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G=P(M),w=G.length>0?G[0]:"",L=R("%"+w+"%",W),H=L.name,X=L.value,Y=!1,re=L.alias;re&&(w=re[0],J(G,ee([0,1],re)));for(var q=1,$=!0;q<G.length;q+=1){var se=G[q],me=E(se,0,1),ge=E(se,-1);if((me==='"'||me==="'"||me==="`"||ge==='"'||ge==="'"||ge==="`")&&me!==ge)throw new r("property names with quotes must have matching quotes");if((se==="constructor"||!$)&&(Y=!0),w+="."+se,H="%"+w+"%",Z(ie,H))X=ie[H];else if(X!=null){if(!(se in X)){if(!W)throw new n("base intrinsic for "+M+" exists, but the property is not available.");return}if(y&&q+1>=G.length){var B=y(X,se);$=!!B,$&&"get"in B&&!("originalValue"in B.get)?X=B.get:X=X[se]}else $=Z(X,se),X=X[se];$&&!Y&&(ie[H]=X)}}return X},Vo}var Go,ga;function In(){if(ga)return Go;ga=1;var u=Wo(),i=qo(),c=i([u("%String.prototype.indexOf%")]);return Go=function(p,a){var r=u(p,!!a);return typeof r=="function"&&c(p,".prototype.")>-1?i([r]):r},Go}var Xo,va;function Up(){if(va)return Xo;va=1;var u=bi()(),i=In(),c=i("Object.prototype.toString"),h=function(n){return u&&n&&typeof n=="object"&&Symbol.toStringTag in n?!1:c(n)==="[object Arguments]"},p=function(n){return h(n)?!0:n!==null&&typeof n=="object"&&"length"in n&&typeof n.length=="number"&&n.length>=0&&c(n)!=="[object Array]"&&"callee"in n&&c(n.callee)==="[object Function]"},a=(function(){return h(arguments)})();return h.isLegacyArguments=p,Xo=a?h:p,Xo}var $o,Aa;function zp(){if(Aa)return $o;Aa=1;var u=In(),i=bi()(),c=_a(),h=Dn(),p;if(i){var a=u("RegExp.prototype.exec"),r={},n=function(){throw r},t={toString:n,valueOf:n};typeof Symbol.toPrimitive=="symbol"&&(t[Symbol.toPrimitive]=n),p=function(l){if(!l||typeof l!="object")return!1;var f=h(l,"lastIndex"),d=f&&c(f,"value");if(!d)return!1;try{a(l,t)}catch(g){return g===r}}}else{var s=u("Object.prototype.toString"),e="[object RegExp]";p=function(l){return!l||typeof l!="object"&&typeof l!="function"?!1:s(l)===e}}return $o=p,$o}var Ko,Ta;function Hp(){if(Ta)return Ko;Ta=1;var u=In(),i=zp(),c=u("RegExp.prototype.exec"),h=Mn();return Ko=function(a){if(!i(a))throw new h("`regex` must be a RegExp");return function(n){return c(a,n)!==null}},Ko}var Qo,Ea;function Vp(){if(Ea)return Qo;Ea=1;const u=(function*(){}).constructor;return Qo=()=>u,Qo}var Jo,Sa;function Wp(){if(Sa)return Jo;Sa=1;var u=In(),i=Hp(),c=i(/^\s*(?:function)?\*/),h=bi()(),p=zo(),a=u("Object.prototype.toString"),r=u("Function.prototype.toString"),n=Vp();return Jo=function(s){if(typeof s!="function")return!1;if(c(r(s)))return!0;if(!h){var e=a(s);return e==="[object GeneratorFunction]"}if(!p)return!1;var o=n();return o&&p(s)===o.prototype},Jo}var Zo,Na;function Gp(){if(Na)return Zo;Na=1;var u=Function.prototype.toString,i=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,c,h;if(typeof i=="function"&&typeof Object.defineProperty=="function")try{c=Object.defineProperty({},"length",{get:function(){throw h}}),h={},i(function(){throw 42},null,c)}catch(y){y!==h&&(i=null)}else i=null;var p=/^\s*class\b/,a=function(_){try{var v=u.call(_);return p.test(v)}catch{return!1}},r=function(_){try{return a(_)?!1:(u.call(_),!0)}catch{return!1}},n=Object.prototype.toString,t="[object Object]",s="[object Function]",e="[object GeneratorFunction]",o="[object HTMLAllCollection]",l="[object HTML document.all class]",f="[object HTMLCollection]",d=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),x=function(){return!1};if(typeof document=="object"){var m=document.all;n.call(m)===n.call(document.all)&&(x=function(_){if((g||!_)&&(typeof _>"u"||typeof _=="object"))try{var v=n.call(_);return(v===o||v===l||v===f||v===t)&&_("")==null}catch{}return!1})}return Zo=i?function(_){if(x(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{i(_,null,c)}catch(v){if(v!==h)return!1}return!a(_)&&r(_)}:function(_){if(x(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(d)return r(_);if(a(_))return!1;var v=n.call(_);return v!==s&&v!==e&&!/^\[object HTML/.test(v)?!1:r(_)},Zo}var Yo,ba;function Xp(){if(ba)return Yo;ba=1;var u=Gp(),i=Object.prototype.toString,c=Object.prototype.hasOwnProperty,h=function(t,s,e){for(var o=0,l=t.length;o<l;o++)c.call(t,o)&&(e==null?s(t[o],o,t):s.call(e,t[o],o,t))},p=function(t,s,e){for(var o=0,l=t.length;o<l;o++)e==null?s(t.charAt(o),o,t):s.call(e,t.charAt(o),o,t)},a=function(t,s,e){for(var o in t)c.call(t,o)&&(e==null?s(t[o],o,t):s.call(e,t[o],o,t))};function r(n){return i.call(n)==="[object Array]"}return Yo=function(t,s,e){if(!u(s))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=e),r(t)?h(t,s,o):typeof t=="string"?p(t,s,o):a(t,s,o)},Yo}var es,Ca;function $p(){return Ca||(Ca=1,es=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),es}var ts,Oa;function Kp(){if(Oa)return ts;Oa=1;var u=$p(),i=typeof globalThis>"u"?Rn:globalThis;return ts=function(){for(var h=[],p=0;p<u.length;p++)typeof i[u[p]]=="function"&&(h[h.length]=u[p]);return h},ts}var rs={exports:{}},ns,Ra;function Pa(){if(Ra)return ns;Ra=1;var u=Ci(),i=Uu(),c=Mn(),h=Dn();return ns=function(a,r,n){if(!a||typeof a!="object"&&typeof a!="function")throw new c("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new c("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new c("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new c("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new c("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new c("`loose`, if provided, must be a boolean");var t=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,e=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,l=!!h&&h(a,r);if(u)u(a,r,{configurable:e===null&&l?l.configurable:!e,enumerable:t===null&&l?l.enumerable:!t,value:n,writable:s===null&&l?l.writable:!s});else if(o||!t&&!s&&!e)a[r]=n;else throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ns}var is,Da;function Ia(){if(Da)return is;Da=1;var u=Ci(),i=function(){return!!u};return i.hasArrayLengthDefineBug=function(){if(!u)return null;try{return u([],"length",{value:1}).length!==1}catch{return!0}},is=i,is}var os,wa;function Qp(){if(wa)return os;wa=1;var u=Wo(),i=Pa(),c=Ia()(),h=Dn(),p=Mn(),a=u("%Math.floor%");return os=function(n,t){if(typeof n!="function")throw new p("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||a(t)!==t)throw new p("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],e=!0,o=!0;if("length"in n&&h){var l=h(n,"length");l&&!l.configurable&&(e=!1),l&&!l.writable&&(o=!1)}return(e||o||!s)&&(c?i(n,"length",t,!0,!0):i(n,"length",t)),n},os}var ss,La;function Jp(){if(La)return ss;La=1;var u=qn(),i=Fo(),c=ha();return ss=function(){return c(u,i,arguments)},ss}var Fa;function Oi(){return Fa||(Fa=1,(function(u){var i=Qp(),c=Ci(),h=qo(),p=Jp();u.exports=function(r){var n=h(arguments),t=r.length-(arguments.length-1);return i(n,1+(t>0?t:0),!0)},c?c(u.exports,"apply",{value:p}):u.exports.apply=p})(rs)),rs.exports}var us,Ba;function ja(){if(Ba)return us;Ba=1;var u=Xp(),i=Kp(),c=Oi(),h=In(),p=Dn(),a=zo(),r=h("Object.prototype.toString"),n=bi()(),t=typeof globalThis>"u"?Rn:globalThis,s=i(),e=h("String.prototype.slice"),o=h("Array.prototype.indexOf",!0)||function(x,m){for(var y=0;y<x.length;y+=1)if(x[y]===m)return y;return-1},l={__proto__:null};n&&p&&a?u(s,function(g){var x=new t[g];if(Symbol.toStringTag in x&&a){var m=a(x),y=p(m,Symbol.toStringTag);if(!y&&m){var _=a(m);y=p(_,Symbol.toStringTag)}l["$"+g]=c(y.get)}}):u(s,function(g){var x=new t[g],m=x.slice||x.set;m&&(l["$"+g]=c(m))});var f=function(x){var m=!1;return u(l,function(y,_){if(!m)try{"$"+y(x)===_&&(m=e(_,1))}catch{}}),m},d=function(x){var m=!1;return u(l,function(y,_){if(!m)try{y(x),m=e(_,1)}catch{}}),m};return us=function(x){if(!x||typeof x!="object")return!1;if(!n){var m=e(r(x),8,-1);return o(s,m)>-1?m:m!=="Object"?!1:d(x)}return p?f(x):null},us}var as,Ma;function Zp(){if(Ma)return as;Ma=1;var u=ja();return as=function(c){return!!u(c)},as}var qa;function Yp(){return qa||(qa=1,(function(u){var i=Up(),c=Wp(),h=ja(),p=Zp();function a(q){return q.call.bind(q)}var r=typeof BigInt<"u",n=typeof Symbol<"u",t=a(Object.prototype.toString),s=a(Number.prototype.valueOf),e=a(String.prototype.valueOf),o=a(Boolean.prototype.valueOf);if(r)var l=a(BigInt.prototype.valueOf);if(n)var f=a(Symbol.prototype.valueOf);function d(q,$){if(typeof q!="object")return!1;try{return $(q),!0}catch{return!1}}u.isArgumentsObject=i,u.isGeneratorFunction=c,u.isTypedArray=p;function g(q){return typeof Promise<"u"&&q instanceof Promise||q!==null&&typeof q=="object"&&typeof q.then=="function"&&typeof q.catch=="function"}u.isPromise=g;function x(q){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(q):p(q)||E(q)}u.isArrayBufferView=x;function m(q){return h(q)==="Uint8Array"}u.isUint8Array=m;function y(q){return h(q)==="Uint8ClampedArray"}u.isUint8ClampedArray=y;function _(q){return h(q)==="Uint16Array"}u.isUint16Array=_;function v(q){return h(q)==="Uint32Array"}u.isUint32Array=v;function N(q){return h(q)==="Int8Array"}u.isInt8Array=N;function T(q){return h(q)==="Int16Array"}u.isInt16Array=T;function b(q){return h(q)==="Int32Array"}u.isInt32Array=b;function O(q){return h(q)==="Float32Array"}u.isFloat32Array=O;function D(q){return h(q)==="Float64Array"}u.isFloat64Array=D;function k(q){return h(q)==="BigInt64Array"}u.isBigInt64Array=k;function z(q){return h(q)==="BigUint64Array"}u.isBigUint64Array=z;function U(q){return t(q)==="[object Map]"}U.working=typeof Map<"u"&&U(new Map);function te(q){return typeof Map>"u"?!1:U.working?U(q):q instanceof Map}u.isMap=te;function ie(q){return t(q)==="[object Set]"}ie.working=typeof Set<"u"&&ie(new Set);function oe(q){return typeof Set>"u"?!1:ie.working?ie(q):q instanceof Set}u.isSet=oe;function he(q){return t(q)==="[object WeakMap]"}he.working=typeof WeakMap<"u"&&he(new WeakMap);function Ee(q){return typeof WeakMap>"u"?!1:he.working?he(q):q instanceof WeakMap}u.isWeakMap=Ee;function le(q){return t(q)==="[object WeakSet]"}le.working=typeof WeakSet<"u"&&le(new WeakSet);function Z(q){return le(q)}u.isWeakSet=Z;function ee(q){return t(q)==="[object ArrayBuffer]"}ee.working=typeof ArrayBuffer<"u"&&ee(new ArrayBuffer);function J(q){return typeof ArrayBuffer>"u"?!1:ee.working?ee(q):q instanceof ArrayBuffer}u.isArrayBuffer=J;function F(q){return t(q)==="[object DataView]"}F.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&F(new DataView(new ArrayBuffer(1),0,1));function E(q){return typeof DataView>"u"?!1:F.working?F(q):q instanceof DataView}u.isDataView=E;var A=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function S(q){return t(q)==="[object SharedArrayBuffer]"}function C(q){return typeof A>"u"?!1:(typeof S.working>"u"&&(S.working=S(new A)),S.working?S(q):q instanceof A)}u.isSharedArrayBuffer=C;function P(q){return t(q)==="[object AsyncFunction]"}u.isAsyncFunction=P;function R(q){return t(q)==="[object Map Iterator]"}u.isMapIterator=R;function I(q){return t(q)==="[object Set Iterator]"}u.isSetIterator=I;function M(q){return t(q)==="[object Generator]"}u.isGeneratorObject=M;function W(q){return t(q)==="[object WebAssembly.Module]"}u.isWebAssemblyCompiledModule=W;function G(q){return d(q,s)}u.isNumberObject=G;function w(q){return d(q,e)}u.isStringObject=w;function L(q){return d(q,o)}u.isBooleanObject=L;function H(q){return r&&d(q,l)}u.isBigIntObject=H;function X(q){return n&&d(q,f)}u.isSymbolObject=X;function Y(q){return G(q)||w(q)||L(q)||H(q)||X(q)}u.isBoxedPrimitive=Y;function re(q){return typeof Uint8Array<"u"&&(J(q)||C(q))}u.isAnyArrayBuffer=re,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(q){Object.defineProperty(u,q,{enumerable:!1,value:function(){throw new Error(q+" is not supported in userland")}})})})(ro)),ro}var ls,ka;function e0(){return ka||(ka=1,ls=function(i){return i&&typeof i=="object"&&typeof i.copy=="function"&&typeof i.fill=="function"&&typeof i.readUInt8=="function"}),ls}var Ri={exports:{}},Ua;function t0(){return Ua||(Ua=1,typeof Object.create=="function"?Ri.exports=function(i,c){c&&(i.super_=c,i.prototype=Object.create(c.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}))}:Ri.exports=function(i,c){if(c){i.super_=c;var h=function(){};h.prototype=c.prototype,i.prototype=new h,i.prototype.constructor=i}}),Ri.exports}var za;function wn(){return za||(za=1,(function(u){var i=Object.getOwnPropertyDescriptors||function(E){for(var A=Object.keys(E),S={},C=0;C<A.length;C++)S[A[C]]=Object.getOwnPropertyDescriptor(E,A[C]);return S},c=/%[sdj%]/g;u.format=function(F){if(!N(F)){for(var E=[],A=0;A<arguments.length;A++)E.push(r(arguments[A]));return E.join(" ")}for(var A=1,S=arguments,C=S.length,P=String(F).replace(c,function(I){if(I==="%%")return"%";if(A>=C)return I;switch(I){case"%s":return String(S[A++]);case"%d":return Number(S[A++]);case"%j":try{return JSON.stringify(S[A++])}catch{return"[Circular]"}default:return I}}),R=S[A];A<C;R=S[++A])y(R)||!D(R)?P+=" "+R:P+=" "+r(R);return P},u.deprecate=function(F,E){if(typeof be<"u"&&be.noDeprecation===!0)return F;if(typeof be>"u")return function(){return u.deprecate(F,E).apply(this,arguments)};var A=!1;function S(){if(!A){if(be.throwDeprecation)throw new Error(E);be.traceDeprecation?console.trace(E):console.error(E),A=!0}return F.apply(this,arguments)}return S};var h={},p=/^$/;if(be.env.NODE_DEBUG){var a=be.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),p=new RegExp("^"+a+"$","i")}u.debuglog=function(F){if(F=F.toUpperCase(),!h[F])if(p.test(F)){var E=be.pid;h[F]=function(){var A=u.format.apply(u,arguments);console.error("%s %d: %s",F,E,A)}}else h[F]=function(){};return h[F]};function r(F,E){var A={seen:[],stylize:t};return arguments.length>=3&&(A.depth=arguments[2]),arguments.length>=4&&(A.colors=arguments[3]),m(E)?A.showHidden=E:E&&u._extend(A,E),b(A.showHidden)&&(A.showHidden=!1),b(A.depth)&&(A.depth=2),b(A.colors)&&(A.colors=!1),b(A.customInspect)&&(A.customInspect=!0),A.colors&&(A.stylize=n),e(A,F,A.depth)}u.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function n(F,E){var A=r.styles[E];return A?"\x1B["+r.colors[A][0]+"m"+F+"\x1B["+r.colors[A][1]+"m":F}function t(F,E){return F}function s(F){var E={};return F.forEach(function(A,S){E[A]=!0}),E}function e(F,E,A){if(F.customInspect&&E&&U(E.inspect)&&E.inspect!==u.inspect&&!(E.constructor&&E.constructor.prototype===E)){var S=E.inspect(A,F);return N(S)||(S=e(F,S,A)),S}var C=o(F,E);if(C)return C;var P=Object.keys(E),R=s(P);if(F.showHidden&&(P=Object.getOwnPropertyNames(E)),z(E)&&(P.indexOf("message")>=0||P.indexOf("description")>=0))return l(E);if(P.length===0){if(U(E)){var I=E.name?": "+E.name:"";return F.stylize("[Function"+I+"]","special")}if(O(E))return F.stylize(RegExp.prototype.toString.call(E),"regexp");if(k(E))return F.stylize(Date.prototype.toString.call(E),"date");if(z(E))return l(E)}var M="",W=!1,G=["{","}"];if(x(E)&&(W=!0,G=["[","]"]),U(E)){var w=E.name?": "+E.name:"";M=" [Function"+w+"]"}if(O(E)&&(M=" "+RegExp.prototype.toString.call(E)),k(E)&&(M=" "+Date.prototype.toUTCString.call(E)),z(E)&&(M=" "+l(E)),P.length===0&&(!W||E.length==0))return G[0]+M+G[1];if(A<0)return O(E)?F.stylize(RegExp.prototype.toString.call(E),"regexp"):F.stylize("[Object]","special");F.seen.push(E);var L;return W?L=f(F,E,A,R,P):L=P.map(function(H){return d(F,E,A,R,H,W)}),F.seen.pop(),g(L,M,G)}function o(F,E){if(b(E))return F.stylize("undefined","undefined");if(N(E)){var A="'"+JSON.stringify(E).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return F.stylize(A,"string")}if(v(E))return F.stylize(""+E,"number");if(m(E))return F.stylize(""+E,"boolean");if(y(E))return F.stylize("null","null")}function l(F){return"["+Error.prototype.toString.call(F)+"]"}function f(F,E,A,S,C){for(var P=[],R=0,I=E.length;R<I;++R)le(E,String(R))?P.push(d(F,E,A,S,String(R),!0)):P.push("");return C.forEach(function(M){M.match(/^\d+$/)||P.push(d(F,E,A,S,M,!0))}),P}function d(F,E,A,S,C,P){var R,I,M;if(M=Object.getOwnPropertyDescriptor(E,C)||{value:E[C]},M.get?M.set?I=F.stylize("[Getter/Setter]","special"):I=F.stylize("[Getter]","special"):M.set&&(I=F.stylize("[Setter]","special")),le(S,C)||(R="["+C+"]"),I||(F.seen.indexOf(M.value)<0?(y(A)?I=e(F,M.value,null):I=e(F,M.value,A-1),I.indexOf(`
|
|
1
|
+
(function(_r,Rn){typeof exports=="object"&&typeof module<"u"?Rn(exports):typeof define=="function"&&define.amd?define(["exports"],Rn):(_r=typeof globalThis<"u"?globalThis:_r||self,Rn(_r["yorkie-js-schema"]={}))})(this,(function(_r){"use strict";var Rn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mr={},Ki={},Ru;function Ap(){if(Ru)return Ki;Ru=1;return Object.defineProperty(Ki,"__esModule",{value:!0}),Ki}var Qi={},Pu;function Tp(){if(Pu)return Qi;Pu=1;return Object.defineProperty(Qi,"__esModule",{value:!0}),Qi}var gr={};function Ep(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Du={exports:{}},Re=Du.exports={},Qe,Je;function Ji(){throw new Error("setTimeout has not been defined")}function Zi(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Qe=setTimeout:Qe=Ji}catch{Qe=Ji}try{typeof clearTimeout=="function"?Je=clearTimeout:Je=Zi}catch{Je=Zi}})();function Iu(u){if(Qe===setTimeout)return setTimeout(u,0);if((Qe===Ji||!Qe)&&setTimeout)return Qe=setTimeout,setTimeout(u,0);try{return Qe(u,0)}catch{try{return Qe.call(null,u,0)}catch{return Qe.call(this,u,0)}}}function Sp(u){if(Je===clearTimeout)return clearTimeout(u);if((Je===Zi||!Je)&&clearTimeout)return Je=clearTimeout,clearTimeout(u);try{return Je(u)}catch{try{return Je.call(null,u)}catch{return Je.call(this,u)}}}var et=[],Pn=!1,vr,Ni=-1;function Np(){!Pn||!vr||(Pn=!1,vr.length?et=vr.concat(et):Ni=-1,et.length&&Lu())}function Lu(){if(!Pn){var u=Iu(Np);Pn=!0;for(var r=et.length;r;){for(vr=et,et=[];++Ni<r;)vr&&vr[Ni].run();Ni=-1,r=et.length}vr=null,Pn=!1,Sp(u)}}Re.nextTick=function(u){var r=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)r[c-1]=arguments[c];et.push(new wu(u,r)),et.length===1&&!Pn&&Iu(Lu)};function wu(u,r){this.fun=u,this.array=r}wu.prototype.run=function(){this.fun.apply(null,this.array)},Re.title="browser",Re.browser=!0,Re.env={},Re.argv=[],Re.version="",Re.versions={};function tt(){}Re.on=tt,Re.addListener=tt,Re.once=tt,Re.off=tt,Re.removeListener=tt,Re.removeAllListeners=tt,Re.emit=tt,Re.prependListener=tt,Re.prependOnceListener=tt,Re.listeners=function(u){return[]},Re.binding=function(u){throw new Error("process.binding is not supported")},Re.cwd=function(){return"/"},Re.chdir=function(u){throw new Error("process.chdir is not supported")},Re.umask=function(){return 0};var bp=Du.exports;const Oe=Ep(bp);var Yi={exports:{}},eo={},to={},ro={},no,Fu;function io(){return Fu||(Fu=1,no=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},c=Symbol("test"),h=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(h)!=="[object Symbol]")return!1;var p=42;r[c]=p;for(var a in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var n=Object.getOwnPropertySymbols(r);if(n.length!==1||n[0]!==c||!Object.prototype.propertyIsEnumerable.call(r,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(r,c);if(i.value!==p||i.enumerable!==!0)return!1}return!0}),no}var oo,Bu;function bi(){if(Bu)return oo;Bu=1;var u=io();return oo=function(){return u()&&!!Symbol.toStringTag},oo}var so,ju;function uo(){return ju||(ju=1,so=Object),so}var ao,Mu;function Cp(){return Mu||(Mu=1,ao=Error),ao}var lo,qu;function Op(){return qu||(qu=1,lo=EvalError),lo}var co,ku;function Rp(){return ku||(ku=1,co=RangeError),co}var fo,Uu;function Pp(){return Uu||(Uu=1,fo=ReferenceError),fo}var ho,zu;function Hu(){return zu||(zu=1,ho=SyntaxError),ho}var po,Vu;function Mn(){return Vu||(Vu=1,po=TypeError),po}var xo,Wu;function Dp(){return Wu||(Wu=1,xo=URIError),xo}var yo,Gu;function Ip(){return Gu||(Gu=1,yo=Math.abs),yo}var _o,$u;function Lp(){return $u||($u=1,_o=Math.floor),_o}var mo,Xu;function wp(){return Xu||(Xu=1,mo=Math.max),mo}var go,Ku;function Fp(){return Ku||(Ku=1,go=Math.min),go}var vo,Qu;function Bp(){return Qu||(Qu=1,vo=Math.pow),vo}var Ao,Ju;function jp(){return Ju||(Ju=1,Ao=Math.round),Ao}var To,Zu;function Mp(){return Zu||(Zu=1,To=Number.isNaN||function(r){return r!==r}),To}var Eo,Yu;function qp(){if(Yu)return Eo;Yu=1;var u=Mp();return Eo=function(c){return u(c)||c===0?c:c<0?-1:1},Eo}var So,ea;function kp(){return ea||(ea=1,So=Object.getOwnPropertyDescriptor),So}var No,ta;function Dn(){if(ta)return No;ta=1;var u=kp();if(u)try{u([],"length")}catch{u=null}return No=u,No}var bo,ra;function Ci(){if(ra)return bo;ra=1;var u=Object.defineProperty||!1;if(u)try{u({},"a",{value:1})}catch{u=!1}return bo=u,bo}var Co,na;function Up(){if(na)return Co;na=1;var u=typeof Symbol<"u"&&Symbol,r=io();return Co=function(){return typeof u!="function"||typeof Symbol!="function"||typeof u("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:r()},Co}var Oo,ia;function oa(){return ia||(ia=1,Oo=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Oo}var Ro,sa;function ua(){if(sa)return Ro;sa=1;var u=uo();return Ro=u.getPrototypeOf||null,Ro}var Po,aa;function zp(){if(aa)return Po;aa=1;var u="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,c=Math.max,h="[object Function]",p=function(t,s){for(var e=[],o=0;o<t.length;o+=1)e[o]=t[o];for(var l=0;l<s.length;l+=1)e[l+t.length]=s[l];return e},a=function(t,s){for(var e=[],o=s,l=0;o<t.length;o+=1,l+=1)e[l]=t[o];return e},n=function(i,t){for(var s="",e=0;e<i.length;e+=1)s+=i[e],e+1<i.length&&(s+=t);return s};return Po=function(t){var s=this;if(typeof s!="function"||r.apply(s)!==h)throw new TypeError(u+s);for(var e=a(arguments,1),o,l=function(){if(this instanceof o){var m=s.apply(this,p(e,arguments));return Object(m)===m?m:this}return s.apply(t,p(e,arguments))},f=c(0,s.length-e.length),d=[],g=0;g<f;g++)d[g]="$"+g;if(o=Function("binder","return function ("+n(d,",")+"){ return binder.apply(this,arguments); }")(l),s.prototype){var x=function(){};x.prototype=s.prototype,o.prototype=new x,x.prototype=null}return o},Po}var Do,la;function qn(){if(la)return Do;la=1;var u=zp();return Do=Function.prototype.bind||u,Do}var Io,ca;function Lo(){return ca||(ca=1,Io=Function.prototype.call),Io}var wo,fa;function Fo(){return fa||(fa=1,wo=Function.prototype.apply),wo}var Bo,ha;function Hp(){return ha||(ha=1,Bo=typeof Reflect<"u"&&Reflect&&Reflect.apply),Bo}var jo,pa;function da(){if(pa)return jo;pa=1;var u=qn(),r=Fo(),c=Lo(),h=Hp();return jo=h||u.call(c,r),jo}var Mo,xa;function qo(){if(xa)return Mo;xa=1;var u=qn(),r=Mn(),c=Lo(),h=da();return Mo=function(a){if(a.length<1||typeof a[0]!="function")throw new r("a function is required");return h(u,c,a)},Mo}var ko,ya;function Vp(){if(ya)return ko;ya=1;var u=qo(),r=Dn(),c;try{c=[].__proto__===Array.prototype}catch(n){if(!n||typeof n!="object"||!("code"in n)||n.code!=="ERR_PROTO_ACCESS")throw n}var h=!!c&&r&&r(Object.prototype,"__proto__"),p=Object,a=p.getPrototypeOf;return ko=h&&typeof h.get=="function"?u([h.get]):typeof a=="function"?function(i){return a(i==null?i:p(i))}:!1,ko}var Uo,_a;function zo(){if(_a)return Uo;_a=1;var u=oa(),r=ua(),c=Vp();return Uo=u?function(p){return u(p)}:r?function(p){if(!p||typeof p!="object"&&typeof p!="function")throw new TypeError("getProto: not an object");return r(p)}:c?function(p){return c(p)}:null,Uo}var Ho,ma;function ga(){if(ma)return Ho;ma=1;var u=Function.prototype.call,r=Object.prototype.hasOwnProperty,c=qn();return Ho=c.call(u,r),Ho}var Vo,va;function Wo(){if(va)return Vo;va=1;var u,r=uo(),c=Cp(),h=Op(),p=Rp(),a=Pp(),n=Hu(),i=Mn(),t=Dp(),s=Ip(),e=Lp(),o=wp(),l=Fp(),f=Bp(),d=jp(),g=qp(),x=Function,m=function(I){try{return x('"use strict"; return ('+I+").constructor;")()}catch{}},y=Dn(),_=Ci(),v=function(){throw new i},N=y?(function(){try{return arguments.callee,v}catch{try{return y(arguments,"callee").get}catch{return v}}})():v,T=Up()(),b=zo(),O=ua(),D=oa(),k=Fo(),z=Lo(),U={},te=typeof Uint8Array>"u"||!b?u:b(Uint8Array),ie={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?u:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?u:ArrayBuffer,"%ArrayIteratorPrototype%":T&&b?b([][Symbol.iterator]()):u,"%AsyncFromSyncIteratorPrototype%":u,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":typeof Atomics>"u"?u:Atomics,"%BigInt%":typeof BigInt>"u"?u:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?u:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?u:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?u:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":c,"%eval%":eval,"%EvalError%":h,"%Float16Array%":typeof Float16Array>"u"?u:Float16Array,"%Float32Array%":typeof Float32Array>"u"?u:Float32Array,"%Float64Array%":typeof Float64Array>"u"?u:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?u:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":U,"%Int8Array%":typeof Int8Array>"u"?u:Int8Array,"%Int16Array%":typeof Int16Array>"u"?u:Int16Array,"%Int32Array%":typeof Int32Array>"u"?u:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&b?b(b([][Symbol.iterator]())):u,"%JSON%":typeof JSON=="object"?JSON:u,"%Map%":typeof Map>"u"?u:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!b?u:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":y,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?u:Promise,"%Proxy%":typeof Proxy>"u"?u:Proxy,"%RangeError%":p,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?u:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?u:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!b?u:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?u:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&b?b(""[Symbol.iterator]()):u,"%Symbol%":T?Symbol:u,"%SyntaxError%":n,"%ThrowTypeError%":N,"%TypedArray%":te,"%TypeError%":i,"%Uint8Array%":typeof Uint8Array>"u"?u:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?u:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?u:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?u:Uint32Array,"%URIError%":t,"%WeakMap%":typeof WeakMap>"u"?u:WeakMap,"%WeakRef%":typeof WeakRef>"u"?u:WeakRef,"%WeakSet%":typeof WeakSet>"u"?u:WeakSet,"%Function.prototype.call%":z,"%Function.prototype.apply%":k,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":O,"%Math.abs%":s,"%Math.floor%":e,"%Math.max%":o,"%Math.min%":l,"%Math.pow%":f,"%Math.round%":d,"%Math.sign%":g,"%Reflect.getPrototypeOf%":D};if(b)try{null.error}catch(I){var oe=b(b(I));ie["%Error.prototype%"]=oe}var he=function I(M){var W;if(M==="%AsyncFunction%")W=m("async function () {}");else if(M==="%GeneratorFunction%")W=m("function* () {}");else if(M==="%AsyncGeneratorFunction%")W=m("async function* () {}");else if(M==="%AsyncGenerator%"){var G=I("%AsyncGeneratorFunction%");G&&(W=G.prototype)}else if(M==="%AsyncIteratorPrototype%"){var L=I("%AsyncGenerator%");L&&b&&(W=b(L.prototype))}return ie[M]=W,W},Ee={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},le=qn(),Z=ga(),ee=le.call(z,Array.prototype.concat),J=le.call(k,Array.prototype.splice),F=le.call(z,String.prototype.replace),E=le.call(z,String.prototype.slice),A=le.call(z,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,P=function(M){var W=E(M,0,1),G=E(M,-1);if(W==="%"&&G!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(G==="%"&&W!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var L=[];return F(M,S,function(w,H,$,Y){L[L.length]=$?F(Y,C,"$1"):H||w}),L},R=function(M,W){var G=M,L;if(Z(Ee,G)&&(L=Ee[G],G="%"+L[0]+"%"),Z(ie,G)){var w=ie[G];if(w===U&&(w=he(G)),typeof w>"u"&&!W)throw new i("intrinsic "+M+" exists, but is not available. Please file an issue!");return{alias:L,name:G,value:w}}throw new n("intrinsic "+M+" does not exist!")};return Vo=function(M,W){if(typeof M!="string"||M.length===0)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof W!="boolean")throw new i('"allowMissing" argument must be a boolean');if(A(/^%?[^%]*%?$/,M)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G=P(M),L=G.length>0?G[0]:"",w=R("%"+L+"%",W),H=w.name,$=w.value,Y=!1,re=w.alias;re&&(L=re[0],J(G,ee([0,1],re)));for(var q=1,X=!0;q<G.length;q+=1){var se=G[q],me=E(se,0,1),ge=E(se,-1);if((me==='"'||me==="'"||me==="`"||ge==='"'||ge==="'"||ge==="`")&&me!==ge)throw new n("property names with quotes must have matching quotes");if((se==="constructor"||!X)&&(Y=!0),L+="."+se,H="%"+L+"%",Z(ie,H))$=ie[H];else if($!=null){if(!(se in $)){if(!W)throw new i("base intrinsic for "+M+" exists, but the property is not available.");return}if(y&&q+1>=G.length){var j=y($,se);X=!!j,X&&"get"in j&&!("originalValue"in j.get)?$=j.get:$=$[se]}else X=Z($,se),$=$[se];X&&!Y&&(ie[H]=$)}}return $},Vo}var Go,Aa;function In(){if(Aa)return Go;Aa=1;var u=Wo(),r=qo(),c=r([u("%String.prototype.indexOf%")]);return Go=function(p,a){var n=u(p,!!a);return typeof n=="function"&&c(p,".prototype.")>-1?r([n]):n},Go}var $o,Ta;function Wp(){if(Ta)return $o;Ta=1;var u=bi()(),r=In(),c=r("Object.prototype.toString"),h=function(i){return u&&i&&typeof i=="object"&&Symbol.toStringTag in i?!1:c(i)==="[object Arguments]"},p=function(i){return h(i)?!0:i!==null&&typeof i=="object"&&"length"in i&&typeof i.length=="number"&&i.length>=0&&c(i)!=="[object Array]"&&"callee"in i&&c(i.callee)==="[object Function]"},a=(function(){return h(arguments)})();return h.isLegacyArguments=p,$o=a?h:p,$o}var Xo,Ea;function Gp(){if(Ea)return Xo;Ea=1;var u=In(),r=bi()(),c=ga(),h=Dn(),p;if(r){var a=u("RegExp.prototype.exec"),n={},i=function(){throw n},t={toString:i,valueOf:i};typeof Symbol.toPrimitive=="symbol"&&(t[Symbol.toPrimitive]=i),p=function(l){if(!l||typeof l!="object")return!1;var f=h(l,"lastIndex"),d=f&&c(f,"value");if(!d)return!1;try{a(l,t)}catch(g){return g===n}}}else{var s=u("Object.prototype.toString"),e="[object RegExp]";p=function(l){return!l||typeof l!="object"&&typeof l!="function"?!1:s(l)===e}}return Xo=p,Xo}var Ko,Sa;function $p(){if(Sa)return Ko;Sa=1;var u=In(),r=Gp(),c=u("RegExp.prototype.exec"),h=Mn();return Ko=function(a){if(!r(a))throw new h("`regex` must be a RegExp");return function(i){return c(a,i)!==null}},Ko}var Qo,Na;function Xp(){if(Na)return Qo;Na=1;const u=(function*(){}).constructor;return Qo=()=>u,Qo}var Jo,ba;function Kp(){if(ba)return Jo;ba=1;var u=In(),r=$p(),c=r(/^\s*(?:function)?\*/),h=bi()(),p=zo(),a=u("Object.prototype.toString"),n=u("Function.prototype.toString"),i=Xp();return Jo=function(s){if(typeof s!="function")return!1;if(c(n(s)))return!0;if(!h){var e=a(s);return e==="[object GeneratorFunction]"}if(!p)return!1;var o=i();return o&&p(s)===o.prototype},Jo}var Zo,Ca;function Qp(){if(Ca)return Zo;Ca=1;var u=Function.prototype.toString,r=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,c,h;if(typeof r=="function"&&typeof Object.defineProperty=="function")try{c=Object.defineProperty({},"length",{get:function(){throw h}}),h={},r(function(){throw 42},null,c)}catch(y){y!==h&&(r=null)}else r=null;var p=/^\s*class\b/,a=function(_){try{var v=u.call(_);return p.test(v)}catch{return!1}},n=function(_){try{return a(_)?!1:(u.call(_),!0)}catch{return!1}},i=Object.prototype.toString,t="[object Object]",s="[object Function]",e="[object GeneratorFunction]",o="[object HTMLAllCollection]",l="[object HTML document.all class]",f="[object HTMLCollection]",d=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),x=function(){return!1};if(typeof document=="object"){var m=document.all;i.call(m)===i.call(document.all)&&(x=function(_){if((g||!_)&&(typeof _>"u"||typeof _=="object"))try{var v=i.call(_);return(v===o||v===l||v===f||v===t)&&_("")==null}catch{}return!1})}return Zo=r?function(_){if(x(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{r(_,null,c)}catch(v){if(v!==h)return!1}return!a(_)&&n(_)}:function(_){if(x(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(d)return n(_);if(a(_))return!1;var v=i.call(_);return v!==s&&v!==e&&!/^\[object HTML/.test(v)?!1:n(_)},Zo}var Yo,Oa;function Jp(){if(Oa)return Yo;Oa=1;var u=Qp(),r=Object.prototype.toString,c=Object.prototype.hasOwnProperty,h=function(t,s,e){for(var o=0,l=t.length;o<l;o++)c.call(t,o)&&(e==null?s(t[o],o,t):s.call(e,t[o],o,t))},p=function(t,s,e){for(var o=0,l=t.length;o<l;o++)e==null?s(t.charAt(o),o,t):s.call(e,t.charAt(o),o,t)},a=function(t,s,e){for(var o in t)c.call(t,o)&&(e==null?s(t[o],o,t):s.call(e,t[o],o,t))};function n(i){return r.call(i)==="[object Array]"}return Yo=function(t,s,e){if(!u(s))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=e),n(t)?h(t,s,o):typeof t=="string"?p(t,s,o):a(t,s,o)},Yo}var es,Ra;function Zp(){return Ra||(Ra=1,es=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),es}var ts,Pa;function Yp(){if(Pa)return ts;Pa=1;var u=Zp(),r=typeof globalThis>"u"?Rn:globalThis;return ts=function(){for(var h=[],p=0;p<u.length;p++)typeof r[u[p]]=="function"&&(h[h.length]=u[p]);return h},ts}var rs={exports:{}},ns,Da;function Ia(){if(Da)return ns;Da=1;var u=Ci(),r=Hu(),c=Mn(),h=Dn();return ns=function(a,n,i){if(!a||typeof a!="object"&&typeof a!="function")throw new c("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new c("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new c("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new c("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new c("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new c("`loose`, if provided, must be a boolean");var t=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,e=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,l=!!h&&h(a,n);if(u)u(a,n,{configurable:e===null&&l?l.configurable:!e,enumerable:t===null&&l?l.enumerable:!t,value:i,writable:s===null&&l?l.writable:!s});else if(o||!t&&!s&&!e)a[n]=i;else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ns}var is,La;function wa(){if(La)return is;La=1;var u=Ci(),r=function(){return!!u};return r.hasArrayLengthDefineBug=function(){if(!u)return null;try{return u([],"length",{value:1}).length!==1}catch{return!0}},is=r,is}var os,Fa;function e0(){if(Fa)return os;Fa=1;var u=Wo(),r=Ia(),c=wa()(),h=Dn(),p=Mn(),a=u("%Math.floor%");return os=function(i,t){if(typeof i!="function")throw new p("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||a(t)!==t)throw new p("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],e=!0,o=!0;if("length"in i&&h){var l=h(i,"length");l&&!l.configurable&&(e=!1),l&&!l.writable&&(o=!1)}return(e||o||!s)&&(c?r(i,"length",t,!0,!0):r(i,"length",t)),i},os}var ss,Ba;function t0(){if(Ba)return ss;Ba=1;var u=qn(),r=Fo(),c=da();return ss=function(){return c(u,r,arguments)},ss}var ja;function Oi(){return ja||(ja=1,(function(u){var r=e0(),c=Ci(),h=qo(),p=t0();u.exports=function(n){var i=h(arguments),t=n.length-(arguments.length-1);return r(i,1+(t>0?t:0),!0)},c?c(u.exports,"apply",{value:p}):u.exports.apply=p})(rs)),rs.exports}var us,Ma;function qa(){if(Ma)return us;Ma=1;var u=Jp(),r=Yp(),c=Oi(),h=In(),p=Dn(),a=zo(),n=h("Object.prototype.toString"),i=bi()(),t=typeof globalThis>"u"?Rn:globalThis,s=r(),e=h("String.prototype.slice"),o=h("Array.prototype.indexOf",!0)||function(x,m){for(var y=0;y<x.length;y+=1)if(x[y]===m)return y;return-1},l={__proto__:null};i&&p&&a?u(s,function(g){var x=new t[g];if(Symbol.toStringTag in x&&a){var m=a(x),y=p(m,Symbol.toStringTag);if(!y&&m){var _=a(m);y=p(_,Symbol.toStringTag)}l["$"+g]=c(y.get)}}):u(s,function(g){var x=new t[g],m=x.slice||x.set;m&&(l["$"+g]=c(m))});var f=function(x){var m=!1;return u(l,function(y,_){if(!m)try{"$"+y(x)===_&&(m=e(_,1))}catch{}}),m},d=function(x){var m=!1;return u(l,function(y,_){if(!m)try{y(x),m=e(_,1)}catch{}}),m};return us=function(x){if(!x||typeof x!="object")return!1;if(!i){var m=e(n(x),8,-1);return o(s,m)>-1?m:m!=="Object"?!1:d(x)}return p?f(x):null},us}var as,ka;function r0(){if(ka)return as;ka=1;var u=qa();return as=function(c){return!!u(c)},as}var Ua;function n0(){return Ua||(Ua=1,(function(u){var r=Wp(),c=Kp(),h=qa(),p=r0();function a(q){return q.call.bind(q)}var n=typeof BigInt<"u",i=typeof Symbol<"u",t=a(Object.prototype.toString),s=a(Number.prototype.valueOf),e=a(String.prototype.valueOf),o=a(Boolean.prototype.valueOf);if(n)var l=a(BigInt.prototype.valueOf);if(i)var f=a(Symbol.prototype.valueOf);function d(q,X){if(typeof q!="object")return!1;try{return X(q),!0}catch{return!1}}u.isArgumentsObject=r,u.isGeneratorFunction=c,u.isTypedArray=p;function g(q){return typeof Promise<"u"&&q instanceof Promise||q!==null&&typeof q=="object"&&typeof q.then=="function"&&typeof q.catch=="function"}u.isPromise=g;function x(q){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(q):p(q)||E(q)}u.isArrayBufferView=x;function m(q){return h(q)==="Uint8Array"}u.isUint8Array=m;function y(q){return h(q)==="Uint8ClampedArray"}u.isUint8ClampedArray=y;function _(q){return h(q)==="Uint16Array"}u.isUint16Array=_;function v(q){return h(q)==="Uint32Array"}u.isUint32Array=v;function N(q){return h(q)==="Int8Array"}u.isInt8Array=N;function T(q){return h(q)==="Int16Array"}u.isInt16Array=T;function b(q){return h(q)==="Int32Array"}u.isInt32Array=b;function O(q){return h(q)==="Float32Array"}u.isFloat32Array=O;function D(q){return h(q)==="Float64Array"}u.isFloat64Array=D;function k(q){return h(q)==="BigInt64Array"}u.isBigInt64Array=k;function z(q){return h(q)==="BigUint64Array"}u.isBigUint64Array=z;function U(q){return t(q)==="[object Map]"}U.working=typeof Map<"u"&&U(new Map);function te(q){return typeof Map>"u"?!1:U.working?U(q):q instanceof Map}u.isMap=te;function ie(q){return t(q)==="[object Set]"}ie.working=typeof Set<"u"&&ie(new Set);function oe(q){return typeof Set>"u"?!1:ie.working?ie(q):q instanceof Set}u.isSet=oe;function he(q){return t(q)==="[object WeakMap]"}he.working=typeof WeakMap<"u"&&he(new WeakMap);function Ee(q){return typeof WeakMap>"u"?!1:he.working?he(q):q instanceof WeakMap}u.isWeakMap=Ee;function le(q){return t(q)==="[object WeakSet]"}le.working=typeof WeakSet<"u"&&le(new WeakSet);function Z(q){return le(q)}u.isWeakSet=Z;function ee(q){return t(q)==="[object ArrayBuffer]"}ee.working=typeof ArrayBuffer<"u"&&ee(new ArrayBuffer);function J(q){return typeof ArrayBuffer>"u"?!1:ee.working?ee(q):q instanceof ArrayBuffer}u.isArrayBuffer=J;function F(q){return t(q)==="[object DataView]"}F.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&F(new DataView(new ArrayBuffer(1),0,1));function E(q){return typeof DataView>"u"?!1:F.working?F(q):q instanceof DataView}u.isDataView=E;var A=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function S(q){return t(q)==="[object SharedArrayBuffer]"}function C(q){return typeof A>"u"?!1:(typeof S.working>"u"&&(S.working=S(new A)),S.working?S(q):q instanceof A)}u.isSharedArrayBuffer=C;function P(q){return t(q)==="[object AsyncFunction]"}u.isAsyncFunction=P;function R(q){return t(q)==="[object Map Iterator]"}u.isMapIterator=R;function I(q){return t(q)==="[object Set Iterator]"}u.isSetIterator=I;function M(q){return t(q)==="[object Generator]"}u.isGeneratorObject=M;function W(q){return t(q)==="[object WebAssembly.Module]"}u.isWebAssemblyCompiledModule=W;function G(q){return d(q,s)}u.isNumberObject=G;function L(q){return d(q,e)}u.isStringObject=L;function w(q){return d(q,o)}u.isBooleanObject=w;function H(q){return n&&d(q,l)}u.isBigIntObject=H;function $(q){return i&&d(q,f)}u.isSymbolObject=$;function Y(q){return G(q)||L(q)||w(q)||H(q)||$(q)}u.isBoxedPrimitive=Y;function re(q){return typeof Uint8Array<"u"&&(J(q)||C(q))}u.isAnyArrayBuffer=re,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(q){Object.defineProperty(u,q,{enumerable:!1,value:function(){throw new Error(q+" is not supported in userland")}})})})(ro)),ro}var ls,za;function i0(){return za||(za=1,ls=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}),ls}var Ri={exports:{}},Ha;function o0(){return Ha||(Ha=1,typeof Object.create=="function"?Ri.exports=function(r,c){c&&(r.super_=c,r.prototype=Object.create(c.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Ri.exports=function(r,c){if(c){r.super_=c;var h=function(){};h.prototype=c.prototype,r.prototype=new h,r.prototype.constructor=r}}),Ri.exports}var Va;function Ln(){return Va||(Va=1,(function(u){var r=Object.getOwnPropertyDescriptors||function(E){for(var A=Object.keys(E),S={},C=0;C<A.length;C++)S[A[C]]=Object.getOwnPropertyDescriptor(E,A[C]);return S},c=/%[sdj%]/g;u.format=function(F){if(!N(F)){for(var E=[],A=0;A<arguments.length;A++)E.push(n(arguments[A]));return E.join(" ")}for(var A=1,S=arguments,C=S.length,P=String(F).replace(c,function(I){if(I==="%%")return"%";if(A>=C)return I;switch(I){case"%s":return String(S[A++]);case"%d":return Number(S[A++]);case"%j":try{return JSON.stringify(S[A++])}catch{return"[Circular]"}default:return I}}),R=S[A];A<C;R=S[++A])y(R)||!D(R)?P+=" "+R:P+=" "+n(R);return P},u.deprecate=function(F,E){if(typeof Oe<"u"&&Oe.noDeprecation===!0)return F;if(typeof Oe>"u")return function(){return u.deprecate(F,E).apply(this,arguments)};var A=!1;function S(){if(!A){if(Oe.throwDeprecation)throw new Error(E);Oe.traceDeprecation?console.trace(E):console.error(E),A=!0}return F.apply(this,arguments)}return S};var h={},p=/^$/;if(Oe.env.NODE_DEBUG){var a=Oe.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),p=new RegExp("^"+a+"$","i")}u.debuglog=function(F){if(F=F.toUpperCase(),!h[F])if(p.test(F)){var E=Oe.pid;h[F]=function(){var A=u.format.apply(u,arguments);console.error("%s %d: %s",F,E,A)}}else h[F]=function(){};return h[F]};function n(F,E){var A={seen:[],stylize:t};return arguments.length>=3&&(A.depth=arguments[2]),arguments.length>=4&&(A.colors=arguments[3]),m(E)?A.showHidden=E:E&&u._extend(A,E),b(A.showHidden)&&(A.showHidden=!1),b(A.depth)&&(A.depth=2),b(A.colors)&&(A.colors=!1),b(A.customInspect)&&(A.customInspect=!0),A.colors&&(A.stylize=i),e(A,F,A.depth)}u.inspect=n,n.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},n.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(F,E){var A=n.styles[E];return A?"\x1B["+n.colors[A][0]+"m"+F+"\x1B["+n.colors[A][1]+"m":F}function t(F,E){return F}function s(F){var E={};return F.forEach(function(A,S){E[A]=!0}),E}function e(F,E,A){if(F.customInspect&&E&&U(E.inspect)&&E.inspect!==u.inspect&&!(E.constructor&&E.constructor.prototype===E)){var S=E.inspect(A,F);return N(S)||(S=e(F,S,A)),S}var C=o(F,E);if(C)return C;var P=Object.keys(E),R=s(P);if(F.showHidden&&(P=Object.getOwnPropertyNames(E)),z(E)&&(P.indexOf("message")>=0||P.indexOf("description")>=0))return l(E);if(P.length===0){if(U(E)){var I=E.name?": "+E.name:"";return F.stylize("[Function"+I+"]","special")}if(O(E))return F.stylize(RegExp.prototype.toString.call(E),"regexp");if(k(E))return F.stylize(Date.prototype.toString.call(E),"date");if(z(E))return l(E)}var M="",W=!1,G=["{","}"];if(x(E)&&(W=!0,G=["[","]"]),U(E)){var L=E.name?": "+E.name:"";M=" [Function"+L+"]"}if(O(E)&&(M=" "+RegExp.prototype.toString.call(E)),k(E)&&(M=" "+Date.prototype.toUTCString.call(E)),z(E)&&(M=" "+l(E)),P.length===0&&(!W||E.length==0))return G[0]+M+G[1];if(A<0)return O(E)?F.stylize(RegExp.prototype.toString.call(E),"regexp"):F.stylize("[Object]","special");F.seen.push(E);var w;return W?w=f(F,E,A,R,P):w=P.map(function(H){return d(F,E,A,R,H,W)}),F.seen.pop(),g(w,M,G)}function o(F,E){if(b(E))return F.stylize("undefined","undefined");if(N(E)){var A="'"+JSON.stringify(E).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return F.stylize(A,"string")}if(v(E))return F.stylize(""+E,"number");if(m(E))return F.stylize(""+E,"boolean");if(y(E))return F.stylize("null","null")}function l(F){return"["+Error.prototype.toString.call(F)+"]"}function f(F,E,A,S,C){for(var P=[],R=0,I=E.length;R<I;++R)le(E,String(R))?P.push(d(F,E,A,S,String(R),!0)):P.push("");return C.forEach(function(M){M.match(/^\d+$/)||P.push(d(F,E,A,S,M,!0))}),P}function d(F,E,A,S,C,P){var R,I,M;if(M=Object.getOwnPropertyDescriptor(E,C)||{value:E[C]},M.get?M.set?I=F.stylize("[Getter/Setter]","special"):I=F.stylize("[Getter]","special"):M.set&&(I=F.stylize("[Setter]","special")),le(S,C)||(R="["+C+"]"),I||(F.seen.indexOf(M.value)<0?(y(A)?I=e(F,M.value,null):I=e(F,M.value,A-1),I.indexOf(`
|
|
2
2
|
`)>-1&&(P?I=I.split(`
|
|
3
3
|
`).map(function(W){return" "+W}).join(`
|
|
4
4
|
`).slice(2):I=`
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
`))):I=F.stylize("[Circular]","special")),b(R)){if(P&&C.match(/^\d+$/))return I;R=JSON.stringify(""+C),R.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(R=R.slice(1,-1),R=F.stylize(R,"name")):(R=R.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),R=F.stylize(R,"string"))}return R+": "+I}function g(F,E,A){var S=F.reduce(function(C,P){return P.indexOf(`
|
|
8
8
|
`)>=0,C+P.replace(/\u001b\[\d\d?m/g,"").length+1},0);return S>60?A[0]+(E===""?"":E+`
|
|
9
9
|
`)+" "+F.join(`,
|
|
10
|
-
`)+" "+A[1]:A[0]+E+" "+F.join(", ")+" "+A[1]}u.types=Yp();function x(F){return Array.isArray(F)}u.isArray=x;function m(F){return typeof F=="boolean"}u.isBoolean=m;function y(F){return F===null}u.isNull=y;function _(F){return F==null}u.isNullOrUndefined=_;function v(F){return typeof F=="number"}u.isNumber=v;function N(F){return typeof F=="string"}u.isString=N;function T(F){return typeof F=="symbol"}u.isSymbol=T;function b(F){return F===void 0}u.isUndefined=b;function O(F){return D(F)&&ie(F)==="[object RegExp]"}u.isRegExp=O,u.types.isRegExp=O;function D(F){return typeof F=="object"&&F!==null}u.isObject=D;function k(F){return D(F)&&ie(F)==="[object Date]"}u.isDate=k,u.types.isDate=k;function z(F){return D(F)&&(ie(F)==="[object Error]"||F instanceof Error)}u.isError=z,u.types.isNativeError=z;function U(F){return typeof F=="function"}u.isFunction=U;function te(F){return F===null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||typeof F=="symbol"||typeof F>"u"}u.isPrimitive=te,u.isBuffer=e0();function ie(F){return Object.prototype.toString.call(F)}function oe(F){return F<10?"0"+F.toString(10):F.toString(10)}var he=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ee(){var F=new Date,E=[oe(F.getHours()),oe(F.getMinutes()),oe(F.getSeconds())].join(":");return[F.getDate(),he[F.getMonth()],E].join(" ")}u.log=function(){console.log("%s - %s",Ee(),u.format.apply(u,arguments))},u.inherits=t0(),u._extend=function(F,E){if(!E||!D(E))return F;for(var A=Object.keys(E),S=A.length;S--;)F[A[S]]=E[A[S]];return F};function le(F,E){return Object.prototype.hasOwnProperty.call(F,E)}var Z=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;u.promisify=function(E){if(typeof E!="function")throw new TypeError('The "original" argument must be of type Function');if(Z&&E[Z]){var A=E[Z];if(typeof A!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(A,Z,{value:A,enumerable:!1,writable:!1,configurable:!0}),A}function A(){for(var S,C,P=new Promise(function(M,W){S=M,C=W}),R=[],I=0;I<arguments.length;I++)R.push(arguments[I]);R.push(function(M,W){M?C(M):S(W)});try{E.apply(this,R)}catch(M){C(M)}return P}return Object.setPrototypeOf(A,Object.getPrototypeOf(E)),Z&&Object.defineProperty(A,Z,{value:A,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(A,i(E))},u.promisify.custom=Z;function ee(F,E){if(!F){var A=new Error("Promise was rejected with a falsy value");A.reason=F,F=A}return E(F)}function J(F){if(typeof F!="function")throw new TypeError('The "original" argument must be of type Function');function E(){for(var A=[],S=0;S<arguments.length;S++)A.push(arguments[S]);var C=A.pop();if(typeof C!="function")throw new TypeError("The last argument must be of type Function");var P=this,R=function(){return C.apply(P,arguments)};F.apply(this,A).then(function(I){be.nextTick(R.bind(null,null,I))},function(I){be.nextTick(ee.bind(null,I,R))})}return Object.setPrototypeOf(E,Object.getPrototypeOf(F)),Object.defineProperties(E,i(F)),E}u.callbackify=J})(to)),to}var Ha;function Va(){if(Ha)return eo;Ha=1;function u(y){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},u(y)}function i(y,_,v){return Object.defineProperty(y,"prototype",{writable:!1}),y}function c(y,_){if(!(y instanceof _))throw new TypeError("Cannot call a class as a function")}function h(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),_&&p(y,_)}function p(y,_){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,T){return N.__proto__=T,N},p(y,_)}function a(y){var _=t();return function(){var N=s(y),T;if(_){var b=s(this).constructor;T=Reflect.construct(N,arguments,b)}else T=N.apply(this,arguments);return r(this,T)}}function r(y,_){if(_&&(u(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(y)}function n(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function s(y){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(v){return v.__proto__||Object.getPrototypeOf(v)},s(y)}var e={},o,l;function f(y,_,v){v||(v=Error);function N(b,O,D){return typeof _=="string"?_:_(b,O,D)}var T=(function(b){h(D,b);var O=a(D);function D(k,z,U){var te;return c(this,D),te=O.call(this,N(k,z,U)),te.code=y,te}return i(D)})(v);e[y]=T}function d(y,_){if(Array.isArray(y)){var v=y.length;return y=y.map(function(N){return String(N)}),v>2?"one of ".concat(_," ").concat(y.slice(0,v-1).join(", "),", or ")+y[v-1]:v===2?"one of ".concat(_," ").concat(y[0]," or ").concat(y[1]):"of ".concat(_," ").concat(y[0])}else return"of ".concat(_," ").concat(String(y))}function g(y,_,v){return y.substr(0,_.length)===_}function x(y,_,v){return(v===void 0||v>y.length)&&(v=y.length),y.substring(v-_.length,v)===_}function m(y,_,v){return typeof v!="number"&&(v=0),v+_.length>y.length?!1:y.indexOf(_,v)!==-1}return f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",function(y,_,v){o===void 0&&(o=Fe()),o(typeof y=="string","'name' must be a string");var N;typeof _=="string"&&g(_,"not ")?(N="must not be",_=_.replace(/^not /,"")):N="must be";var T;if(x(y," argument"))T="The ".concat(y," ").concat(N," ").concat(d(_,"type"));else{var b=m(y,".")?"property":"argument";T='The "'.concat(y,'" ').concat(b," ").concat(N," ").concat(d(_,"type"))}return T+=". Received type ".concat(u(v)),T},TypeError),f("ERR_INVALID_ARG_VALUE",function(y,_){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";l===void 0&&(l=wn());var N=l.inspect(_);return N.length>128&&(N="".concat(N.slice(0,128),"...")),"The argument '".concat(y,"' ").concat(v,". Received ").concat(N)},TypeError),f("ERR_INVALID_RETURN_VALUE",function(y,_,v){var N;return v&&v.constructor&&v.constructor.name?N="instance of ".concat(v.constructor.name):N="type ".concat(u(v)),"Expected ".concat(y,' to be returned from the "').concat(_,'"')+" function but got ".concat(N,".")},TypeError),f("ERR_MISSING_ARGS",function(){for(var y=arguments.length,_=new Array(y),v=0;v<y;v++)_[v]=arguments[v];o===void 0&&(o=Fe()),o(_.length>0,"At least one arg needs to be specified");var N="The ",T=_.length;switch(_=_.map(function(b){return'"'.concat(b,'"')}),T){case 1:N+="".concat(_[0]," argument");break;case 2:N+="".concat(_[0]," and ").concat(_[1]," arguments");break;default:N+=_.slice(0,T-1).join(", "),N+=", and ".concat(_[T-1]," arguments");break}return"".concat(N," must be specified")},TypeError),eo.codes=e,eo}var cs,Wa;function r0(){if(Wa)return cs;Wa=1;function u(Z,ee){var J=Object.keys(Z);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(Z);ee&&(F=F.filter(function(E){return Object.getOwnPropertyDescriptor(Z,E).enumerable})),J.push.apply(J,F)}return J}function i(Z){for(var ee=1;ee<arguments.length;ee++){var J=arguments[ee]!=null?arguments[ee]:{};ee%2?u(Object(J),!0).forEach(function(F){c(Z,F,J[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(J)):u(Object(J)).forEach(function(F){Object.defineProperty(Z,F,Object.getOwnPropertyDescriptor(J,F))})}return Z}function c(Z,ee,J){return ee=r(ee),ee in Z?Object.defineProperty(Z,ee,{value:J,enumerable:!0,configurable:!0,writable:!0}):Z[ee]=J,Z}function h(Z,ee){if(!(Z instanceof ee))throw new TypeError("Cannot call a class as a function")}function p(Z,ee){for(var J=0;J<ee.length;J++){var F=ee[J];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(Z,r(F.key),F)}}function a(Z,ee,J){return ee&&p(Z.prototype,ee),Object.defineProperty(Z,"prototype",{writable:!1}),Z}function r(Z){var ee=n(Z,"string");return y(ee)==="symbol"?ee:String(ee)}function n(Z,ee){if(y(Z)!=="object"||Z===null)return Z;var J=Z[Symbol.toPrimitive];if(J!==void 0){var F=J.call(Z,ee);if(y(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}function t(Z,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function");Z.prototype=Object.create(ee&&ee.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),Object.defineProperty(Z,"prototype",{writable:!1}),ee&&x(Z,ee)}function s(Z){var ee=d();return function(){var F=m(Z),E;if(ee){var A=m(this).constructor;E=Reflect.construct(F,arguments,A)}else E=F.apply(this,arguments);return e(this,E)}}function e(Z,ee){if(ee&&(y(ee)==="object"||typeof ee=="function"))return ee;if(ee!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o(Z)}function o(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function l(Z){var ee=typeof Map=="function"?new Map:void 0;return l=function(F){if(F===null||!g(F))return F;if(typeof F!="function")throw new TypeError("Super expression must either be null or a function");if(typeof ee<"u"){if(ee.has(F))return ee.get(F);ee.set(F,E)}function E(){return f(F,arguments,m(this).constructor)}return E.prototype=Object.create(F.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),x(E,F)},l(Z)}function f(Z,ee,J){return d()?f=Reflect.construct.bind():f=function(E,A,S){var C=[null];C.push.apply(C,A);var P=Function.bind.apply(E,C),R=new P;return S&&x(R,S.prototype),R},f.apply(null,arguments)}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g(Z){return Function.toString.call(Z).indexOf("[native code]")!==-1}function x(Z,ee){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,E){return F.__proto__=E,F},x(Z,ee)}function m(Z){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},m(Z)}function y(Z){"@babel/helpers - typeof";return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ee){return typeof ee}:function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},y(Z)}var _=wn(),v=_.inspect,N=Va(),T=N.codes.ERR_INVALID_ARG_TYPE;function b(Z,ee,J){return(J===void 0||J>Z.length)&&(J=Z.length),Z.substring(J-ee.length,J)===ee}function O(Z,ee){if(ee=Math.floor(ee),Z.length==0||ee==0)return"";var J=Z.length*ee;for(ee=Math.floor(Math.log(ee)/Math.log(2));ee;)Z+=Z,ee--;return Z+=Z.substring(0,J-Z.length),Z}var D="",k="",z="",U="",te={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ie=10;function oe(Z){var ee=Object.keys(Z),J=Object.create(Object.getPrototypeOf(Z));return ee.forEach(function(F){J[F]=Z[F]}),Object.defineProperty(J,"message",{value:Z.message}),J}function he(Z){return v(Z,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ee(Z,ee,J){var F="",E="",A=0,S="",C=!1,P=he(Z),R=P.split(`
|
|
10
|
+
`)+" "+A[1]:A[0]+E+" "+F.join(", ")+" "+A[1]}u.types=n0();function x(F){return Array.isArray(F)}u.isArray=x;function m(F){return typeof F=="boolean"}u.isBoolean=m;function y(F){return F===null}u.isNull=y;function _(F){return F==null}u.isNullOrUndefined=_;function v(F){return typeof F=="number"}u.isNumber=v;function N(F){return typeof F=="string"}u.isString=N;function T(F){return typeof F=="symbol"}u.isSymbol=T;function b(F){return F===void 0}u.isUndefined=b;function O(F){return D(F)&&ie(F)==="[object RegExp]"}u.isRegExp=O,u.types.isRegExp=O;function D(F){return typeof F=="object"&&F!==null}u.isObject=D;function k(F){return D(F)&&ie(F)==="[object Date]"}u.isDate=k,u.types.isDate=k;function z(F){return D(F)&&(ie(F)==="[object Error]"||F instanceof Error)}u.isError=z,u.types.isNativeError=z;function U(F){return typeof F=="function"}u.isFunction=U;function te(F){return F===null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||typeof F=="symbol"||typeof F>"u"}u.isPrimitive=te,u.isBuffer=i0();function ie(F){return Object.prototype.toString.call(F)}function oe(F){return F<10?"0"+F.toString(10):F.toString(10)}var he=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ee(){var F=new Date,E=[oe(F.getHours()),oe(F.getMinutes()),oe(F.getSeconds())].join(":");return[F.getDate(),he[F.getMonth()],E].join(" ")}u.log=function(){console.log("%s - %s",Ee(),u.format.apply(u,arguments))},u.inherits=o0(),u._extend=function(F,E){if(!E||!D(E))return F;for(var A=Object.keys(E),S=A.length;S--;)F[A[S]]=E[A[S]];return F};function le(F,E){return Object.prototype.hasOwnProperty.call(F,E)}var Z=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;u.promisify=function(E){if(typeof E!="function")throw new TypeError('The "original" argument must be of type Function');if(Z&&E[Z]){var A=E[Z];if(typeof A!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(A,Z,{value:A,enumerable:!1,writable:!1,configurable:!0}),A}function A(){for(var S,C,P=new Promise(function(M,W){S=M,C=W}),R=[],I=0;I<arguments.length;I++)R.push(arguments[I]);R.push(function(M,W){M?C(M):S(W)});try{E.apply(this,R)}catch(M){C(M)}return P}return Object.setPrototypeOf(A,Object.getPrototypeOf(E)),Z&&Object.defineProperty(A,Z,{value:A,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(A,r(E))},u.promisify.custom=Z;function ee(F,E){if(!F){var A=new Error("Promise was rejected with a falsy value");A.reason=F,F=A}return E(F)}function J(F){if(typeof F!="function")throw new TypeError('The "original" argument must be of type Function');function E(){for(var A=[],S=0;S<arguments.length;S++)A.push(arguments[S]);var C=A.pop();if(typeof C!="function")throw new TypeError("The last argument must be of type Function");var P=this,R=function(){return C.apply(P,arguments)};F.apply(this,A).then(function(I){Oe.nextTick(R.bind(null,null,I))},function(I){Oe.nextTick(ee.bind(null,I,R))})}return Object.setPrototypeOf(E,Object.getPrototypeOf(F)),Object.defineProperties(E,r(F)),E}u.callbackify=J})(to)),to}var Wa;function Ga(){if(Wa)return eo;Wa=1;function u(y){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},u(y)}function r(y,_,v){return Object.defineProperty(y,"prototype",{writable:!1}),y}function c(y,_){if(!(y instanceof _))throw new TypeError("Cannot call a class as a function")}function h(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),_&&p(y,_)}function p(y,_){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,T){return N.__proto__=T,N},p(y,_)}function a(y){var _=t();return function(){var N=s(y),T;if(_){var b=s(this).constructor;T=Reflect.construct(N,arguments,b)}else T=N.apply(this,arguments);return n(this,T)}}function n(y,_){if(_&&(u(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return i(y)}function i(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function s(y){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(v){return v.__proto__||Object.getPrototypeOf(v)},s(y)}var e={},o,l;function f(y,_,v){v||(v=Error);function N(b,O,D){return typeof _=="string"?_:_(b,O,D)}var T=(function(b){h(D,b);var O=a(D);function D(k,z,U){var te;return c(this,D),te=O.call(this,N(k,z,U)),te.code=y,te}return r(D)})(v);e[y]=T}function d(y,_){if(Array.isArray(y)){var v=y.length;return y=y.map(function(N){return String(N)}),v>2?"one of ".concat(_," ").concat(y.slice(0,v-1).join(", "),", or ")+y[v-1]:v===2?"one of ".concat(_," ").concat(y[0]," or ").concat(y[1]):"of ".concat(_," ").concat(y[0])}else return"of ".concat(_," ").concat(String(y))}function g(y,_,v){return y.substr(0,_.length)===_}function x(y,_,v){return(v===void 0||v>y.length)&&(v=y.length),y.substring(v-_.length,v)===_}function m(y,_,v){return typeof v!="number"&&(v=0),v+_.length>y.length?!1:y.indexOf(_,v)!==-1}return f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",function(y,_,v){o===void 0&&(o=Fe()),o(typeof y=="string","'name' must be a string");var N;typeof _=="string"&&g(_,"not ")?(N="must not be",_=_.replace(/^not /,"")):N="must be";var T;if(x(y," argument"))T="The ".concat(y," ").concat(N," ").concat(d(_,"type"));else{var b=m(y,".")?"property":"argument";T='The "'.concat(y,'" ').concat(b," ").concat(N," ").concat(d(_,"type"))}return T+=". Received type ".concat(u(v)),T},TypeError),f("ERR_INVALID_ARG_VALUE",function(y,_){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";l===void 0&&(l=Ln());var N=l.inspect(_);return N.length>128&&(N="".concat(N.slice(0,128),"...")),"The argument '".concat(y,"' ").concat(v,". Received ").concat(N)},TypeError),f("ERR_INVALID_RETURN_VALUE",function(y,_,v){var N;return v&&v.constructor&&v.constructor.name?N="instance of ".concat(v.constructor.name):N="type ".concat(u(v)),"Expected ".concat(y,' to be returned from the "').concat(_,'"')+" function but got ".concat(N,".")},TypeError),f("ERR_MISSING_ARGS",function(){for(var y=arguments.length,_=new Array(y),v=0;v<y;v++)_[v]=arguments[v];o===void 0&&(o=Fe()),o(_.length>0,"At least one arg needs to be specified");var N="The ",T=_.length;switch(_=_.map(function(b){return'"'.concat(b,'"')}),T){case 1:N+="".concat(_[0]," argument");break;case 2:N+="".concat(_[0]," and ").concat(_[1]," arguments");break;default:N+=_.slice(0,T-1).join(", "),N+=", and ".concat(_[T-1]," arguments");break}return"".concat(N," must be specified")},TypeError),eo.codes=e,eo}var cs,$a;function s0(){if($a)return cs;$a=1;function u(Z,ee){var J=Object.keys(Z);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(Z);ee&&(F=F.filter(function(E){return Object.getOwnPropertyDescriptor(Z,E).enumerable})),J.push.apply(J,F)}return J}function r(Z){for(var ee=1;ee<arguments.length;ee++){var J=arguments[ee]!=null?arguments[ee]:{};ee%2?u(Object(J),!0).forEach(function(F){c(Z,F,J[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(J)):u(Object(J)).forEach(function(F){Object.defineProperty(Z,F,Object.getOwnPropertyDescriptor(J,F))})}return Z}function c(Z,ee,J){return ee=n(ee),ee in Z?Object.defineProperty(Z,ee,{value:J,enumerable:!0,configurable:!0,writable:!0}):Z[ee]=J,Z}function h(Z,ee){if(!(Z instanceof ee))throw new TypeError("Cannot call a class as a function")}function p(Z,ee){for(var J=0;J<ee.length;J++){var F=ee[J];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(Z,n(F.key),F)}}function a(Z,ee,J){return ee&&p(Z.prototype,ee),Object.defineProperty(Z,"prototype",{writable:!1}),Z}function n(Z){var ee=i(Z,"string");return y(ee)==="symbol"?ee:String(ee)}function i(Z,ee){if(y(Z)!=="object"||Z===null)return Z;var J=Z[Symbol.toPrimitive];if(J!==void 0){var F=J.call(Z,ee);if(y(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}function t(Z,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function");Z.prototype=Object.create(ee&&ee.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),Object.defineProperty(Z,"prototype",{writable:!1}),ee&&x(Z,ee)}function s(Z){var ee=d();return function(){var F=m(Z),E;if(ee){var A=m(this).constructor;E=Reflect.construct(F,arguments,A)}else E=F.apply(this,arguments);return e(this,E)}}function e(Z,ee){if(ee&&(y(ee)==="object"||typeof ee=="function"))return ee;if(ee!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o(Z)}function o(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function l(Z){var ee=typeof Map=="function"?new Map:void 0;return l=function(F){if(F===null||!g(F))return F;if(typeof F!="function")throw new TypeError("Super expression must either be null or a function");if(typeof ee<"u"){if(ee.has(F))return ee.get(F);ee.set(F,E)}function E(){return f(F,arguments,m(this).constructor)}return E.prototype=Object.create(F.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),x(E,F)},l(Z)}function f(Z,ee,J){return d()?f=Reflect.construct.bind():f=function(E,A,S){var C=[null];C.push.apply(C,A);var P=Function.bind.apply(E,C),R=new P;return S&&x(R,S.prototype),R},f.apply(null,arguments)}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g(Z){return Function.toString.call(Z).indexOf("[native code]")!==-1}function x(Z,ee){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,E){return F.__proto__=E,F},x(Z,ee)}function m(Z){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},m(Z)}function y(Z){"@babel/helpers - typeof";return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ee){return typeof ee}:function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},y(Z)}var _=Ln(),v=_.inspect,N=Ga(),T=N.codes.ERR_INVALID_ARG_TYPE;function b(Z,ee,J){return(J===void 0||J>Z.length)&&(J=Z.length),Z.substring(J-ee.length,J)===ee}function O(Z,ee){if(ee=Math.floor(ee),Z.length==0||ee==0)return"";var J=Z.length*ee;for(ee=Math.floor(Math.log(ee)/Math.log(2));ee;)Z+=Z,ee--;return Z+=Z.substring(0,J-Z.length),Z}var D="",k="",z="",U="",te={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ie=10;function oe(Z){var ee=Object.keys(Z),J=Object.create(Object.getPrototypeOf(Z));return ee.forEach(function(F){J[F]=Z[F]}),Object.defineProperty(J,"message",{value:Z.message}),J}function he(Z){return v(Z,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ee(Z,ee,J){var F="",E="",A=0,S="",C=!1,P=he(Z),R=P.split(`
|
|
11
11
|
`),I=he(ee).split(`
|
|
12
12
|
`),M=0,W="";if(J==="strictEqual"&&y(Z)==="object"&&y(ee)==="object"&&Z!==null&&ee!==null&&(J="strictEqualObject"),R.length===1&&I.length===1&&R[0]!==I[0]){var G=R[0].length+I[0].length;if(G<=ie){if((y(Z)!=="object"||Z===null)&&(y(ee)!=="object"||ee===null)&&(Z!==0||ee!==0))return"".concat(te[J],`
|
|
13
13
|
|
|
14
14
|
`)+"".concat(R[0]," !== ").concat(I[0],`
|
|
15
|
-
`)}else if(J!=="strictEqualObject"){var
|
|
16
|
-
`.concat(O(" ",M),"^"),M=0)}}}for(var
|
|
17
|
-
`.concat(
|
|
15
|
+
`)}else if(J!=="strictEqualObject"){var L=Oe.stderr&&Oe.stderr.isTTY?Oe.stderr.columns:80;if(G<L){for(;R[0][M]===I[0][M];)M++;M>2&&(W=`
|
|
16
|
+
`.concat(O(" ",M),"^"),M=0)}}}for(var w=R[R.length-1],H=I[I.length-1];w===H&&(M++<2?S=`
|
|
17
|
+
`.concat(w).concat(S):F=w,R.pop(),I.pop(),!(R.length===0||I.length===0));)w=R[R.length-1],H=I[I.length-1];var $=Math.max(R.length,I.length);if($===0){var Y=P.split(`
|
|
18
18
|
`);if(Y.length>30)for(Y[26]="".concat(D,"...").concat(U);Y.length>27;)Y.pop();return"".concat(te.notIdentical,`
|
|
19
19
|
|
|
20
20
|
`).concat(Y.join(`
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
`)}M>3&&(S=`
|
|
23
23
|
`.concat(D,"...").concat(U).concat(S),C=!0),F!==""&&(S=`
|
|
24
24
|
`.concat(F).concat(S),F="");var re=0,q=te[J]+`
|
|
25
|
-
`.concat(k,"+ actual").concat(U," ").concat(z,"- expected").concat(U)
|
|
25
|
+
`.concat(k,"+ actual").concat(U," ").concat(z,"- expected").concat(U),X=" ".concat(D,"...").concat(U," Lines skipped");for(M=0;M<$;M++){var se=M-A;if(R.length<M+1)se>1&&M>2&&(se>4?(E+=`
|
|
26
26
|
`.concat(D,"...").concat(U),C=!0):se>3&&(E+=`
|
|
27
27
|
`.concat(I[M-2]),re++),E+=`
|
|
28
28
|
`.concat(I[M-1]),re++),A=M,F+=`
|
|
@@ -30,61 +30,61 @@
|
|
|
30
30
|
`.concat(D,"...").concat(U),C=!0):se>3&&(E+=`
|
|
31
31
|
`.concat(R[M-2]),re++),E+=`
|
|
32
32
|
`.concat(R[M-1]),re++),A=M,E+=`
|
|
33
|
-
`.concat(k,"+").concat(U," ").concat(R[M]),re++;else{var me=I[M],ge=R[M],
|
|
33
|
+
`.concat(k,"+").concat(U," ").concat(R[M]),re++;else{var me=I[M],ge=R[M],j=ge!==me&&(!b(ge,",")||ge.slice(0,-1)!==me);j&&b(me,",")&&me.slice(0,-1)===ge&&(j=!1,ge+=","),j?(se>1&&M>2&&(se>4?(E+=`
|
|
34
34
|
`.concat(D,"...").concat(U),C=!0):se>3&&(E+=`
|
|
35
35
|
`.concat(R[M-2]),re++),E+=`
|
|
36
36
|
`.concat(R[M-1]),re++),A=M,E+=`
|
|
37
37
|
`.concat(k,"+").concat(U," ").concat(ge),F+=`
|
|
38
38
|
`.concat(z,"-").concat(U," ").concat(me),re+=2):(E+=F,F="",(se===1||M===0)&&(E+=`
|
|
39
|
-
`.concat(ge),re++))}if(re>20&&M
|
|
39
|
+
`.concat(ge),re++))}if(re>20&&M<$-2)return"".concat(q).concat(X,`
|
|
40
40
|
`).concat(E,`
|
|
41
41
|
`).concat(D,"...").concat(U).concat(F,`
|
|
42
|
-
`)+"".concat(D,"...").concat(U)}return"".concat(q).concat(C
|
|
43
|
-
`).concat(E).concat(F).concat(S).concat(W)}var le=(function(Z,ee){t(F,Z);var J=s(F);function F(E){var A;if(h(this,F),y(E)!=="object"||E===null)throw new T("options","Object",E);var S=E.message,C=E.operator,P=E.stackStartFn,R=E.actual,I=E.expected,M=Error.stackTraceLimit;if(Error.stackTraceLimit=0,S!=null)A=J.call(this,String(S));else if(
|
|
42
|
+
`)+"".concat(D,"...").concat(U)}return"".concat(q).concat(C?X:"",`
|
|
43
|
+
`).concat(E).concat(F).concat(S).concat(W)}var le=(function(Z,ee){t(F,Z);var J=s(F);function F(E){var A;if(h(this,F),y(E)!=="object"||E===null)throw new T("options","Object",E);var S=E.message,C=E.operator,P=E.stackStartFn,R=E.actual,I=E.expected,M=Error.stackTraceLimit;if(Error.stackTraceLimit=0,S!=null)A=J.call(this,String(S));else if(Oe.stderr&&Oe.stderr.isTTY&&(Oe.stderr&&Oe.stderr.getColorDepth&&Oe.stderr.getColorDepth()!==1?(D="\x1B[34m",k="\x1B[32m",U="\x1B[39m",z="\x1B[31m"):(D="",k="",U="",z="")),y(R)==="object"&&R!==null&&y(I)==="object"&&I!==null&&"stack"in R&&R instanceof Error&&"stack"in I&&I instanceof Error&&(R=oe(R),I=oe(I)),C==="deepStrictEqual"||C==="strictEqual")A=J.call(this,Ee(R,I,C));else if(C==="notDeepStrictEqual"||C==="notStrictEqual"){var W=te[C],G=he(R).split(`
|
|
44
44
|
`);if(C==="notStrictEqual"&&y(R)==="object"&&R!==null&&(W=te.notStrictEqualObject),G.length>30)for(G[26]="".concat(D,"...").concat(U);G.length>27;)G.pop();G.length===1?A=J.call(this,"".concat(W," ").concat(G[0])):A=J.call(this,"".concat(W,`
|
|
45
45
|
|
|
46
46
|
`).concat(G.join(`
|
|
47
47
|
`),`
|
|
48
|
-
`))}else{var
|
|
48
|
+
`))}else{var L=he(R),w="",H=te[C];C==="notDeepEqual"||C==="notEqual"?(L="".concat(te[C],`
|
|
49
49
|
|
|
50
|
-
`).concat(
|
|
50
|
+
`).concat(L),L.length>1024&&(L="".concat(L.slice(0,1021),"..."))):(w="".concat(he(I)),L.length>512&&(L="".concat(L.slice(0,509),"...")),w.length>512&&(w="".concat(w.slice(0,509),"...")),C==="deepEqual"||C==="equal"?L="".concat(H,`
|
|
51
51
|
|
|
52
|
-
`).concat(
|
|
52
|
+
`).concat(L,`
|
|
53
53
|
|
|
54
54
|
should equal
|
|
55
55
|
|
|
56
|
-
`):
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(B,V){if(B){if(typeof B=="string")return h(B,V);var ne=Object.prototype.toString.call(B).slice(8,-1);if(ne==="Object"&&B.constructor&&(ne=B.constructor.name),ne==="Map"||ne==="Set")return Array.from(B);if(ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return h(B,V)}}function h(B,V){(V==null||V>B.length)&&(V=B.length);for(var ne=0,ae=new Array(V);ne<V;ne++)ae[ne]=B[ne];return ae}function p(B,V){var ne=B==null?null:typeof Symbol<"u"&&B[Symbol.iterator]||B["@@iterator"];if(ne!=null){var ae,ce,_e,de,ve=[],Ae=!0,De=!1;try{if(_e=(ne=ne.call(B)).next,V!==0)for(;!(Ae=(ae=_e.call(ne)).done)&&(ve.push(ae.value),ve.length!==V);Ae=!0);}catch(K){De=!0,ce=K}finally{try{if(!Ae&&ne.return!=null&&(de=ne.return(),Object(de)!==de))return}finally{if(De)throw ce}}return ve}}function a(B){if(Array.isArray(B))return B}function r(B){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},r(B)}var n=/a/g.flags!==void 0,t=function(V){var ne=[];return V.forEach(function(ae){return ne.push(ae)}),ne},s=function(V){var ne=[];return V.forEach(function(ae,ce){return ne.push([ce,ae])}),ne},e=Object.is?Object.is:a0(),o=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:c0();function f(B){return B.call.bind(B)}var d=f(Object.prototype.hasOwnProperty),g=f(Object.prototype.propertyIsEnumerable),x=f(Object.prototype.toString),m=wn().types,y=m.isAnyArrayBuffer,_=m.isArrayBufferView,v=m.isDate,N=m.isMap,T=m.isRegExp,b=m.isSet,O=m.isNativeError,D=m.isBoxedPrimitive,k=m.isNumberObject,z=m.isStringObject,U=m.isBooleanObject,te=m.isBigIntObject,ie=m.isSymbolObject,oe=m.isFloat32Array,he=m.isFloat64Array;function Ee(B){if(B.length===0||B.length>10)return!0;for(var V=0;V<B.length;V++){var ne=B.charCodeAt(V);if(ne<48||ne>57)return!0}return B.length===10&&B>=Math.pow(2,32)}function le(B){return Object.keys(B).filter(Ee).concat(o(B).filter(Object.prototype.propertyIsEnumerable.bind(B)))}function Z(B,V){if(B===V)return 0;for(var ne=B.length,ae=V.length,ce=0,_e=Math.min(ne,ae);ce<_e;++ce)if(B[ce]!==V[ce]){ne=B[ce],ae=V[ce];break}return ne<ae?-1:ae<ne?1:0}var ee=!0,J=!1,F=0,E=1,A=2,S=3;function C(B,V){return n?B.source===V.source&&B.flags===V.flags:RegExp.prototype.toString.call(B)===RegExp.prototype.toString.call(V)}function P(B,V){if(B.byteLength!==V.byteLength)return!1;for(var ne=0;ne<B.byteLength;ne++)if(B[ne]!==V[ne])return!1;return!0}function R(B,V){return B.byteLength!==V.byteLength?!1:Z(new Uint8Array(B.buffer,B.byteOffset,B.byteLength),new Uint8Array(V.buffer,V.byteOffset,V.byteLength))===0}function I(B,V){return B.byteLength===V.byteLength&&Z(new Uint8Array(B),new Uint8Array(V))===0}function M(B,V){return k(B)?k(V)&&e(Number.prototype.valueOf.call(B),Number.prototype.valueOf.call(V)):z(B)?z(V)&&String.prototype.valueOf.call(B)===String.prototype.valueOf.call(V):U(B)?U(V)&&Boolean.prototype.valueOf.call(B)===Boolean.prototype.valueOf.call(V):te(B)?te(V)&&BigInt.prototype.valueOf.call(B)===BigInt.prototype.valueOf.call(V):ie(V)&&Symbol.prototype.valueOf.call(B)===Symbol.prototype.valueOf.call(V)}function W(B,V,ne,ae){if(B===V)return B!==0?!0:ne?e(B,V):!0;if(ne){if(r(B)!=="object")return typeof B=="number"&&l(B)&&l(V);if(r(V)!=="object"||B===null||V===null||Object.getPrototypeOf(B)!==Object.getPrototypeOf(V))return!1}else{if(B===null||r(B)!=="object")return V===null||r(V)!=="object"?B==V:!1;if(V===null||r(V)!=="object")return!1}var ce=x(B),_e=x(V);if(ce!==_e)return!1;if(Array.isArray(B)){if(B.length!==V.length)return!1;var de=le(B),ve=le(V);return de.length!==ve.length?!1:w(B,V,ne,ae,E,de)}if(ce==="[object Object]"&&(!N(B)&&N(V)||!b(B)&&b(V)))return!1;if(v(B)){if(!v(V)||Date.prototype.getTime.call(B)!==Date.prototype.getTime.call(V))return!1}else if(T(B)){if(!T(V)||!C(B,V))return!1}else if(O(B)||B instanceof Error){if(B.message!==V.message||B.name!==V.name)return!1}else if(_(B)){if(!ne&&(oe(B)||he(B))){if(!P(B,V))return!1}else if(!R(B,V))return!1;var Ae=le(B),De=le(V);return Ae.length!==De.length?!1:w(B,V,ne,ae,F,Ae)}else{if(b(B))return!b(V)||B.size!==V.size?!1:w(B,V,ne,ae,A);if(N(B))return!N(V)||B.size!==V.size?!1:w(B,V,ne,ae,S);if(y(B)){if(!I(B,V))return!1}else if(D(B)&&!M(B,V))return!1}return w(B,V,ne,ae,F)}function G(B,V){return V.filter(function(ne){return g(B,ne)})}function w(B,V,ne,ae,ce,_e){if(arguments.length===5){_e=Object.keys(B);var de=Object.keys(V);if(_e.length!==de.length)return!1}for(var ve=0;ve<_e.length;ve++)if(!d(V,_e[ve]))return!1;if(ne&&arguments.length===5){var Ae=o(B);if(Ae.length!==0){var De=0;for(ve=0;ve<Ae.length;ve++){var K=Ae[ve];if(g(B,K)){if(!g(V,K))return!1;_e.push(K),De++}else if(g(V,K))return!1}var fe=o(V);if(Ae.length!==fe.length&&G(V,fe).length!==De)return!1}else{var pe=o(V);if(pe.length!==0&&G(V,pe).length!==0)return!1}}if(_e.length===0&&(ce===F||ce===E&&B.length===0||B.size===0))return!0;if(ae===void 0)ae={val1:new Map,val2:new Map,position:0};else{var xe=ae.val1.get(B);if(xe!==void 0){var Se=ae.val2.get(V);if(Se!==void 0)return xe===Se}ae.position++}ae.val1.set(B,ae.position),ae.val2.set(V,ae.position);var Me=se(B,V,ne,_e,ae,ce);return ae.val1.delete(B),ae.val2.delete(V),Me}function L(B,V,ne,ae){for(var ce=t(B),_e=0;_e<ce.length;_e++){var de=ce[_e];if(W(V,de,ne,ae))return B.delete(de),!0}return!1}function H(B){switch(r(B)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":B=+B;case"number":if(l(B))return!1}return!0}function X(B,V,ne){var ae=H(ne);return ae??(V.has(ae)&&!B.has(ae))}function Y(B,V,ne,ae,ce){var _e=H(ne);if(_e!=null)return _e;var de=V.get(_e);return de===void 0&&!V.has(_e)||!W(ae,de,!1,ce)?!1:!B.has(_e)&&W(ae,de,!1,ce)}function re(B,V,ne,ae){for(var ce=null,_e=t(B),de=0;de<_e.length;de++){var ve=_e[de];if(r(ve)==="object"&&ve!==null)ce===null&&(ce=new Set),ce.add(ve);else if(!V.has(ve)){if(ne||!X(B,V,ve))return!1;ce===null&&(ce=new Set),ce.add(ve)}}if(ce!==null){for(var Ae=t(V),De=0;De<Ae.length;De++){var K=Ae[De];if(r(K)==="object"&&K!==null){if(!L(ce,K,ne,ae))return!1}else if(!ne&&!B.has(K)&&!L(ce,K,ne,ae))return!1}return ce.size===0}return!0}function q(B,V,ne,ae,ce,_e){for(var de=t(B),ve=0;ve<de.length;ve++){var Ae=de[ve];if(W(ne,Ae,ce,_e)&&W(ae,V.get(Ae),ce,_e))return B.delete(Ae),!0}return!1}function $(B,V,ne,ae){for(var ce=null,_e=s(B),de=0;de<_e.length;de++){var ve=u(_e[de],2),Ae=ve[0],De=ve[1];if(r(Ae)==="object"&&Ae!==null)ce===null&&(ce=new Set),ce.add(Ae);else{var K=V.get(Ae);if(K===void 0&&!V.has(Ae)||!W(De,K,ne,ae)){if(ne||!Y(B,V,Ae,De,ae))return!1;ce===null&&(ce=new Set),ce.add(Ae)}}}if(ce!==null){for(var fe=s(V),pe=0;pe<fe.length;pe++){var xe=u(fe[pe],2),Se=xe[0],Me=xe[1];if(r(Se)==="object"&&Se!==null){if(!q(ce,B,Se,Me,ne,ae))return!1}else if(!ne&&(!B.has(Se)||!W(B.get(Se),Me,!1,ae))&&!q(ce,B,Se,Me,!1,ae))return!1}return ce.size===0}return!0}function se(B,V,ne,ae,ce,_e){var de=0;if(_e===A){if(!re(B,V,ne,ce))return!1}else if(_e===S){if(!$(B,V,ne,ce))return!1}else if(_e===E)for(;de<B.length;de++)if(d(B,de)){if(!d(V,de)||!W(B[de],V[de],ne,ce))return!1}else{if(d(V,de))return!1;for(var ve=Object.keys(B);de<ve.length;de++){var Ae=ve[de];if(!d(V,Ae)||!W(B[Ae],V[Ae],ne,ce))return!1}return ve.length===Object.keys(V).length}for(de=0;de<ae.length;de++){var De=ae[de];if(!W(B[De],V[De],ne,ce))return!1}return!0}function me(B,V){return W(B,V,J)}function ge(B,V){return W(B,V,ee)}return Cs={isDeepEqual:me,isDeepStrictEqual:ge},Cs}var pl;function Fe(){if(pl)return Yi.exports;pl=1;function u(A){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},u(A)}function i(A,S,C){return Object.defineProperty(A,"prototype",{writable:!1}),A}function c(A,S){if(!(A instanceof S))throw new TypeError("Cannot call a class as a function")}var h=Va(),p=h.codes,a=p.ERR_AMBIGUOUS_ARGUMENT,r=p.ERR_INVALID_ARG_TYPE,n=p.ERR_INVALID_ARG_VALUE,t=p.ERR_INVALID_RETURN_VALUE,s=p.ERR_MISSING_ARGS,e=r0(),o=wn(),l=o.inspect,f=wn().types,d=f.isPromise,g=f.isRegExp,x=o0()(),m=ms()(),y=s0()("RegExp.prototype.test"),_,v;function N(){var A=f0();_=A.isDeepEqual,v=A.isDeepStrictEqual}var T=!1,b=Yi.exports=U,O={};function D(A){throw A.message instanceof Error?A.message:new e(A)}function k(A,S,C,P,R){var I=arguments.length,M;if(I===0)M="Failed";else if(I===1)C=A,A=void 0;else{if(T===!1){T=!0;var W=be.emitWarning?be.emitWarning:console.warn.bind(console);W("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}I===2&&(P="!=")}if(C instanceof Error)throw C;var G={actual:A,expected:S,operator:P===void 0?"fail":P,stackStartFn:R||k};C!==void 0&&(G.message=C);var w=new e(G);throw M&&(w.message=M,w.generatedMessage=!0),w}b.fail=k,b.AssertionError=e;function z(A,S,C,P){if(!C){var R=!1;if(S===0)R=!0,P="No value argument passed to `assert.ok()`";else if(P instanceof Error)throw P;var I=new e({actual:C,expected:!0,message:P,operator:"==",stackStartFn:A});throw I.generatedMessage=R,I}}function U(){for(var A=arguments.length,S=new Array(A),C=0;C<A;C++)S[C]=arguments[C];z.apply(void 0,[U,S.length].concat(S))}b.ok=U,b.equal=function A(S,C,P){if(arguments.length<2)throw new s("actual","expected");S!=C&&D({actual:S,expected:C,message:P,operator:"==",stackStartFn:A})},b.notEqual=function A(S,C,P){if(arguments.length<2)throw new s("actual","expected");S==C&&D({actual:S,expected:C,message:P,operator:"!=",stackStartFn:A})},b.deepEqual=function A(S,C,P){if(arguments.length<2)throw new s("actual","expected");_===void 0&&N(),_(S,C)||D({actual:S,expected:C,message:P,operator:"deepEqual",stackStartFn:A})},b.notDeepEqual=function A(S,C,P){if(arguments.length<2)throw new s("actual","expected");_===void 0&&N(),_(S,C)&&D({actual:S,expected:C,message:P,operator:"notDeepEqual",stackStartFn:A})},b.deepStrictEqual=function A(S,C,P){if(arguments.length<2)throw new s("actual","expected");_===void 0&&N(),v(S,C)||D({actual:S,expected:C,message:P,operator:"deepStrictEqual",stackStartFn:A})},b.notDeepStrictEqual=te;function te(A,S,C){if(arguments.length<2)throw new s("actual","expected");_===void 0&&N(),v(A,S)&&D({actual:A,expected:S,message:C,operator:"notDeepStrictEqual",stackStartFn:te})}b.strictEqual=function A(S,C,P){if(arguments.length<2)throw new s("actual","expected");m(S,C)||D({actual:S,expected:C,message:P,operator:"strictEqual",stackStartFn:A})},b.notStrictEqual=function A(S,C,P){if(arguments.length<2)throw new s("actual","expected");m(S,C)&&D({actual:S,expected:C,message:P,operator:"notStrictEqual",stackStartFn:A})};var ie=i(function A(S,C,P){var R=this;c(this,A),C.forEach(function(I){I in S&&(P!==void 0&&typeof P[I]=="string"&&g(S[I])&&y(S[I],P[I])?R[I]=P[I]:R[I]=S[I])})});function oe(A,S,C,P,R,I){if(!(C in A)||!v(A[C],S[C])){if(!P){var M=new ie(A,R),W=new ie(S,R,A),G=new e({actual:M,expected:W,operator:"deepStrictEqual",stackStartFn:I});throw G.actual=A,G.expected=S,G.operator=I.name,G}D({actual:A,expected:S,message:P,operator:I.name,stackStartFn:I})}}function he(A,S,C,P){if(typeof S!="function"){if(g(S))return y(S,A);if(arguments.length===2)throw new r("expected",["Function","RegExp"],S);if(u(A)!=="object"||A===null){var R=new e({actual:A,expected:S,message:C,operator:"deepStrictEqual",stackStartFn:P});throw R.operator=P.name,R}var I=Object.keys(S);if(S instanceof Error)I.push("name","message");else if(I.length===0)throw new n("error",S,"may not be an empty object");return _===void 0&&N(),I.forEach(function(M){typeof A[M]=="string"&&g(S[M])&&y(S[M],A[M])||oe(A,S,M,C,I,P)}),!0}return S.prototype!==void 0&&A instanceof S?!0:Error.isPrototypeOf(S)?!1:S.call({},A)===!0}function Ee(A){if(typeof A!="function")throw new r("fn","Function",A);try{A()}catch(S){return S}return O}function le(A){return d(A)||A!==null&&u(A)==="object"&&typeof A.then=="function"&&typeof A.catch=="function"}function Z(A){return Promise.resolve().then(function(){var S;if(typeof A=="function"){if(S=A(),!le(S))throw new t("instance of Promise","promiseFn",S)}else if(le(A))S=A;else throw new r("promiseFn",["Function","Promise"],A);return Promise.resolve().then(function(){return S}).then(function(){return O}).catch(function(C){return C})})}function ee(A,S,C,P){if(typeof C=="string"){if(arguments.length===4)throw new r("error",["Object","Error","Function","RegExp"],C);if(u(S)==="object"&&S!==null){if(S.message===C)throw new a("error/message",'The error message "'.concat(S.message,'" is identical to the message.'))}else if(S===C)throw new a("error/message",'The error "'.concat(S,'" is identical to the message.'));P=C,C=void 0}else if(C!=null&&u(C)!=="object"&&typeof C!="function")throw new r("error",["Object","Error","Function","RegExp"],C);if(S===O){var R="";C&&C.name&&(R+=" (".concat(C.name,")")),R+=P?": ".concat(P):".";var I=A.name==="rejects"?"rejection":"exception";D({actual:void 0,expected:C,operator:A.name,message:"Missing expected ".concat(I).concat(R),stackStartFn:A})}if(C&&!he(S,C,P,A))throw S}function J(A,S,C,P){if(S!==O){if(typeof C=="string"&&(P=C,C=void 0),!C||he(S,C)){var R=P?": ".concat(P):".",I=A.name==="doesNotReject"?"rejection":"exception";D({actual:S,expected:C,operator:A.name,message:"Got unwanted ".concat(I).concat(R,`
|
|
56
|
+
`):w=" ".concat(C," ").concat(w)),A=J.call(this,"".concat(L).concat(w))}return Error.stackTraceLimit=M,A.generatedMessage=!S,Object.defineProperty(o(A),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),A.code="ERR_ASSERTION",A.actual=R,A.expected=I,A.operator=C,Error.captureStackTrace&&Error.captureStackTrace(o(A),P),A.stack,A.name="AssertionError",e(A)}return a(F,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:ee,value:function(A,S){return v(this,r(r({},S),{},{customInspect:!1,depth:0}))}}]),F})(l(Error),v.custom);return cs=le,cs}var fs,Xa;function Ka(){if(Xa)return fs;Xa=1;var u=Object.prototype.toString;return fs=function(c){var h=u.call(c),p=h==="[object Arguments]";return p||(p=h!=="[object Array]"&&c!==null&&typeof c=="object"&&typeof c.length=="number"&&c.length>=0&&u.call(c.callee)==="[object Function]"),p},fs}var hs,Qa;function u0(){if(Qa)return hs;Qa=1;var u;if(!Object.keys){var r=Object.prototype.hasOwnProperty,c=Object.prototype.toString,h=Ka(),p=Object.prototype.propertyIsEnumerable,a=!p.call({toString:null},"toString"),n=p.call(function(){},"prototype"),i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],t=function(l){var f=l.constructor;return f&&f.prototype===l},s={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},e=(function(){if(typeof window>"u")return!1;for(var l in window)try{if(!s["$"+l]&&r.call(window,l)&&window[l]!==null&&typeof window[l]=="object")try{t(window[l])}catch{return!0}}catch{return!0}return!1})(),o=function(l){if(typeof window>"u"||!e)return t(l);try{return t(l)}catch{return!1}};u=function(f){var d=f!==null&&typeof f=="object",g=c.call(f)==="[object Function]",x=h(f),m=d&&c.call(f)==="[object String]",y=[];if(!d&&!g&&!x)throw new TypeError("Object.keys called on a non-object");var _=n&&g;if(m&&f.length>0&&!r.call(f,0))for(var v=0;v<f.length;++v)y.push(String(v));if(x&&f.length>0)for(var N=0;N<f.length;++N)y.push(String(N));else for(var T in f)!(_&&T==="prototype")&&r.call(f,T)&&y.push(String(T));if(a)for(var b=o(f),O=0;O<i.length;++O)!(b&&i[O]==="constructor")&&r.call(f,i[O])&&y.push(i[O]);return y}}return hs=u,hs}var ps,Ja;function Za(){if(Ja)return ps;Ja=1;var u=Array.prototype.slice,r=Ka(),c=Object.keys,h=c?function(n){return c(n)}:u0(),p=Object.keys;return h.shim=function(){if(Object.keys){var n=(function(){var i=Object.keys(arguments);return i&&i.length===arguments.length})(1,2);n||(Object.keys=function(t){return r(t)?p(u.call(t)):p(t)})}else Object.keys=h;return Object.keys||h},ps=h,ps}var ds,Ya;function a0(){if(Ya)return ds;Ya=1;var u=Za(),r=io()(),c=In(),h=uo(),p=c("Array.prototype.push"),a=c("Object.prototype.propertyIsEnumerable"),n=r?h.getOwnPropertySymbols:null;return ds=function(t,s){if(t==null)throw new TypeError("target must be an object");var e=h(t);if(arguments.length===1)return e;for(var o=1;o<arguments.length;++o){var l=h(arguments[o]),f=u(l),d=r&&(h.getOwnPropertySymbols||n);if(d)for(var g=d(l),x=0;x<g.length;++x){var m=g[x];a(l,m)&&p(f,m)}for(var y=0;y<f.length;++y){var _=f[y];if(a(l,_)){var v=l[_];e[_]=v}}}return e},ds}var xs,el;function l0(){if(el)return xs;el=1;var u=a0(),r=function(){if(!Object.assign)return!1;for(var h="abcdefghijklmnopqrst",p=h.split(""),a={},n=0;n<p.length;++n)a[p[n]]=p[n];var i=Object.assign({},a),t="";for(var s in i)t+=s;return h!==t},c=function(){if(!Object.assign||!Object.preventExtensions)return!1;var h=Object.preventExtensions({1:2});try{Object.assign(h,"xy")}catch{return h[1]==="y"}return!1};return xs=function(){return!Object.assign||r()||c()?u:Object.assign},xs}var ys,tl;function rl(){if(tl)return ys;tl=1;var u=function(r){return r!==r};return ys=function(c,h){return c===0&&h===0?1/c===1/h:!!(c===h||u(c)&&u(h))},ys}var _s,nl;function ms(){if(nl)return _s;nl=1;var u=rl();return _s=function(){return typeof Object.is=="function"?Object.is:u},_s}var gs,il;function c0(){if(il)return gs;il=1;var u=Wo(),r=Oi(),c=r(u("String.prototype.indexOf"));return gs=function(p,a){var n=u(p,!!a);return typeof n=="function"&&c(p,".prototype.")>-1?r(n):n},gs}var vs,ol;function Pi(){if(ol)return vs;ol=1;var u=Za(),r=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",c=Object.prototype.toString,h=Array.prototype.concat,p=Ia(),a=function(s){return typeof s=="function"&&c.call(s)==="[object Function]"},n=wa()(),i=function(s,e,o,l){if(e in s){if(l===!0){if(s[e]===o)return}else if(!a(l)||!l())return}n?p(s,e,o,!0):p(s,e,o)},t=function(s,e){var o=arguments.length>2?arguments[2]:{},l=u(e);r&&(l=h.call(l,Object.getOwnPropertySymbols(e)));for(var f=0;f<l.length;f+=1)i(s,l[f],e[l[f]],o[l[f]])};return t.supportsDescriptors=!!n,vs=t,vs}var As,sl;function f0(){if(sl)return As;sl=1;var u=ms(),r=Pi();return As=function(){var h=u();return r(Object,{is:h},{is:function(){return Object.is!==h}}),h},As}var Ts,ul;function h0(){if(ul)return Ts;ul=1;var u=Pi(),r=Oi(),c=rl(),h=ms(),p=f0(),a=r(h(),Object);return u(a,{getPolyfill:h,implementation:c,shim:p}),Ts=a,Ts}var Es,al;function ll(){return al||(al=1,Es=function(r){return r!==r}),Es}var Ss,cl;function fl(){if(cl)return Ss;cl=1;var u=ll();return Ss=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:u},Ss}var Ns,hl;function p0(){if(hl)return Ns;hl=1;var u=Pi(),r=fl();return Ns=function(){var h=r();return u(Number,{isNaN:h},{isNaN:function(){return Number.isNaN!==h}}),h},Ns}var bs,pl;function d0(){if(pl)return bs;pl=1;var u=Oi(),r=Pi(),c=ll(),h=fl(),p=p0(),a=u(h(),Number);return r(a,{getPolyfill:h,implementation:c,shim:p}),bs=a,bs}var Cs,dl;function x0(){if(dl)return Cs;dl=1;function u(j,V){return a(j)||p(j,V)||c(j,V)||r()}function r(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
57
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(j,V){if(j){if(typeof j=="string")return h(j,V);var ne=Object.prototype.toString.call(j).slice(8,-1);if(ne==="Object"&&j.constructor&&(ne=j.constructor.name),ne==="Map"||ne==="Set")return Array.from(j);if(ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return h(j,V)}}function h(j,V){(V==null||V>j.length)&&(V=j.length);for(var ne=0,ae=new Array(V);ne<V;ne++)ae[ne]=j[ne];return ae}function p(j,V){var ne=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(ne!=null){var ae,ce,_e,de,ve=[],Ae=!0,De=!1;try{if(_e=(ne=ne.call(j)).next,V!==0)for(;!(Ae=(ae=_e.call(ne)).done)&&(ve.push(ae.value),ve.length!==V);Ae=!0);}catch(K){De=!0,ce=K}finally{try{if(!Ae&&ne.return!=null&&(de=ne.return(),Object(de)!==de))return}finally{if(De)throw ce}}return ve}}function a(j){if(Array.isArray(j))return j}function n(j){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},n(j)}var i=/a/g.flags!==void 0,t=function(V){var ne=[];return V.forEach(function(ae){return ne.push(ae)}),ne},s=function(V){var ne=[];return V.forEach(function(ae,ce){return ne.push([ce,ae])}),ne},e=Object.is?Object.is:h0(),o=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:d0();function f(j){return j.call.bind(j)}var d=f(Object.prototype.hasOwnProperty),g=f(Object.prototype.propertyIsEnumerable),x=f(Object.prototype.toString),m=Ln().types,y=m.isAnyArrayBuffer,_=m.isArrayBufferView,v=m.isDate,N=m.isMap,T=m.isRegExp,b=m.isSet,O=m.isNativeError,D=m.isBoxedPrimitive,k=m.isNumberObject,z=m.isStringObject,U=m.isBooleanObject,te=m.isBigIntObject,ie=m.isSymbolObject,oe=m.isFloat32Array,he=m.isFloat64Array;function Ee(j){if(j.length===0||j.length>10)return!0;for(var V=0;V<j.length;V++){var ne=j.charCodeAt(V);if(ne<48||ne>57)return!0}return j.length===10&&j>=Math.pow(2,32)}function le(j){return Object.keys(j).filter(Ee).concat(o(j).filter(Object.prototype.propertyIsEnumerable.bind(j)))}function Z(j,V){if(j===V)return 0;for(var ne=j.length,ae=V.length,ce=0,_e=Math.min(ne,ae);ce<_e;++ce)if(j[ce]!==V[ce]){ne=j[ce],ae=V[ce];break}return ne<ae?-1:ae<ne?1:0}var ee=!0,J=!1,F=0,E=1,A=2,S=3;function C(j,V){return i?j.source===V.source&&j.flags===V.flags:RegExp.prototype.toString.call(j)===RegExp.prototype.toString.call(V)}function P(j,V){if(j.byteLength!==V.byteLength)return!1;for(var ne=0;ne<j.byteLength;ne++)if(j[ne]!==V[ne])return!1;return!0}function R(j,V){return j.byteLength!==V.byteLength?!1:Z(new Uint8Array(j.buffer,j.byteOffset,j.byteLength),new Uint8Array(V.buffer,V.byteOffset,V.byteLength))===0}function I(j,V){return j.byteLength===V.byteLength&&Z(new Uint8Array(j),new Uint8Array(V))===0}function M(j,V){return k(j)?k(V)&&e(Number.prototype.valueOf.call(j),Number.prototype.valueOf.call(V)):z(j)?z(V)&&String.prototype.valueOf.call(j)===String.prototype.valueOf.call(V):U(j)?U(V)&&Boolean.prototype.valueOf.call(j)===Boolean.prototype.valueOf.call(V):te(j)?te(V)&&BigInt.prototype.valueOf.call(j)===BigInt.prototype.valueOf.call(V):ie(V)&&Symbol.prototype.valueOf.call(j)===Symbol.prototype.valueOf.call(V)}function W(j,V,ne,ae){if(j===V)return j!==0?!0:ne?e(j,V):!0;if(ne){if(n(j)!=="object")return typeof j=="number"&&l(j)&&l(V);if(n(V)!=="object"||j===null||V===null||Object.getPrototypeOf(j)!==Object.getPrototypeOf(V))return!1}else{if(j===null||n(j)!=="object")return V===null||n(V)!=="object"?j==V:!1;if(V===null||n(V)!=="object")return!1}var ce=x(j),_e=x(V);if(ce!==_e)return!1;if(Array.isArray(j)){if(j.length!==V.length)return!1;var de=le(j),ve=le(V);return de.length!==ve.length?!1:L(j,V,ne,ae,E,de)}if(ce==="[object Object]"&&(!N(j)&&N(V)||!b(j)&&b(V)))return!1;if(v(j)){if(!v(V)||Date.prototype.getTime.call(j)!==Date.prototype.getTime.call(V))return!1}else if(T(j)){if(!T(V)||!C(j,V))return!1}else if(O(j)||j instanceof Error){if(j.message!==V.message||j.name!==V.name)return!1}else if(_(j)){if(!ne&&(oe(j)||he(j))){if(!P(j,V))return!1}else if(!R(j,V))return!1;var Ae=le(j),De=le(V);return Ae.length!==De.length?!1:L(j,V,ne,ae,F,Ae)}else{if(b(j))return!b(V)||j.size!==V.size?!1:L(j,V,ne,ae,A);if(N(j))return!N(V)||j.size!==V.size?!1:L(j,V,ne,ae,S);if(y(j)){if(!I(j,V))return!1}else if(D(j)&&!M(j,V))return!1}return L(j,V,ne,ae,F)}function G(j,V){return V.filter(function(ne){return g(j,ne)})}function L(j,V,ne,ae,ce,_e){if(arguments.length===5){_e=Object.keys(j);var de=Object.keys(V);if(_e.length!==de.length)return!1}for(var ve=0;ve<_e.length;ve++)if(!d(V,_e[ve]))return!1;if(ne&&arguments.length===5){var Ae=o(j);if(Ae.length!==0){var De=0;for(ve=0;ve<Ae.length;ve++){var K=Ae[ve];if(g(j,K)){if(!g(V,K))return!1;_e.push(K),De++}else if(g(V,K))return!1}var fe=o(V);if(Ae.length!==fe.length&&G(V,fe).length!==De)return!1}else{var pe=o(V);if(pe.length!==0&&G(V,pe).length!==0)return!1}}if(_e.length===0&&(ce===F||ce===E&&j.length===0||j.size===0))return!0;if(ae===void 0)ae={val1:new Map,val2:new Map,position:0};else{var xe=ae.val1.get(j);if(xe!==void 0){var Se=ae.val2.get(V);if(Se!==void 0)return xe===Se}ae.position++}ae.val1.set(j,ae.position),ae.val2.set(V,ae.position);var Me=se(j,V,ne,_e,ae,ce);return ae.val1.delete(j),ae.val2.delete(V),Me}function w(j,V,ne,ae){for(var ce=t(j),_e=0;_e<ce.length;_e++){var de=ce[_e];if(W(V,de,ne,ae))return j.delete(de),!0}return!1}function H(j){switch(n(j)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":j=+j;case"number":if(l(j))return!1}return!0}function $(j,V,ne){var ae=H(ne);return ae??(V.has(ae)&&!j.has(ae))}function Y(j,V,ne,ae,ce){var _e=H(ne);if(_e!=null)return _e;var de=V.get(_e);return de===void 0&&!V.has(_e)||!W(ae,de,!1,ce)?!1:!j.has(_e)&&W(ae,de,!1,ce)}function re(j,V,ne,ae){for(var ce=null,_e=t(j),de=0;de<_e.length;de++){var ve=_e[de];if(n(ve)==="object"&&ve!==null)ce===null&&(ce=new Set),ce.add(ve);else if(!V.has(ve)){if(ne||!$(j,V,ve))return!1;ce===null&&(ce=new Set),ce.add(ve)}}if(ce!==null){for(var Ae=t(V),De=0;De<Ae.length;De++){var K=Ae[De];if(n(K)==="object"&&K!==null){if(!w(ce,K,ne,ae))return!1}else if(!ne&&!j.has(K)&&!w(ce,K,ne,ae))return!1}return ce.size===0}return!0}function q(j,V,ne,ae,ce,_e){for(var de=t(j),ve=0;ve<de.length;ve++){var Ae=de[ve];if(W(ne,Ae,ce,_e)&&W(ae,V.get(Ae),ce,_e))return j.delete(Ae),!0}return!1}function X(j,V,ne,ae){for(var ce=null,_e=s(j),de=0;de<_e.length;de++){var ve=u(_e[de],2),Ae=ve[0],De=ve[1];if(n(Ae)==="object"&&Ae!==null)ce===null&&(ce=new Set),ce.add(Ae);else{var K=V.get(Ae);if(K===void 0&&!V.has(Ae)||!W(De,K,ne,ae)){if(ne||!Y(j,V,Ae,De,ae))return!1;ce===null&&(ce=new Set),ce.add(Ae)}}}if(ce!==null){for(var fe=s(V),pe=0;pe<fe.length;pe++){var xe=u(fe[pe],2),Se=xe[0],Me=xe[1];if(n(Se)==="object"&&Se!==null){if(!q(ce,j,Se,Me,ne,ae))return!1}else if(!ne&&(!j.has(Se)||!W(j.get(Se),Me,!1,ae))&&!q(ce,j,Se,Me,!1,ae))return!1}return ce.size===0}return!0}function se(j,V,ne,ae,ce,_e){var de=0;if(_e===A){if(!re(j,V,ne,ce))return!1}else if(_e===S){if(!X(j,V,ne,ce))return!1}else if(_e===E)for(;de<j.length;de++)if(d(j,de)){if(!d(V,de)||!W(j[de],V[de],ne,ce))return!1}else{if(d(V,de))return!1;for(var ve=Object.keys(j);de<ve.length;de++){var Ae=ve[de];if(!d(V,Ae)||!W(j[Ae],V[Ae],ne,ce))return!1}return ve.length===Object.keys(V).length}for(de=0;de<ae.length;de++){var De=ae[de];if(!W(j[De],V[De],ne,ce))return!1}return!0}function me(j,V){return W(j,V,J)}function ge(j,V){return W(j,V,ee)}return Cs={isDeepEqual:me,isDeepStrictEqual:ge},Cs}var xl;function Fe(){if(xl)return Yi.exports;xl=1;function u(A){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},u(A)}function r(A,S,C){return Object.defineProperty(A,"prototype",{writable:!1}),A}function c(A,S){if(!(A instanceof S))throw new TypeError("Cannot call a class as a function")}var h=Ga(),p=h.codes,a=p.ERR_AMBIGUOUS_ARGUMENT,n=p.ERR_INVALID_ARG_TYPE,i=p.ERR_INVALID_ARG_VALUE,t=p.ERR_INVALID_RETURN_VALUE,s=p.ERR_MISSING_ARGS,e=s0(),o=Ln(),l=o.inspect,f=Ln().types,d=f.isPromise,g=f.isRegExp,x=l0()(),m=ms()(),y=c0()("RegExp.prototype.test"),_,v;function N(){var A=x0();_=A.isDeepEqual,v=A.isDeepStrictEqual}var T=!1,b=Yi.exports=U,O={};function D(A){throw A.message instanceof Error?A.message:new e(A)}function k(A,S,C,P,R){var I=arguments.length,M;if(I===0)M="Failed";else if(I===1)C=A,A=void 0;else{if(T===!1){T=!0;var W=Oe.emitWarning?Oe.emitWarning:console.warn.bind(console);W("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}I===2&&(P="!=")}if(C instanceof Error)throw C;var G={actual:A,expected:S,operator:P===void 0?"fail":P,stackStartFn:R||k};C!==void 0&&(G.message=C);var L=new e(G);throw M&&(L.message=M,L.generatedMessage=!0),L}b.fail=k,b.AssertionError=e;function z(A,S,C,P){if(!C){var R=!1;if(S===0)R=!0,P="No value argument passed to `assert.ok()`";else if(P instanceof Error)throw P;var I=new e({actual:C,expected:!0,message:P,operator:"==",stackStartFn:A});throw I.generatedMessage=R,I}}function U(){for(var A=arguments.length,S=new Array(A),C=0;C<A;C++)S[C]=arguments[C];z.apply(void 0,[U,S.length].concat(S))}b.ok=U,b.equal=function A(S,C,P){if(arguments.length<2)throw new s("actual","expected");S!=C&&D({actual:S,expected:C,message:P,operator:"==",stackStartFn:A})},b.notEqual=function A(S,C,P){if(arguments.length<2)throw new s("actual","expected");S==C&&D({actual:S,expected:C,message:P,operator:"!=",stackStartFn:A})},b.deepEqual=function A(S,C,P){if(arguments.length<2)throw new s("actual","expected");_===void 0&&N(),_(S,C)||D({actual:S,expected:C,message:P,operator:"deepEqual",stackStartFn:A})},b.notDeepEqual=function A(S,C,P){if(arguments.length<2)throw new s("actual","expected");_===void 0&&N(),_(S,C)&&D({actual:S,expected:C,message:P,operator:"notDeepEqual",stackStartFn:A})},b.deepStrictEqual=function A(S,C,P){if(arguments.length<2)throw new s("actual","expected");_===void 0&&N(),v(S,C)||D({actual:S,expected:C,message:P,operator:"deepStrictEqual",stackStartFn:A})},b.notDeepStrictEqual=te;function te(A,S,C){if(arguments.length<2)throw new s("actual","expected");_===void 0&&N(),v(A,S)&&D({actual:A,expected:S,message:C,operator:"notDeepStrictEqual",stackStartFn:te})}b.strictEqual=function A(S,C,P){if(arguments.length<2)throw new s("actual","expected");m(S,C)||D({actual:S,expected:C,message:P,operator:"strictEqual",stackStartFn:A})},b.notStrictEqual=function A(S,C,P){if(arguments.length<2)throw new s("actual","expected");m(S,C)&&D({actual:S,expected:C,message:P,operator:"notStrictEqual",stackStartFn:A})};var ie=r(function A(S,C,P){var R=this;c(this,A),C.forEach(function(I){I in S&&(P!==void 0&&typeof P[I]=="string"&&g(S[I])&&y(S[I],P[I])?R[I]=P[I]:R[I]=S[I])})});function oe(A,S,C,P,R,I){if(!(C in A)||!v(A[C],S[C])){if(!P){var M=new ie(A,R),W=new ie(S,R,A),G=new e({actual:M,expected:W,operator:"deepStrictEqual",stackStartFn:I});throw G.actual=A,G.expected=S,G.operator=I.name,G}D({actual:A,expected:S,message:P,operator:I.name,stackStartFn:I})}}function he(A,S,C,P){if(typeof S!="function"){if(g(S))return y(S,A);if(arguments.length===2)throw new n("expected",["Function","RegExp"],S);if(u(A)!=="object"||A===null){var R=new e({actual:A,expected:S,message:C,operator:"deepStrictEqual",stackStartFn:P});throw R.operator=P.name,R}var I=Object.keys(S);if(S instanceof Error)I.push("name","message");else if(I.length===0)throw new i("error",S,"may not be an empty object");return _===void 0&&N(),I.forEach(function(M){typeof A[M]=="string"&&g(S[M])&&y(S[M],A[M])||oe(A,S,M,C,I,P)}),!0}return S.prototype!==void 0&&A instanceof S?!0:Error.isPrototypeOf(S)?!1:S.call({},A)===!0}function Ee(A){if(typeof A!="function")throw new n("fn","Function",A);try{A()}catch(S){return S}return O}function le(A){return d(A)||A!==null&&u(A)==="object"&&typeof A.then=="function"&&typeof A.catch=="function"}function Z(A){return Promise.resolve().then(function(){var S;if(typeof A=="function"){if(S=A(),!le(S))throw new t("instance of Promise","promiseFn",S)}else if(le(A))S=A;else throw new n("promiseFn",["Function","Promise"],A);return Promise.resolve().then(function(){return S}).then(function(){return O}).catch(function(C){return C})})}function ee(A,S,C,P){if(typeof C=="string"){if(arguments.length===4)throw new n("error",["Object","Error","Function","RegExp"],C);if(u(S)==="object"&&S!==null){if(S.message===C)throw new a("error/message",'The error message "'.concat(S.message,'" is identical to the message.'))}else if(S===C)throw new a("error/message",'The error "'.concat(S,'" is identical to the message.'));P=C,C=void 0}else if(C!=null&&u(C)!=="object"&&typeof C!="function")throw new n("error",["Object","Error","Function","RegExp"],C);if(S===O){var R="";C&&C.name&&(R+=" (".concat(C.name,")")),R+=P?": ".concat(P):".";var I=A.name==="rejects"?"rejection":"exception";D({actual:void 0,expected:C,operator:A.name,message:"Missing expected ".concat(I).concat(R),stackStartFn:A})}if(C&&!he(S,C,P,A))throw S}function J(A,S,C,P){if(S!==O){if(typeof C=="string"&&(P=C,C=void 0),!C||he(S,C)){var R=P?": ".concat(P):".",I=A.name==="doesNotReject"?"rejection":"exception";D({actual:S,expected:C,operator:A.name,message:"Got unwanted ".concat(I).concat(R,`
|
|
58
58
|
`)+'Actual message: "'.concat(S&&S.message,'"'),stackStartFn:A})}throw S}}b.throws=function A(S){for(var C=arguments.length,P=new Array(C>1?C-1:0),R=1;R<C;R++)P[R-1]=arguments[R];ee.apply(void 0,[A,Ee(S)].concat(P))},b.rejects=function A(S){for(var C=arguments.length,P=new Array(C>1?C-1:0),R=1;R<C;R++)P[R-1]=arguments[R];return Z(S).then(function(I){return ee.apply(void 0,[A,I].concat(P))})},b.doesNotThrow=function A(S){for(var C=arguments.length,P=new Array(C>1?C-1:0),R=1;R<C;R++)P[R-1]=arguments[R];J.apply(void 0,[A,Ee(S)].concat(P))},b.doesNotReject=function A(S){for(var C=arguments.length,P=new Array(C>1?C-1:0),R=1;R<C;R++)P[R-1]=arguments[R];return Z(S).then(function(I){return J.apply(void 0,[A,I].concat(P))})},b.ifError=function A(S){if(S!=null){var C="ifError got unwanted exception: ";u(S)==="object"&&typeof S.message=="string"?S.message.length===0&&S.constructor?C+=S.constructor.name:C+=S.message:C+=l(S);var P=new e({actual:S,expected:null,operator:"ifError",message:C,stackStartFn:A}),R=S.stack;if(typeof R=="string"){var I=R.split(`
|
|
59
59
|
`);I.shift();for(var M=P.stack.split(`
|
|
60
60
|
`),W=0;W<I.length;W++){var G=M.indexOf(I[W]);if(G!==-1){M=M.slice(0,G);break}}P.stack="".concat(M.join(`
|
|
61
61
|
`),`
|
|
62
62
|
`).concat(I.join(`
|
|
63
|
-
`))}throw P}};function F(A,S,C,P,R){if(!g(S))throw new
|
|
63
|
+
`))}throw P}};function F(A,S,C,P,R){if(!g(S))throw new n("regexp","RegExp",S);var I=R==="match";if(typeof A!="string"||y(S,A)!==I){if(C instanceof Error)throw C;var M=!C;C=C||(typeof A!="string"?'The "string" argument must be of type string. Received type '+"".concat(u(A)," (").concat(l(A),")"):(I?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(l(S),`. Input:
|
|
64
64
|
|
|
65
65
|
`).concat(l(A),`
|
|
66
|
-
`));var W=new e({actual:A,expected:S,message:C,operator:R,stackStartFn:P});throw W.generatedMessage=M,W}}b.match=function A(S,C,P){F(S,C,P,A,"match")},b.doesNotMatch=function A(S,C,P){F(S,C,P,A,"doesNotMatch")};function E(){for(var A=arguments.length,S=new Array(A),C=0;C<A;C++)S[C]=arguments[C];z.apply(void 0,[E,S.length].concat(S))}return b.strict=x(E,b,{equal:b.strictEqual,deepEqual:b.deepStrictEqual,notEqual:b.notStrictEqual,notDeepEqual:b.notDeepStrictEqual}),b.strict.strict=b.strict,Yi.exports}var Ge={},dl;function Q(){if(dl)return Ge;dl=1;Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.SuppressWarnings=Ge.Override=Ge.Nullable=Ge.NotNull=void 0;function u(p,a,r){}Ge.NotNull=u;function i(p,a,r){}Ge.Nullable=i;function c(p,a,r){}Ge.Override=c;function h(p){return(a,r,n)=>{}}return Ge.SuppressWarnings=h,Ge}var Os={},xl;function ur(){return xl||(xl=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.IntStream=void 0,(function(i){i.EOF=-1,i.UNKNOWN_SOURCE_NAME="<unknown>"})(u.IntStream||(u.IntStream={}))})(Os)),Os}var yl;function h0(){if(yl)return gr;yl=1;var u=gr&&gr.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(gr,"__esModule",{value:!0}),gr.ANTLRInputStream=void 0;const i=Fe(),c=Q(),h=ur();let p=class{constructor(r){this.p=0,this.data=r,this.n=r.length}reset(){this.p=0}consume(){if(this.p>=this.n)throw i(this.LA(1)===h.IntStream.EOF),new Error("cannot consume EOF");this.p<this.n&&this.p++}LA(r){return r===0?0:r<0&&(r++,this.p+r-1<0)||this.p+r-1>=this.n?h.IntStream.EOF:this.data.charCodeAt(this.p+r-1)}LT(r){return this.LA(r)}get index(){return this.p}get size(){return this.n}mark(){return-1}release(r){}seek(r){if(r<=this.p){this.p=r;return}for(r=Math.min(r,this.n);this.p<r;)this.consume()}getText(r){let n=r.a,t=r.b;t>=this.n&&(t=this.n-1);let s=t-n+1;return n>=this.n?"":this.data.substr(n,s)}get sourceName(){return this.name?this.name:h.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}};return u([c.Override],p.prototype,"consume",null),u([c.Override],p.prototype,"LA",null),u([c.Override],p.prototype,"index",null),u([c.Override],p.prototype,"size",null),u([c.Override],p.prototype,"mark",null),u([c.Override],p.prototype,"release",null),u([c.Override],p.prototype,"seek",null),u([c.Override],p.prototype,"getText",null),u([c.Override],p.prototype,"sourceName",null),u([c.Override],p.prototype,"toString",null),gr.ANTLRInputStream=p,gr}var Ar={},tt={},kn={},_l;function rt(){return _l||(_l=1,(function(u){var i=kn&&kn.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s};Object.defineProperty(u,"__esModule",{value:!0}),u.ATNState=void 0;const c=Q();let h=class mu{constructor(){this.stateNumber=mu.INVALID_STATE_NUMBER,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.optimizedTransitions=this.transitions}getStateNumber(){return this.stateNumber}get nonStopStateNumber(){return this.getStateNumber()}hashCode(){return this.stateNumber}equals(a){return a instanceof mu?this.stateNumber===a.stateNumber:!1}get isNonGreedyExitState(){return!1}toString(){return String(this.stateNumber)}getTransitions(){return this.transitions.slice(0)}get numberOfTransitions(){return this.transitions.length}addTransition(a,r){if(this.transitions.length===0)this.epsilonOnlyTransitions=a.isEpsilon;else if(this.epsilonOnlyTransitions!==a.isEpsilon)throw this.epsilonOnlyTransitions=!1,new Error("ATN state "+this.stateNumber+" has both epsilon and non-epsilon transitions.");this.transitions.splice(r!==void 0?r:this.transitions.length,0,a)}transition(a){return this.transitions[a]}setTransition(a,r){this.transitions[a]=r}removeTransition(a){return this.transitions.splice(a,1)[0]}get onlyHasEpsilonTransitions(){return this.epsilonOnlyTransitions}setRuleIndex(a){this.ruleIndex=a}get isOptimized(){return this.optimizedTransitions!==this.transitions}get numberOfOptimizedTransitions(){return this.optimizedTransitions.length}getOptimizedTransition(a){return this.optimizedTransitions[a]}addOptimizedTransition(a){this.isOptimized||(this.optimizedTransitions=new Array),this.optimizedTransitions.push(a)}setOptimizedTransition(a,r){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions[a]=r}removeOptimizedTransition(a){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions.splice(a,1)}};i([c.Override],h.prototype,"hashCode",null),i([c.Override],h.prototype,"equals",null),i([c.Override],h.prototype,"toString",null),u.ATNState=h,(function(p){p.INVALID_STATE_NUMBER=-1})(h=u.ATNState||(u.ATNState={}))})(kn)),kn}var Rs={},ml;function Ie(){return ml||(ml=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ATNStateType=void 0,(function(i){i[i.INVALID_TYPE=0]="INVALID_TYPE",i[i.BASIC=1]="BASIC",i[i.RULE_START=2]="RULE_START",i[i.BLOCK_START=3]="BLOCK_START",i[i.PLUS_BLOCK_START=4]="PLUS_BLOCK_START",i[i.STAR_BLOCK_START=5]="STAR_BLOCK_START",i[i.TOKEN_START=6]="TOKEN_START",i[i.RULE_STOP=7]="RULE_STOP",i[i.BLOCK_END=8]="BLOCK_END",i[i.STAR_LOOP_BACK=9]="STAR_LOOP_BACK",i[i.STAR_LOOP_ENTRY=10]="STAR_LOOP_ENTRY",i[i.PLUS_LOOP_BACK=11]="PLUS_LOOP_BACK",i[i.LOOP_END=12]="LOOP_END"})(u.ATNStateType||(u.ATNStateType={}))})(Rs)),Rs}var nt={},Un={},gl;function ar(){if(gl)return Un;gl=1;Object.defineProperty(Un,"__esModule",{value:!0}),Un.RecognitionException=void 0;let u=class extends Error{constructor(c,h,p,a){super(a),this._offendingState=-1,this._recognizer=c,this.input=h,this.ctx=p,c&&(this._offendingState=c.state)}get offendingState(){return this._offendingState}setOffendingState(c){this._offendingState=c}get expectedTokens(){if(this._recognizer)return this._recognizer.atn.getExpectedTokens(this._offendingState,this.ctx)}get context(){return this.ctx}get inputStream(){return this.input}getOffendingToken(c){if(!(c&&c!==this._recognizer))return this.offendingToken}setOffendingToken(c,h){c===this._recognizer&&(this.offendingToken=h)}get recognizer(){return this._recognizer}};return Un.RecognitionException=u,Un}var it={},zn={},ot={},vl;function lr(){if(vl)return ot;vl=1;var u=ot&&ot.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s},i=ot&&ot.__param||function(p,a){return function(r,n){a(r,n,p)}};Object.defineProperty(ot,"__esModule",{value:!0}),ot.Transition=void 0;const c=Q();let h=class{constructor(a){if(a==null)throw new Error("target cannot be null.");this.target=a}get isEpsilon(){return!1}get label(){}};return h.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],u([c.NotNull],h.prototype,"target",void 0),h=u([i(0,c.NotNull)],h),ot.Transition=h,ot}var Al;function Ps(){if(Al)return zn;Al=1;Object.defineProperty(zn,"__esModule",{value:!0}),zn.AbstractPredicateTransition=void 0;const u=lr();let i=class extends u.Transition{constructor(h){super(h)}};return zn.AbstractPredicateTransition=i,zn}var Tr={},st={},Er={},Ds={},Tl;function Pe(){return Tl||(Tl=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.MurmurHash=void 0,(function(i){function h(t=0){return t}i.initialize=h;function p(t,s){s==null?s=0:typeof s=="string"?s=n(s):typeof s=="object"&&(s=s.hashCode());let x=s;return x=Math.imul(x,3432918353),x=x<<15|x>>>17,x=Math.imul(x,461845907),t=t^x,t=t<<13|t>>>19,t=Math.imul(t,5)+3864292196,t&4294967295}i.update=p;function a(t,s){return t=t^s*4,t=t^t>>>16,t=Math.imul(t,2246822507),t=t^t>>>13,t=Math.imul(t,3266489909),t=t^t>>>16,t}i.finish=a;function r(t,s=0){let e=h(s),o=0;for(let l of t)e=p(e,l),o++;return e=a(e,o),e}i.hashCode=r;function n(t){let s=t.length;if(s===0)return 0;let e=0;for(let o=0;o<s;o++){let l=t.charCodeAt(o);e=(e<<5>>>0)-e+l,e|=0}return e}})(u.MurmurHash||(u.MurmurHash={}))})(Ds)),Ds}var Sr={},El;function Ze(){if(El)return Sr;El=1;var u=Sr&&Sr.__decorate||function(h,p,a,r){var n=arguments.length,t=n<3?p:r===null?r=Object.getOwnPropertyDescriptor(p,a):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(h,p,a,r);else for(var e=h.length-1;e>=0;e--)(s=h[e])&&(t=(n<3?s(t):n>3?s(p,a,t):s(p,a))||t);return n>3&&t&&Object.defineProperty(p,a,t),t};Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.ObjectEqualityComparator=void 0;const i=Q();let c=class{hashCode(p){return p==null?0:p.hashCode()}equals(p,a){return p==null?a==null:p.equals(a)}};return c.INSTANCE=new c,u([i.Override],c.prototype,"hashCode",null),u([i.Override],c.prototype,"equals",null),Sr.ObjectEqualityComparator=c,Sr}var Sl;function p0(){if(Sl)return Er;Sl=1;var u=Er&&Er.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(Er,"__esModule",{value:!0}),Er.DefaultEqualityComparator=void 0;const i=Q(),c=Pe(),h=Ze();let p=class{hashCode(r){return r==null?0:typeof r=="string"||typeof r=="number"?c.MurmurHash.hashCode([r]):h.ObjectEqualityComparator.INSTANCE.hashCode(r)}equals(r,n){return r==null?n==null:typeof r=="string"||typeof r=="number"?r===n:h.ObjectEqualityComparator.INSTANCE.equals(r,n)}};return p.INSTANCE=new p,u([i.Override],p.prototype,"hashCode",null),u([i.Override],p.prototype,"equals",null),Er.DefaultEqualityComparator=p,Er}var Nl;function cr(){if(Nl)return st;Nl=1;var u=st&&st.__decorate||function(s,e,o,l){var f=arguments.length,d=f<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,o):l,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(s,e,o,l);else for(var x=s.length-1;x>=0;x--)(g=s[x])&&(d=(f<3?g(d):f>3?g(e,o,d):g(e,o))||d);return f>3&&d&&Object.defineProperty(e,o,d),d},i=st&&st.__param||function(s,e){return function(o,l){e(o,l,s)}};Object.defineProperty(st,"__esModule",{value:!0}),st.Array2DHashSet=void 0;const c=Fe(),h=p0(),p=Q(),a=Pe(),r=16,n=.75;let t=class Vi{constructor(e,o=r){if(this.n=0,this.threshold=Math.floor(r*n),e instanceof Vi){this.comparator=e.comparator,this.buckets=e.buckets.slice(0);for(let l=0;l<this.buckets.length;l++){let f=this.buckets[l];f&&(this.buckets[l]=f.slice(0))}this.n=e.n,this.threshold=e.threshold}else this.comparator=e||h.DefaultEqualityComparator.INSTANCE,this.buckets=this.createBuckets(o)}getOrAdd(e){return this.n>this.threshold&&this.expand(),this.getOrAddImpl(e)}getOrAddImpl(e){let o=this.getBucket(e),l=this.buckets[o];if(!l)return l=[e],this.buckets[o]=l,this.n++,e;for(let f of l)if(this.comparator.equals(f,e))return f;return l.push(e),this.n++,e}get(e){if(e==null)return e;let o=this.getBucket(e),l=this.buckets[o];if(l){for(let f of l)if(this.comparator.equals(f,e))return f}}getBucket(e){return this.comparator.hashCode(e)&this.buckets.length-1}hashCode(){let e=a.MurmurHash.initialize();for(let o of this.buckets)if(o!=null)for(let l of o){if(l==null)break;e=a.MurmurHash.update(e,this.comparator.hashCode(l))}return e=a.MurmurHash.finish(e,this.size),e}equals(e){return e===this?!0:!(e instanceof Vi)||e.size!==this.size?!1:this.containsAll(e)}expand(){let e=this.buckets,o=this.buckets.length*2,l=this.createBuckets(o);this.buckets=l,this.threshold=Math.floor(o*n);let f=this.size;for(let d of e)if(d)for(let g of d){let x=this.getBucket(g),m=this.buckets[x];m||(m=[],this.buckets[x]=m),m.push(g)}c(this.n===f)}add(e){return this.getOrAdd(e)===e}get size(){return this.n}get isEmpty(){return this.n===0}contains(e){return this.containsFast(this.asElementType(e))}containsFast(e){return e==null?!1:this.get(e)!=null}*[Symbol.iterator](){yield*this.toArray()}toArray(){const e=new Array(this.size);let o=0;for(let l of this.buckets)if(l!=null)for(let f of l){if(f==null)break;e[o++]=f}return e}containsAll(e){if(e instanceof Vi){let o=e;for(let l of o.buckets)if(l!=null)for(let f of l){if(f==null)break;if(!this.containsFast(this.asElementType(f)))return!1}}else for(let o of e)if(!this.containsFast(this.asElementType(o)))return!1;return!0}addAll(e){let o=!1;for(let l of e)this.getOrAdd(l)!==l&&(o=!0);return o}clear(){this.buckets=this.createBuckets(r),this.n=0,this.threshold=Math.floor(r*n)}toString(){if(this.size===0)return"{}";let e="{",o=!0;for(let l of this.buckets)if(l!=null)for(let f of l){if(f==null)break;o?o=!1:e+=", ",e+=f.toString()}return e+="}",e}toTableString(){let e="";for(let o of this.buckets){if(o==null){e+=`null
|
|
66
|
+
`));var W=new e({actual:A,expected:S,message:C,operator:R,stackStartFn:P});throw W.generatedMessage=M,W}}b.match=function A(S,C,P){F(S,C,P,A,"match")},b.doesNotMatch=function A(S,C,P){F(S,C,P,A,"doesNotMatch")};function E(){for(var A=arguments.length,S=new Array(A),C=0;C<A;C++)S[C]=arguments[C];z.apply(void 0,[E,S.length].concat(S))}return b.strict=x(E,b,{equal:b.strictEqual,deepEqual:b.deepStrictEqual,notEqual:b.notStrictEqual,notDeepEqual:b.notDeepStrictEqual}),b.strict.strict=b.strict,Yi.exports}var Ge={},yl;function Q(){if(yl)return Ge;yl=1;Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.SuppressWarnings=Ge.Override=Ge.Nullable=Ge.NotNull=void 0;function u(p,a,n){}Ge.NotNull=u;function r(p,a,n){}Ge.Nullable=r;function c(p,a,n){}Ge.Override=c;function h(p){return(a,n,i)=>{}}return Ge.SuppressWarnings=h,Ge}var Os={},_l;function ur(){return _l||(_l=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.IntStream=void 0,(function(r){r.EOF=-1,r.UNKNOWN_SOURCE_NAME="<unknown>"})(u.IntStream||(u.IntStream={}))})(Os)),Os}var ml;function y0(){if(ml)return gr;ml=1;var u=gr&&gr.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(gr,"__esModule",{value:!0}),gr.ANTLRInputStream=void 0;const r=Fe(),c=Q(),h=ur();let p=class{constructor(n){this.p=0,this.data=n,this.n=n.length}reset(){this.p=0}consume(){if(this.p>=this.n)throw r(this.LA(1)===h.IntStream.EOF),new Error("cannot consume EOF");this.p<this.n&&this.p++}LA(n){return n===0?0:n<0&&(n++,this.p+n-1<0)||this.p+n-1>=this.n?h.IntStream.EOF:this.data.charCodeAt(this.p+n-1)}LT(n){return this.LA(n)}get index(){return this.p}get size(){return this.n}mark(){return-1}release(n){}seek(n){if(n<=this.p){this.p=n;return}for(n=Math.min(n,this.n);this.p<n;)this.consume()}getText(n){let i=n.a,t=n.b;t>=this.n&&(t=this.n-1);let s=t-i+1;return i>=this.n?"":this.data.substr(i,s)}get sourceName(){return this.name?this.name:h.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}};return u([c.Override],p.prototype,"consume",null),u([c.Override],p.prototype,"LA",null),u([c.Override],p.prototype,"index",null),u([c.Override],p.prototype,"size",null),u([c.Override],p.prototype,"mark",null),u([c.Override],p.prototype,"release",null),u([c.Override],p.prototype,"seek",null),u([c.Override],p.prototype,"getText",null),u([c.Override],p.prototype,"sourceName",null),u([c.Override],p.prototype,"toString",null),gr.ANTLRInputStream=p,gr}var Ar={},rt={},kn={},gl;function nt(){return gl||(gl=1,(function(u){var r=kn&&kn.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s};Object.defineProperty(u,"__esModule",{value:!0}),u.ATNState=void 0;const c=Q();let h=class vu{constructor(){this.stateNumber=vu.INVALID_STATE_NUMBER,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.optimizedTransitions=this.transitions}getStateNumber(){return this.stateNumber}get nonStopStateNumber(){return this.getStateNumber()}hashCode(){return this.stateNumber}equals(a){return a instanceof vu?this.stateNumber===a.stateNumber:!1}get isNonGreedyExitState(){return!1}toString(){return String(this.stateNumber)}getTransitions(){return this.transitions.slice(0)}get numberOfTransitions(){return this.transitions.length}addTransition(a,n){if(this.transitions.length===0)this.epsilonOnlyTransitions=a.isEpsilon;else if(this.epsilonOnlyTransitions!==a.isEpsilon)throw this.epsilonOnlyTransitions=!1,new Error("ATN state "+this.stateNumber+" has both epsilon and non-epsilon transitions.");this.transitions.splice(n!==void 0?n:this.transitions.length,0,a)}transition(a){return this.transitions[a]}setTransition(a,n){this.transitions[a]=n}removeTransition(a){return this.transitions.splice(a,1)[0]}get onlyHasEpsilonTransitions(){return this.epsilonOnlyTransitions}setRuleIndex(a){this.ruleIndex=a}get isOptimized(){return this.optimizedTransitions!==this.transitions}get numberOfOptimizedTransitions(){return this.optimizedTransitions.length}getOptimizedTransition(a){return this.optimizedTransitions[a]}addOptimizedTransition(a){this.isOptimized||(this.optimizedTransitions=new Array),this.optimizedTransitions.push(a)}setOptimizedTransition(a,n){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions[a]=n}removeOptimizedTransition(a){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions.splice(a,1)}};r([c.Override],h.prototype,"hashCode",null),r([c.Override],h.prototype,"equals",null),r([c.Override],h.prototype,"toString",null),u.ATNState=h,(function(p){p.INVALID_STATE_NUMBER=-1})(h=u.ATNState||(u.ATNState={}))})(kn)),kn}var Rs={},vl;function Ie(){return vl||(vl=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ATNStateType=void 0,(function(r){r[r.INVALID_TYPE=0]="INVALID_TYPE",r[r.BASIC=1]="BASIC",r[r.RULE_START=2]="RULE_START",r[r.BLOCK_START=3]="BLOCK_START",r[r.PLUS_BLOCK_START=4]="PLUS_BLOCK_START",r[r.STAR_BLOCK_START=5]="STAR_BLOCK_START",r[r.TOKEN_START=6]="TOKEN_START",r[r.RULE_STOP=7]="RULE_STOP",r[r.BLOCK_END=8]="BLOCK_END",r[r.STAR_LOOP_BACK=9]="STAR_LOOP_BACK",r[r.STAR_LOOP_ENTRY=10]="STAR_LOOP_ENTRY",r[r.PLUS_LOOP_BACK=11]="PLUS_LOOP_BACK",r[r.LOOP_END=12]="LOOP_END"})(u.ATNStateType||(u.ATNStateType={}))})(Rs)),Rs}var it={},Un={},Al;function ar(){if(Al)return Un;Al=1;Object.defineProperty(Un,"__esModule",{value:!0}),Un.RecognitionException=void 0;let u=class extends Error{constructor(c,h,p,a){super(a),this._offendingState=-1,this._recognizer=c,this.input=h,this.ctx=p,c&&(this._offendingState=c.state)}get offendingState(){return this._offendingState}setOffendingState(c){this._offendingState=c}get expectedTokens(){if(this._recognizer)return this._recognizer.atn.getExpectedTokens(this._offendingState,this.ctx)}get context(){return this.ctx}get inputStream(){return this.input}getOffendingToken(c){if(!(c&&c!==this._recognizer))return this.offendingToken}setOffendingToken(c,h){c===this._recognizer&&(this.offendingToken=h)}get recognizer(){return this._recognizer}};return Un.RecognitionException=u,Un}var ot={},zn={},st={},Tl;function lr(){if(Tl)return st;Tl=1;var u=st&&st.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s},r=st&&st.__param||function(p,a){return function(n,i){a(n,i,p)}};Object.defineProperty(st,"__esModule",{value:!0}),st.Transition=void 0;const c=Q();let h=class{constructor(a){if(a==null)throw new Error("target cannot be null.");this.target=a}get isEpsilon(){return!1}get label(){}};return h.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],u([c.NotNull],h.prototype,"target",void 0),h=u([r(0,c.NotNull)],h),st.Transition=h,st}var El;function Ps(){if(El)return zn;El=1;Object.defineProperty(zn,"__esModule",{value:!0}),zn.AbstractPredicateTransition=void 0;const u=lr();let r=class extends u.Transition{constructor(h){super(h)}};return zn.AbstractPredicateTransition=r,zn}var Tr={},ut={},Er={},Ds={},Sl;function Pe(){return Sl||(Sl=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.MurmurHash=void 0,(function(r){function h(t=0){return t}r.initialize=h;function p(t,s){s==null?s=0:typeof s=="string"?s=i(s):typeof s=="object"&&(s=s.hashCode());let x=s;return x=Math.imul(x,3432918353),x=x<<15|x>>>17,x=Math.imul(x,461845907),t=t^x,t=t<<13|t>>>19,t=Math.imul(t,5)+3864292196,t&4294967295}r.update=p;function a(t,s){return t=t^s*4,t=t^t>>>16,t=Math.imul(t,2246822507),t=t^t>>>13,t=Math.imul(t,3266489909),t=t^t>>>16,t}r.finish=a;function n(t,s=0){let e=h(s),o=0;for(let l of t)e=p(e,l),o++;return e=a(e,o),e}r.hashCode=n;function i(t){let s=t.length;if(s===0)return 0;let e=0;for(let o=0;o<s;o++){let l=t.charCodeAt(o);e=(e<<5>>>0)-e+l,e|=0}return e}})(u.MurmurHash||(u.MurmurHash={}))})(Ds)),Ds}var Sr={},Nl;function Ze(){if(Nl)return Sr;Nl=1;var u=Sr&&Sr.__decorate||function(h,p,a,n){var i=arguments.length,t=i<3?p:n===null?n=Object.getOwnPropertyDescriptor(p,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(h,p,a,n);else for(var e=h.length-1;e>=0;e--)(s=h[e])&&(t=(i<3?s(t):i>3?s(p,a,t):s(p,a))||t);return i>3&&t&&Object.defineProperty(p,a,t),t};Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.ObjectEqualityComparator=void 0;const r=Q();let c=class{hashCode(p){return p==null?0:p.hashCode()}equals(p,a){return p==null?a==null:p.equals(a)}};return c.INSTANCE=new c,u([r.Override],c.prototype,"hashCode",null),u([r.Override],c.prototype,"equals",null),Sr.ObjectEqualityComparator=c,Sr}var bl;function _0(){if(bl)return Er;bl=1;var u=Er&&Er.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(Er,"__esModule",{value:!0}),Er.DefaultEqualityComparator=void 0;const r=Q(),c=Pe(),h=Ze();let p=class{hashCode(n){return n==null?0:typeof n=="string"||typeof n=="number"?c.MurmurHash.hashCode([n]):h.ObjectEqualityComparator.INSTANCE.hashCode(n)}equals(n,i){return n==null?i==null:typeof n=="string"||typeof n=="number"?n===i:h.ObjectEqualityComparator.INSTANCE.equals(n,i)}};return p.INSTANCE=new p,u([r.Override],p.prototype,"hashCode",null),u([r.Override],p.prototype,"equals",null),Er.DefaultEqualityComparator=p,Er}var Cl;function cr(){if(Cl)return ut;Cl=1;var u=ut&&ut.__decorate||function(s,e,o,l){var f=arguments.length,d=f<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,o):l,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(s,e,o,l);else for(var x=s.length-1;x>=0;x--)(g=s[x])&&(d=(f<3?g(d):f>3?g(e,o,d):g(e,o))||d);return f>3&&d&&Object.defineProperty(e,o,d),d},r=ut&&ut.__param||function(s,e){return function(o,l){e(o,l,s)}};Object.defineProperty(ut,"__esModule",{value:!0}),ut.Array2DHashSet=void 0;const c=Fe(),h=_0(),p=Q(),a=Pe(),n=16,i=.75;let t=class Vi{constructor(e,o=n){if(this.n=0,this.threshold=Math.floor(n*i),e instanceof Vi){this.comparator=e.comparator,this.buckets=e.buckets.slice(0);for(let l=0;l<this.buckets.length;l++){let f=this.buckets[l];f&&(this.buckets[l]=f.slice(0))}this.n=e.n,this.threshold=e.threshold}else this.comparator=e||h.DefaultEqualityComparator.INSTANCE,this.buckets=this.createBuckets(o)}getOrAdd(e){return this.n>this.threshold&&this.expand(),this.getOrAddImpl(e)}getOrAddImpl(e){let o=this.getBucket(e),l=this.buckets[o];if(!l)return l=[e],this.buckets[o]=l,this.n++,e;for(let f of l)if(this.comparator.equals(f,e))return f;return l.push(e),this.n++,e}get(e){if(e==null)return e;let o=this.getBucket(e),l=this.buckets[o];if(l){for(let f of l)if(this.comparator.equals(f,e))return f}}getBucket(e){return this.comparator.hashCode(e)&this.buckets.length-1}hashCode(){let e=a.MurmurHash.initialize();for(let o of this.buckets)if(o!=null)for(let l of o){if(l==null)break;e=a.MurmurHash.update(e,this.comparator.hashCode(l))}return e=a.MurmurHash.finish(e,this.size),e}equals(e){return e===this?!0:!(e instanceof Vi)||e.size!==this.size?!1:this.containsAll(e)}expand(){let e=this.buckets,o=this.buckets.length*2,l=this.createBuckets(o);this.buckets=l,this.threshold=Math.floor(o*i);let f=this.size;for(let d of e)if(d)for(let g of d){let x=this.getBucket(g),m=this.buckets[x];m||(m=[],this.buckets[x]=m),m.push(g)}c(this.n===f)}add(e){return this.getOrAdd(e)===e}get size(){return this.n}get isEmpty(){return this.n===0}contains(e){return this.containsFast(this.asElementType(e))}containsFast(e){return e==null?!1:this.get(e)!=null}*[Symbol.iterator](){yield*this.toArray()}toArray(){const e=new Array(this.size);let o=0;for(let l of this.buckets)if(l!=null)for(let f of l){if(f==null)break;e[o++]=f}return e}containsAll(e){if(e instanceof Vi){let o=e;for(let l of o.buckets)if(l!=null)for(let f of l){if(f==null)break;if(!this.containsFast(this.asElementType(f)))return!1}}else for(let o of e)if(!this.containsFast(this.asElementType(o)))return!1;return!0}addAll(e){let o=!1;for(let l of e)this.getOrAdd(l)!==l&&(o=!0);return o}clear(){this.buckets=this.createBuckets(n),this.n=0,this.threshold=Math.floor(n*i)}toString(){if(this.size===0)return"{}";let e="{",o=!0;for(let l of this.buckets)if(l!=null)for(let f of l){if(f==null)break;o?o=!1:e+=", ",e+=f.toString()}return e+="}",e}toTableString(){let e="";for(let o of this.buckets){if(o==null){e+=`null
|
|
67
67
|
`;continue}e+="[";let l=!0;for(let f of o)l?l=!1:e+=" ",f==null?e+="_":e+=f.toString();e+=`]
|
|
68
|
-
`}return e}asElementType(e){return e}createBuckets(e){return new Array(e)}};return u([p.NotNull],t.prototype,"comparator",void 0),u([p.Override],t.prototype,"hashCode",null),u([p.Override],t.prototype,"equals",null),u([p.Override],t.prototype,"add",null),u([p.Override],t.prototype,"size",null),u([p.Override],t.prototype,"isEmpty",null),u([p.Override],t.prototype,"contains",null),u([i(0,p.Nullable)],t.prototype,"containsFast",null),u([p.Override],t.prototype,Symbol.iterator,null),u([p.Override],t.prototype,"toArray",null),u([p.Override],t.prototype,"containsAll",null),u([p.Override],t.prototype,"addAll",null),u([p.Override],t.prototype,"clear",null),u([p.Override],t.prototype,"toString",null),u([p.SuppressWarnings("unchecked")],t.prototype,"asElementType",null),u([p.SuppressWarnings("unchecked")],t.prototype,"createBuckets",null),st.Array2DHashSet=t,st}var Nr={},bl;function Di(){if(bl)return Nr;bl=1;var u=Nr&&Nr.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.ArrayEqualityComparator=void 0;const i=Q(),c=Pe(),h=Ze();let p=class{hashCode(r){return r==null?0:c.MurmurHash.hashCode(r,0)}equals(r,n){if(r==null)return n==null;if(n==null||r.length!==n.length)return!1;for(let t=0;t<r.length;t++)if(!h.ObjectEqualityComparator.INSTANCE.equals(r[t],n[t]))return!1;return!0}};return p.INSTANCE=new p,u([i.Override],p.prototype,"hashCode",null),u([i.Override],p.prototype,"equals",null),Nr.ArrayEqualityComparator=p,Nr}var qe={},Cl;function ut(){if(Cl)return qe;Cl=1;Object.defineProperty(qe,"__esModule",{value:!0}),qe.toCharArray=qe.toMap=qe.equals=qe.join=qe.escapeWhitespace=void 0;function u(a,r){return r?a.replace(/ /,"·"):a.replace(/\t/,"\\t").replace(/\n/,"\\n").replace(/\r/,"\\r")}qe.escapeWhitespace=u;function i(a,r){let n="",t=!0;for(let s of a)t?t=!1:n+=r,n+=s;return n}qe.join=i;function c(a,r){return a===r?!0:a===void 0||r===void 0?!1:a.equals(r)}qe.equals=c;function h(a){let r=new Map;for(let n=0;n<a.length;n++)r.set(a[n],n);return r}qe.toMap=h;function p(a){if(typeof a=="string"){let r=new Uint16Array(a.length);for(let n=0;n<a.length;n++)r[n]=a.charCodeAt(n);return r}else return a.toCharArray()}return qe.toCharArray=p,qe}var Ol;function Ln(){return Ol||(Ol=1,(function(u){var i=Tr&&Tr.__decorate||function(l,f,d,g){var x=arguments.length,m=x<3?f:g===null?g=Object.getOwnPropertyDescriptor(f,d):g,y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(l,f,d,g);else for(var _=l.length-1;_>=0;_--)(y=l[_])&&(m=(x<3?y(m):x>3?y(f,d,m):y(f,d))||m);return x>3&&m&&Object.defineProperty(f,d,m),m},c=Tr&&Tr.__param||function(l,f){return function(d,g){f(d,g,l)}};Object.defineProperty(u,"__esModule",{value:!0}),u.SemanticContext=void 0;const h=cr(),p=Di(),a=Pe(),r=Q(),n=Ze(),t=ut();function s(l){let f;for(let d of l){if(f===void 0){f=d;continue}f.compareTo(d)<0&&(f=d)}return f}function e(l){let f;for(let d of l){if(f===void 0){f=d;continue}f.compareTo(d)>0&&(f=d)}return f}let o=class He{static get NONE(){return He._NONE===void 0&&(He._NONE=new He.Predicate),He._NONE}evalPrecedence(f,d){return this}static and(f,d){if(!f||f===He.NONE)return d;if(d===He.NONE)return f;let g=new He.AND(f,d);return g.opnds.length===1?g.opnds[0]:g}static or(f,d){if(!f)return d;if(f===He.NONE||d===He.NONE)return He.NONE;let g=new He.OR(f,d);return g.opnds.length===1?g.opnds[0]:g}};u.SemanticContext=o,(function(l){function g(N){let T=[];for(let b=0;b<N.length;b++){let O=N[b];O instanceof l.PrecedencePredicate&&(T.push(O),N.splice(b,1),b--)}return T}class x extends l{constructor(T=-1,b=-1,O=!1){super(),this.ruleIndex=T,this.predIndex=b,this.isCtxDependent=O}eval(T,b){let O=this.isCtxDependent?b:void 0;return T.sempred(O,this.ruleIndex,this.predIndex)}hashCode(){let T=a.MurmurHash.initialize();return T=a.MurmurHash.update(T,this.ruleIndex),T=a.MurmurHash.update(T,this.predIndex),T=a.MurmurHash.update(T,this.isCtxDependent?1:0),T=a.MurmurHash.finish(T,3),T}equals(T){return T instanceof x?this===T?!0:this.ruleIndex===T.ruleIndex&&this.predIndex===T.predIndex&&this.isCtxDependent===T.isCtxDependent:!1}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}i([r.Override],x.prototype,"eval",null),i([r.Override],x.prototype,"hashCode",null),i([r.Override],x.prototype,"equals",null),i([r.Override],x.prototype,"toString",null),l.Predicate=x;class m extends l{constructor(T){super(),this.precedence=T}eval(T,b){return T.precpred(b,this.precedence)}evalPrecedence(T,b){if(T.precpred(b,this.precedence))return l.NONE}compareTo(T){return this.precedence-T.precedence}hashCode(){let T=1;return T=31*T+this.precedence,T}equals(T){return T instanceof m?this===T?!0:this.precedence===T.precedence:!1}toString(){return"{"+this.precedence+">=prec}?"}}i([r.Override],m.prototype,"eval",null),i([r.Override],m.prototype,"evalPrecedence",null),i([r.Override],m.prototype,"compareTo",null),i([r.Override],m.prototype,"hashCode",null),i([r.Override],m.prototype,"equals",null),i([r.Override],m.prototype,"toString",null),l.PrecedencePredicate=m;class y extends l{}l.Operator=y;let _=class Wi extends y{constructor(T,b){super();let O=new h.Array2DHashSet(n.ObjectEqualityComparator.INSTANCE);T instanceof Wi?O.addAll(T.opnds):O.add(T),b instanceof Wi?O.addAll(b.opnds):O.add(b),this.opnds=O.toArray();let D=g(this.opnds),k=e(D);k&&this.opnds.push(k)}get operands(){return this.opnds}equals(T){return this===T?!0:T instanceof Wi?p.ArrayEqualityComparator.INSTANCE.equals(this.opnds,T.opnds):!1}hashCode(){return a.MurmurHash.hashCode(this.opnds,40363613)}eval(T,b){for(let O of this.opnds)if(!O.eval(T,b))return!1;return!0}evalPrecedence(T,b){let O=!1,D=[];for(let z of this.opnds){let U=z.evalPrecedence(T,b);if(O=O||U!==z,U==null)return;U!==l.NONE&&D.push(U)}if(!O)return this;if(D.length===0)return l.NONE;let k=D[0];for(let z=1;z<D.length;z++)k=l.and(k,D[z]);return k}toString(){return t.join(this.opnds,"&&")}};i([r.Override],_.prototype,"operands",null),i([r.Override],_.prototype,"equals",null),i([r.Override],_.prototype,"hashCode",null),i([r.Override],_.prototype,"eval",null),i([r.Override],_.prototype,"evalPrecedence",null),i([r.Override],_.prototype,"toString",null),_=i([c(0,r.NotNull),c(1,r.NotNull)],_),l.AND=_;let v=class Gi extends y{constructor(T,b){super();let O=new h.Array2DHashSet(n.ObjectEqualityComparator.INSTANCE);T instanceof Gi?O.addAll(T.opnds):O.add(T),b instanceof Gi?O.addAll(b.opnds):O.add(b),this.opnds=O.toArray();let D=g(this.opnds),k=s(D);k&&this.opnds.push(k)}get operands(){return this.opnds}equals(T){return this===T?!0:T instanceof Gi?p.ArrayEqualityComparator.INSTANCE.equals(this.opnds,T.opnds):!1}hashCode(){return a.MurmurHash.hashCode(this.opnds,486279973)}eval(T,b){for(let O of this.opnds)if(O.eval(T,b))return!0;return!1}evalPrecedence(T,b){let O=!1,D=[];for(let z of this.opnds){let U=z.evalPrecedence(T,b);if(O=O||U!==z,U===l.NONE)return l.NONE;U&&D.push(U)}if(!O)return this;if(D.length===0)return;let k=D[0];for(let z=1;z<D.length;z++)k=l.or(k,D[z]);return k}toString(){return t.join(this.opnds,"||")}};i([r.Override],v.prototype,"operands",null),i([r.Override],v.prototype,"equals",null),i([r.Override],v.prototype,"hashCode",null),i([r.Override],v.prototype,"eval",null),i([r.Override],v.prototype,"evalPrecedence",null),i([r.Override],v.prototype,"toString",null),v=i([c(0,r.NotNull),c(1,r.NotNull)],v),l.OR=v})(o=u.SemanticContext||(u.SemanticContext={}))})(Tr)),Tr}var Rl;function Pl(){if(Rl)return it;Rl=1;var u=it&&it.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o},i=it&&it.__param||function(r,n){return function(t,s){n(t,s,r)}};Object.defineProperty(it,"__esModule",{value:!0}),it.PredicateTransition=void 0;const c=Ps(),h=Q(),p=Ln();let a=class extends c.AbstractPredicateTransition{constructor(n,t,s,e){super(n),this.ruleIndex=t,this.predIndex=s,this.isCtxDependent=e}get serializationType(){return 4}get isEpsilon(){return!0}matches(n,t,s){return!1}get predicate(){return new p.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}};return u([h.Override],a.prototype,"serializationType",null),u([h.Override],a.prototype,"isEpsilon",null),u([h.Override],a.prototype,"matches",null),u([h.Override,h.NotNull],a.prototype,"toString",null),a=u([i(0,h.NotNull)],a),it.PredicateTransition=a,it}var Dl;function Ii(){if(Dl)return nt;Dl=1;var u=nt&&nt.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o},i=nt&&nt.__param||function(r,n){return function(t,s){n(t,s,r)}};Object.defineProperty(nt,"__esModule",{value:!0}),nt.FailedPredicateException=void 0;const c=ar(),h=Q(),p=Pl();let a=class np extends c.RecognitionException{constructor(n,t,s){super(n,n.inputStream,n.context,np.formatMessage(t,s));let o=n.interpreter.atn.states[n.state].transition(0);o instanceof p.PredicateTransition?(this._ruleIndex=o.ruleIndex,this._predicateIndex=o.predIndex):(this._ruleIndex=0,this._predicateIndex=0),this._predicate=t,super.setOffendingToken(n,n.currentToken)}get ruleIndex(){return this._ruleIndex}get predicateIndex(){return this._predicateIndex}get predicate(){return this._predicate}static formatMessage(n,t){return t||`failed predicate: {${n}}?`}};return u([h.NotNull],a,"formatMessage",null),a=u([i(0,h.NotNull)],a),nt.FailedPredicateException=a,nt}var at={},Il;function wi(){if(Il)return at;Il=1;var u=at&&at.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=at&&at.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(at,"__esModule",{value:!0}),at.InputMismatchException=void 0;const c=ar(),h=Q();let p=class extends c.RecognitionException{constructor(r,n,t){t===void 0&&(t=r.context),super(r,r.inputStream,t),n!==void 0&&this.setOffendingState(n),this.setOffendingToken(r,r.currentToken)}};return p=u([i(0,h.NotNull)],p),at.InputMismatchException=p,at}var lt={},br={},Is={},wl;function ws(){return wl||(wl=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Arrays=void 0,(function(i){function c(a,r,n,t){return h(a,n!==void 0?n:0,t!==void 0?t:a.length,r)}i.binarySearch=c;function h(a,r,n,t){let s=r,e=n-1;for(;s<=e;){let o=s+e>>>1,l=a[o];if(l<t)s=o+1;else if(l>t)e=o-1;else return o}return-(s+1)}function p(a){let r="[",n=!0;for(let t of a)n?n=!1:r+=", ",t===null?r+="null":t===void 0?r+="undefined":r+=t;return r+="]",r}i.toString=p})(u.Arrays||(u.Arrays={}))})(Is)),Is}var Ll;function Ls(){if(Ll)return br;Ll=1;var u=br&&br.__decorate||function(n,t,s,e){var o=arguments.length,l=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,t,s,e);else for(var d=n.length-1;d>=0;d--)(f=n[d])&&(l=(o<3?f(l):o>3?f(t,s,l):f(t,s))||l);return o>3&&l&&Object.defineProperty(t,s,l),l};Object.defineProperty(br,"__esModule",{value:!0}),br.IntegerList=void 0;const i=ws(),c=Q(),h=new Int32Array(0),p=4,a=(1<<31>>>0)-1-8;let r=class Xi{constructor(t){if(!t)this._data=h,this._size=0;else if(t instanceof Xi)this._data=t._data.slice(0),this._size=t._size;else if(typeof t=="number")t===0?(this._data=h,this._size=0):(this._data=new Int32Array(t),this._size=0);else{this._data=h,this._size=0;for(let s of t)this.add(s)}}add(t){this._data.length===this._size&&this.ensureCapacity(this._size+1),this._data[this._size]=t,this._size++}addAll(t){if(Array.isArray(t))this.ensureCapacity(this._size+t.length),this._data.subarray(this._size,this._size+t.length).set(t),this._size+=t.length;else if(t instanceof Xi)this.ensureCapacity(this._size+t._size),this._data.subarray(this._size,this._size+t.size).set(t._data),this._size+=t._size;else{this.ensureCapacity(this._size+t.size);let s=0;for(let e of t)this._data[this._size+s]=e,s++;this._size+=t.size}}get(t){if(t<0||t>=this._size)throw RangeError();return this._data[t]}contains(t){for(let s=0;s<this._size;s++)if(this._data[s]===t)return!0;return!1}set(t,s){if(t<0||t>=this._size)throw RangeError();let e=this._data[t];return this._data[t]=s,e}removeAt(t){let s=this.get(t);return this._data.copyWithin(t,t+1,this._size),this._data[this._size-1]=0,this._size--,s}removeRange(t,s){if(t<0||s<0||t>this._size||s>this._size||t>s)throw RangeError();this._data.copyWithin(s,t,this._size),this._data.fill(0,this._size-(s-t),this._size),this._size-=s-t}get isEmpty(){return this._size===0}get size(){return this._size}trimToSize(){this._data.length!==this._size&&(this._data=this._data.slice(0,this._size))}clear(){this._data.fill(0,0,this._size),this._size=0}toArray(){return this._size===0?[]:Array.from(this._data.subarray(0,this._size))}sort(){this._data.subarray(0,this._size).sort()}equals(t){if(t===this)return!0;if(!(t instanceof Xi)||this._size!==t._size)return!1;for(let s=0;s<this._size;s++)if(this._data[s]!==t._data[s])return!1;return!0}hashCode(){let t=1;for(let s=0;s<this._size;s++)t=31*t+this._data[s];return t}toString(){return this._data.toString()}binarySearch(t,s,e){if(s===void 0&&(s=0),e===void 0&&(e=this._size),s<0||e<0||s>this._size||e>this._size)throw new RangeError;if(s>e)throw new RangeError;return i.Arrays.binarySearch(this._data,t,s,e)}ensureCapacity(t){if(t<0||t>a)throw new RangeError;let s;for(this._data.length===0?s=p:s=this._data.length;s<t;)s=s*2,(s<0||s>a)&&(s=a);let e=new Int32Array(s);e.set(this._data),this._data=e}toCharArray(){let t=new Uint16Array(this._size),s=0,e=!1;for(let o=0;o<this._size;o++){let l=this._data[o];if(l>=0&&l<65536){t[s]=l,s++;continue}if(!e){let d=new Uint16Array(this.charArraySize());d.set(t,0),t=d,e=!0}let f=String.fromCodePoint(l);t[s]=f.charCodeAt(0),t[s+1]=f.charCodeAt(1),s+=2}return t}charArraySize(){let t=0;for(let s=0;s<this._size;s++)t+=this._data[s]>=65536?2:1;return t}};return u([c.NotNull],r.prototype,"_data",void 0),u([c.Override],r.prototype,"equals",null),u([c.Override],r.prototype,"hashCode",null),u([c.Override],r.prototype,"toString",null),br.IntegerList=r,br}var Cr={},Fl;function je(){if(Fl)return Cr;Fl=1;var u=Cr&&Cr.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s};Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.Interval=void 0;const i=Q(),c=1e3;let h=class Ve{constructor(a,r){this.a=a,this.b=r}static get INVALID(){return Ve._INVALID}static of(a,r){return a!==r||a<0||a>c?new Ve(a,r):(Ve.cache[a]==null&&(Ve.cache[a]=new Ve(a,a)),Ve.cache[a])}get length(){return this.b<this.a?0:this.b-this.a+1}equals(a){return a===this?!0:a instanceof Ve?this.a===a.a&&this.b===a.b:!1}hashCode(){let a=23;return a=a*31+this.a,a=a*31+this.b,a}startsBeforeDisjoint(a){return this.a<a.a&&this.b<a.a}startsBeforeNonDisjoint(a){return this.a<=a.a&&this.b>=a.a}startsAfter(a){return this.a>a.a}startsAfterDisjoint(a){return this.a>a.b}startsAfterNonDisjoint(a){return this.a>a.a&&this.a<=a.b}disjoint(a){return this.startsBeforeDisjoint(a)||this.startsAfterDisjoint(a)}adjacent(a){return this.a===a.b+1||this.b===a.a-1}properlyContains(a){return a.a>=this.a&&a.b<=this.b}union(a){return Ve.of(Math.min(this.a,a.a),Math.max(this.b,a.b))}intersection(a){return Ve.of(Math.max(this.a,a.a),Math.min(this.b,a.b))}differenceNotProperlyContained(a){let r;return a.startsBeforeNonDisjoint(this)?r=Ve.of(Math.max(this.a,a.b+1),this.b):a.startsAfterNonDisjoint(this)&&(r=Ve.of(this.a,a.a-1)),r}toString(){return this.a+".."+this.b}};return h._INVALID=new h(-1,-2),h.cache=new Array(c+1),u([i.Override],h.prototype,"equals",null),u([i.Override],h.prototype,"hashCode",null),u([i.Override],h.prototype,"toString",null),Cr.Interval=h,Cr}var Or={},Hn={},ct={},Fs={},Bl;function Ne(){return Bl||(Bl=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Token=void 0;const i=ur();(function(c){c.INVALID_TYPE=0,c.EPSILON=-2,c.MIN_USER_TOKEN_TYPE=1,c.EOF=i.IntStream.EOF,c.DEFAULT_CHANNEL=0,c.HIDDEN_CHANNEL=1,c.MIN_USER_CHANNEL_VALUE=2})(u.Token||(u.Token={}))})(Fs)),Fs}var jl;function Vn(){if(jl)return ct;jl=1;var u=ct&&ct.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o},i=ct&&ct.__param||function(r,n){return function(t,s){n(t,s,r)}};Object.defineProperty(ct,"__esModule",{value:!0}),ct.CommonToken=void 0;const c=je(),h=Q(),p=Ne();let a=class gi{constructor(n,t,s=gi.EMPTY_SOURCE,e=p.Token.DEFAULT_CHANNEL,o=0,l=0){this._line=0,this._charPositionInLine=-1,this._channel=p.Token.DEFAULT_CHANNEL,this.index=-1,this._text=t,this._type=n,this.source=s,this._channel=e,this.start=o,this.stop=l,s.source!=null&&(this._line=s.source.line,this._charPositionInLine=s.source.charPositionInLine)}static fromToken(n){let t=new gi(n.type,void 0,gi.EMPTY_SOURCE,n.channel,n.startIndex,n.stopIndex);return t._line=n.line,t.index=n.tokenIndex,t._charPositionInLine=n.charPositionInLine,n instanceof gi?(t._text=n._text,t.source=n.source):(t._text=n.text,t.source={source:n.tokenSource,stream:n.inputStream}),t}get type(){return this._type}set type(n){this._type=n}get line(){return this._line}set line(n){this._line=n}get text(){if(this._text!=null)return this._text;let n=this.inputStream;if(n==null)return;let t=n.size;return this.start<t&&this.stop<t?n.getText(c.Interval.of(this.start,this.stop)):"<EOF>"}set text(n){this._text=n}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(n){this._charPositionInLine=n}get channel(){return this._channel}set channel(n){this._channel=n}get startIndex(){return this.start}set startIndex(n){this.start=n}get stopIndex(){return this.stop}set stopIndex(n){this.stop=n}get tokenIndex(){return this.index}set tokenIndex(n){this.index=n}get tokenSource(){return this.source.source}get inputStream(){return this.source.stream}toString(n){let t="";this._channel>0&&(t=",channel="+this._channel);let s=this.text;s!=null?(s=s.replace(/\n/g,"\\n"),s=s.replace(/\r/g,"\\r"),s=s.replace(/\t/g,"\\t")):s="<no text>";let e=String(this._type);return n&&(e=n.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+s+"',<"+e+">"+t+","+this._line+":"+this.charPositionInLine+"]"}};return a.EMPTY_SOURCE={source:void 0,stream:void 0},u([h.NotNull],a.prototype,"source",void 0),u([h.Override],a.prototype,"type",null),u([h.Override],a.prototype,"line",null),u([h.Override],a.prototype,"text",null),u([h.Override],a.prototype,"charPositionInLine",null),u([h.Override],a.prototype,"channel",null),u([h.Override],a.prototype,"startIndex",null),u([h.Override],a.prototype,"stopIndex",null),u([h.Override],a.prototype,"tokenIndex",null),u([h.Override],a.prototype,"tokenSource",null),u([h.Override],a.prototype,"inputStream",null),u([h.Override],a.prototype,"toString",null),u([i(0,h.NotNull)],a,"fromToken",null),a=u([i(2,h.NotNull)],a),ct.CommonToken=a,ct}var Ml;function Bs(){return Ml||(Ml=1,(function(u){var i=Hn&&Hn.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(u,"__esModule",{value:!0}),u.CommonTokenFactory=void 0;const c=Vn(),h=je(),p=Q();let a=class{constructor(n=!1){this.copyText=n}create(n,t,s,e,o,l,f,d){let g=new c.CommonToken(t,s,n,e,o,l);return g.line=f,g.charPositionInLine=d,s==null&&this.copyText&&n.stream!=null&&(g.text=n.stream.getText(h.Interval.of(o,l))),g}createSimple(n,t){return new c.CommonToken(n,t)}};i([p.Override],a.prototype,"create",null),i([p.Override],a.prototype,"createSimple",null),u.CommonTokenFactory=a,(function(r){r.DEFAULT=new r})(a=u.CommonTokenFactory||(u.CommonTokenFactory={}))})(Hn)),Hn}var Wn={},ql;function kl(){if(ql)return Wn;ql=1;Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.IntegerStack=void 0;const u=Ls();let i=class extends u.IntegerList{constructor(h){super(h)}push(h){this.add(h)}pop(){return this.removeAt(this.size-1)}peek(){return this.get(this.size-1)}};return Wn.IntegerStack=i,Wn}var Rr={},Gn={},Ul;function zl(){if(Ul)return Gn;Ul=1;Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.AcceptStateInfo=void 0;let u=class{constructor(c,h){this._prediction=c,this._lexerActionExecutor=h}get prediction(){return this._prediction}get lexerActionExecutor(){return this._lexerActionExecutor}};return Gn.AcceptStateInfo=u,Gn}var Pr={},Xn={},Hl;function Fn(){if(Hl)return Xn;Hl=1;Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.Array2DHashMap=void 0;const u=cr();class i{constructor(p){this.keyComparator=p}hashCode(p){return this.keyComparator.hashCode(p.key)}equals(p,a){return this.keyComparator.equals(p.key,a.key)}}let c=class gu{constructor(p){p instanceof gu?this.backingStore=new u.Array2DHashSet(p.backingStore):this.backingStore=new u.Array2DHashSet(new i(p))}clear(){this.backingStore.clear()}containsKey(p){return this.backingStore.contains({key:p})}get(p){let a=this.backingStore.get({key:p});if(a)return a.value}get isEmpty(){return this.backingStore.isEmpty}put(p,a){let r=this.backingStore.get({key:p,value:a}),n;return r?(n=r.value,r.value=a):this.backingStore.add({key:p,value:a}),n}putIfAbsent(p,a){let r=this.backingStore.get({key:p,value:a}),n;return r?n=r.value:this.backingStore.add({key:p,value:a}),n}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(p){return p instanceof gu?this.backingStore.equals(p.backingStore):!1}};return Xn.Array2DHashMap=c,Xn}var ft={},Dr={},ht={},$n={},Vl;function Ir(){if(Vl)return $n;Vl=1;Object.defineProperty($n,"__esModule",{value:!0}),$n.DecisionState=void 0;const u=rt();let i=class extends u.ATNState{constructor(){super(...arguments),this.decision=-1,this.nonGreedy=!1,this.sll=!1}};return $n.DecisionState=i,$n}var wr={},Kn={},Wl;function js(){return Wl||(Wl=1,(function(u){var i=Kn&&Kn.__decorate||function(t,s,e,o){var l=arguments.length,f=l<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,e):o,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(t,s,e,o);else for(var g=t.length-1;g>=0;g--)(d=t[g])&&(f=(l<3?d(f):l>3?d(s,e,f):d(s,e))||f);return l>3&&f&&Object.defineProperty(s,e,f),f};Object.defineProperty(u,"__esModule",{value:!0}),u.PredictionContextCache=void 0;const c=Fn(),h=Q(),p=Ze(),a=Xe(),r=Fe();let n=class vu{constructor(s=!0){this.contexts=new c.Array2DHashMap(p.ObjectEqualityComparator.INSTANCE),this.childContexts=new c.Array2DHashMap(p.ObjectEqualityComparator.INSTANCE),this.joinContexts=new c.Array2DHashMap(p.ObjectEqualityComparator.INSTANCE),this.enableCache=s}getAsCached(s){if(!this.enableCache)return s;let e=this.contexts.get(s);return e||(e=s,this.contexts.put(s,s)),e}getChild(s,e){if(!this.enableCache)return s.getChild(e);let o=new vu.PredictionContextAndInt(s,e),l=this.childContexts.get(o);return l||(l=s.getChild(e),l=this.getAsCached(l),this.childContexts.put(o,l)),l}join(s,e){if(!this.enableCache)return a.PredictionContext.join(s,e,this);let o=new vu.IdentityCommutativePredictionContextOperands(s,e),l=this.joinContexts.get(o);return l||(l=a.PredictionContext.join(s,e,this),l=this.getAsCached(l),this.joinContexts.put(o,l),l)}};u.PredictionContextCache=n,n.UNCACHED=new n(!1),(function(t){class s{constructor(l,f){this.obj=l,this.value=f}equals(l){if(l instanceof s){if(l===this)return!0}else return!1;let f=l;return this.value===f.value&&(this.obj===f.obj||this.obj!=null&&this.obj.equals(f.obj))}hashCode(){let l=5;return l=7*l+(this.obj!=null?this.obj.hashCode():0),l=7*l+this.value,l}}i([h.Override],s.prototype,"equals",null),i([h.Override],s.prototype,"hashCode",null),t.PredictionContextAndInt=s;class e{constructor(l,f){r(l!=null),r(f!=null),this._x=l,this._y=f}get x(){return this._x}get y(){return this._y}equals(l){if(l instanceof e){if(this===l)return!0}else return!1;let f=l;return this._x===f._x&&this._y===f._y||this._x===f._y&&this._y===f._x}hashCode(){return this._x.hashCode()^this._y.hashCode()}}i([h.Override],e.prototype,"equals",null),i([h.Override],e.prototype,"hashCode",null),t.IdentityCommutativePredictionContextOperands=e})(n=u.PredictionContextCache||(u.PredictionContextCache={}))})(Kn)),Kn}var Gl;function Xe(){return Gl||(Gl=1,(function(u){var i=wr&&wr.__decorate||function(g,x,m,y){var _=arguments.length,v=_<3?x:y===null?y=Object.getOwnPropertyDescriptor(x,m):y,N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(g,x,m,y);else for(var T=g.length-1;T>=0;T--)(N=g[T])&&(v=(_<3?N(v):_>3?N(x,m,v):N(x,m))||v);return _>3&&v&&Object.defineProperty(x,m,v),v},c=wr&&wr.__param||function(g,x){return function(m,y){x(m,y,g)}};Object.defineProperty(u,"__esModule",{value:!0}),u.SingletonPredictionContext=u.PredictionContext=void 0;const h=Fn(),p=cr(),a=ws(),r=Pe(),n=Q(),t=js(),s=Fe(),e=1;let o=class Le{constructor(x){this.cachedHashCode=x}static calculateEmptyHashCode(){let x=r.MurmurHash.initialize(e);return x=r.MurmurHash.finish(x,0),x}static calculateSingleHashCode(x,m){let y=r.MurmurHash.initialize(e);return y=r.MurmurHash.update(y,x),y=r.MurmurHash.update(y,m),y=r.MurmurHash.finish(y,2),y}static calculateHashCode(x,m){let y=r.MurmurHash.initialize(e);for(let _ of x)y=r.MurmurHash.update(y,_);for(let _ of m)y=r.MurmurHash.update(y,_);return y=r.MurmurHash.finish(y,2*x.length),y}static fromRuleContext(x,m,y=!0){if(m.isEmpty)return y?Le.EMPTY_FULL:Le.EMPTY_LOCAL;let _;m._parent?_=Le.fromRuleContext(x,m._parent,y):_=y?Le.EMPTY_FULL:Le.EMPTY_LOCAL;let N=x.states[m.invokingState].transition(0);return _.getChild(N.followState.stateNumber)}static addEmptyContext(x){return x.addEmptyContext()}static removeEmptyContext(x){return x.removeEmptyContext()}static join(x,m,y=t.PredictionContextCache.UNCACHED){if(x===m)return x;if(x.isEmpty)return Le.isEmptyLocal(x)?x:Le.addEmptyContext(m);if(m.isEmpty)return Le.isEmptyLocal(m)?m:Le.addEmptyContext(x);let _=x.size,v=m.size;if(_===1&&v===1&&x.getReturnState(0)===m.getReturnState(0)){let U=y.join(x.getParent(0),m.getParent(0));return U===x.getParent(0)?x:U===m.getParent(0)?m:U.getChild(x.getReturnState(0))}let N=0,T=new Array(_+v),b=new Array(T.length),O=0,D=0,k=!0,z=!0;for(;O<_&&D<v;)x.getReturnState(O)===m.getReturnState(D)?(T[N]=y.join(x.getParent(O),m.getParent(D)),b[N]=x.getReturnState(O),k=k&&T[N]===x.getParent(O),z=z&&T[N]===m.getParent(D),O++,D++):x.getReturnState(O)<m.getReturnState(D)?(T[N]=x.getParent(O),b[N]=x.getReturnState(O),z=!1,O++):(s(m.getReturnState(D)<x.getReturnState(O)),T[N]=m.getParent(D),b[N]=m.getReturnState(D),k=!1,D++),N++;for(;O<_;)T[N]=x.getParent(O),b[N]=x.getReturnState(O),O++,z=!1,N++;for(;D<v;)T[N]=m.getParent(D),b[N]=m.getReturnState(D),D++,k=!1,N++;return k?x:z?m:(N<T.length&&(T=T.slice(0,N),b=b.slice(0,N)),T.length===0?Le.EMPTY_FULL:T.length===1?new d(T[0],b[0]):new f(T,b))}static isEmptyLocal(x){return x===Le.EMPTY_LOCAL}static getCachedContext(x,m,y){if(x.isEmpty)return x;let _=y.get(x);if(_)return _;if(_=m.get(x),_)return y.put(x,_),_;let v=!1,N=new Array(x.size);for(let b=0;b<N.length;b++){let O=Le.getCachedContext(x.getParent(b),m,y);if(v||O!==x.getParent(b)){if(!v){N=new Array(x.size);for(let D=0;D<x.size;D++)N[D]=x.getParent(D);v=!0}N[b]=O}}if(!v)return _=m.putIfAbsent(x,x),y.put(x,_??x),x;let T;if(N.length===1)T=new d(N[0],x.getReturnState(0));else{let b=new Array(x.size);for(let O=0;O<x.size;O++)b[O]=x.getReturnState(O);T=new f(N,b,x.hashCode())}return _=m.putIfAbsent(T,T),y.put(T,_||T),y.put(x,_||T),T}appendSingleContext(x,m){return this.appendContext(Le.EMPTY_FULL.getChild(x),m)}getChild(x){return new d(this,x)}hashCode(){return this.cachedHashCode}toStrings(x,m,y=Le.EMPTY_FULL){let _=[];e:for(let v=0;;v++){let N=0,T=!0,b=this,O=m,D="";for(D+="[";!b.isEmpty&&b!==y;){let k=0;if(b.size>0){let z=1;for(;1<<z>>>0<b.size;)z++;let U=(1<<z>>>0)-1;if(k=v>>N&U,T=T&&k>=b.size-1,k>=b.size)continue e;N+=z}if(x){D.length>1&&(D+=" ");let U=x.atn.states[O],te=x.ruleNames[U.ruleIndex];D+=te}else b.getReturnState(k)!==Le.EMPTY_FULL_STATE_KEY&&(b.isEmpty||(D.length>1&&(D+=" "),D+=b.getReturnState(k)));O=b.getReturnState(k),b=b.getParent(k)}if(D+="]",_.push(D),T)break}return _}};i([n.Override],o.prototype,"hashCode",null),i([c(0,n.NotNull),c(1,n.NotNull),c(2,n.NotNull)],o,"join",null),i([c(0,n.NotNull),c(1,n.NotNull),c(2,n.NotNull)],o,"getCachedContext",null),u.PredictionContext=o;class l extends o{constructor(x){super(o.calculateEmptyHashCode()),this.fullContext=x}get isFullContext(){return this.fullContext}addEmptyContext(){return this}removeEmptyContext(){throw new Error("Cannot remove the empty context from itself.")}getParent(x){throw new Error("index out of bounds")}getReturnState(x){throw new Error("index out of bounds")}findReturnState(x){return-1}get size(){return 0}appendSingleContext(x,m){return m.getChild(this,x)}appendContext(x,m){return x}get isEmpty(){return!0}get hasEmpty(){return!0}equals(x){return this===x}toStrings(x,m,y){return["[]"]}}i([n.Override],l.prototype,"addEmptyContext",null),i([n.Override],l.prototype,"removeEmptyContext",null),i([n.Override],l.prototype,"getParent",null),i([n.Override],l.prototype,"getReturnState",null),i([n.Override],l.prototype,"findReturnState",null),i([n.Override],l.prototype,"size",null),i([n.Override],l.prototype,"appendSingleContext",null),i([n.Override],l.prototype,"appendContext",null),i([n.Override],l.prototype,"isEmpty",null),i([n.Override],l.prototype,"hasEmpty",null),i([n.Override],l.prototype,"equals",null),i([n.Override],l.prototype,"toStrings",null);let f=class On extends o{constructor(x,m,y){super(y||o.calculateHashCode(x,m)),s(x.length===m.length),s(m.length>1||m[0]!==o.EMPTY_FULL_STATE_KEY,"Should be using PredictionContext.EMPTY instead."),this.parents=x,this.returnStates=m}getParent(x){return this.parents[x]}getReturnState(x){return this.returnStates[x]}findReturnState(x){return a.Arrays.binarySearch(this.returnStates,x)}get size(){return this.returnStates.length}get isEmpty(){return!1}get hasEmpty(){return this.returnStates[this.returnStates.length-1]===o.EMPTY_FULL_STATE_KEY}addEmptyContext(){if(this.hasEmpty)return this;let x=this.parents.slice(0),m=this.returnStates.slice(0);return x.push(o.EMPTY_FULL),m.push(o.EMPTY_FULL_STATE_KEY),new On(x,m)}removeEmptyContext(){if(!this.hasEmpty)return this;if(this.returnStates.length===2)return new d(this.parents[0],this.returnStates[0]);{let x=this.parents.slice(0,this.parents.length-1),m=this.returnStates.slice(0,this.returnStates.length-1);return new On(x,m)}}appendContext(x,m){return On.appendContextImpl(this,x,new o.IdentityHashMap)}static appendContextImpl(x,m,y){if(m.isEmpty){if(o.isEmptyLocal(m)){if(x.hasEmpty)return o.EMPTY_LOCAL;throw new Error("what to do here?")}return x}if(m.size!==1)throw new Error("Appending a tree suffix is not yet supported.");let _=y.get(x);if(!_){if(x.isEmpty)_=m;else{let v=x.size;x.hasEmpty&&v--;let N=new Array(v),T=new Array(v);for(let b=0;b<v;b++)T[b]=x.getReturnState(b);for(let b=0;b<v;b++)N[b]=On.appendContextImpl(x.getParent(b),m,y);N.length===1?_=new d(N[0],T[0]):(s(N.length>1),_=new On(N,T)),x.hasEmpty&&(_=o.join(_,m))}y.put(x,_)}return _}equals(x){if(this===x)return!0;if(!(x instanceof On)||this.hashCode()!==x.hashCode())return!1;let m=x;return this.equalsImpl(m,new p.Array2DHashSet)}equalsImpl(x,m){let y=[],_=[];for(y.push(this),_.push(x);;){let v=y.pop(),N=_.pop();if(!v||!N)break;let T=new t.PredictionContextCache.IdentityCommutativePredictionContextOperands(v,N);if(!m.add(T))continue;let b=T.x.size;if(b===0){if(!T.x.equals(T.y))return!1;continue}let O=T.y.size;if(b!==O)return!1;for(let D=0;D<b;D++){if(T.x.getReturnState(D)!==T.y.getReturnState(D))return!1;let k=T.x.getParent(D),z=T.y.getParent(D);if(k.hashCode()!==z.hashCode())return!1;k!==z&&(y.push(k),_.push(z))}}return!0}};i([n.NotNull],f.prototype,"parents",void 0),i([n.NotNull],f.prototype,"returnStates",void 0),i([n.Override],f.prototype,"getParent",null),i([n.Override],f.prototype,"getReturnState",null),i([n.Override],f.prototype,"findReturnState",null),i([n.Override],f.prototype,"size",null),i([n.Override],f.prototype,"isEmpty",null),i([n.Override],f.prototype,"hasEmpty",null),i([n.Override],f.prototype,"addEmptyContext",null),i([n.Override],f.prototype,"removeEmptyContext",null),i([n.Override],f.prototype,"appendContext",null),i([n.Override],f.prototype,"equals",null),f=i([c(0,n.NotNull)],f);let d=class ip extends o{constructor(x,m){super(o.calculateSingleHashCode(x,m)),this.parent=x,this.returnState=m}getParent(x){return this.parent}getReturnState(x){return this.returnState}findReturnState(x){return this.returnState===x?0:-1}get size(){return 1}get isEmpty(){return!1}get hasEmpty(){return!1}appendContext(x,m){return m.getChild(this.parent.appendContext(x,m),this.returnState)}addEmptyContext(){let x=[this.parent,o.EMPTY_FULL],m=[this.returnState,o.EMPTY_FULL_STATE_KEY];return new f(x,m)}removeEmptyContext(){return this}equals(x){if(x===this)return!0;if(!(x instanceof ip))return!1;let m=x;return this.hashCode()!==m.hashCode()?!1:this.returnState===m.returnState&&this.parent.equals(m.parent)}};i([n.NotNull],d.prototype,"parent",void 0),i([n.Override],d.prototype,"getParent",null),i([n.Override],d.prototype,"getReturnState",null),i([n.Override],d.prototype,"findReturnState",null),i([n.Override],d.prototype,"size",null),i([n.Override],d.prototype,"isEmpty",null),i([n.Override],d.prototype,"hasEmpty",null),i([n.Override],d.prototype,"appendContext",null),i([n.Override],d.prototype,"addEmptyContext",null),i([n.Override],d.prototype,"removeEmptyContext",null),i([n.Override],d.prototype,"equals",null),d=i([c(0,n.NotNull)],d),u.SingletonPredictionContext=d,(function(g){g.EMPTY_LOCAL=new l(!1),g.EMPTY_FULL=new l(!0),g.EMPTY_LOCAL_STATE_KEY=-2147483648,g.EMPTY_FULL_STATE_KEY=(1<<31>>>0)-1;class x extends h.Array2DHashMap{constructor(){super(m.INSTANCE)}}g.IdentityHashMap=x;class m{IdentityEqualityComparator(){}hashCode(_){return _.hashCode()}equals(_,v){return _===v}}m.INSTANCE=new m,i([n.Override],m.prototype,"hashCode",null),i([n.Override],m.prototype,"equals",null),g.IdentityEqualityComparator=m})(o=u.PredictionContext||(u.PredictionContext={}))})(wr)),wr}var Xl;function Li(){if(Xl)return ht;Xl=1;var u=ht&&ht.__decorate||function(g,x,m,y){var _=arguments.length,v=_<3?x:y===null?y=Object.getOwnPropertyDescriptor(x,m):y,N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(g,x,m,y);else for(var T=g.length-1;T>=0;T--)(N=g[T])&&(v=(_<3?N(v):_>3?N(x,m,v):N(x,m))||v);return _>3&&v&&Object.defineProperty(x,m,v),v},i=ht&&ht.__param||function(g,x){return function(m,y){x(m,y,g)}};Object.defineProperty(ht,"__esModule",{value:!0}),ht.ATNConfig=void 0;const c=Fn(),h=Ir(),p=Pe(),a=Q(),r=Ze(),n=Xe(),t=Ln(),s=Fe(),e=2147483648;let o=class vi{constructor(x,m,y){typeof m=="number"?(s((m&16777215)===m),this._state=x,this.altAndOuterContextDepth=m,this._context=y):(this._state=x,this.altAndOuterContextDepth=m.altAndOuterContextDepth,this._context=y)}static create(x,m,y,_=t.SemanticContext.NONE,v){return _!==t.SemanticContext.NONE?v!=null?new d(v,_,x,m,y,!1):new l(_,x,m,y):v!=null?new f(v,x,m,y,!1):new vi(x,m,y)}get state(){return this._state}get alt(){return this.altAndOuterContextDepth&16777215}get context(){return this._context}set context(x){this._context=x}get reachesIntoOuterContext(){return this.outerContextDepth!==0}get outerContextDepth(){return this.altAndOuterContextDepth>>>24&127}set outerContextDepth(x){s(x>=0),x=Math.min(x,127),this.altAndOuterContextDepth=x<<24|(this.altAndOuterContextDepth&-2130706433)>>>0}get lexerActionExecutor(){}get semanticContext(){return t.SemanticContext.NONE}get hasPassedThroughNonGreedyDecision(){return!1}clone(){return this.transform(this.state,!1)}transform(x,m,y){return y==null?this.transformImpl(x,this._context,this.semanticContext,m,this.lexerActionExecutor):y instanceof n.PredictionContext?this.transformImpl(x,y,this.semanticContext,m,this.lexerActionExecutor):y instanceof t.SemanticContext?this.transformImpl(x,this._context,y,m,this.lexerActionExecutor):this.transformImpl(x,this._context,this.semanticContext,m,y)}transformImpl(x,m,y,_,v){let N=_&&vi.checkNonGreedyDecision(this,x);return y!==t.SemanticContext.NONE?v!=null||N?new d(v,y,x,this,m,N):new l(y,x,this,m):v!=null||N?new f(v,x,this,m,N):new vi(x,this,m)}static checkNonGreedyDecision(x,m){return x.hasPassedThroughNonGreedyDecision||m instanceof h.DecisionState&&m.nonGreedy}appendContext(x,m){if(typeof x=="number"){let y=this.context.appendSingleContext(x,m);return this.transform(this.state,!1,y)}else{let y=this.context.appendContext(x,m);return this.transform(this.state,!1,y)}}contains(x){if(this.state.stateNumber!==x.state.stateNumber||this.alt!==x.alt||!this.semanticContext.equals(x.semanticContext))return!1;let m=[],y=[];for(m.push(this.context),y.push(x.context);;){let _=m.pop(),v=y.pop();if(!_||!v)break;if(_===v)return!0;if(_.size<v.size)return!1;if(v.isEmpty)return _.hasEmpty;for(let N=0;N<v.size;N++){let T=_.findReturnState(v.getReturnState(N));if(T<0)return!1;m.push(_.getParent(T)),y.push(v.getParent(N))}}return!1}get isPrecedenceFilterSuppressed(){return(this.altAndOuterContextDepth&e)!==0}set isPrecedenceFilterSuppressed(x){x?this.altAndOuterContextDepth|=e:this.altAndOuterContextDepth&=~e}equals(x){return this===x?!0:x instanceof vi?this.state.stateNumber===x.state.stateNumber&&this.alt===x.alt&&this.reachesIntoOuterContext===x.reachesIntoOuterContext&&this.context.equals(x.context)&&this.semanticContext.equals(x.semanticContext)&&this.isPrecedenceFilterSuppressed===x.isPrecedenceFilterSuppressed&&this.hasPassedThroughNonGreedyDecision===x.hasPassedThroughNonGreedyDecision&&r.ObjectEqualityComparator.INSTANCE.equals(this.lexerActionExecutor,x.lexerActionExecutor):!1}hashCode(){let x=p.MurmurHash.initialize(7);return x=p.MurmurHash.update(x,this.state.stateNumber),x=p.MurmurHash.update(x,this.alt),x=p.MurmurHash.update(x,this.reachesIntoOuterContext?1:0),x=p.MurmurHash.update(x,this.context),x=p.MurmurHash.update(x,this.semanticContext),x=p.MurmurHash.update(x,this.hasPassedThroughNonGreedyDecision?1:0),x=p.MurmurHash.update(x,this.lexerActionExecutor),x=p.MurmurHash.finish(x,7),x}toDotString(){let x="";x+=`digraph G {
|
|
68
|
+
`}return e}asElementType(e){return e}createBuckets(e){return new Array(e)}};return u([p.NotNull],t.prototype,"comparator",void 0),u([p.Override],t.prototype,"hashCode",null),u([p.Override],t.prototype,"equals",null),u([p.Override],t.prototype,"add",null),u([p.Override],t.prototype,"size",null),u([p.Override],t.prototype,"isEmpty",null),u([p.Override],t.prototype,"contains",null),u([r(0,p.Nullable)],t.prototype,"containsFast",null),u([p.Override],t.prototype,Symbol.iterator,null),u([p.Override],t.prototype,"toArray",null),u([p.Override],t.prototype,"containsAll",null),u([p.Override],t.prototype,"addAll",null),u([p.Override],t.prototype,"clear",null),u([p.Override],t.prototype,"toString",null),u([p.SuppressWarnings("unchecked")],t.prototype,"asElementType",null),u([p.SuppressWarnings("unchecked")],t.prototype,"createBuckets",null),ut.Array2DHashSet=t,ut}var Nr={},Ol;function Di(){if(Ol)return Nr;Ol=1;var u=Nr&&Nr.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.ArrayEqualityComparator=void 0;const r=Q(),c=Pe(),h=Ze();let p=class{hashCode(n){return n==null?0:c.MurmurHash.hashCode(n,0)}equals(n,i){if(n==null)return i==null;if(i==null||n.length!==i.length)return!1;for(let t=0;t<n.length;t++)if(!h.ObjectEqualityComparator.INSTANCE.equals(n[t],i[t]))return!1;return!0}};return p.INSTANCE=new p,u([r.Override],p.prototype,"hashCode",null),u([r.Override],p.prototype,"equals",null),Nr.ArrayEqualityComparator=p,Nr}var qe={},Rl;function at(){if(Rl)return qe;Rl=1;Object.defineProperty(qe,"__esModule",{value:!0}),qe.toCharArray=qe.toMap=qe.equals=qe.join=qe.escapeWhitespace=void 0;function u(a,n){return n?a.replace(/ /,"·"):a.replace(/\t/,"\\t").replace(/\n/,"\\n").replace(/\r/,"\\r")}qe.escapeWhitespace=u;function r(a,n){let i="",t=!0;for(let s of a)t?t=!1:i+=n,i+=s;return i}qe.join=r;function c(a,n){return a===n?!0:a===void 0||n===void 0?!1:a.equals(n)}qe.equals=c;function h(a){let n=new Map;for(let i=0;i<a.length;i++)n.set(a[i],i);return n}qe.toMap=h;function p(a){if(typeof a=="string"){let n=new Uint16Array(a.length);for(let i=0;i<a.length;i++)n[i]=a.charCodeAt(i);return n}else return a.toCharArray()}return qe.toCharArray=p,qe}var Pl;function wn(){return Pl||(Pl=1,(function(u){var r=Tr&&Tr.__decorate||function(l,f,d,g){var x=arguments.length,m=x<3?f:g===null?g=Object.getOwnPropertyDescriptor(f,d):g,y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(l,f,d,g);else for(var _=l.length-1;_>=0;_--)(y=l[_])&&(m=(x<3?y(m):x>3?y(f,d,m):y(f,d))||m);return x>3&&m&&Object.defineProperty(f,d,m),m},c=Tr&&Tr.__param||function(l,f){return function(d,g){f(d,g,l)}};Object.defineProperty(u,"__esModule",{value:!0}),u.SemanticContext=void 0;const h=cr(),p=Di(),a=Pe(),n=Q(),i=Ze(),t=at();function s(l){let f;for(let d of l){if(f===void 0){f=d;continue}f.compareTo(d)<0&&(f=d)}return f}function e(l){let f;for(let d of l){if(f===void 0){f=d;continue}f.compareTo(d)>0&&(f=d)}return f}let o=class He{static get NONE(){return He._NONE===void 0&&(He._NONE=new He.Predicate),He._NONE}evalPrecedence(f,d){return this}static and(f,d){if(!f||f===He.NONE)return d;if(d===He.NONE)return f;let g=new He.AND(f,d);return g.opnds.length===1?g.opnds[0]:g}static or(f,d){if(!f)return d;if(f===He.NONE||d===He.NONE)return He.NONE;let g=new He.OR(f,d);return g.opnds.length===1?g.opnds[0]:g}};u.SemanticContext=o,(function(l){function g(N){let T=[];for(let b=0;b<N.length;b++){let O=N[b];O instanceof l.PrecedencePredicate&&(T.push(O),N.splice(b,1),b--)}return T}class x extends l{constructor(T=-1,b=-1,O=!1){super(),this.ruleIndex=T,this.predIndex=b,this.isCtxDependent=O}eval(T,b){let O=this.isCtxDependent?b:void 0;return T.sempred(O,this.ruleIndex,this.predIndex)}hashCode(){let T=a.MurmurHash.initialize();return T=a.MurmurHash.update(T,this.ruleIndex),T=a.MurmurHash.update(T,this.predIndex),T=a.MurmurHash.update(T,this.isCtxDependent?1:0),T=a.MurmurHash.finish(T,3),T}equals(T){return T instanceof x?this===T?!0:this.ruleIndex===T.ruleIndex&&this.predIndex===T.predIndex&&this.isCtxDependent===T.isCtxDependent:!1}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}r([n.Override],x.prototype,"eval",null),r([n.Override],x.prototype,"hashCode",null),r([n.Override],x.prototype,"equals",null),r([n.Override],x.prototype,"toString",null),l.Predicate=x;class m extends l{constructor(T){super(),this.precedence=T}eval(T,b){return T.precpred(b,this.precedence)}evalPrecedence(T,b){if(T.precpred(b,this.precedence))return l.NONE}compareTo(T){return this.precedence-T.precedence}hashCode(){let T=1;return T=31*T+this.precedence,T}equals(T){return T instanceof m?this===T?!0:this.precedence===T.precedence:!1}toString(){return"{"+this.precedence+">=prec}?"}}r([n.Override],m.prototype,"eval",null),r([n.Override],m.prototype,"evalPrecedence",null),r([n.Override],m.prototype,"compareTo",null),r([n.Override],m.prototype,"hashCode",null),r([n.Override],m.prototype,"equals",null),r([n.Override],m.prototype,"toString",null),l.PrecedencePredicate=m;class y extends l{}l.Operator=y;let _=class Wi extends y{constructor(T,b){super();let O=new h.Array2DHashSet(i.ObjectEqualityComparator.INSTANCE);T instanceof Wi?O.addAll(T.opnds):O.add(T),b instanceof Wi?O.addAll(b.opnds):O.add(b),this.opnds=O.toArray();let D=g(this.opnds),k=e(D);k&&this.opnds.push(k)}get operands(){return this.opnds}equals(T){return this===T?!0:T instanceof Wi?p.ArrayEqualityComparator.INSTANCE.equals(this.opnds,T.opnds):!1}hashCode(){return a.MurmurHash.hashCode(this.opnds,40363613)}eval(T,b){for(let O of this.opnds)if(!O.eval(T,b))return!1;return!0}evalPrecedence(T,b){let O=!1,D=[];for(let z of this.opnds){let U=z.evalPrecedence(T,b);if(O=O||U!==z,U==null)return;U!==l.NONE&&D.push(U)}if(!O)return this;if(D.length===0)return l.NONE;let k=D[0];for(let z=1;z<D.length;z++)k=l.and(k,D[z]);return k}toString(){return t.join(this.opnds,"&&")}};r([n.Override],_.prototype,"operands",null),r([n.Override],_.prototype,"equals",null),r([n.Override],_.prototype,"hashCode",null),r([n.Override],_.prototype,"eval",null),r([n.Override],_.prototype,"evalPrecedence",null),r([n.Override],_.prototype,"toString",null),_=r([c(0,n.NotNull),c(1,n.NotNull)],_),l.AND=_;let v=class Gi extends y{constructor(T,b){super();let O=new h.Array2DHashSet(i.ObjectEqualityComparator.INSTANCE);T instanceof Gi?O.addAll(T.opnds):O.add(T),b instanceof Gi?O.addAll(b.opnds):O.add(b),this.opnds=O.toArray();let D=g(this.opnds),k=s(D);k&&this.opnds.push(k)}get operands(){return this.opnds}equals(T){return this===T?!0:T instanceof Gi?p.ArrayEqualityComparator.INSTANCE.equals(this.opnds,T.opnds):!1}hashCode(){return a.MurmurHash.hashCode(this.opnds,486279973)}eval(T,b){for(let O of this.opnds)if(O.eval(T,b))return!0;return!1}evalPrecedence(T,b){let O=!1,D=[];for(let z of this.opnds){let U=z.evalPrecedence(T,b);if(O=O||U!==z,U===l.NONE)return l.NONE;U&&D.push(U)}if(!O)return this;if(D.length===0)return;let k=D[0];for(let z=1;z<D.length;z++)k=l.or(k,D[z]);return k}toString(){return t.join(this.opnds,"||")}};r([n.Override],v.prototype,"operands",null),r([n.Override],v.prototype,"equals",null),r([n.Override],v.prototype,"hashCode",null),r([n.Override],v.prototype,"eval",null),r([n.Override],v.prototype,"evalPrecedence",null),r([n.Override],v.prototype,"toString",null),v=r([c(0,n.NotNull),c(1,n.NotNull)],v),l.OR=v})(o=u.SemanticContext||(u.SemanticContext={}))})(Tr)),Tr}var Dl;function Il(){if(Dl)return ot;Dl=1;var u=ot&&ot.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o},r=ot&&ot.__param||function(n,i){return function(t,s){i(t,s,n)}};Object.defineProperty(ot,"__esModule",{value:!0}),ot.PredicateTransition=void 0;const c=Ps(),h=Q(),p=wn();let a=class extends c.AbstractPredicateTransition{constructor(i,t,s,e){super(i),this.ruleIndex=t,this.predIndex=s,this.isCtxDependent=e}get serializationType(){return 4}get isEpsilon(){return!0}matches(i,t,s){return!1}get predicate(){return new p.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}};return u([h.Override],a.prototype,"serializationType",null),u([h.Override],a.prototype,"isEpsilon",null),u([h.Override],a.prototype,"matches",null),u([h.Override,h.NotNull],a.prototype,"toString",null),a=u([r(0,h.NotNull)],a),ot.PredicateTransition=a,ot}var Ll;function Ii(){if(Ll)return it;Ll=1;var u=it&&it.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o},r=it&&it.__param||function(n,i){return function(t,s){i(t,s,n)}};Object.defineProperty(it,"__esModule",{value:!0}),it.FailedPredicateException=void 0;const c=ar(),h=Q(),p=Il();let a=class up extends c.RecognitionException{constructor(i,t,s){super(i,i.inputStream,i.context,up.formatMessage(t,s));let o=i.interpreter.atn.states[i.state].transition(0);o instanceof p.PredicateTransition?(this._ruleIndex=o.ruleIndex,this._predicateIndex=o.predIndex):(this._ruleIndex=0,this._predicateIndex=0),this._predicate=t,super.setOffendingToken(i,i.currentToken)}get ruleIndex(){return this._ruleIndex}get predicateIndex(){return this._predicateIndex}get predicate(){return this._predicate}static formatMessage(i,t){return t||`failed predicate: {${i}}?`}};return u([h.NotNull],a,"formatMessage",null),a=u([r(0,h.NotNull)],a),it.FailedPredicateException=a,it}var lt={},wl;function Li(){if(wl)return lt;wl=1;var u=lt&<.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=lt&<.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(lt,"__esModule",{value:!0}),lt.InputMismatchException=void 0;const c=ar(),h=Q();let p=class extends c.RecognitionException{constructor(n,i,t){t===void 0&&(t=n.context),super(n,n.inputStream,t),i!==void 0&&this.setOffendingState(i),this.setOffendingToken(n,n.currentToken)}};return p=u([r(0,h.NotNull)],p),lt.InputMismatchException=p,lt}var ct={},br={},Is={},Fl;function Ls(){return Fl||(Fl=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Arrays=void 0,(function(r){function c(a,n,i,t){return h(a,i!==void 0?i:0,t!==void 0?t:a.length,n)}r.binarySearch=c;function h(a,n,i,t){let s=n,e=i-1;for(;s<=e;){let o=s+e>>>1,l=a[o];if(l<t)s=o+1;else if(l>t)e=o-1;else return o}return-(s+1)}function p(a){let n="[",i=!0;for(let t of a)i?i=!1:n+=", ",t===null?n+="null":t===void 0?n+="undefined":n+=t;return n+="]",n}r.toString=p})(u.Arrays||(u.Arrays={}))})(Is)),Is}var Bl;function ws(){if(Bl)return br;Bl=1;var u=br&&br.__decorate||function(i,t,s,e){var o=arguments.length,l=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(i,t,s,e);else for(var d=i.length-1;d>=0;d--)(f=i[d])&&(l=(o<3?f(l):o>3?f(t,s,l):f(t,s))||l);return o>3&&l&&Object.defineProperty(t,s,l),l};Object.defineProperty(br,"__esModule",{value:!0}),br.IntegerList=void 0;const r=Ls(),c=Q(),h=new Int32Array(0),p=4,a=(1<<31>>>0)-1-8;let n=class $i{constructor(t){if(!t)this._data=h,this._size=0;else if(t instanceof $i)this._data=t._data.slice(0),this._size=t._size;else if(typeof t=="number")t===0?(this._data=h,this._size=0):(this._data=new Int32Array(t),this._size=0);else{this._data=h,this._size=0;for(let s of t)this.add(s)}}add(t){this._data.length===this._size&&this.ensureCapacity(this._size+1),this._data[this._size]=t,this._size++}addAll(t){if(Array.isArray(t))this.ensureCapacity(this._size+t.length),this._data.subarray(this._size,this._size+t.length).set(t),this._size+=t.length;else if(t instanceof $i)this.ensureCapacity(this._size+t._size),this._data.subarray(this._size,this._size+t.size).set(t._data),this._size+=t._size;else{this.ensureCapacity(this._size+t.size);let s=0;for(let e of t)this._data[this._size+s]=e,s++;this._size+=t.size}}get(t){if(t<0||t>=this._size)throw RangeError();return this._data[t]}contains(t){for(let s=0;s<this._size;s++)if(this._data[s]===t)return!0;return!1}set(t,s){if(t<0||t>=this._size)throw RangeError();let e=this._data[t];return this._data[t]=s,e}removeAt(t){let s=this.get(t);return this._data.copyWithin(t,t+1,this._size),this._data[this._size-1]=0,this._size--,s}removeRange(t,s){if(t<0||s<0||t>this._size||s>this._size||t>s)throw RangeError();this._data.copyWithin(s,t,this._size),this._data.fill(0,this._size-(s-t),this._size),this._size-=s-t}get isEmpty(){return this._size===0}get size(){return this._size}trimToSize(){this._data.length!==this._size&&(this._data=this._data.slice(0,this._size))}clear(){this._data.fill(0,0,this._size),this._size=0}toArray(){return this._size===0?[]:Array.from(this._data.subarray(0,this._size))}sort(){this._data.subarray(0,this._size).sort()}equals(t){if(t===this)return!0;if(!(t instanceof $i)||this._size!==t._size)return!1;for(let s=0;s<this._size;s++)if(this._data[s]!==t._data[s])return!1;return!0}hashCode(){let t=1;for(let s=0;s<this._size;s++)t=31*t+this._data[s];return t}toString(){return this._data.toString()}binarySearch(t,s,e){if(s===void 0&&(s=0),e===void 0&&(e=this._size),s<0||e<0||s>this._size||e>this._size)throw new RangeError;if(s>e)throw new RangeError;return r.Arrays.binarySearch(this._data,t,s,e)}ensureCapacity(t){if(t<0||t>a)throw new RangeError;let s;for(this._data.length===0?s=p:s=this._data.length;s<t;)s=s*2,(s<0||s>a)&&(s=a);let e=new Int32Array(s);e.set(this._data),this._data=e}toCharArray(){let t=new Uint16Array(this._size),s=0,e=!1;for(let o=0;o<this._size;o++){let l=this._data[o];if(l>=0&&l<65536){t[s]=l,s++;continue}if(!e){let d=new Uint16Array(this.charArraySize());d.set(t,0),t=d,e=!0}let f=String.fromCodePoint(l);t[s]=f.charCodeAt(0),t[s+1]=f.charCodeAt(1),s+=2}return t}charArraySize(){let t=0;for(let s=0;s<this._size;s++)t+=this._data[s]>=65536?2:1;return t}};return u([c.NotNull],n.prototype,"_data",void 0),u([c.Override],n.prototype,"equals",null),u([c.Override],n.prototype,"hashCode",null),u([c.Override],n.prototype,"toString",null),br.IntegerList=n,br}var Cr={},jl;function je(){if(jl)return Cr;jl=1;var u=Cr&&Cr.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s};Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.Interval=void 0;const r=Q(),c=1e3;let h=class Ve{constructor(a,n){this.a=a,this.b=n}static get INVALID(){return Ve._INVALID}static of(a,n){return a!==n||a<0||a>c?new Ve(a,n):(Ve.cache[a]==null&&(Ve.cache[a]=new Ve(a,a)),Ve.cache[a])}get length(){return this.b<this.a?0:this.b-this.a+1}equals(a){return a===this?!0:a instanceof Ve?this.a===a.a&&this.b===a.b:!1}hashCode(){let a=23;return a=a*31+this.a,a=a*31+this.b,a}startsBeforeDisjoint(a){return this.a<a.a&&this.b<a.a}startsBeforeNonDisjoint(a){return this.a<=a.a&&this.b>=a.a}startsAfter(a){return this.a>a.a}startsAfterDisjoint(a){return this.a>a.b}startsAfterNonDisjoint(a){return this.a>a.a&&this.a<=a.b}disjoint(a){return this.startsBeforeDisjoint(a)||this.startsAfterDisjoint(a)}adjacent(a){return this.a===a.b+1||this.b===a.a-1}properlyContains(a){return a.a>=this.a&&a.b<=this.b}union(a){return Ve.of(Math.min(this.a,a.a),Math.max(this.b,a.b))}intersection(a){return Ve.of(Math.max(this.a,a.a),Math.min(this.b,a.b))}differenceNotProperlyContained(a){let n;return a.startsBeforeNonDisjoint(this)?n=Ve.of(Math.max(this.a,a.b+1),this.b):a.startsAfterNonDisjoint(this)&&(n=Ve.of(this.a,a.a-1)),n}toString(){return this.a+".."+this.b}};return h._INVALID=new h(-1,-2),h.cache=new Array(c+1),u([r.Override],h.prototype,"equals",null),u([r.Override],h.prototype,"hashCode",null),u([r.Override],h.prototype,"toString",null),Cr.Interval=h,Cr}var Or={},Hn={},ft={},Fs={},Ml;function Ce(){return Ml||(Ml=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Token=void 0;const r=ur();(function(c){c.INVALID_TYPE=0,c.EPSILON=-2,c.MIN_USER_TOKEN_TYPE=1,c.EOF=r.IntStream.EOF,c.DEFAULT_CHANNEL=0,c.HIDDEN_CHANNEL=1,c.MIN_USER_CHANNEL_VALUE=2})(u.Token||(u.Token={}))})(Fs)),Fs}var ql;function Vn(){if(ql)return ft;ql=1;var u=ft&&ft.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o},r=ft&&ft.__param||function(n,i){return function(t,s){i(t,s,n)}};Object.defineProperty(ft,"__esModule",{value:!0}),ft.CommonToken=void 0;const c=je(),h=Q(),p=Ce();let a=class gi{constructor(i,t,s=gi.EMPTY_SOURCE,e=p.Token.DEFAULT_CHANNEL,o=0,l=0){this._line=0,this._charPositionInLine=-1,this._channel=p.Token.DEFAULT_CHANNEL,this.index=-1,this._text=t,this._type=i,this.source=s,this._channel=e,this.start=o,this.stop=l,s.source!=null&&(this._line=s.source.line,this._charPositionInLine=s.source.charPositionInLine)}static fromToken(i){let t=new gi(i.type,void 0,gi.EMPTY_SOURCE,i.channel,i.startIndex,i.stopIndex);return t._line=i.line,t.index=i.tokenIndex,t._charPositionInLine=i.charPositionInLine,i instanceof gi?(t._text=i._text,t.source=i.source):(t._text=i.text,t.source={source:i.tokenSource,stream:i.inputStream}),t}get type(){return this._type}set type(i){this._type=i}get line(){return this._line}set line(i){this._line=i}get text(){if(this._text!=null)return this._text;let i=this.inputStream;if(i==null)return;let t=i.size;return this.start<t&&this.stop<t?i.getText(c.Interval.of(this.start,this.stop)):"<EOF>"}set text(i){this._text=i}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(i){this._charPositionInLine=i}get channel(){return this._channel}set channel(i){this._channel=i}get startIndex(){return this.start}set startIndex(i){this.start=i}get stopIndex(){return this.stop}set stopIndex(i){this.stop=i}get tokenIndex(){return this.index}set tokenIndex(i){this.index=i}get tokenSource(){return this.source.source}get inputStream(){return this.source.stream}toString(i){let t="";this._channel>0&&(t=",channel="+this._channel);let s=this.text;s!=null?(s=s.replace(/\n/g,"\\n"),s=s.replace(/\r/g,"\\r"),s=s.replace(/\t/g,"\\t")):s="<no text>";let e=String(this._type);return i&&(e=i.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+s+"',<"+e+">"+t+","+this._line+":"+this.charPositionInLine+"]"}};return a.EMPTY_SOURCE={source:void 0,stream:void 0},u([h.NotNull],a.prototype,"source",void 0),u([h.Override],a.prototype,"type",null),u([h.Override],a.prototype,"line",null),u([h.Override],a.prototype,"text",null),u([h.Override],a.prototype,"charPositionInLine",null),u([h.Override],a.prototype,"channel",null),u([h.Override],a.prototype,"startIndex",null),u([h.Override],a.prototype,"stopIndex",null),u([h.Override],a.prototype,"tokenIndex",null),u([h.Override],a.prototype,"tokenSource",null),u([h.Override],a.prototype,"inputStream",null),u([h.Override],a.prototype,"toString",null),u([r(0,h.NotNull)],a,"fromToken",null),a=u([r(2,h.NotNull)],a),ft.CommonToken=a,ft}var kl;function Bs(){return kl||(kl=1,(function(u){var r=Hn&&Hn.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o};Object.defineProperty(u,"__esModule",{value:!0}),u.CommonTokenFactory=void 0;const c=Vn(),h=je(),p=Q();let a=class{constructor(i=!1){this.copyText=i}create(i,t,s,e,o,l,f,d){let g=new c.CommonToken(t,s,i,e,o,l);return g.line=f,g.charPositionInLine=d,s==null&&this.copyText&&i.stream!=null&&(g.text=i.stream.getText(h.Interval.of(o,l))),g}createSimple(i,t){return new c.CommonToken(i,t)}};r([p.Override],a.prototype,"create",null),r([p.Override],a.prototype,"createSimple",null),u.CommonTokenFactory=a,(function(n){n.DEFAULT=new n})(a=u.CommonTokenFactory||(u.CommonTokenFactory={}))})(Hn)),Hn}var Wn={},Ul;function zl(){if(Ul)return Wn;Ul=1;Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.IntegerStack=void 0;const u=ws();let r=class extends u.IntegerList{constructor(h){super(h)}push(h){this.add(h)}pop(){return this.removeAt(this.size-1)}peek(){return this.get(this.size-1)}};return Wn.IntegerStack=r,Wn}var Rr={},Gn={},Hl;function Vl(){if(Hl)return Gn;Hl=1;Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.AcceptStateInfo=void 0;let u=class{constructor(c,h){this._prediction=c,this._lexerActionExecutor=h}get prediction(){return this._prediction}get lexerActionExecutor(){return this._lexerActionExecutor}};return Gn.AcceptStateInfo=u,Gn}var Pr={},$n={},Wl;function Fn(){if(Wl)return $n;Wl=1;Object.defineProperty($n,"__esModule",{value:!0}),$n.Array2DHashMap=void 0;const u=cr();class r{constructor(p){this.keyComparator=p}hashCode(p){return this.keyComparator.hashCode(p.key)}equals(p,a){return this.keyComparator.equals(p.key,a.key)}}let c=class Au{constructor(p){p instanceof Au?this.backingStore=new u.Array2DHashSet(p.backingStore):this.backingStore=new u.Array2DHashSet(new r(p))}clear(){this.backingStore.clear()}containsKey(p){return this.backingStore.contains({key:p})}get(p){let a=this.backingStore.get({key:p});if(a)return a.value}get isEmpty(){return this.backingStore.isEmpty}put(p,a){let n=this.backingStore.get({key:p,value:a}),i;return n?(i=n.value,n.value=a):this.backingStore.add({key:p,value:a}),i}putIfAbsent(p,a){let n=this.backingStore.get({key:p,value:a}),i;return n?i=n.value:this.backingStore.add({key:p,value:a}),i}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(p){return p instanceof Au?this.backingStore.equals(p.backingStore):!1}};return $n.Array2DHashMap=c,$n}var ht={},Dr={},pt={},Xn={},Gl;function Ir(){if(Gl)return Xn;Gl=1;Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.DecisionState=void 0;const u=nt();let r=class extends u.ATNState{constructor(){super(...arguments),this.decision=-1,this.nonGreedy=!1,this.sll=!1}};return Xn.DecisionState=r,Xn}var Lr={},Kn={},$l;function js(){return $l||($l=1,(function(u){var r=Kn&&Kn.__decorate||function(t,s,e,o){var l=arguments.length,f=l<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,e):o,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(t,s,e,o);else for(var g=t.length-1;g>=0;g--)(d=t[g])&&(f=(l<3?d(f):l>3?d(s,e,f):d(s,e))||f);return l>3&&f&&Object.defineProperty(s,e,f),f};Object.defineProperty(u,"__esModule",{value:!0}),u.PredictionContextCache=void 0;const c=Fn(),h=Q(),p=Ze(),a=$e(),n=Fe();let i=class Tu{constructor(s=!0){this.contexts=new c.Array2DHashMap(p.ObjectEqualityComparator.INSTANCE),this.childContexts=new c.Array2DHashMap(p.ObjectEqualityComparator.INSTANCE),this.joinContexts=new c.Array2DHashMap(p.ObjectEqualityComparator.INSTANCE),this.enableCache=s}getAsCached(s){if(!this.enableCache)return s;let e=this.contexts.get(s);return e||(e=s,this.contexts.put(s,s)),e}getChild(s,e){if(!this.enableCache)return s.getChild(e);let o=new Tu.PredictionContextAndInt(s,e),l=this.childContexts.get(o);return l||(l=s.getChild(e),l=this.getAsCached(l),this.childContexts.put(o,l)),l}join(s,e){if(!this.enableCache)return a.PredictionContext.join(s,e,this);let o=new Tu.IdentityCommutativePredictionContextOperands(s,e),l=this.joinContexts.get(o);return l||(l=a.PredictionContext.join(s,e,this),l=this.getAsCached(l),this.joinContexts.put(o,l),l)}};u.PredictionContextCache=i,i.UNCACHED=new i(!1),(function(t){class s{constructor(l,f){this.obj=l,this.value=f}equals(l){if(l instanceof s){if(l===this)return!0}else return!1;let f=l;return this.value===f.value&&(this.obj===f.obj||this.obj!=null&&this.obj.equals(f.obj))}hashCode(){let l=5;return l=7*l+(this.obj!=null?this.obj.hashCode():0),l=7*l+this.value,l}}r([h.Override],s.prototype,"equals",null),r([h.Override],s.prototype,"hashCode",null),t.PredictionContextAndInt=s;class e{constructor(l,f){n(l!=null),n(f!=null),this._x=l,this._y=f}get x(){return this._x}get y(){return this._y}equals(l){if(l instanceof e){if(this===l)return!0}else return!1;let f=l;return this._x===f._x&&this._y===f._y||this._x===f._y&&this._y===f._x}hashCode(){return this._x.hashCode()^this._y.hashCode()}}r([h.Override],e.prototype,"equals",null),r([h.Override],e.prototype,"hashCode",null),t.IdentityCommutativePredictionContextOperands=e})(i=u.PredictionContextCache||(u.PredictionContextCache={}))})(Kn)),Kn}var Xl;function $e(){return Xl||(Xl=1,(function(u){var r=Lr&&Lr.__decorate||function(g,x,m,y){var _=arguments.length,v=_<3?x:y===null?y=Object.getOwnPropertyDescriptor(x,m):y,N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(g,x,m,y);else for(var T=g.length-1;T>=0;T--)(N=g[T])&&(v=(_<3?N(v):_>3?N(x,m,v):N(x,m))||v);return _>3&&v&&Object.defineProperty(x,m,v),v},c=Lr&&Lr.__param||function(g,x){return function(m,y){x(m,y,g)}};Object.defineProperty(u,"__esModule",{value:!0}),u.SingletonPredictionContext=u.PredictionContext=void 0;const h=Fn(),p=cr(),a=Ls(),n=Pe(),i=Q(),t=js(),s=Fe(),e=1;let o=class we{constructor(x){this.cachedHashCode=x}static calculateEmptyHashCode(){let x=n.MurmurHash.initialize(e);return x=n.MurmurHash.finish(x,0),x}static calculateSingleHashCode(x,m){let y=n.MurmurHash.initialize(e);return y=n.MurmurHash.update(y,x),y=n.MurmurHash.update(y,m),y=n.MurmurHash.finish(y,2),y}static calculateHashCode(x,m){let y=n.MurmurHash.initialize(e);for(let _ of x)y=n.MurmurHash.update(y,_);for(let _ of m)y=n.MurmurHash.update(y,_);return y=n.MurmurHash.finish(y,2*x.length),y}static fromRuleContext(x,m,y=!0){if(m.isEmpty)return y?we.EMPTY_FULL:we.EMPTY_LOCAL;let _;m._parent?_=we.fromRuleContext(x,m._parent,y):_=y?we.EMPTY_FULL:we.EMPTY_LOCAL;let N=x.states[m.invokingState].transition(0);return _.getChild(N.followState.stateNumber)}static addEmptyContext(x){return x.addEmptyContext()}static removeEmptyContext(x){return x.removeEmptyContext()}static join(x,m,y=t.PredictionContextCache.UNCACHED){if(x===m)return x;if(x.isEmpty)return we.isEmptyLocal(x)?x:we.addEmptyContext(m);if(m.isEmpty)return we.isEmptyLocal(m)?m:we.addEmptyContext(x);let _=x.size,v=m.size;if(_===1&&v===1&&x.getReturnState(0)===m.getReturnState(0)){let U=y.join(x.getParent(0),m.getParent(0));return U===x.getParent(0)?x:U===m.getParent(0)?m:U.getChild(x.getReturnState(0))}let N=0,T=new Array(_+v),b=new Array(T.length),O=0,D=0,k=!0,z=!0;for(;O<_&&D<v;)x.getReturnState(O)===m.getReturnState(D)?(T[N]=y.join(x.getParent(O),m.getParent(D)),b[N]=x.getReturnState(O),k=k&&T[N]===x.getParent(O),z=z&&T[N]===m.getParent(D),O++,D++):x.getReturnState(O)<m.getReturnState(D)?(T[N]=x.getParent(O),b[N]=x.getReturnState(O),z=!1,O++):(s(m.getReturnState(D)<x.getReturnState(O)),T[N]=m.getParent(D),b[N]=m.getReturnState(D),k=!1,D++),N++;for(;O<_;)T[N]=x.getParent(O),b[N]=x.getReturnState(O),O++,z=!1,N++;for(;D<v;)T[N]=m.getParent(D),b[N]=m.getReturnState(D),D++,k=!1,N++;return k?x:z?m:(N<T.length&&(T=T.slice(0,N),b=b.slice(0,N)),T.length===0?we.EMPTY_FULL:T.length===1?new d(T[0],b[0]):new f(T,b))}static isEmptyLocal(x){return x===we.EMPTY_LOCAL}static getCachedContext(x,m,y){if(x.isEmpty)return x;let _=y.get(x);if(_)return _;if(_=m.get(x),_)return y.put(x,_),_;let v=!1,N=new Array(x.size);for(let b=0;b<N.length;b++){let O=we.getCachedContext(x.getParent(b),m,y);if(v||O!==x.getParent(b)){if(!v){N=new Array(x.size);for(let D=0;D<x.size;D++)N[D]=x.getParent(D);v=!0}N[b]=O}}if(!v)return _=m.putIfAbsent(x,x),y.put(x,_??x),x;let T;if(N.length===1)T=new d(N[0],x.getReturnState(0));else{let b=new Array(x.size);for(let O=0;O<x.size;O++)b[O]=x.getReturnState(O);T=new f(N,b,x.hashCode())}return _=m.putIfAbsent(T,T),y.put(T,_||T),y.put(x,_||T),T}appendSingleContext(x,m){return this.appendContext(we.EMPTY_FULL.getChild(x),m)}getChild(x){return new d(this,x)}hashCode(){return this.cachedHashCode}toStrings(x,m,y=we.EMPTY_FULL){let _=[];e:for(let v=0;;v++){let N=0,T=!0,b=this,O=m,D="";for(D+="[";!b.isEmpty&&b!==y;){let k=0;if(b.size>0){let z=1;for(;1<<z>>>0<b.size;)z++;let U=(1<<z>>>0)-1;if(k=v>>N&U,T=T&&k>=b.size-1,k>=b.size)continue e;N+=z}if(x){D.length>1&&(D+=" ");let U=x.atn.states[O],te=x.ruleNames[U.ruleIndex];D+=te}else b.getReturnState(k)!==we.EMPTY_FULL_STATE_KEY&&(b.isEmpty||(D.length>1&&(D+=" "),D+=b.getReturnState(k)));O=b.getReturnState(k),b=b.getParent(k)}if(D+="]",_.push(D),T)break}return _}};r([i.Override],o.prototype,"hashCode",null),r([c(0,i.NotNull),c(1,i.NotNull),c(2,i.NotNull)],o,"join",null),r([c(0,i.NotNull),c(1,i.NotNull),c(2,i.NotNull)],o,"getCachedContext",null),u.PredictionContext=o;class l extends o{constructor(x){super(o.calculateEmptyHashCode()),this.fullContext=x}get isFullContext(){return this.fullContext}addEmptyContext(){return this}removeEmptyContext(){throw new Error("Cannot remove the empty context from itself.")}getParent(x){throw new Error("index out of bounds")}getReturnState(x){throw new Error("index out of bounds")}findReturnState(x){return-1}get size(){return 0}appendSingleContext(x,m){return m.getChild(this,x)}appendContext(x,m){return x}get isEmpty(){return!0}get hasEmpty(){return!0}equals(x){return this===x}toStrings(x,m,y){return["[]"]}}r([i.Override],l.prototype,"addEmptyContext",null),r([i.Override],l.prototype,"removeEmptyContext",null),r([i.Override],l.prototype,"getParent",null),r([i.Override],l.prototype,"getReturnState",null),r([i.Override],l.prototype,"findReturnState",null),r([i.Override],l.prototype,"size",null),r([i.Override],l.prototype,"appendSingleContext",null),r([i.Override],l.prototype,"appendContext",null),r([i.Override],l.prototype,"isEmpty",null),r([i.Override],l.prototype,"hasEmpty",null),r([i.Override],l.prototype,"equals",null),r([i.Override],l.prototype,"toStrings",null);let f=class On extends o{constructor(x,m,y){super(y||o.calculateHashCode(x,m)),s(x.length===m.length),s(m.length>1||m[0]!==o.EMPTY_FULL_STATE_KEY,"Should be using PredictionContext.EMPTY instead."),this.parents=x,this.returnStates=m}getParent(x){return this.parents[x]}getReturnState(x){return this.returnStates[x]}findReturnState(x){return a.Arrays.binarySearch(this.returnStates,x)}get size(){return this.returnStates.length}get isEmpty(){return!1}get hasEmpty(){return this.returnStates[this.returnStates.length-1]===o.EMPTY_FULL_STATE_KEY}addEmptyContext(){if(this.hasEmpty)return this;let x=this.parents.slice(0),m=this.returnStates.slice(0);return x.push(o.EMPTY_FULL),m.push(o.EMPTY_FULL_STATE_KEY),new On(x,m)}removeEmptyContext(){if(!this.hasEmpty)return this;if(this.returnStates.length===2)return new d(this.parents[0],this.returnStates[0]);{let x=this.parents.slice(0,this.parents.length-1),m=this.returnStates.slice(0,this.returnStates.length-1);return new On(x,m)}}appendContext(x,m){return On.appendContextImpl(this,x,new o.IdentityHashMap)}static appendContextImpl(x,m,y){if(m.isEmpty){if(o.isEmptyLocal(m)){if(x.hasEmpty)return o.EMPTY_LOCAL;throw new Error("what to do here?")}return x}if(m.size!==1)throw new Error("Appending a tree suffix is not yet supported.");let _=y.get(x);if(!_){if(x.isEmpty)_=m;else{let v=x.size;x.hasEmpty&&v--;let N=new Array(v),T=new Array(v);for(let b=0;b<v;b++)T[b]=x.getReturnState(b);for(let b=0;b<v;b++)N[b]=On.appendContextImpl(x.getParent(b),m,y);N.length===1?_=new d(N[0],T[0]):(s(N.length>1),_=new On(N,T)),x.hasEmpty&&(_=o.join(_,m))}y.put(x,_)}return _}equals(x){if(this===x)return!0;if(!(x instanceof On)||this.hashCode()!==x.hashCode())return!1;let m=x;return this.equalsImpl(m,new p.Array2DHashSet)}equalsImpl(x,m){let y=[],_=[];for(y.push(this),_.push(x);;){let v=y.pop(),N=_.pop();if(!v||!N)break;let T=new t.PredictionContextCache.IdentityCommutativePredictionContextOperands(v,N);if(!m.add(T))continue;let b=T.x.size;if(b===0){if(!T.x.equals(T.y))return!1;continue}let O=T.y.size;if(b!==O)return!1;for(let D=0;D<b;D++){if(T.x.getReturnState(D)!==T.y.getReturnState(D))return!1;let k=T.x.getParent(D),z=T.y.getParent(D);if(k.hashCode()!==z.hashCode())return!1;k!==z&&(y.push(k),_.push(z))}}return!0}};r([i.NotNull],f.prototype,"parents",void 0),r([i.NotNull],f.prototype,"returnStates",void 0),r([i.Override],f.prototype,"getParent",null),r([i.Override],f.prototype,"getReturnState",null),r([i.Override],f.prototype,"findReturnState",null),r([i.Override],f.prototype,"size",null),r([i.Override],f.prototype,"isEmpty",null),r([i.Override],f.prototype,"hasEmpty",null),r([i.Override],f.prototype,"addEmptyContext",null),r([i.Override],f.prototype,"removeEmptyContext",null),r([i.Override],f.prototype,"appendContext",null),r([i.Override],f.prototype,"equals",null),f=r([c(0,i.NotNull)],f);let d=class ap extends o{constructor(x,m){super(o.calculateSingleHashCode(x,m)),this.parent=x,this.returnState=m}getParent(x){return this.parent}getReturnState(x){return this.returnState}findReturnState(x){return this.returnState===x?0:-1}get size(){return 1}get isEmpty(){return!1}get hasEmpty(){return!1}appendContext(x,m){return m.getChild(this.parent.appendContext(x,m),this.returnState)}addEmptyContext(){let x=[this.parent,o.EMPTY_FULL],m=[this.returnState,o.EMPTY_FULL_STATE_KEY];return new f(x,m)}removeEmptyContext(){return this}equals(x){if(x===this)return!0;if(!(x instanceof ap))return!1;let m=x;return this.hashCode()!==m.hashCode()?!1:this.returnState===m.returnState&&this.parent.equals(m.parent)}};r([i.NotNull],d.prototype,"parent",void 0),r([i.Override],d.prototype,"getParent",null),r([i.Override],d.prototype,"getReturnState",null),r([i.Override],d.prototype,"findReturnState",null),r([i.Override],d.prototype,"size",null),r([i.Override],d.prototype,"isEmpty",null),r([i.Override],d.prototype,"hasEmpty",null),r([i.Override],d.prototype,"appendContext",null),r([i.Override],d.prototype,"addEmptyContext",null),r([i.Override],d.prototype,"removeEmptyContext",null),r([i.Override],d.prototype,"equals",null),d=r([c(0,i.NotNull)],d),u.SingletonPredictionContext=d,(function(g){g.EMPTY_LOCAL=new l(!1),g.EMPTY_FULL=new l(!0),g.EMPTY_LOCAL_STATE_KEY=-2147483648,g.EMPTY_FULL_STATE_KEY=(1<<31>>>0)-1;class x extends h.Array2DHashMap{constructor(){super(m.INSTANCE)}}g.IdentityHashMap=x;class m{IdentityEqualityComparator(){}hashCode(_){return _.hashCode()}equals(_,v){return _===v}}m.INSTANCE=new m,r([i.Override],m.prototype,"hashCode",null),r([i.Override],m.prototype,"equals",null),g.IdentityEqualityComparator=m})(o=u.PredictionContext||(u.PredictionContext={}))})(Lr)),Lr}var Kl;function wi(){if(Kl)return pt;Kl=1;var u=pt&&pt.__decorate||function(g,x,m,y){var _=arguments.length,v=_<3?x:y===null?y=Object.getOwnPropertyDescriptor(x,m):y,N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(g,x,m,y);else for(var T=g.length-1;T>=0;T--)(N=g[T])&&(v=(_<3?N(v):_>3?N(x,m,v):N(x,m))||v);return _>3&&v&&Object.defineProperty(x,m,v),v},r=pt&&pt.__param||function(g,x){return function(m,y){x(m,y,g)}};Object.defineProperty(pt,"__esModule",{value:!0}),pt.ATNConfig=void 0;const c=Fn(),h=Ir(),p=Pe(),a=Q(),n=Ze(),i=$e(),t=wn(),s=Fe(),e=2147483648;let o=class vi{constructor(x,m,y){typeof m=="number"?(s((m&16777215)===m),this._state=x,this.altAndOuterContextDepth=m,this._context=y):(this._state=x,this.altAndOuterContextDepth=m.altAndOuterContextDepth,this._context=y)}static create(x,m,y,_=t.SemanticContext.NONE,v){return _!==t.SemanticContext.NONE?v!=null?new d(v,_,x,m,y,!1):new l(_,x,m,y):v!=null?new f(v,x,m,y,!1):new vi(x,m,y)}get state(){return this._state}get alt(){return this.altAndOuterContextDepth&16777215}get context(){return this._context}set context(x){this._context=x}get reachesIntoOuterContext(){return this.outerContextDepth!==0}get outerContextDepth(){return this.altAndOuterContextDepth>>>24&127}set outerContextDepth(x){s(x>=0),x=Math.min(x,127),this.altAndOuterContextDepth=x<<24|(this.altAndOuterContextDepth&-2130706433)>>>0}get lexerActionExecutor(){}get semanticContext(){return t.SemanticContext.NONE}get hasPassedThroughNonGreedyDecision(){return!1}clone(){return this.transform(this.state,!1)}transform(x,m,y){return y==null?this.transformImpl(x,this._context,this.semanticContext,m,this.lexerActionExecutor):y instanceof i.PredictionContext?this.transformImpl(x,y,this.semanticContext,m,this.lexerActionExecutor):y instanceof t.SemanticContext?this.transformImpl(x,this._context,y,m,this.lexerActionExecutor):this.transformImpl(x,this._context,this.semanticContext,m,y)}transformImpl(x,m,y,_,v){let N=_&&vi.checkNonGreedyDecision(this,x);return y!==t.SemanticContext.NONE?v!=null||N?new d(v,y,x,this,m,N):new l(y,x,this,m):v!=null||N?new f(v,x,this,m,N):new vi(x,this,m)}static checkNonGreedyDecision(x,m){return x.hasPassedThroughNonGreedyDecision||m instanceof h.DecisionState&&m.nonGreedy}appendContext(x,m){if(typeof x=="number"){let y=this.context.appendSingleContext(x,m);return this.transform(this.state,!1,y)}else{let y=this.context.appendContext(x,m);return this.transform(this.state,!1,y)}}contains(x){if(this.state.stateNumber!==x.state.stateNumber||this.alt!==x.alt||!this.semanticContext.equals(x.semanticContext))return!1;let m=[],y=[];for(m.push(this.context),y.push(x.context);;){let _=m.pop(),v=y.pop();if(!_||!v)break;if(_===v)return!0;if(_.size<v.size)return!1;if(v.isEmpty)return _.hasEmpty;for(let N=0;N<v.size;N++){let T=_.findReturnState(v.getReturnState(N));if(T<0)return!1;m.push(_.getParent(T)),y.push(v.getParent(N))}}return!1}get isPrecedenceFilterSuppressed(){return(this.altAndOuterContextDepth&e)!==0}set isPrecedenceFilterSuppressed(x){x?this.altAndOuterContextDepth|=e:this.altAndOuterContextDepth&=~e}equals(x){return this===x?!0:x instanceof vi?this.state.stateNumber===x.state.stateNumber&&this.alt===x.alt&&this.reachesIntoOuterContext===x.reachesIntoOuterContext&&this.context.equals(x.context)&&this.semanticContext.equals(x.semanticContext)&&this.isPrecedenceFilterSuppressed===x.isPrecedenceFilterSuppressed&&this.hasPassedThroughNonGreedyDecision===x.hasPassedThroughNonGreedyDecision&&n.ObjectEqualityComparator.INSTANCE.equals(this.lexerActionExecutor,x.lexerActionExecutor):!1}hashCode(){let x=p.MurmurHash.initialize(7);return x=p.MurmurHash.update(x,this.state.stateNumber),x=p.MurmurHash.update(x,this.alt),x=p.MurmurHash.update(x,this.reachesIntoOuterContext?1:0),x=p.MurmurHash.update(x,this.context),x=p.MurmurHash.update(x,this.semanticContext),x=p.MurmurHash.update(x,this.hasPassedThroughNonGreedyDecision?1:0),x=p.MurmurHash.update(x,this.lexerActionExecutor),x=p.MurmurHash.finish(x,7),x}toDotString(){let x="";x+=`digraph G {
|
|
69
69
|
`,x+=`rankdir=LR;
|
|
70
|
-
`;let m=new c.Array2DHashMap(
|
|
70
|
+
`;let m=new c.Array2DHashMap(i.PredictionContext.IdentityEqualityComparator.INSTANCE),y=[];function _(v){let N=m.size,T=m.putIfAbsent(v,N);return T??(y.push(v),N)}for(y.push(this.context),m.put(this.context,0);;){let v=y.pop();if(!v)break;for(let N=0;N<v.size;N++)x+=" s"+_(v),x+="->",x+="s"+_(v.getParent(N)),x+='[label="'+v.getReturnState(N)+`"];
|
|
71
71
|
`}return x+=`}
|
|
72
|
-
`,x.toString()}toString(x,m,y){y==null&&(y=m!=null),m==null&&(m=!0);let _="",v;y?v=this.context.toStrings(x,this.state.stateNumber):v=["?"];let N=!0;for(let T of v)N?N=!1:_+=", ",_+="(",_+=this.state,m&&(_+=",",_+=this.alt),this.context&&(_+=",",_+=T),this.semanticContext!==t.SemanticContext.NONE&&(_+=",",_+=this.semanticContext),this.reachesIntoOuterContext&&(_+=",up="+this.outerContextDepth),_+=")";return _.toString()}};u([a.NotNull],o.prototype,"_state",void 0),u([a.NotNull],o.prototype,"_context",void 0),u([a.NotNull],o.prototype,"state",null),u([a.NotNull,i(0,a.NotNull)],o.prototype,"context",null),u([a.NotNull],o.prototype,"semanticContext",null),u([a.Override],o.prototype,"clone",null),u([i(0,a.NotNull),i(2,a.NotNull)],o.prototype,"transformImpl",null),u([a.Override],o.prototype,"equals",null),u([a.Override],o.prototype,"hashCode",null),u([i(0,a.NotNull),i(3,a.NotNull)],o,"create",null),o=u([i(0,a.NotNull),i(2,a.NotNull)],o),ht.ATNConfig=o;let l=class extends o{constructor(x,m,y,_){typeof y=="number"?super(m,y,_):super(m,y,_),this._semanticContext=x}get semanticContext(){return this._semanticContext}};u([a.NotNull],l.prototype,"_semanticContext",void 0),u([a.Override],l.prototype,"semanticContext",null),l=u([i(1,a.NotNull),i(2,a.NotNull)],l);let f=class extends o{constructor(x,m,y,_,v){if(typeof y=="number")super(m,y,_);else if(super(m,y,_),y.semanticContext!==t.SemanticContext.NONE)throw new Error("Not supported");this._lexerActionExecutor=x,this.passedThroughNonGreedyDecision=v}get lexerActionExecutor(){return this._lexerActionExecutor}get hasPassedThroughNonGreedyDecision(){return this.passedThroughNonGreedyDecision}};u([a.Override],f.prototype,"lexerActionExecutor",null),u([a.Override],f.prototype,"hasPassedThroughNonGreedyDecision",null),f=u([i(1,a.NotNull),i(2,a.NotNull)],f);let d=class extends l{constructor(x,m,y,_,v,N){typeof _=="number"?super(m,y,_,v):super(m,y,_,v),this._lexerActionExecutor=x,this.passedThroughNonGreedyDecision=N}get lexerActionExecutor(){return this._lexerActionExecutor}get hasPassedThroughNonGreedyDecision(){return this.passedThroughNonGreedyDecision}};return u([a.Override],d.prototype,"lexerActionExecutor",null),u([a.Override],d.prototype,"hasPassedThroughNonGreedyDecision",null),d=u([i(1,a.NotNull),i(2,a.NotNull)],d),ht}var Qn={},$l;function fr(){if($l)return Qn;$l=1;Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.BitSet=void 0;const u=wn(),i=Pe(),c=new Uint16Array(0);function h(o){return o>>>4}function p(o){return o*16}function a(o){let l=1;for(let f=0;f<16;f++){if((o&l)!==0)return f;l=l<<1>>>0}throw new RangeError("No specified bit found")}function r(o){let l=32768;for(let f=15;f>=0;f--){if((o&l)!==0)return f;l=l>>>1}throw new RangeError("No specified bit found")}function n(o,l){return o&=15,l&=15,o===l?1<<o>>>0:65535>>>15-l^65535>>>16-o}const t=new Uint8Array(65536);for(let o=0;o<16;o++){const l=1<<o>>>0;let f=0;for(;f<t.length;){f+=l;for(let d=0;d<l;d++)t[f]++,f++}}let s=class Ai{constructor(l){if(!l)this.data=c;else if(typeof l=="number"){if(l<0)throw new RangeError("nbits cannot be negative");this.data=new Uint16Array(h(l-1)+1)}else if(l instanceof Ai)this.data=l.data.slice(0);else{let f=-1;for(let d of l)f<d&&(f=d);this.data=new Uint16Array(h(f-1)+1);for(let d of l)this.set(d)}}and(l){const f=this.data,d=l.data,g=Math.min(f.length,d.length);let x=-1;for(let m=0;m<g;m++)(f[m]&=d[m])!==0&&(x=m);x===-1&&(this.data=c),x<f.length-1&&(this.data=f.slice(0,x+1))}andNot(l){const f=this.data,d=l.data,g=Math.min(f.length,d.length);let x=-1;for(let m=0;m<g;m++)(f[m]&=d[m]^65535)!==0&&(x=m);x===-1&&(this.data=c),x<f.length-1&&(this.data=f.slice(0,x+1))}cardinality(){if(this.isEmpty)return 0;const l=this.data,f=l.length;let d=0;for(let g=0;g<f;g++)d+=t[l[g]];return d}clear(l,f){l==null?this.data.fill(0):f==null?this.set(l,!1):this.set(l,f,!1)}flip(l,f){if(f==null&&(f=l),l<0||f<l)throw new RangeError;let d=h(l);const g=h(f);if(d===g)this.data[d]^=n(l,f);else{for(this.data[d++]^=n(l,15);d<g;)this.data[d++]^=65535;this.data[d++]^=n(0,f)}}get(l,f){if(f===void 0)return!!(this.data[h(l)]&n(l,l));{let d=new Ai(f+1);for(let g=l;g<=f;g++)d.set(g,this.get(g));return d}}intersects(l){let f=Math.min(this.length(),l.length());if(f===0)return!1;let d=h(f-1);for(let g=0;g<=d;g++)if((this.data[g]&l.data[g])!==0)return!0;return!1}get isEmpty(){return this.length()===0}length(){return this.data.length?this.previousSetBit(p(this.data.length)-1)+1:0}nextClearBit(l){if(l<0)throw new RangeError("fromIndex cannot be negative");const f=this.data,d=f.length;let g=h(l);if(g>d)return-1;let x=65535^n(l,15);if((f[g]|x)===65535){for(g++,x=0;g<d&&f[g]===65535;g++);if(g===d)return-1}return p(g)+a((f[g]|x)^65535)}nextSetBit(l){if(l<0)throw new RangeError("fromIndex cannot be negative");const f=this.data,d=f.length;let g=h(l);if(g>d)return-1;let x=n(l,15);if((f[g]&x)===0){for(g++,x=65535;g<d&&f[g]===0;g++);if(g>=d)return-1}return p(g)+a(f[g]&x)}or(l){const f=this.data,d=l.data,g=Math.min(f.length,d.length),x=Math.max(f.length,d.length),m=f.length===x?f:new Uint16Array(x);let y=-1;for(let v=0;v<g;v++)(m[v]=f[v]|d[v])!==0&&(y=v);const _=f.length>d.length?f:d;for(let v=g;v<x;v++)(m[v]=_[v])!==0&&(y=v);y===-1?this.data=c:m.length===y+1?this.data=m:this.data=m.slice(0,y)}previousClearBit(l){if(l<0)throw new RangeError("fromIndex cannot be negative");const f=this.data,d=f.length;let g=h(l);g>=d&&(g=d-1);let x=65535^n(0,l);if((f[g]|x)===65535){for(x=0,g--;g>=0&&f[g]===65535;g--);if(g<0)return-1}return p(g)+r((f[g]|x)^65535)}previousSetBit(l){if(l<0)throw new RangeError("fromIndex cannot be negative");const f=this.data,d=f.length;let g=h(l);g>=d&&(g=d-1);let x=n(0,l);if((f[g]&x)===0){for(g--,x=65535;g>=0&&f[g]===0;g--);if(g<0)return-1}return p(g)+r(f[g]&x)}set(l,f,d){if(f===void 0?(f=l,d=!0):typeof f=="boolean"&&(d=f,f=l),d===void 0&&(d=!0),l<0||l>f)throw new RangeError;let g=h(l),x=h(f);if(d&&x>=this.data.length){let m=new Uint16Array(x+1);this.data.forEach((y,_)=>m[_]=y),this.data=m}else if(!d){if(g>=this.data.length)return;x>=this.data.length&&(x=this.data.length-1,f=this.data.length*16-1)}if(g===x)this._setBits(g,d,n(l,f));else{for(this._setBits(g++,d,n(l,15));g<x;)this.data[g++]=d?65535:0;this._setBits(g,d,n(0,f))}}_setBits(l,f,d){f?this.data[l]|=d:this.data[l]&=65535^d}get size(){return this.data.byteLength*8}hashCode(){return i.MurmurHash.hashCode(this.data,22)}equals(l){if(l===this)return!0;if(!(l instanceof Ai))return!1;const f=this.length();if(f!==l.length())return!1;if(f===0)return!0;let d=h(f-1);for(let g=0;g<=d;g++)if(this.data[g]!==l.data[g])return!1;return!0}toString(){let l="{",f=!0;for(let d=this.nextSetBit(0);d>=0;d=this.nextSetBit(d+1))f?f=!1:l+=", ",l+=d;return l+="}",l}xor(l){const f=this.data,d=l.data,g=Math.min(f.length,d.length),x=Math.max(f.length,d.length),m=f.length===x?f:new Uint16Array(x);let y=-1;for(let v=0;v<g;v++)(m[v]=f[v]^d[v])!==0&&(y=v);const _=f.length>d.length?f:d;for(let v=g;v<x;v++)(m[v]=_[v])!==0&&(y=v);y===-1?this.data=c:m.length===y+1?this.data=m:this.data=m.slice(0,y+1)}clone(){return new Ai(this)}[Symbol.iterator](){return new e(this.data)}[u.inspect.custom](){return"BitSet "+this.toString()}};Qn.BitSet=s;class e{constructor(l){this.data=l,this.index=0,this.mask=65535}next(){for(;this.index<this.data.length;){const l=this.data[this.index]&this.mask;if(l!==0){const f=p(this.index)+a(l);return this.mask=n(f+1,15),{done:!1,value:f}}this.index++,this.mask=65535}return{done:!0,value:-1}}[Symbol.iterator](){return this}}return Qn}var Kl;function Jn(){if(Kl)return Dr;Kl=1;var u=Dr&&Dr.__decorate||function(m,y,_,v){var N=arguments.length,T=N<3?y:v===null?v=Object.getOwnPropertyDescriptor(y,_):v,b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(m,y,_,v);else for(var O=m.length-1;O>=0;O--)(b=m[O])&&(T=(N<3?b(T):N>3?b(y,_,T):b(y,_))||T);return N>3&&T&&Object.defineProperty(y,_,T),T};Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.ATNConfigSet=void 0;const i=Fn(),c=cr(),h=Di(),p=At(),a=Li(),r=fr(),n=Q(),t=Ze(),s=Xe(),e=js(),o=Ln(),l=Fe(),f=ut();class d{hashCode(y){return y.state^y.alt}equals(y,_){return y.state===_.state&&y.alt===_.alt}}d.INSTANCE=new d;function g(m){return m?new i.Array2DHashMap(m):new i.Array2DHashMap(d.INSTANCE)}let x=class Au{constructor(y,_){this._uniqueAlt=0,this._hasSemanticContext=!1,this._dipsIntoOuterContext=!1,this.outermostConfigSet=!1,this.cachedHashCode=-1,y?(_?(this.mergedConfigs=void 0,this.unmerged=void 0):y.isReadOnly?(this.mergedConfigs=g(),this.unmerged=[]):(this.mergedConfigs=g(y.mergedConfigs),this.unmerged=y.unmerged.slice(0)),this.configs=y.configs.slice(0),this._dipsIntoOuterContext=y._dipsIntoOuterContext,this._hasSemanticContext=y._hasSemanticContext,this.outermostConfigSet=y.outermostConfigSet,(_||!y.isReadOnly)&&(this._uniqueAlt=y._uniqueAlt,this._conflictInfo=y._conflictInfo)):(this.mergedConfigs=g(),this.unmerged=[],this.configs=[],this._uniqueAlt=p.ATN.INVALID_ALT_NUMBER)}getRepresentedAlternatives(){if(this._conflictInfo!=null)return this._conflictInfo.conflictedAlts.clone();let y=new r.BitSet;for(let _ of this)y.set(_.alt);return y}get isReadOnly(){return this.mergedConfigs==null}get isOutermostConfigSet(){return this.outermostConfigSet}set isOutermostConfigSet(y){if(this.outermostConfigSet&&!y)throw new Error("IllegalStateException");l(!y||!this._dipsIntoOuterContext),this.outermostConfigSet=y}getStates(){let y=new c.Array2DHashSet(t.ObjectEqualityComparator.INSTANCE);for(let _ of this.configs)y.add(_.state);return y}optimizeConfigs(y){if(this.configs.length!==0)for(let _ of this.configs)_.context=y.atn.getCachedContext(_.context)}clone(y){let _=new Au(this,y);return!y&&this.isReadOnly&&_.addAll(this.configs),_}get size(){return this.configs.length}get isEmpty(){return this.configs.length===0}contains(y){if(!(y instanceof a.ATNConfig))return!1;if(this.mergedConfigs&&this.unmerged){let _=y,v=this.getKey(_),N=this.mergedConfigs.get(v);if(N!=null&&this.canMerge(_,v,N))return N.contains(_);for(let T of this.unmerged)if(T.contains(y))return!0}else for(let _ of this.configs)if(_.contains(y))return!0;return!1}*[Symbol.iterator](){yield*this.configs}toArray(){return this.configs}add(y,_){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");l(!this.outermostConfigSet||!y.reachesIntoOuterContext),_==null&&(_=e.PredictionContextCache.UNCACHED);let v,N=this.getKey(y),T=this.mergedConfigs.get(N);if(v=T==null,T!=null&&this.canMerge(y,N,T)){T.outerContextDepth=Math.max(T.outerContextDepth,y.outerContextDepth),y.isPrecedenceFilterSuppressed&&(T.isPrecedenceFilterSuppressed=!0);let b=s.PredictionContext.join(T.context,y.context,_);return this.updatePropertiesForMergedConfig(y),T.context===b?!1:(T.context=b,!0)}for(let b=0;b<this.unmerged.length;b++){let O=this.unmerged[b];if(this.canMerge(y,N,O)){O.outerContextDepth=Math.max(O.outerContextDepth,y.outerContextDepth),y.isPrecedenceFilterSuppressed&&(O.isPrecedenceFilterSuppressed=!0);let D=s.PredictionContext.join(O.context,y.context,_);return this.updatePropertiesForMergedConfig(y),O.context===D?!1:(O.context=D,v&&(this.mergedConfigs.put(N,O),this.unmerged.splice(b,1)),!0)}}return this.configs.push(y),v?this.mergedConfigs.put(N,y):this.unmerged.push(y),this.updatePropertiesForAddedConfig(y),!0}updatePropertiesForMergedConfig(y){this._dipsIntoOuterContext=this._dipsIntoOuterContext||y.reachesIntoOuterContext,l(!this.outermostConfigSet||!this._dipsIntoOuterContext)}updatePropertiesForAddedConfig(y){this.configs.length===1?this._uniqueAlt=y.alt:this._uniqueAlt!==y.alt&&(this._uniqueAlt=p.ATN.INVALID_ALT_NUMBER),this._hasSemanticContext=this._hasSemanticContext||!o.SemanticContext.NONE.equals(y.semanticContext),this._dipsIntoOuterContext=this._dipsIntoOuterContext||y.reachesIntoOuterContext,l(!this.outermostConfigSet||!this._dipsIntoOuterContext)}canMerge(y,_,v){return y.state.stateNumber!==v.state.stateNumber||_.alt!==v.alt?!1:y.semanticContext.equals(v.semanticContext)}getKey(y){return{state:y.state.stateNumber,alt:y.alt}}containsAll(y){for(let _ of y)if(!(_ instanceof a.ATNConfig)||!this.contains(_))return!1;return!0}addAll(y,_){this.ensureWritable();let v=!1;for(let N of y)this.add(N,_)&&(v=!0);return v}clear(){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");this.mergedConfigs.clear(),this.unmerged.length=0,this.configs.length=0,this._dipsIntoOuterContext=!1,this._hasSemanticContext=!1,this._uniqueAlt=p.ATN.INVALID_ALT_NUMBER,this._conflictInfo=void 0}equals(y){return this===y?!0:y instanceof Au?this.outermostConfigSet===y.outermostConfigSet&&f.equals(this._conflictInfo,y._conflictInfo)&&h.ArrayEqualityComparator.INSTANCE.equals(this.configs,y.configs):!1}hashCode(){if(this.isReadOnly&&this.cachedHashCode!==-1)return this.cachedHashCode;let y=1;return y=5*y^(this.outermostConfigSet?1:0),y=5*y^h.ArrayEqualityComparator.INSTANCE.hashCode(this.configs),this.isReadOnly&&(this.cachedHashCode=y),y}toString(y){y==null&&(y=!1);let _="",v=this.configs.slice(0);v.sort((N,T)=>N.alt!==T.alt?N.alt-T.alt:N.state.stateNumber!==T.state.stateNumber?N.state.stateNumber-T.state.stateNumber:N.semanticContext.toString().localeCompare(T.semanticContext.toString())),_+="[";for(let N=0;N<v.length;N++)N>0&&(_+=", "),_+=v[N].toString(void 0,!0,y);return _+="]",this._hasSemanticContext&&(_+=",hasSemanticContext="+this._hasSemanticContext),this._uniqueAlt!==p.ATN.INVALID_ALT_NUMBER&&(_+=",uniqueAlt="+this._uniqueAlt),this._conflictInfo!=null&&(_+=",conflictingAlts="+this._conflictInfo.conflictedAlts,this._conflictInfo.isExact||(_+="*")),this._dipsIntoOuterContext&&(_+=",dipsIntoOuterContext"),_.toString()}get uniqueAlt(){return this._uniqueAlt}get hasSemanticContext(){return this._hasSemanticContext}set hasSemanticContext(y){this.ensureWritable(),this._hasSemanticContext=y}get conflictInfo(){return this._conflictInfo}set conflictInfo(y){this.ensureWritable(),this._conflictInfo=y}get conflictingAlts(){if(this._conflictInfo!=null)return this._conflictInfo.conflictedAlts}get isExactConflict(){return this._conflictInfo==null?!1:this._conflictInfo.isExact}get dipsIntoOuterContext(){return this._dipsIntoOuterContext}get(y){return this.configs[y]}ensureWritable(){if(this.isReadOnly)throw new Error("This ATNConfigSet is read only.")}};return u([n.NotNull],x.prototype,"getRepresentedAlternatives",null),u([n.Override],x.prototype,"size",null),u([n.Override],x.prototype,"isEmpty",null),u([n.Override],x.prototype,"contains",null),u([n.Override],x.prototype,Symbol.iterator,null),u([n.Override],x.prototype,"toArray",null),u([n.Override],x.prototype,"containsAll",null),u([n.Override],x.prototype,"clear",null),u([n.Override],x.prototype,"equals",null),u([n.Override],x.prototype,"hashCode",null),Dr.ATNConfigSet=x,Dr}var Lr={},Fr={},Br={},Ql;function Fi(){return Ql||(Ql=1,(function(u){var i=Br&&Br.__decorate||function(e,o,l,f){var d=arguments.length,g=d<3?o:f===null?f=Object.getOwnPropertyDescriptor(o,l):f,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,o,l,f);else for(var m=e.length-1;m>=0;m--)(x=e[m])&&(g=(d<3?x(g):d>3?x(o,l,g):x(o,l))||g);return d>3&&g&&Object.defineProperty(o,l,g),g},c=Br&&Br.__param||function(e,o){return function(l,f){o(l,f,e)}};Object.defineProperty(u,"__esModule",{value:!0}),u.DFAState=void 0;const h=At(),p=fr(),a=Pe(),r=Q(),n=Xe(),t=Fe();let s=class op{constructor(o){this.stateNumber=-1,this.configs=o,this.edges=new Map,this.contextEdges=new Map}get isContextSensitive(){return!!this.contextSymbols}isContextSymbol(o){return this.isContextSensitive?this.contextSymbols.get(o):!1}setContextSymbol(o){t(this.isContextSensitive),this.contextSymbols.set(o)}setContextSensitive(o){t(!this.configs.isOutermostConfigSet),!this.isContextSensitive&&(this.contextSymbols||(this.contextSymbols=new p.BitSet))}get acceptStateInfo(){return this._acceptStateInfo}set acceptStateInfo(o){this._acceptStateInfo=o}get isAcceptState(){return!!this._acceptStateInfo}get prediction(){return this._acceptStateInfo?this._acceptStateInfo.prediction:h.ATN.INVALID_ALT_NUMBER}get lexerActionExecutor(){if(this._acceptStateInfo)return this._acceptStateInfo.lexerActionExecutor}getTarget(o){return this.edges.get(o)}setTarget(o,l){this.edges.set(o,l)}getEdgeMap(){return this.edges}getContextTarget(o){return o===n.PredictionContext.EMPTY_FULL_STATE_KEY&&(o=-1),this.contextEdges.get(o)}setContextTarget(o,l){if(!this.isContextSensitive)throw new Error("The state is not context sensitive.");o===n.PredictionContext.EMPTY_FULL_STATE_KEY&&(o=-1),this.contextEdges.set(o,l)}getContextEdgeMap(){let o=new Map(this.contextEdges),l=o.get(-1);if(l!==void 0)if(o.size===1){let f=new Map;return f.set(n.PredictionContext.EMPTY_FULL_STATE_KEY,l),f}else o.delete(-1),o.set(n.PredictionContext.EMPTY_FULL_STATE_KEY,l);return o}hashCode(){let o=a.MurmurHash.initialize(7);return o=a.MurmurHash.update(o,this.configs.hashCode()),o=a.MurmurHash.finish(o,1),o}equals(o){if(this===o)return!0;if(!(o instanceof op))return!1;let l=o;return this.configs.equals(l.configs)}toString(){let o="";return o+=this.stateNumber+":"+this.configs,this.isAcceptState&&(o+="=>",this.predicates?o+=this.predicates:o+=this.prediction),o.toString()}};i([r.NotNull],s.prototype,"configs",void 0),i([r.NotNull],s.prototype,"edges",void 0),i([r.NotNull],s.prototype,"contextEdges",void 0),i([r.Override],s.prototype,"hashCode",null),i([r.Override],s.prototype,"equals",null),i([r.Override],s.prototype,"toString",null),u.DFAState=s,(function(e){let o=class{constructor(f,d){this.alt=d,this.pred=f}toString(){return"("+this.pred+", "+this.alt+")"}};i([r.NotNull],o.prototype,"pred",void 0),i([r.Override],o.prototype,"toString",null),o=i([c(0,r.NotNull)],o),e.PredPrediction=o})(s=u.DFAState||(u.DFAState={}))})(Br)),Br}var Jl;function Bi(){return Jl||(Jl=1,(function(u){var i=Fr&&Fr.__decorate||function(t,s,e,o){var l=arguments.length,f=l<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,e):o,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(t,s,e,o);else for(var g=t.length-1;g>=0;g--)(d=t[g])&&(f=(l<3?d(f):l>3?d(s,e,f):d(s,e))||f);return l>3&&f&&Object.defineProperty(s,e,f),f},c=Fr&&Fr.__param||function(t,s){return function(e,o){s(e,o,t)}};Object.defineProperty(u,"__esModule",{value:!0}),u.ATNSimulator=void 0;const h=Jn(),p=Fi(),a=Q(),r=Xe();let n=class Ti{constructor(s){this.atn=s}static get ERROR(){return Ti._ERROR||(Ti._ERROR=new p.DFAState(new h.ATNConfigSet),Ti._ERROR.stateNumber=r.PredictionContext.EMPTY_FULL_STATE_KEY),Ti._ERROR}clearDFA(){this.atn.clearDFA()}};i([a.NotNull],n.prototype,"atn",void 0),i([a.NotNull],n,"ERROR",null),n=i([c(0,a.NotNull)],n),u.ATNSimulator=n,n=u.ATNSimulator||(u.ATNSimulator={}),u.ATNSimulator=n})(Fr)),Fr}var pt={},Zn={},Zl;function Yl(){if(Zl)return Zn;Zl=1;Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.ConsoleErrorListener=void 0;let u=class{syntaxError(c,h,p,a,r,n){console.error(`line ${p}:${a} ${r}`)}};return Zn.ConsoleErrorListener=u,u.INSTANCE=new u,Zn}var dt={},ec;function Ms(){if(ec)return dt;ec=1;var u=dt&&dt.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s},i=dt&&dt.__param||function(p,a){return function(r,n){a(r,n,p)}};Object.defineProperty(dt,"__esModule",{value:!0}),dt.ProxyErrorListener=void 0;const c=Q();let h=class{constructor(a){if(this.delegates=a,!a)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(a,r,n,t,s,e){this.delegates.forEach(o=>{o.syntaxError&&o.syntaxError(a,r,n,t,s,e)})}};return u([c.Override,i(0,c.NotNull),i(4,c.NotNull)],h.prototype,"syntaxError",null),dt.ProxyErrorListener=h,dt}var tc;function Yn(){if(tc)return pt;tc=1;var u=pt&&pt.__decorate||function(t,s,e,o){var l=arguments.length,f=l<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,e):o,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(t,s,e,o);else for(var g=t.length-1;g>=0;g--)(d=t[g])&&(f=(l<3?d(f):l>3?d(s,e,f):d(s,e))||f);return l>3&&f&&Object.defineProperty(s,e,f),f},i=pt&&pt.__param||function(t,s){return function(e,o){s(e,o,t)}};Object.defineProperty(pt,"__esModule",{value:!0}),pt.Recognizer=void 0;const c=Yl(),h=Ms(),p=Q(),a=Ne(),r=ut();let n=class Ei{constructor(){this._listeners=[c.ConsoleErrorListener.INSTANCE],this._stateNumber=-1}getTokenTypeMap(){let s=this.vocabulary,e=Ei.tokenTypeMapCache.get(s);if(e==null){let o=new Map;for(let l=0;l<=this.atn.maxTokenType;l++){let f=s.getLiteralName(l);f!=null&&o.set(f,l);let d=s.getSymbolicName(l);d!=null&&o.set(d,l)}o.set("EOF",a.Token.EOF),e=o,Ei.tokenTypeMapCache.set(s,e)}return e}getRuleIndexMap(){let s=this.ruleNames;if(s==null)throw new Error("The current recognizer does not provide a list of rule names.");let e=Ei.ruleIndexMapCache.get(s);return e==null&&(e=r.toMap(s),Ei.ruleIndexMapCache.set(s,e)),e}getTokenType(s){let e=this.getTokenTypeMap().get(s);return e??a.Token.INVALID_TYPE}get serializedATN(){throw new Error("there is no serialized ATN")}get atn(){return this._interp.atn}get interpreter(){return this._interp}set interpreter(s){this._interp=s}get parseInfo(){return Promise.resolve(void 0)}getErrorHeader(s){let e=s.getOffendingToken();if(!e)return"";let o=e.line,l=e.charPositionInLine;return"line "+o+":"+l}addErrorListener(s){if(!s)throw new TypeError("listener must not be null");this._listeners.push(s)}removeErrorListener(s){let e=this._listeners.indexOf(s);e!==-1&&this._listeners.splice(e,1)}removeErrorListeners(){this._listeners.length=0}getErrorListeners(){return this._listeners.slice(0)}getErrorListenerDispatch(){return new h.ProxyErrorListener(this.getErrorListeners())}sempred(s,e,o){return!0}precpred(s,e){return!0}action(s,e,o){}get state(){return this._stateNumber}set state(s){this._stateNumber=s}};return n.EOF=-1,n.tokenTypeMapCache=new WeakMap,n.ruleIndexMapCache=new WeakMap,u([p.SuppressWarnings("serial"),p.NotNull],n.prototype,"_listeners",void 0),u([p.NotNull],n.prototype,"getTokenTypeMap",null),u([p.NotNull],n.prototype,"getRuleIndexMap",null),u([p.NotNull],n.prototype,"serializedATN",null),u([p.NotNull],n.prototype,"atn",null),u([p.NotNull,i(0,p.NotNull)],n.prototype,"interpreter",null),u([p.NotNull,i(0,p.NotNull)],n.prototype,"getErrorHeader",null),u([i(0,p.NotNull)],n.prototype,"addErrorListener",null),u([i(0,p.NotNull)],n.prototype,"removeErrorListener",null),u([p.NotNull],n.prototype,"getErrorListeners",null),pt.Recognizer=n,pt}var jr={},rc;function Mr(){if(rc)return jr;rc=1;var u=jr&&jr.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s};Object.defineProperty(jr,"__esModule",{value:!0}),jr.VocabularyImpl=void 0;const i=Q(),c=Ne();let h=class{constructor(a,r,n){this.literalNames=a,this.symbolicNames=r,this.displayNames=n,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}get maxTokenType(){return this._maxTokenType}getLiteralName(a){if(a>=0&&a<this.literalNames.length)return this.literalNames[a]}getSymbolicName(a){if(a>=0&&a<this.symbolicNames.length)return this.symbolicNames[a];if(a===c.Token.EOF)return"EOF"}getDisplayName(a){if(a>=0&&a<this.displayNames.length){let t=this.displayNames[a];if(t)return t}let r=this.getLiteralName(a);if(r)return r;let n=this.getSymbolicName(a);return n||String(a)}};return h.EMPTY_VOCABULARY=new h([],[],[]),u([i.NotNull],h.prototype,"literalNames",void 0),u([i.NotNull],h.prototype,"symbolicNames",void 0),u([i.NotNull],h.prototype,"displayNames",void 0),u([i.Override],h.prototype,"maxTokenType",null),u([i.Override],h.prototype,"getLiteralName",null),u([i.Override],h.prototype,"getSymbolicName",null),u([i.Override,i.NotNull],h.prototype,"getDisplayName",null),u([i.NotNull],h,"EMPTY_VOCABULARY",void 0),jr.VocabularyImpl=h,jr}var nc;function ic(){if(nc)return Lr;nc=1;var u=Lr&&Lr.__decorate||function(n,t,s,e){var o=arguments.length,l=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,t,s,e);else for(var d=n.length-1;d>=0;d--)(f=n[d])&&(l=(o<3?f(l):o>3?f(t,s,l):f(t,s))||l);return o>3&&l&&Object.defineProperty(t,s,l),l};Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.DFASerializer=void 0;const i=Bi(),c=Q(),h=Xe(),p=Yn(),a=Mr();let r=class{constructor(t,s,e,o){s instanceof p.Recognizer?(e=s.ruleNames,o=s.atn,s=s.vocabulary):s||(s=a.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=t,this.vocabulary=s,this.ruleNames=e,this.atn=o}toString(){if(!this.dfa.s0)return"";let t="";if(this.dfa.states){let e=new Array(...this.dfa.states.toArray());e.sort((o,l)=>o.stateNumber-l.stateNumber);for(let o of e){let l=o.getEdgeMap(),f=[...l.keys()].sort((x,m)=>x-m),d=o.getContextEdgeMap(),g=[...d.keys()].sort((x,m)=>x-m);for(let x of f){let m=l.get(x);if((m==null||m===i.ATNSimulator.ERROR)&&!o.isContextSymbol(x))continue;let y=!1;t+=this.getStateString(o)+"-"+this.getEdgeLabel(x)+"->",o.isContextSymbol(x)&&(t+="!",y=!0);let _=m;_&&_.stateNumber!==i.ATNSimulator.ERROR.stateNumber?t+=this.getStateString(_)+`
|
|
72
|
+
`,x.toString()}toString(x,m,y){y==null&&(y=m!=null),m==null&&(m=!0);let _="",v;y?v=this.context.toStrings(x,this.state.stateNumber):v=["?"];let N=!0;for(let T of v)N?N=!1:_+=", ",_+="(",_+=this.state,m&&(_+=",",_+=this.alt),this.context&&(_+=",",_+=T),this.semanticContext!==t.SemanticContext.NONE&&(_+=",",_+=this.semanticContext),this.reachesIntoOuterContext&&(_+=",up="+this.outerContextDepth),_+=")";return _.toString()}};u([a.NotNull],o.prototype,"_state",void 0),u([a.NotNull],o.prototype,"_context",void 0),u([a.NotNull],o.prototype,"state",null),u([a.NotNull,r(0,a.NotNull)],o.prototype,"context",null),u([a.NotNull],o.prototype,"semanticContext",null),u([a.Override],o.prototype,"clone",null),u([r(0,a.NotNull),r(2,a.NotNull)],o.prototype,"transformImpl",null),u([a.Override],o.prototype,"equals",null),u([a.Override],o.prototype,"hashCode",null),u([r(0,a.NotNull),r(3,a.NotNull)],o,"create",null),o=u([r(0,a.NotNull),r(2,a.NotNull)],o),pt.ATNConfig=o;let l=class extends o{constructor(x,m,y,_){typeof y=="number"?super(m,y,_):super(m,y,_),this._semanticContext=x}get semanticContext(){return this._semanticContext}};u([a.NotNull],l.prototype,"_semanticContext",void 0),u([a.Override],l.prototype,"semanticContext",null),l=u([r(1,a.NotNull),r(2,a.NotNull)],l);let f=class extends o{constructor(x,m,y,_,v){if(typeof y=="number")super(m,y,_);else if(super(m,y,_),y.semanticContext!==t.SemanticContext.NONE)throw new Error("Not supported");this._lexerActionExecutor=x,this.passedThroughNonGreedyDecision=v}get lexerActionExecutor(){return this._lexerActionExecutor}get hasPassedThroughNonGreedyDecision(){return this.passedThroughNonGreedyDecision}};u([a.Override],f.prototype,"lexerActionExecutor",null),u([a.Override],f.prototype,"hasPassedThroughNonGreedyDecision",null),f=u([r(1,a.NotNull),r(2,a.NotNull)],f);let d=class extends l{constructor(x,m,y,_,v,N){typeof _=="number"?super(m,y,_,v):super(m,y,_,v),this._lexerActionExecutor=x,this.passedThroughNonGreedyDecision=N}get lexerActionExecutor(){return this._lexerActionExecutor}get hasPassedThroughNonGreedyDecision(){return this.passedThroughNonGreedyDecision}};return u([a.Override],d.prototype,"lexerActionExecutor",null),u([a.Override],d.prototype,"hasPassedThroughNonGreedyDecision",null),d=u([r(1,a.NotNull),r(2,a.NotNull)],d),pt}var Qn={},Ql;function fr(){if(Ql)return Qn;Ql=1;Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.BitSet=void 0;const u=Ln(),r=Pe(),c=new Uint16Array(0);function h(o){return o>>>4}function p(o){return o*16}function a(o){let l=1;for(let f=0;f<16;f++){if((o&l)!==0)return f;l=l<<1>>>0}throw new RangeError("No specified bit found")}function n(o){let l=32768;for(let f=15;f>=0;f--){if((o&l)!==0)return f;l=l>>>1}throw new RangeError("No specified bit found")}function i(o,l){return o&=15,l&=15,o===l?1<<o>>>0:65535>>>15-l^65535>>>16-o}const t=new Uint8Array(65536);for(let o=0;o<16;o++){const l=1<<o>>>0;let f=0;for(;f<t.length;){f+=l;for(let d=0;d<l;d++)t[f]++,f++}}let s=class Ai{constructor(l){if(!l)this.data=c;else if(typeof l=="number"){if(l<0)throw new RangeError("nbits cannot be negative");this.data=new Uint16Array(h(l-1)+1)}else if(l instanceof Ai)this.data=l.data.slice(0);else{let f=-1;for(let d of l)f<d&&(f=d);this.data=new Uint16Array(h(f-1)+1);for(let d of l)this.set(d)}}and(l){const f=this.data,d=l.data,g=Math.min(f.length,d.length);let x=-1;for(let m=0;m<g;m++)(f[m]&=d[m])!==0&&(x=m);x===-1&&(this.data=c),x<f.length-1&&(this.data=f.slice(0,x+1))}andNot(l){const f=this.data,d=l.data,g=Math.min(f.length,d.length);let x=-1;for(let m=0;m<g;m++)(f[m]&=d[m]^65535)!==0&&(x=m);x===-1&&(this.data=c),x<f.length-1&&(this.data=f.slice(0,x+1))}cardinality(){if(this.isEmpty)return 0;const l=this.data,f=l.length;let d=0;for(let g=0;g<f;g++)d+=t[l[g]];return d}clear(l,f){l==null?this.data.fill(0):f==null?this.set(l,!1):this.set(l,f,!1)}flip(l,f){if(f==null&&(f=l),l<0||f<l)throw new RangeError;let d=h(l);const g=h(f);if(d===g)this.data[d]^=i(l,f);else{for(this.data[d++]^=i(l,15);d<g;)this.data[d++]^=65535;this.data[d++]^=i(0,f)}}get(l,f){if(f===void 0)return!!(this.data[h(l)]&i(l,l));{let d=new Ai(f+1);for(let g=l;g<=f;g++)d.set(g,this.get(g));return d}}intersects(l){let f=Math.min(this.length(),l.length());if(f===0)return!1;let d=h(f-1);for(let g=0;g<=d;g++)if((this.data[g]&l.data[g])!==0)return!0;return!1}get isEmpty(){return this.length()===0}length(){return this.data.length?this.previousSetBit(p(this.data.length)-1)+1:0}nextClearBit(l){if(l<0)throw new RangeError("fromIndex cannot be negative");const f=this.data,d=f.length;let g=h(l);if(g>d)return-1;let x=65535^i(l,15);if((f[g]|x)===65535){for(g++,x=0;g<d&&f[g]===65535;g++);if(g===d)return-1}return p(g)+a((f[g]|x)^65535)}nextSetBit(l){if(l<0)throw new RangeError("fromIndex cannot be negative");const f=this.data,d=f.length;let g=h(l);if(g>d)return-1;let x=i(l,15);if((f[g]&x)===0){for(g++,x=65535;g<d&&f[g]===0;g++);if(g>=d)return-1}return p(g)+a(f[g]&x)}or(l){const f=this.data,d=l.data,g=Math.min(f.length,d.length),x=Math.max(f.length,d.length),m=f.length===x?f:new Uint16Array(x);let y=-1;for(let v=0;v<g;v++)(m[v]=f[v]|d[v])!==0&&(y=v);const _=f.length>d.length?f:d;for(let v=g;v<x;v++)(m[v]=_[v])!==0&&(y=v);y===-1?this.data=c:m.length===y+1?this.data=m:this.data=m.slice(0,y)}previousClearBit(l){if(l<0)throw new RangeError("fromIndex cannot be negative");const f=this.data,d=f.length;let g=h(l);g>=d&&(g=d-1);let x=65535^i(0,l);if((f[g]|x)===65535){for(x=0,g--;g>=0&&f[g]===65535;g--);if(g<0)return-1}return p(g)+n((f[g]|x)^65535)}previousSetBit(l){if(l<0)throw new RangeError("fromIndex cannot be negative");const f=this.data,d=f.length;let g=h(l);g>=d&&(g=d-1);let x=i(0,l);if((f[g]&x)===0){for(g--,x=65535;g>=0&&f[g]===0;g--);if(g<0)return-1}return p(g)+n(f[g]&x)}set(l,f,d){if(f===void 0?(f=l,d=!0):typeof f=="boolean"&&(d=f,f=l),d===void 0&&(d=!0),l<0||l>f)throw new RangeError;let g=h(l),x=h(f);if(d&&x>=this.data.length){let m=new Uint16Array(x+1);this.data.forEach((y,_)=>m[_]=y),this.data=m}else if(!d){if(g>=this.data.length)return;x>=this.data.length&&(x=this.data.length-1,f=this.data.length*16-1)}if(g===x)this._setBits(g,d,i(l,f));else{for(this._setBits(g++,d,i(l,15));g<x;)this.data[g++]=d?65535:0;this._setBits(g,d,i(0,f))}}_setBits(l,f,d){f?this.data[l]|=d:this.data[l]&=65535^d}get size(){return this.data.byteLength*8}hashCode(){return r.MurmurHash.hashCode(this.data,22)}equals(l){if(l===this)return!0;if(!(l instanceof Ai))return!1;const f=this.length();if(f!==l.length())return!1;if(f===0)return!0;let d=h(f-1);for(let g=0;g<=d;g++)if(this.data[g]!==l.data[g])return!1;return!0}toString(){let l="{",f=!0;for(let d=this.nextSetBit(0);d>=0;d=this.nextSetBit(d+1))f?f=!1:l+=", ",l+=d;return l+="}",l}xor(l){const f=this.data,d=l.data,g=Math.min(f.length,d.length),x=Math.max(f.length,d.length),m=f.length===x?f:new Uint16Array(x);let y=-1;for(let v=0;v<g;v++)(m[v]=f[v]^d[v])!==0&&(y=v);const _=f.length>d.length?f:d;for(let v=g;v<x;v++)(m[v]=_[v])!==0&&(y=v);y===-1?this.data=c:m.length===y+1?this.data=m:this.data=m.slice(0,y+1)}clone(){return new Ai(this)}[Symbol.iterator](){return new e(this.data)}[u.inspect.custom](){return"BitSet "+this.toString()}};Qn.BitSet=s;class e{constructor(l){this.data=l,this.index=0,this.mask=65535}next(){for(;this.index<this.data.length;){const l=this.data[this.index]&this.mask;if(l!==0){const f=p(this.index)+a(l);return this.mask=i(f+1,15),{done:!1,value:f}}this.index++,this.mask=65535}return{done:!0,value:-1}}[Symbol.iterator](){return this}}return Qn}var Jl;function Jn(){if(Jl)return Dr;Jl=1;var u=Dr&&Dr.__decorate||function(m,y,_,v){var N=arguments.length,T=N<3?y:v===null?v=Object.getOwnPropertyDescriptor(y,_):v,b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(m,y,_,v);else for(var O=m.length-1;O>=0;O--)(b=m[O])&&(T=(N<3?b(T):N>3?b(y,_,T):b(y,_))||T);return N>3&&T&&Object.defineProperty(y,_,T),T};Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.ATNConfigSet=void 0;const r=Fn(),c=cr(),h=Di(),p=Ye(),a=wi(),n=fr(),i=Q(),t=Ze(),s=$e(),e=js(),o=wn(),l=Fe(),f=at();class d{hashCode(y){return y.state^y.alt}equals(y,_){return y.state===_.state&&y.alt===_.alt}}d.INSTANCE=new d;function g(m){return m?new r.Array2DHashMap(m):new r.Array2DHashMap(d.INSTANCE)}let x=class Eu{constructor(y,_){this._uniqueAlt=0,this._hasSemanticContext=!1,this._dipsIntoOuterContext=!1,this.outermostConfigSet=!1,this.cachedHashCode=-1,y?(_?(this.mergedConfigs=void 0,this.unmerged=void 0):y.isReadOnly?(this.mergedConfigs=g(),this.unmerged=[]):(this.mergedConfigs=g(y.mergedConfigs),this.unmerged=y.unmerged.slice(0)),this.configs=y.configs.slice(0),this._dipsIntoOuterContext=y._dipsIntoOuterContext,this._hasSemanticContext=y._hasSemanticContext,this.outermostConfigSet=y.outermostConfigSet,(_||!y.isReadOnly)&&(this._uniqueAlt=y._uniqueAlt,this._conflictInfo=y._conflictInfo)):(this.mergedConfigs=g(),this.unmerged=[],this.configs=[],this._uniqueAlt=p.ATN.INVALID_ALT_NUMBER)}getRepresentedAlternatives(){if(this._conflictInfo!=null)return this._conflictInfo.conflictedAlts.clone();let y=new n.BitSet;for(let _ of this)y.set(_.alt);return y}get isReadOnly(){return this.mergedConfigs==null}get isOutermostConfigSet(){return this.outermostConfigSet}set isOutermostConfigSet(y){if(this.outermostConfigSet&&!y)throw new Error("IllegalStateException");l(!y||!this._dipsIntoOuterContext),this.outermostConfigSet=y}getStates(){let y=new c.Array2DHashSet(t.ObjectEqualityComparator.INSTANCE);for(let _ of this.configs)y.add(_.state);return y}optimizeConfigs(y){if(this.configs.length!==0)for(let _ of this.configs)_.context=y.atn.getCachedContext(_.context)}clone(y){let _=new Eu(this,y);return!y&&this.isReadOnly&&_.addAll(this.configs),_}get size(){return this.configs.length}get isEmpty(){return this.configs.length===0}contains(y){if(!(y instanceof a.ATNConfig))return!1;if(this.mergedConfigs&&this.unmerged){let _=y,v=this.getKey(_),N=this.mergedConfigs.get(v);if(N!=null&&this.canMerge(_,v,N))return N.contains(_);for(let T of this.unmerged)if(T.contains(y))return!0}else for(let _ of this.configs)if(_.contains(y))return!0;return!1}*[Symbol.iterator](){yield*this.configs}toArray(){return this.configs}add(y,_){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");l(!this.outermostConfigSet||!y.reachesIntoOuterContext),_==null&&(_=e.PredictionContextCache.UNCACHED);let v,N=this.getKey(y),T=this.mergedConfigs.get(N);if(v=T==null,T!=null&&this.canMerge(y,N,T)){T.outerContextDepth=Math.max(T.outerContextDepth,y.outerContextDepth),y.isPrecedenceFilterSuppressed&&(T.isPrecedenceFilterSuppressed=!0);let b=s.PredictionContext.join(T.context,y.context,_);return this.updatePropertiesForMergedConfig(y),T.context===b?!1:(T.context=b,!0)}for(let b=0;b<this.unmerged.length;b++){let O=this.unmerged[b];if(this.canMerge(y,N,O)){O.outerContextDepth=Math.max(O.outerContextDepth,y.outerContextDepth),y.isPrecedenceFilterSuppressed&&(O.isPrecedenceFilterSuppressed=!0);let D=s.PredictionContext.join(O.context,y.context,_);return this.updatePropertiesForMergedConfig(y),O.context===D?!1:(O.context=D,v&&(this.mergedConfigs.put(N,O),this.unmerged.splice(b,1)),!0)}}return this.configs.push(y),v?this.mergedConfigs.put(N,y):this.unmerged.push(y),this.updatePropertiesForAddedConfig(y),!0}updatePropertiesForMergedConfig(y){this._dipsIntoOuterContext=this._dipsIntoOuterContext||y.reachesIntoOuterContext,l(!this.outermostConfigSet||!this._dipsIntoOuterContext)}updatePropertiesForAddedConfig(y){this.configs.length===1?this._uniqueAlt=y.alt:this._uniqueAlt!==y.alt&&(this._uniqueAlt=p.ATN.INVALID_ALT_NUMBER),this._hasSemanticContext=this._hasSemanticContext||!o.SemanticContext.NONE.equals(y.semanticContext),this._dipsIntoOuterContext=this._dipsIntoOuterContext||y.reachesIntoOuterContext,l(!this.outermostConfigSet||!this._dipsIntoOuterContext)}canMerge(y,_,v){return y.state.stateNumber!==v.state.stateNumber||_.alt!==v.alt?!1:y.semanticContext.equals(v.semanticContext)}getKey(y){return{state:y.state.stateNumber,alt:y.alt}}containsAll(y){for(let _ of y)if(!(_ instanceof a.ATNConfig)||!this.contains(_))return!1;return!0}addAll(y,_){this.ensureWritable();let v=!1;for(let N of y)this.add(N,_)&&(v=!0);return v}clear(){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");this.mergedConfigs.clear(),this.unmerged.length=0,this.configs.length=0,this._dipsIntoOuterContext=!1,this._hasSemanticContext=!1,this._uniqueAlt=p.ATN.INVALID_ALT_NUMBER,this._conflictInfo=void 0}equals(y){return this===y?!0:y instanceof Eu?this.outermostConfigSet===y.outermostConfigSet&&f.equals(this._conflictInfo,y._conflictInfo)&&h.ArrayEqualityComparator.INSTANCE.equals(this.configs,y.configs):!1}hashCode(){if(this.isReadOnly&&this.cachedHashCode!==-1)return this.cachedHashCode;let y=1;return y=5*y^(this.outermostConfigSet?1:0),y=5*y^h.ArrayEqualityComparator.INSTANCE.hashCode(this.configs),this.isReadOnly&&(this.cachedHashCode=y),y}toString(y){y==null&&(y=!1);let _="",v=this.configs.slice(0);v.sort((N,T)=>N.alt!==T.alt?N.alt-T.alt:N.state.stateNumber!==T.state.stateNumber?N.state.stateNumber-T.state.stateNumber:N.semanticContext.toString().localeCompare(T.semanticContext.toString())),_+="[";for(let N=0;N<v.length;N++)N>0&&(_+=", "),_+=v[N].toString(void 0,!0,y);return _+="]",this._hasSemanticContext&&(_+=",hasSemanticContext="+this._hasSemanticContext),this._uniqueAlt!==p.ATN.INVALID_ALT_NUMBER&&(_+=",uniqueAlt="+this._uniqueAlt),this._conflictInfo!=null&&(_+=",conflictingAlts="+this._conflictInfo.conflictedAlts,this._conflictInfo.isExact||(_+="*")),this._dipsIntoOuterContext&&(_+=",dipsIntoOuterContext"),_.toString()}get uniqueAlt(){return this._uniqueAlt}get hasSemanticContext(){return this._hasSemanticContext}set hasSemanticContext(y){this.ensureWritable(),this._hasSemanticContext=y}get conflictInfo(){return this._conflictInfo}set conflictInfo(y){this.ensureWritable(),this._conflictInfo=y}get conflictingAlts(){if(this._conflictInfo!=null)return this._conflictInfo.conflictedAlts}get isExactConflict(){return this._conflictInfo==null?!1:this._conflictInfo.isExact}get dipsIntoOuterContext(){return this._dipsIntoOuterContext}get(y){return this.configs[y]}ensureWritable(){if(this.isReadOnly)throw new Error("This ATNConfigSet is read only.")}};return u([i.NotNull],x.prototype,"getRepresentedAlternatives",null),u([i.Override],x.prototype,"size",null),u([i.Override],x.prototype,"isEmpty",null),u([i.Override],x.prototype,"contains",null),u([i.Override],x.prototype,Symbol.iterator,null),u([i.Override],x.prototype,"toArray",null),u([i.Override],x.prototype,"containsAll",null),u([i.Override],x.prototype,"clear",null),u([i.Override],x.prototype,"equals",null),u([i.Override],x.prototype,"hashCode",null),Dr.ATNConfigSet=x,Dr}var wr={},Fr={},Br={},Zl;function Fi(){return Zl||(Zl=1,(function(u){var r=Br&&Br.__decorate||function(e,o,l,f){var d=arguments.length,g=d<3?o:f===null?f=Object.getOwnPropertyDescriptor(o,l):f,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,o,l,f);else for(var m=e.length-1;m>=0;m--)(x=e[m])&&(g=(d<3?x(g):d>3?x(o,l,g):x(o,l))||g);return d>3&&g&&Object.defineProperty(o,l,g),g},c=Br&&Br.__param||function(e,o){return function(l,f){o(l,f,e)}};Object.defineProperty(u,"__esModule",{value:!0}),u.DFAState=void 0;const h=Ye(),p=fr(),a=Pe(),n=Q(),i=$e(),t=Fe();let s=class lp{constructor(o){this.stateNumber=-1,this.configs=o,this.edges=new Map,this.contextEdges=new Map}get isContextSensitive(){return!!this.contextSymbols}isContextSymbol(o){return this.isContextSensitive?this.contextSymbols.get(o):!1}setContextSymbol(o){t(this.isContextSensitive),this.contextSymbols.set(o)}setContextSensitive(o){t(!this.configs.isOutermostConfigSet),!this.isContextSensitive&&(this.contextSymbols||(this.contextSymbols=new p.BitSet))}get acceptStateInfo(){return this._acceptStateInfo}set acceptStateInfo(o){this._acceptStateInfo=o}get isAcceptState(){return!!this._acceptStateInfo}get prediction(){return this._acceptStateInfo?this._acceptStateInfo.prediction:h.ATN.INVALID_ALT_NUMBER}get lexerActionExecutor(){if(this._acceptStateInfo)return this._acceptStateInfo.lexerActionExecutor}getTarget(o){return this.edges.get(o)}setTarget(o,l){this.edges.set(o,l)}getEdgeMap(){return this.edges}getContextTarget(o){return o===i.PredictionContext.EMPTY_FULL_STATE_KEY&&(o=-1),this.contextEdges.get(o)}setContextTarget(o,l){if(!this.isContextSensitive)throw new Error("The state is not context sensitive.");o===i.PredictionContext.EMPTY_FULL_STATE_KEY&&(o=-1),this.contextEdges.set(o,l)}getContextEdgeMap(){let o=new Map(this.contextEdges),l=o.get(-1);if(l!==void 0)if(o.size===1){let f=new Map;return f.set(i.PredictionContext.EMPTY_FULL_STATE_KEY,l),f}else o.delete(-1),o.set(i.PredictionContext.EMPTY_FULL_STATE_KEY,l);return o}hashCode(){let o=a.MurmurHash.initialize(7);return o=a.MurmurHash.update(o,this.configs.hashCode()),o=a.MurmurHash.finish(o,1),o}equals(o){if(this===o)return!0;if(!(o instanceof lp))return!1;let l=o;return this.configs.equals(l.configs)}toString(){let o="";return o+=this.stateNumber+":"+this.configs,this.isAcceptState&&(o+="=>",this.predicates?o+=this.predicates:o+=this.prediction),o.toString()}};r([n.NotNull],s.prototype,"configs",void 0),r([n.NotNull],s.prototype,"edges",void 0),r([n.NotNull],s.prototype,"contextEdges",void 0),r([n.Override],s.prototype,"hashCode",null),r([n.Override],s.prototype,"equals",null),r([n.Override],s.prototype,"toString",null),u.DFAState=s,(function(e){let o=class{constructor(f,d){this.alt=d,this.pred=f}toString(){return"("+this.pred+", "+this.alt+")"}};r([n.NotNull],o.prototype,"pred",void 0),r([n.Override],o.prototype,"toString",null),o=r([c(0,n.NotNull)],o),e.PredPrediction=o})(s=u.DFAState||(u.DFAState={}))})(Br)),Br}var Yl;function Bi(){return Yl||(Yl=1,(function(u){var r=Fr&&Fr.__decorate||function(t,s,e,o){var l=arguments.length,f=l<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,e):o,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(t,s,e,o);else for(var g=t.length-1;g>=0;g--)(d=t[g])&&(f=(l<3?d(f):l>3?d(s,e,f):d(s,e))||f);return l>3&&f&&Object.defineProperty(s,e,f),f},c=Fr&&Fr.__param||function(t,s){return function(e,o){s(e,o,t)}};Object.defineProperty(u,"__esModule",{value:!0}),u.ATNSimulator=void 0;const h=Jn(),p=Fi(),a=Q(),n=$e();let i=class Ti{constructor(s){this.atn=s}static get ERROR(){return Ti._ERROR||(Ti._ERROR=new p.DFAState(new h.ATNConfigSet),Ti._ERROR.stateNumber=n.PredictionContext.EMPTY_FULL_STATE_KEY),Ti._ERROR}clearDFA(){this.atn.clearDFA()}};r([a.NotNull],i.prototype,"atn",void 0),r([a.NotNull],i,"ERROR",null),i=r([c(0,a.NotNull)],i),u.ATNSimulator=i,i=u.ATNSimulator||(u.ATNSimulator={}),u.ATNSimulator=i})(Fr)),Fr}var dt={},Zn={},ec;function tc(){if(ec)return Zn;ec=1;Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.ConsoleErrorListener=void 0;let u=class{syntaxError(c,h,p,a,n,i){console.error(`line ${p}:${a} ${n}`)}};return Zn.ConsoleErrorListener=u,u.INSTANCE=new u,Zn}var xt={},rc;function Ms(){if(rc)return xt;rc=1;var u=xt&&xt.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s},r=xt&&xt.__param||function(p,a){return function(n,i){a(n,i,p)}};Object.defineProperty(xt,"__esModule",{value:!0}),xt.ProxyErrorListener=void 0;const c=Q();let h=class{constructor(a){if(this.delegates=a,!a)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(a,n,i,t,s,e){this.delegates.forEach(o=>{o.syntaxError&&o.syntaxError(a,n,i,t,s,e)})}};return u([c.Override,r(0,c.NotNull),r(4,c.NotNull)],h.prototype,"syntaxError",null),xt.ProxyErrorListener=h,xt}var nc;function Yn(){if(nc)return dt;nc=1;var u=dt&&dt.__decorate||function(t,s,e,o){var l=arguments.length,f=l<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,e):o,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(t,s,e,o);else for(var g=t.length-1;g>=0;g--)(d=t[g])&&(f=(l<3?d(f):l>3?d(s,e,f):d(s,e))||f);return l>3&&f&&Object.defineProperty(s,e,f),f},r=dt&&dt.__param||function(t,s){return function(e,o){s(e,o,t)}};Object.defineProperty(dt,"__esModule",{value:!0}),dt.Recognizer=void 0;const c=tc(),h=Ms(),p=Q(),a=Ce(),n=at();let i=class Ei{constructor(){this._listeners=[c.ConsoleErrorListener.INSTANCE],this._stateNumber=-1}getTokenTypeMap(){let s=this.vocabulary,e=Ei.tokenTypeMapCache.get(s);if(e==null){let o=new Map;for(let l=0;l<=this.atn.maxTokenType;l++){let f=s.getLiteralName(l);f!=null&&o.set(f,l);let d=s.getSymbolicName(l);d!=null&&o.set(d,l)}o.set("EOF",a.Token.EOF),e=o,Ei.tokenTypeMapCache.set(s,e)}return e}getRuleIndexMap(){let s=this.ruleNames;if(s==null)throw new Error("The current recognizer does not provide a list of rule names.");let e=Ei.ruleIndexMapCache.get(s);return e==null&&(e=n.toMap(s),Ei.ruleIndexMapCache.set(s,e)),e}getTokenType(s){let e=this.getTokenTypeMap().get(s);return e??a.Token.INVALID_TYPE}get serializedATN(){throw new Error("there is no serialized ATN")}get atn(){return this._interp.atn}get interpreter(){return this._interp}set interpreter(s){this._interp=s}get parseInfo(){return Promise.resolve(void 0)}getErrorHeader(s){let e=s.getOffendingToken();if(!e)return"";let o=e.line,l=e.charPositionInLine;return"line "+o+":"+l}addErrorListener(s){if(!s)throw new TypeError("listener must not be null");this._listeners.push(s)}removeErrorListener(s){let e=this._listeners.indexOf(s);e!==-1&&this._listeners.splice(e,1)}removeErrorListeners(){this._listeners.length=0}getErrorListeners(){return this._listeners.slice(0)}getErrorListenerDispatch(){return new h.ProxyErrorListener(this.getErrorListeners())}sempred(s,e,o){return!0}precpred(s,e){return!0}action(s,e,o){}get state(){return this._stateNumber}set state(s){this._stateNumber=s}};return i.EOF=-1,i.tokenTypeMapCache=new WeakMap,i.ruleIndexMapCache=new WeakMap,u([p.SuppressWarnings("serial"),p.NotNull],i.prototype,"_listeners",void 0),u([p.NotNull],i.prototype,"getTokenTypeMap",null),u([p.NotNull],i.prototype,"getRuleIndexMap",null),u([p.NotNull],i.prototype,"serializedATN",null),u([p.NotNull],i.prototype,"atn",null),u([p.NotNull,r(0,p.NotNull)],i.prototype,"interpreter",null),u([p.NotNull,r(0,p.NotNull)],i.prototype,"getErrorHeader",null),u([r(0,p.NotNull)],i.prototype,"addErrorListener",null),u([r(0,p.NotNull)],i.prototype,"removeErrorListener",null),u([p.NotNull],i.prototype,"getErrorListeners",null),dt.Recognizer=i,dt}var jr={},ic;function Mr(){if(ic)return jr;ic=1;var u=jr&&jr.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s};Object.defineProperty(jr,"__esModule",{value:!0}),jr.VocabularyImpl=void 0;const r=Q(),c=Ce();let h=class{constructor(a,n,i){this.literalNames=a,this.symbolicNames=n,this.displayNames=i,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}get maxTokenType(){return this._maxTokenType}getLiteralName(a){if(a>=0&&a<this.literalNames.length)return this.literalNames[a]}getSymbolicName(a){if(a>=0&&a<this.symbolicNames.length)return this.symbolicNames[a];if(a===c.Token.EOF)return"EOF"}getDisplayName(a){if(a>=0&&a<this.displayNames.length){let t=this.displayNames[a];if(t)return t}let n=this.getLiteralName(a);if(n)return n;let i=this.getSymbolicName(a);return i||String(a)}};return h.EMPTY_VOCABULARY=new h([],[],[]),u([r.NotNull],h.prototype,"literalNames",void 0),u([r.NotNull],h.prototype,"symbolicNames",void 0),u([r.NotNull],h.prototype,"displayNames",void 0),u([r.Override],h.prototype,"maxTokenType",null),u([r.Override],h.prototype,"getLiteralName",null),u([r.Override],h.prototype,"getSymbolicName",null),u([r.Override,r.NotNull],h.prototype,"getDisplayName",null),u([r.NotNull],h,"EMPTY_VOCABULARY",void 0),jr.VocabularyImpl=h,jr}var oc;function sc(){if(oc)return wr;oc=1;var u=wr&&wr.__decorate||function(i,t,s,e){var o=arguments.length,l=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(i,t,s,e);else for(var d=i.length-1;d>=0;d--)(f=i[d])&&(l=(o<3?f(l):o>3?f(t,s,l):f(t,s))||l);return o>3&&l&&Object.defineProperty(t,s,l),l};Object.defineProperty(wr,"__esModule",{value:!0}),wr.DFASerializer=void 0;const r=Bi(),c=Q(),h=$e(),p=Yn(),a=Mr();let n=class{constructor(t,s,e,o){s instanceof p.Recognizer?(e=s.ruleNames,o=s.atn,s=s.vocabulary):s||(s=a.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=t,this.vocabulary=s,this.ruleNames=e,this.atn=o}toString(){if(!this.dfa.s0)return"";let t="";if(this.dfa.states){let e=new Array(...this.dfa.states.toArray());e.sort((o,l)=>o.stateNumber-l.stateNumber);for(let o of e){let l=o.getEdgeMap(),f=[...l.keys()].sort((x,m)=>x-m),d=o.getContextEdgeMap(),g=[...d.keys()].sort((x,m)=>x-m);for(let x of f){let m=l.get(x);if((m==null||m===r.ATNSimulator.ERROR)&&!o.isContextSymbol(x))continue;let y=!1;t+=this.getStateString(o)+"-"+this.getEdgeLabel(x)+"->",o.isContextSymbol(x)&&(t+="!",y=!0);let _=m;_&&_.stateNumber!==r.ATNSimulator.ERROR.stateNumber?t+=this.getStateString(_)+`
|
|
73
73
|
`:y&&(t+=`ctx
|
|
74
74
|
`)}if(o.isContextSensitive)for(let x of g)t+=this.getStateString(o)+"-"+this.getContextLabel(x)+"->"+this.getStateString(d.get(x))+`
|
|
75
|
-
`}}let s=t;return s.length===0?"":s}getContextLabel(t){if(t===h.PredictionContext.EMPTY_FULL_STATE_KEY)return"ctx:EMPTY_FULL";if(t===h.PredictionContext.EMPTY_LOCAL_STATE_KEY)return"ctx:EMPTY_LOCAL";if(this.atn&&t>0&&t<=this.atn.states.length){let e=this.atn.states[t].ruleIndex;if(this.ruleNames&&e>=0&&e<this.ruleNames.length)return"ctx:"+String(t)+"("+this.ruleNames[e]+")"}return"ctx:"+String(t)}getEdgeLabel(t){return this.vocabulary.getDisplayName(t)}getStateString(t){if(t===i.ATNSimulator.ERROR)return"ERROR";let s=t.stateNumber,e="s"+s;if(t.isAcceptState&&(t.predicates?e=":s"+s+"=>"+t.predicates:e=":s"+s+"=>"+t.prediction),t.isContextSensitive){e+="*";for(let o of t.configs)if(o.reachesIntoOuterContext){e+="*";break}}return e}};return u([c.NotNull],r.prototype,"dfa",void 0),u([c.NotNull],r.prototype,"vocabulary",void 0),u([c.Override],r.prototype,"toString",null),Lr.DFASerializer=r,Lr}var xt={},oc;function d0(){if(oc)return xt;oc=1;var u=xt&&xt.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o},i=xt&&xt.__param||function(r,n){return function(t,s){n(t,s,r)}};Object.defineProperty(xt,"__esModule",{value:!0}),xt.LexerDFASerializer=void 0;const c=ic(),h=Q(),p=Mr();let a=class extends c.DFASerializer{constructor(n){super(n,p.VocabularyImpl.EMPTY_VOCABULARY)}getEdgeLabel(n){return"'"+String.fromCodePoint(n)+"'"}};return u([h.Override,h.NotNull],a.prototype,"getEdgeLabel",null),a=u([i(0,h.NotNull)],a),xt.LexerDFASerializer=a,xt}var qr={},sc;function qs(){if(sc)return qr;sc=1;var u=qr&&qr.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(qr,"__esModule",{value:!0}),qr.StarLoopEntryState=void 0;const i=Ie(),c=fr(),h=Ir(),p=Q();let a=class extends h.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=!1,this.precedenceLoopbackStates=new c.BitSet}get stateType(){return i.ATNStateType.STAR_LOOP_ENTRY}};return u([p.Override],a.prototype,"stateType",null),qr.StarLoopEntryState=a,qr}var uc;function ac(){if(uc)return ft;uc=1;var u=ft&&ft.__decorate||function(l,f,d,g){var x=arguments.length,m=x<3?f:g===null?g=Object.getOwnPropertyDescriptor(f,d):g,y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(l,f,d,g);else for(var _=l.length-1;_>=0;_--)(y=l[_])&&(m=(x<3?y(m):x>3?y(f,d,m):y(f,d))||m);return x>3&&m&&Object.defineProperty(f,d,m),m},i=ft&&ft.__param||function(l,f){return function(d,g){f(d,g,l)}};Object.defineProperty(ft,"__esModule",{value:!0}),ft.DFA=void 0;const c=cr(),h=Jn(),p=ic(),a=Fi(),r=d0(),n=Q(),t=Ze(),s=qs(),e=Mr();let o=class{constructor(f,d=0){if(this.states=new c.Array2DHashSet(t.ObjectEqualityComparator.INSTANCE),this.nextStateNumber=0,!f.atn)throw new Error("The ATNState must be associated with an ATN");this.atnStartState=f,this.atn=f.atn,this.decision=d;let g=!1;f instanceof s.StarLoopEntryState&&f.precedenceRuleDecision&&(g=!0,this.s0=new a.DFAState(new h.ATNConfigSet),this.s0full=new a.DFAState(new h.ATNConfigSet)),this.precedenceDfa=g}get isPrecedenceDfa(){return this.precedenceDfa}getPrecedenceStartState(f,d){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");return d?this.s0full.getTarget(f):this.s0.getTarget(f)}setPrecedenceStartState(f,d,g){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");f<0||(d?this.s0full.setTarget(f,g):this.s0.setTarget(f,g))}get isEmpty(){return this.isPrecedenceDfa?this.s0.getEdgeMap().size===0&&this.s0full.getEdgeMap().size===0:this.s0==null&&this.s0full==null}get isContextSensitive(){return this.isPrecedenceDfa?this.s0full.getEdgeMap().size>0:this.s0full!=null}addState(f){return f.stateNumber=this.nextStateNumber++,this.states.getOrAdd(f)}toString(f,d){if(f||(f=e.VocabularyImpl.EMPTY_VOCABULARY),!this.s0)return"";let g;return d?g=new p.DFASerializer(this,f,d,this.atnStartState.atn):g=new p.DFASerializer(this,f),g.toString()}toLexerString(){return this.s0?new r.LexerDFASerializer(this).toString():""}};return u([n.NotNull],o.prototype,"states",void 0),u([n.NotNull],o.prototype,"atnStartState",void 0),u([n.NotNull],o.prototype,"atn",void 0),o=u([i(0,n.NotNull)],o),ft.DFA=o,ft}var kr={},Ur={},lc;function cc(){if(lc)return Ur;lc=1;var u=Ur&&Ur.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.BasicState=void 0;const i=rt(),c=Ie(),h=Q();let p=class extends i.ATNState{get stateType(){return c.ATNStateType.BASIC}};return u([h.Override],p.prototype,"stateType",null),Ur.BasicState=p,Ur}var fc;function hc(){if(fc)return kr;fc=1;var u=kr&&kr.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(kr,"__esModule",{value:!0}),kr.InvalidState=void 0;const i=Ie(),c=cc(),h=Q();let p=class extends c.BasicState{get stateType(){return i.ATNStateType.INVALID_TYPE}};return u([h.Override],p.prototype,"stateType",null),kr.InvalidState=p,kr}var yt={},_t={},mt={},pc;function ks(){if(pc)return mt;pc=1;var u=mt&&mt.__decorate||function(n,t,s,e){var o=arguments.length,l=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,t,s,e);else for(var d=n.length-1;d>=0;d--)(f=n[d])&&(l=(o<3?f(l):o>3?f(t,s,l):f(t,s))||l);return o>3&&l&&Object.defineProperty(t,s,l),l},i=mt&&mt.__param||function(n,t){return function(s,e){t(s,e,n)}};Object.defineProperty(mt,"__esModule",{value:!0}),mt.SetTransition=void 0;const c=Vr(),h=Q(),p=Ne(),a=lr();let r=class extends a.Transition{constructor(t,s){super(t),s==null&&(s=c.IntervalSet.of(p.Token.INVALID_TYPE)),this.set=s}get serializationType(){return 7}get label(){return this.set}matches(t,s,e){return this.set.contains(t)}toString(){return this.set.toString()}};return u([h.NotNull],r.prototype,"set",void 0),u([h.Override],r.prototype,"serializationType",null),u([h.Override,h.NotNull],r.prototype,"label",null),u([h.Override],r.prototype,"matches",null),u([h.Override,h.NotNull],r.prototype,"toString",null),r=u([i(0,h.NotNull),i(1,h.Nullable)],r),mt.SetTransition=r,mt}var dc;function Us(){if(dc)return _t;dc=1;var u=_t&&_t.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=_t&&_t.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(_t,"__esModule",{value:!0}),_t.NotSetTransition=void 0;const c=Q(),h=ks();let p=class extends h.SetTransition{constructor(r,n){super(r,n)}get serializationType(){return 8}matches(r,n,t){return r>=n&&r<=t&&!super.matches(r,n,t)}toString(){return"~"+super.toString()}};return u([c.Override],p.prototype,"serializationType",null),u([c.Override],p.prototype,"matches",null),u([c.Override],p.prototype,"toString",null),p=u([i(0,c.NotNull),i(1,c.Nullable)],p),_t.NotSetTransition=p,_t}var zr={},xc;function ei(){if(xc)return zr;xc=1;var u=zr&&zr.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(zr,"__esModule",{value:!0}),zr.RuleStopState=void 0;const i=rt(),c=Ie(),h=Q();let p=class extends i.ATNState{get nonStopStateNumber(){return-1}get stateType(){return c.ATNStateType.RULE_STOP}};return u([h.Override],p.prototype,"nonStopStateNumber",null),u([h.Override],p.prototype,"stateType",null),zr.RuleStopState=p,zr}var gt={},yc;function zs(){if(yc)return gt;yc=1;var u=gt&>.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=gt&>.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(gt,"__esModule",{value:!0}),gt.RuleTransition=void 0;const c=Q(),h=lr();let p=class extends h.Transition{constructor(r,n,t,s){super(r),this.tailCall=!1,this.optimizedTailCall=!1,this.ruleIndex=n,this.precedence=t,this.followState=s}get serializationType(){return 3}get isEpsilon(){return!0}matches(r,n,t){return!1}};return u([c.NotNull],p.prototype,"followState",void 0),u([c.Override],p.prototype,"serializationType",null),u([c.Override],p.prototype,"isEpsilon",null),u([c.Override],p.prototype,"matches",null),p=u([i(0,c.NotNull),i(3,c.NotNull)],p),gt.RuleTransition=p,gt}var vt={},_c;function mc(){if(_c)return vt;_c=1;var u=vt&&vt.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=vt&&vt.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(vt,"__esModule",{value:!0}),vt.WildcardTransition=void 0;const c=Q(),h=lr();let p=class extends h.Transition{constructor(r){super(r)}get serializationType(){return 9}matches(r,n,t){return r>=n&&r<=t}toString(){return"."}};return u([c.Override],p.prototype,"serializationType",null),u([c.Override],p.prototype,"matches",null),u([c.Override,c.NotNull],p.prototype,"toString",null),p=u([i(0,c.NotNull)],p),vt.WildcardTransition=p,vt}var gc;function x0(){if(gc)return yt;gc=1;var u=yt&&yt.__decorate||function(x,m,y,_){var v=arguments.length,N=v<3?m:_===null?_=Object.getOwnPropertyDescriptor(m,y):_,T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(x,m,y,_);else for(var b=x.length-1;b>=0;b--)(T=x[b])&&(N=(v<3?T(N):v>3?T(m,y,N):T(m,y))||N);return v>3&&N&&Object.defineProperty(m,y,N),N},i=yt&&yt.__param||function(x,m){return function(y,_){m(y,_,x)}};Object.defineProperty(yt,"__esModule",{value:!0}),yt.LL1Analyzer=void 0;const c=Ps(),h=cr(),p=Li(),a=fr(),r=Vr(),n=Q(),t=Us(),s=Ze(),e=Xe(),o=ei(),l=zs(),f=Ne(),d=mc();let g=class Tu{constructor(m){this.atn=m}getDecisionLookahead(m){if(m==null)return;let y=new Array(m.numberOfTransitions);for(let _=0;_<m.numberOfTransitions;_++){let v=new r.IntervalSet;y[_]=v;let N=new h.Array2DHashSet(s.ObjectEqualityComparator.INSTANCE);this._LOOK(m.transition(_).target,void 0,e.PredictionContext.EMPTY_LOCAL,v,N,new a.BitSet,!1,!1),(v.size===0||v.contains(Tu.HIT_PRED))&&(v=void 0,y[_]=v)}return y}LOOK(m,y,_){if(_===void 0){if(m.atn==null)throw new Error("Illegal state");_=m.atn.ruleToStopState[m.ruleIndex]}else _===null&&(_=void 0);let v=new r.IntervalSet;return this._LOOK(m,_,y,v,new h.Array2DHashSet,new a.BitSet,!0,!0),v}_LOOK(m,y,_,v,N,T,b,O){let D=p.ATNConfig.create(m,0,_);if(!N.add(D))return;if(m===y){if(e.PredictionContext.isEmptyLocal(_)){v.add(f.Token.EPSILON);return}else if(_.isEmpty){O&&v.add(f.Token.EOF);return}}if(m instanceof o.RuleStopState){if(_.isEmpty&&!e.PredictionContext.isEmptyLocal(_)){O&&v.add(f.Token.EOF);return}let z=T.get(m.ruleIndex);try{T.clear(m.ruleIndex);for(let U=0;U<_.size;U++){if(_.getReturnState(U)===e.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let te=this.atn.states[_.getReturnState(U)];this._LOOK(te,y,_.getParent(U),v,N,T,b,O)}}finally{z&&T.set(m.ruleIndex)}}let k=m.numberOfTransitions;for(let z=0;z<k;z++){let U=m.transition(z);if(U instanceof l.RuleTransition){if(T.get(U.ruleIndex))continue;let te=_.getChild(U.followState.stateNumber);try{T.set(U.ruleIndex),this._LOOK(U.target,y,te,v,N,T,b,O)}finally{T.clear(U.ruleIndex)}}else if(U instanceof c.AbstractPredicateTransition)b?this._LOOK(U.target,y,_,v,N,T,b,O):v.add(Tu.HIT_PRED);else if(U.isEpsilon)this._LOOK(U.target,y,_,v,N,T,b,O);else if(U instanceof d.WildcardTransition)v.addAll(r.IntervalSet.of(f.Token.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));else{let te=U.label;te!=null&&(U instanceof t.NotSetTransition&&(te=te.complement(r.IntervalSet.of(f.Token.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType))),v.addAll(te))}}}};return g.HIT_PRED=f.Token.INVALID_TYPE,u([n.NotNull],g.prototype,"atn",void 0),u([n.NotNull,i(0,n.NotNull),i(1,n.NotNull)],g.prototype,"LOOK",null),u([i(0,n.NotNull),i(2,n.NotNull),i(3,n.NotNull),i(4,n.NotNull),i(5,n.NotNull)],g.prototype,"_LOOK",null),g=u([i(0,n.NotNull)],g),yt.LL1Analyzer=g,yt}var vc;function At(){return vc||(vc=1,(function(u){var i=Pr&&Pr.__decorate||function(d,g,x,m){var y=arguments.length,_=y<3?g:m===null?m=Object.getOwnPropertyDescriptor(g,x):m,v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(d,g,x,m);else for(var N=d.length-1;N>=0;N--)(v=d[N])&&(_=(y<3?v(_):y>3?v(g,x,_):v(g,x))||_);return y>3&&_&&Object.defineProperty(g,x,_),_},c=Pr&&Pr.__param||function(d,g){return function(x,m){g(x,m,d)}};Object.defineProperty(u,"__esModule",{value:!0}),u.ATN=void 0;const h=Fn(),p=ac(),a=Vr(),r=hc(),n=x0(),t=Q(),s=Ze(),e=Xe(),o=Ne(),l=Fe();let f=class{constructor(g,x){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new h.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.decisionToDFA=[],this.modeToDFA=[],this.LL1Table=new Map,this.grammarType=g,this.maxTokenType=x}clearDFA(){this.decisionToDFA=new Array(this.decisionToState.length);for(let g=0;g<this.decisionToDFA.length;g++)this.decisionToDFA[g]=new p.DFA(this.decisionToState[g],g);this.modeToDFA=new Array(this.modeToStartState.length);for(let g=0;g<this.modeToDFA.length;g++)this.modeToDFA[g]=new p.DFA(this.modeToStartState[g]);this.contextCache.clear(),this.LL1Table.clear()}get contextCacheSize(){return this.contextCache.size}getCachedContext(g){return e.PredictionContext.getCachedContext(g,this.contextCache,new e.PredictionContext.IdentityHashMap)}getDecisionToDFA(){return l(this.decisionToDFA!=null&&this.decisionToDFA.length===this.decisionToState.length),this.decisionToDFA}nextTokens(g,x){return x?new n.LL1Analyzer(this).LOOK(g,x):(g.nextTokenWithinRule||(g.nextTokenWithinRule=this.nextTokens(g,e.PredictionContext.EMPTY_LOCAL),g.nextTokenWithinRule.setReadonly(!0)),g.nextTokenWithinRule)}addState(g){g.atn=this,g.stateNumber=this.states.length,this.states.push(g)}removeState(g){let x=new r.InvalidState;x.atn=this,x.stateNumber=g.stateNumber,this.states[g.stateNumber]=x}defineMode(g,x){this.modeNameToStartState.set(g,x),this.modeToStartState.push(x),this.modeToDFA.push(new p.DFA(x)),this.defineDecisionState(x)}defineDecisionState(g){return this.decisionToState.push(g),g.decision=this.decisionToState.length-1,this.decisionToDFA.push(new p.DFA(g,g.decision)),g.decision}getDecisionState(g){if(this.decisionToState.length>0)return this.decisionToState[g]}get numberOfDecisions(){return this.decisionToState.length}getExpectedTokens(g,x){if(g<0||g>=this.states.length)throw new RangeError("Invalid state number.");let m=x,y=this.states[g],_=this.nextTokens(y);if(!_.contains(o.Token.EPSILON))return _;let v=new a.IntervalSet;for(v.addAll(_),v.remove(o.Token.EPSILON);m!=null&&m.invokingState>=0&&_.contains(o.Token.EPSILON);){let T=this.states[m.invokingState].transition(0);_=this.nextTokens(T.followState),v.addAll(_),v.remove(o.Token.EPSILON),m=m._parent}return _.contains(o.Token.EPSILON)&&v.add(o.Token.EOF),v}};i([t.NotNull],f.prototype,"states",void 0),i([t.NotNull],f.prototype,"decisionToState",void 0),i([t.NotNull],f.prototype,"modeNameToStartState",void 0),i([t.NotNull],f.prototype,"modeToStartState",void 0),i([t.NotNull],f.prototype,"decisionToDFA",void 0),i([t.NotNull],f.prototype,"modeToDFA",void 0),i([t.NotNull],f.prototype,"nextTokens",null),i([c(0,t.NotNull)],f.prototype,"removeState",null),i([c(0,t.NotNull),c(1,t.NotNull)],f.prototype,"defineMode",null),i([c(0,t.NotNull)],f.prototype,"defineDecisionState",null),i([t.NotNull],f.prototype,"getExpectedTokens",null),f=i([c(0,t.NotNull)],f),u.ATN=f,(function(d){d.INVALID_ALT_NUMBER=0})(f=u.ATN||(u.ATN={})),u.ATN=f})(Pr)),Pr}var Tt={},Et={},Ac;function y0(){if(Ac)return Et;Ac=1;var u=Et&&Et.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=Et&&Et.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(Et,"__esModule",{value:!0}),Et.LexerIndexedCustomAction=void 0;const c=Pe(),h=Q();let p=class sp{constructor(r,n){this._offset=r,this._action=n}get offset(){return this._offset}get action(){return this._action}get actionType(){return this._action.actionType}get isPositionDependent(){return!0}execute(r){this._action.execute(r)}hashCode(){let r=c.MurmurHash.initialize();return r=c.MurmurHash.update(r,this._offset),r=c.MurmurHash.update(r,this._action),c.MurmurHash.finish(r,2)}equals(r){return r===this?!0:r instanceof sp?this._offset===r._offset&&this._action.equals(r._action):!1}};return u([h.NotNull],p.prototype,"action",null),u([h.Override],p.prototype,"actionType",null),u([h.Override],p.prototype,"isPositionDependent",null),u([h.Override],p.prototype,"execute",null),u([h.Override],p.prototype,"hashCode",null),u([h.Override],p.prototype,"equals",null),p=u([i(1,h.NotNull)],p),Et.LexerIndexedCustomAction=p,Et}var Tc;function _0(){if(Tc)return Tt;Tc=1;var u=Tt&&Tt.__decorate||function(n,t,s,e){var o=arguments.length,l=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,t,s,e);else for(var d=n.length-1;d>=0;d--)(f=n[d])&&(l=(o<3?f(l):o>3?f(t,s,l):f(t,s))||l);return o>3&&l&&Object.defineProperty(t,s,l),l},i=Tt&&Tt.__param||function(n,t){return function(s,e){t(s,e,n)}};Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.LexerActionExecutor=void 0;const c=Di(),h=y0(),p=Pe(),a=Q();let r=class Si{constructor(t){this._lexerActions=t;let s=p.MurmurHash.initialize();for(let e of t)s=p.MurmurHash.update(s,e);this.cachedHashCode=p.MurmurHash.finish(s,t.length)}static append(t,s){if(!t)return new Si([s]);let e=t._lexerActions.slice(0);return e.push(s),new Si(e)}fixOffsetBeforeMatch(t){let s;for(let e=0;e<this._lexerActions.length;e++)this._lexerActions[e].isPositionDependent&&!(this._lexerActions[e]instanceof h.LexerIndexedCustomAction)&&(s||(s=this._lexerActions.slice(0)),s[e]=new h.LexerIndexedCustomAction(t,this._lexerActions[e]));return s?new Si(s):this}get lexerActions(){return this._lexerActions}execute(t,s,e){let o=!1,l=s.index;try{for(let f of this._lexerActions){if(f instanceof h.LexerIndexedCustomAction){let d=f.offset;s.seek(e+d),f=f.action,o=e+d!==l}else f.isPositionDependent&&(s.seek(l),o=!1);f.execute(t)}}finally{o&&s.seek(l)}}hashCode(){return this.cachedHashCode}equals(t){return t===this?!0:t instanceof Si?this.cachedHashCode===t.cachedHashCode&&c.ArrayEqualityComparator.INSTANCE.equals(this._lexerActions,t._lexerActions):!1}};return u([a.NotNull],r.prototype,"_lexerActions",void 0),u([a.NotNull],r.prototype,"lexerActions",null),u([i(0,a.NotNull)],r.prototype,"execute",null),u([a.Override],r.prototype,"hashCode",null),u([a.Override],r.prototype,"equals",null),u([a.NotNull,i(1,a.NotNull)],r,"append",null),r=u([i(0,a.NotNull)],r),Tt.LexerActionExecutor=r,Tt}var St={},Ec;function ji(){if(Ec)return St;Ec=1;var u=St&&St.__decorate||function(n,t,s,e){var o=arguments.length,l=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,t,s,e);else for(var d=n.length-1;d>=0;d--)(f=n[d])&&(l=(o<3?f(l):o>3?f(t,s,l):f(t,s))||l);return o>3&&l&&Object.defineProperty(t,s,l),l},i=St&&St.__param||function(n,t){return function(s,e){t(s,e,n)}};Object.defineProperty(St,"__esModule",{value:!0}),St.LexerNoViableAltException=void 0;const c=ar(),h=Q(),p=je(),a=ut();let r=class extends c.RecognitionException{constructor(t,s,e,o){super(t,s),this._startIndex=e,this._deadEndConfigs=o}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let t="";return this._startIndex>=0&&this._startIndex<this.inputStream.size&&(t=this.inputStream.getText(p.Interval.of(this._startIndex,this._startIndex)),t=a.escapeWhitespace(t,!1)),`LexerNoViableAltException('${t}')`}};return u([h.Override],r.prototype,"inputStream",null),u([h.Override],r.prototype,"toString",null),r=u([i(1,h.NotNull)],r),St.LexerNoViableAltException=r,St}var Hr={},Sc;function m0(){if(Sc)return Hr;Sc=1;var u=Hr&&Hr.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s};Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.OrderedATNConfigSet=void 0;const i=Jn(),c=Q();let h=class up extends i.ATNConfigSet{constructor(a,r){a!=null&&r!=null?super(a,r):super()}clone(a){let r=new up(this,a);return!a&&this.isReadOnly&&r.addAll(this),r}getKey(a){return{state:0,alt:a.hashCode()}}canMerge(a,r,n){return a.equals(n)}};return u([c.Override],h.prototype,"clone",null),u([c.Override],h.prototype,"getKey",null),u([c.Override],h.prototype,"canMerge",null),Hr.OrderedATNConfigSet=h,Hr}var Nc;function Mi(){return Nc||(Nc=1,(function(u){var i=Rr&&Rr.__decorate||function(N,T,b,O){var D=arguments.length,k=D<3?T:O===null?O=Object.getOwnPropertyDescriptor(T,b):O,z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(N,T,b,O);else for(var U=N.length-1;U>=0;U--)(z=N[U])&&(k=(D<3?z(k):D>3?z(T,b,k):z(T,b))||k);return D>3&&k&&Object.defineProperty(T,b,k),k},c=Rr&&Rr.__param||function(N,T){return function(b,O){T(b,O,N)}};Object.defineProperty(u,"__esModule",{value:!0}),u.LexerATNSimulator=void 0;const h=zl(),p=At(),a=Li(),r=Jn(),n=Bi(),t=Fi(),s=je(),e=ur(),o=hr(),l=_0(),f=ji(),d=Q(),g=m0(),x=Xe(),m=ei(),y=Ne(),_=Fe();let v=class ke extends n.ATNSimulator{constructor(T,b){super(T),this.optimize_tail_calls=!0,this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=o.Lexer.DEFAULT_MODE,this.prevAccept=new ke.SimState,this.recog=b}copyState(T){this._charPositionInLine=T.charPositionInLine,this._line=T._line,this.mode=T.mode,this.startIndex=T.startIndex}match(T,b){this.mode=b;let O=T.mark();try{this.startIndex=T.index,this.prevAccept.reset();let D=this.atn.modeToDFA[b].s0;return D==null?this.matchATN(T):this.execATN(T,D)}finally{T.release(O)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=o.Lexer.DEFAULT_MODE}matchATN(T){let b=this.atn.modeToStartState[this.mode];ke.debug&&console.log(`matchATN mode ${this.mode} start: ${b}`);let O=this.mode,D=this.computeStartState(T,b),k=D.hasSemanticContext;k&&(D.hasSemanticContext=!1);let z=this.addDFAState(D);if(!k){let te=this.atn.modeToDFA[this.mode];te.s0?z=te.s0:te.s0=z}let U=this.execATN(T,z);return ke.debug&&console.log(`DFA after matchATN: ${this.atn.modeToDFA[O].toLexerString()}`),U}execATN(T,b){ke.debug&&console.log(`start state closure=${b.configs}`),b.isAcceptState&&this.captureSimState(this.prevAccept,T,b);let O=T.LA(1),D=b;for(;;){ke.debug&&console.log(`execATN loop starting closure: ${D.configs}`);let k=this.getExistingTargetState(D,O);if(k==null&&(k=this.computeTargetState(T,D,O)),k===n.ATNSimulator.ERROR||(O!==e.IntStream.EOF&&this.consume(T),k.isAcceptState&&(this.captureSimState(this.prevAccept,T,k),O===e.IntStream.EOF)))break;O=T.LA(1),D=k}return this.failOrAccept(this.prevAccept,T,D.configs,O)}getExistingTargetState(T,b){let O=T.getTarget(b);return ke.debug&&O!=null&&console.log("reuse state "+T.stateNumber+" edge to "+O.stateNumber),O}computeTargetState(T,b,O){let D=new g.OrderedATNConfigSet;return this.getReachableConfigSet(T,b.configs,D,O),D.isEmpty?(D.hasSemanticContext||this.addDFAEdge(b,O,n.ATNSimulator.ERROR),n.ATNSimulator.ERROR):this.addDFAEdge(b,O,D)}failOrAccept(T,b,O,D){if(T.dfaState!=null){let k=T.dfaState.lexerActionExecutor;return this.accept(b,k,this.startIndex,T.index,T.line,T.charPos),T.dfaState.prediction}else{if(D===e.IntStream.EOF&&b.index===this.startIndex)return y.Token.EOF;throw new f.LexerNoViableAltException(this.recog,b,this.startIndex,O)}}getReachableConfigSet(T,b,O,D){let k=p.ATN.INVALID_ALT_NUMBER;for(let z of b){let U=z.alt===k;if(U&&z.hasPassedThroughNonGreedyDecision)continue;ke.debug&&console.log(`testing ${this.getTokenName(D)} at ${z.toString(this.recog,!0)}`);let te=z.state.numberOfOptimizedTransitions;for(let ie=0;ie<te;ie++){let oe=z.state.getOptimizedTransition(ie),he=this.getReachableTarget(oe,D);if(he!=null){let Ee=z.lexerActionExecutor,le;Ee!=null?(Ee=Ee.fixOffsetBeforeMatch(T.index-this.startIndex),le=z.transform(he,!0,Ee)):(_(z.lexerActionExecutor==null),le=z.transform(he,!0));let Z=D===e.IntStream.EOF;if(this.closure(T,le,O,U,!0,Z)){k=z.alt;break}}}}}accept(T,b,O,D,k,z){ke.debug&&console.log(`ACTION ${b}`),T.seek(D),this._line=k,this._charPositionInLine=z,b!=null&&this.recog!=null&&b.execute(this.recog,T,O)}getReachableTarget(T,b){if(T.matches(b,o.Lexer.MIN_CHAR_VALUE,o.Lexer.MAX_CHAR_VALUE))return T.target}computeStartState(T,b){let O=x.PredictionContext.EMPTY_FULL,D=new g.OrderedATNConfigSet;for(let k=0;k<b.numberOfTransitions;k++){let z=b.transition(k).target,U=a.ATNConfig.create(z,k+1,O);this.closure(T,U,D,!1,!1,!1)}return D}closure(T,b,O,D,k,z){if(ke.debug&&console.log("closure("+b.toString(this.recog,!0)+")"),b.state instanceof m.RuleStopState){ke.debug&&(this.recog!=null?console.log(`closure at ${this.recog.ruleNames[b.state.ruleIndex]} rule stop ${b}`):console.log(`closure at rule stop ${b}`));let te=b.context;if(te.isEmpty)return O.add(b),!0;te.hasEmpty&&(O.add(b.transform(b.state,!0,x.PredictionContext.EMPTY_FULL)),D=!0);for(let ie=0;ie<te.size;ie++){let oe=te.getReturnState(ie);if(oe===x.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let he=te.getParent(ie),Ee=this.atn.states[oe],le=b.transform(Ee,!1,he);D=this.closure(T,le,O,D,k,z)}return D}b.state.onlyHasEpsilonTransitions||(!D||!b.hasPassedThroughNonGreedyDecision)&&O.add(b);let U=b.state;for(let te=0;te<U.numberOfOptimizedTransitions;te++){let ie=U.getOptimizedTransition(te),oe=this.getEpsilonTarget(T,b,ie,O,k,z);oe!=null&&(D=this.closure(T,oe,O,D,k,z))}return D}getEpsilonTarget(T,b,O,D,k,z){let U;switch(O.serializationType){case 3:let te=O;if(this.optimize_tail_calls&&te.optimizedTailCall&&!b.context.hasEmpty)U=b.transform(O.target,!0);else{let oe=b.context.getChild(te.followState.stateNumber);U=b.transform(O.target,!0,oe)}break;case 10:throw new Error("Precedence predicates are not supported in lexers.");case 4:let ie=O;ke.debug&&console.log("EVAL rule "+ie.ruleIndex+":"+ie.predIndex),D.hasSemanticContext=!0,this.evaluatePredicate(T,ie.ruleIndex,ie.predIndex,k)?U=b.transform(O.target,!0):U=void 0;break;case 6:if(b.context.hasEmpty){let oe=l.LexerActionExecutor.append(b.lexerActionExecutor,this.atn.lexerActions[O.actionIndex]);U=b.transform(O.target,!0,oe);break}else{U=b.transform(O.target,!0);break}case 1:U=b.transform(O.target,!0);break;case 5:case 2:case 7:if(z&&O.matches(e.IntStream.EOF,o.Lexer.MIN_CHAR_VALUE,o.Lexer.MAX_CHAR_VALUE)){U=b.transform(O.target,!1);break}U=void 0;break;default:U=void 0;break}return U}evaluatePredicate(T,b,O,D){if(this.recog==null)return!0;if(!D)return this.recog.sempred(void 0,b,O);let k=this._charPositionInLine,z=this._line,U=T.index,te=T.mark();try{return this.consume(T),this.recog.sempred(void 0,b,O)}finally{this._charPositionInLine=k,this._line=z,T.seek(U),T.release(te)}}captureSimState(T,b,O){T.index=b.index,T.line=this._line,T.charPos=this._charPositionInLine,T.dfaState=O}addDFAEdge(T,b,O){if(O instanceof r.ATNConfigSet){let D=O.hasSemanticContext;D&&(O.hasSemanticContext=!1);let k=this.addDFAState(O);return D||this.addDFAEdge(T,b,k),k}else ke.debug&&console.log("EDGE "+T+" -> "+O+" upon "+String.fromCharCode(b)),T?.setTarget(b,O)}addDFAState(T){_(!T.hasSemanticContext);let b=new t.DFAState(T),O=this.atn.modeToDFA[this.mode].states.get(b);if(O!=null)return O;T.optimizeConfigs(this);let D=new t.DFAState(T.clone(!0)),k;for(let z of T)if(z.state instanceof m.RuleStopState){k=z;break}if(k!=null){let z=this.atn.ruleToTokenType[k.state.ruleIndex],U=k.lexerActionExecutor;D.acceptStateInfo=new h.AcceptStateInfo(z,U)}return this.atn.modeToDFA[this.mode].addState(D)}getDFA(T){return this.atn.modeToDFA[T]}getText(T){return T.getText(s.Interval.of(this.startIndex,T.index-1))}get line(){return this._line}set line(T){this._line=T}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(T){this._charPositionInLine=T}consume(T){T.LA(1)===10?(this._line++,this._charPositionInLine=0):this._charPositionInLine++,T.consume()}getTokenName(T){return T===-1?"EOF":"'"+String.fromCharCode(T)+"'"}};i([d.NotNull],v.prototype,"prevAccept",void 0),i([c(0,d.NotNull)],v.prototype,"copyState",null),i([c(0,d.NotNull)],v.prototype,"match",null),i([d.Override],v.prototype,"reset",null),i([c(0,d.NotNull)],v.prototype,"matchATN",null),i([c(0,d.NotNull),c(1,d.NotNull)],v.prototype,"execATN",null),i([c(0,d.NotNull)],v.prototype,"getExistingTargetState",null),i([d.NotNull,c(0,d.NotNull),c(1,d.NotNull)],v.prototype,"computeTargetState",null),i([c(0,d.NotNull),c(1,d.NotNull),c(2,d.NotNull)],v.prototype,"getReachableConfigSet",null),i([c(0,d.NotNull)],v.prototype,"accept",null),i([d.NotNull,c(0,d.NotNull),c(1,d.NotNull)],v.prototype,"computeStartState",null),i([c(0,d.NotNull),c(1,d.NotNull),c(2,d.NotNull)],v.prototype,"closure",null),i([c(0,d.NotNull),c(1,d.NotNull),c(2,d.NotNull),c(3,d.NotNull)],v.prototype,"getEpsilonTarget",null),i([c(0,d.NotNull)],v.prototype,"evaluatePredicate",null),i([c(0,d.NotNull),c(1,d.NotNull),c(2,d.NotNull)],v.prototype,"captureSimState",null),i([d.NotNull,c(0,d.NotNull)],v.prototype,"addDFAState",null),i([d.NotNull],v.prototype,"getDFA",null),i([d.NotNull,c(0,d.NotNull)],v.prototype,"getText",null),i([c(0,d.NotNull)],v.prototype,"consume",null),i([d.NotNull],v.prototype,"getTokenName",null),v=i([c(0,d.NotNull)],v),u.LexerATNSimulator=v,(function(N){N.debug=!1,N.dfa_debug=!1;class T{constructor(){this.index=-1,this.line=0,this.charPos=-1}reset(){this.index=-1,this.line=0,this.charPos=-1,this.dfaState=void 0}}N.SimState=T})(v=u.LexerATNSimulator||(u.LexerATNSimulator={})),u.LexerATNSimulator=v})(Rr)),Rr}var bc;function hr(){if(bc)return Or;bc=1;var u=Or&&Or.__decorate||function(o,l,f,d){var g=arguments.length,x=g<3?l:d===null?d=Object.getOwnPropertyDescriptor(l,f):d,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(o,l,f,d);else for(var y=o.length-1;y>=0;y--)(m=o[y])&&(x=(g<3?m(x):g>3?m(l,f,x):m(l,f))||x);return g>3&&x&&Object.defineProperty(l,f,x),x};Object.defineProperty(Or,"__esModule",{value:!0}),Or.Lexer=void 0;const i=Bs(),c=kl(),h=je(),p=ur(),a=Mi(),r=ji(),n=Q(),t=Yn(),s=Ne();let e=class xr extends t.Recognizer{constructor(l){super(),this._factory=i.CommonTokenFactory.DEFAULT,this._tokenStartCharIndex=-1,this._tokenStartLine=0,this._tokenStartCharPositionInLine=0,this._hitEOF=!1,this._channel=0,this._type=0,this._modeStack=new c.IntegerStack,this._mode=xr.DEFAULT_MODE,this._input=l,this._tokenFactorySourcePair={source:this,stream:l}}static get DEFAULT_TOKEN_CHANNEL(){return s.Token.DEFAULT_CHANNEL}static get HIDDEN(){return s.Token.HIDDEN_CHANNEL}reset(l){(l===void 0||l)&&this._input.seek(0),this._token=void 0,this._type=s.Token.INVALID_TYPE,this._channel=s.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartCharPositionInLine=-1,this._tokenStartLine=-1,this._text=void 0,this._hitEOF=!1,this._mode=xr.DEFAULT_MODE,this._modeStack.clear(),this.interpreter.reset()}nextToken(){if(this._input==null)throw new Error("nextToken requires a non-null input stream.");let l=this._input.mark();try{e:for(;;){if(this._hitEOF)return this.emitEOF();this._token=void 0,this._channel=s.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartCharPositionInLine=this.interpreter.charPositionInLine,this._tokenStartLine=this.interpreter.line,this._text=void 0;do{this._type=s.Token.INVALID_TYPE;let f;try{f=this.interpreter.match(this._input,this._mode)}catch(d){if(d instanceof r.LexerNoViableAltException)this.notifyListeners(d),this.recover(d),f=xr.SKIP;else throw d}if(this._input.LA(1)===p.IntStream.EOF&&(this._hitEOF=!0),this._type===s.Token.INVALID_TYPE&&(this._type=f),this._type===xr.SKIP)continue e}while(this._type===xr.MORE);return this._token==null?this.emit():this._token}}finally{this._input.release(l)}}skip(){this._type=xr.SKIP}more(){this._type=xr.MORE}mode(l){this._mode=l}pushMode(l){a.LexerATNSimulator.debug&&console.log("pushMode "+l),this._modeStack.push(this._mode),this.mode(l)}popMode(){if(this._modeStack.isEmpty)throw new Error("EmptyStackException");return a.LexerATNSimulator.debug&&console.log("popMode back to "+this._modeStack.peek()),this.mode(this._modeStack.pop()),this._mode}get tokenFactory(){return this._factory}set tokenFactory(l){this._factory=l}get inputStream(){return this._input}set inputStream(l){this.reset(!1),this._input=l,this._tokenFactorySourcePair={source:this,stream:this._input}}get sourceName(){return this._input.sourceName}emit(l){return l||(l=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.charIndex-1,this._tokenStartLine,this._tokenStartCharPositionInLine)),this._token=l,l}emitEOF(){let l=this.charPositionInLine,f=this.line,d=this._factory.create(this._tokenFactorySourcePair,s.Token.EOF,void 0,s.Token.DEFAULT_CHANNEL,this._input.index,this._input.index-1,f,l);return this.emit(d),d}get line(){return this.interpreter.line}set line(l){this.interpreter.line=l}get charPositionInLine(){return this.interpreter.charPositionInLine}set charPositionInLine(l){this.interpreter.charPositionInLine=l}get charIndex(){return this._input.index}get text(){return this._text!=null?this._text:this.interpreter.getText(this._input)}set text(l){this._text=l}get token(){return this._token}set token(l){this._token=l}set type(l){this._type=l}get type(){return this._type}set channel(l){this._channel=l}get channel(){return this._channel}getAllTokens(){let l=[],f=this.nextToken();for(;f.type!==s.Token.EOF;)l.push(f),f=this.nextToken();return l}notifyListeners(l){let f=this._input.getText(h.Interval.of(this._tokenStartCharIndex,this._input.index)),d="token recognition error at: '"+this.getErrorDisplay(f)+"'",g=this.getErrorListenerDispatch();g.syntaxError&&g.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,d,l)}getErrorDisplay(l){if(typeof l=="number"){switch(l){case s.Token.EOF:return"<EOF>";case 10:return"\\n";case 9:return"\\t";case 13:return"\\r"}return String.fromCharCode(l)}return l.replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}getCharErrorDisplay(l){return"'"+this.getErrorDisplay(l)+"'"}recover(l){l instanceof r.LexerNoViableAltException?this._input.LA(1)!==p.IntStream.EOF&&this.interpreter.consume(this._input):this._input.consume()}};return e.DEFAULT_MODE=0,e.MORE=-2,e.SKIP=-3,e.MIN_CHAR_VALUE=0,e.MAX_CHAR_VALUE=1114111,u([n.Override],e.prototype,"nextToken",null),u([n.Override],e.prototype,"tokenFactory",null),u([n.Override],e.prototype,"inputStream",null),u([n.Override],e.prototype,"sourceName",null),u([n.Override],e.prototype,"line",null),u([n.Override],e.prototype,"charPositionInLine",null),Or.Lexer=e,Or}var Cc;function Vr(){if(Cc)return lt;Cc=1;var u=lt&<.__decorate||function(e,o,l,f){var d=arguments.length,g=d<3?o:f===null?f=Object.getOwnPropertyDescriptor(o,l):f,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,o,l,f);else for(var m=e.length-1;m>=0;m--)(x=e[m])&&(g=(d<3?x(g):d>3?x(o,l,g):x(o,l))||g);return d>3&&g&&Object.defineProperty(o,l,g),g},i=lt&<.__param||function(e,o){return function(l,f){o(l,f,e)}};Object.defineProperty(lt,"__esModule",{value:!0}),lt.IntervalSet=void 0;const c=Di(),h=Ls(),p=je(),a=hr(),r=Pe(),n=Q(),t=Ne();let s=class Te{constructor(o){this.readonly=!1,o!=null?this._intervals=o.slice(0):this._intervals=[]}static get COMPLETE_CHAR_SET(){return Te._COMPLETE_CHAR_SET===void 0&&(Te._COMPLETE_CHAR_SET=Te.of(a.Lexer.MIN_CHAR_VALUE,a.Lexer.MAX_CHAR_VALUE),Te._COMPLETE_CHAR_SET.setReadonly(!0)),Te._COMPLETE_CHAR_SET}static get EMPTY_SET(){return Te._EMPTY_SET==null&&(Te._EMPTY_SET=new Te,Te._EMPTY_SET.setReadonly(!0)),Te._EMPTY_SET}static of(o,l=o){let f=new Te;return f.add(o,l),f}clear(){if(this.readonly)throw new Error("can't alter readonly IntervalSet");this._intervals.length=0}add(o,l=o){this.addRange(p.Interval.of(o,l))}addRange(o){if(this.readonly)throw new Error("can't alter readonly IntervalSet");if(!(o.b<o.a)){for(let l=0;l<this._intervals.length;l++){let f=this._intervals[l];if(o.equals(f))return;if(o.adjacent(f)||!o.disjoint(f)){let d=o.union(f);for(this._intervals[l]=d;l<this._intervals.length-1;){l++;let g=this._intervals[l];if(!d.adjacent(g)&&d.disjoint(g))break;this._intervals.splice(l,1),l--,this._intervals[l]=d.union(g)}return}if(o.startsBeforeDisjoint(f)){this._intervals.splice(l,0,o);return}}this._intervals.push(o)}}static or(o){let l=new Te;for(let f of o)l.addAll(f);return l}addAll(o){if(o==null)return this;if(o instanceof Te){let l=o,f=l._intervals.length;for(let d=0;d<f;d++){let g=l._intervals[d];this.add(g.a,g.b)}}else for(let l of o.toArray())this.add(l);return this}complementRange(o,l){return this.complement(Te.of(o,l))}complement(o){if(o.isNil)return Te.EMPTY_SET;let l;return o instanceof Te?l=o:(l=new Te,l.addAll(o)),l.subtract(this)}subtract(o){if(o==null||o.isNil)return new Te(this._intervals);if(o instanceof Te)return Te.subtract(this,o);let l=new Te;return l.addAll(o),Te.subtract(this,l)}static subtract(o,l){if(o.isNil)return new Te;let f=new Te(o._intervals);if(l.isNil)return f;let d=0,g=0;for(;d<f._intervals.length&&g<l._intervals.length;){let x=f._intervals[d],m=l._intervals[g];if(m.b<x.a){g++;continue}if(m.a>x.b){d++;continue}let y,_;if(m.a>x.a&&(y=new p.Interval(x.a,m.a-1)),m.b<x.b&&(_=new p.Interval(m.b+1,x.b)),y)if(_){f._intervals[d]=y,f._intervals.splice(d+1,0,_),d++,g++;continue}else{f._intervals[d]=y,d++;continue}else if(_){f._intervals[d]=_,g++;continue}else{f._intervals.splice(d,1);continue}}return f}or(o){let l=new Te;return l.addAll(this),l.addAll(o),l}and(o){if(o.isNil)return new Te;let l=this._intervals,f=o._intervals,d,g=l.length,x=f.length,m=0,y=0;for(;m<g&&y<x;){let _=l[m],v=f[y];_.startsBeforeDisjoint(v)?m++:v.startsBeforeDisjoint(_)?y++:_.properlyContains(v)?(d||(d=new Te),d.addRange(_.intersection(v)),y++):v.properlyContains(_)?(d||(d=new Te),d.addRange(_.intersection(v)),m++):_.disjoint(v)||(d||(d=new Te),d.addRange(_.intersection(v)),_.startsAfterNonDisjoint(v)?y++:v.startsAfterNonDisjoint(_)&&m++)}return d||new Te}contains(o){let l=this._intervals.length,f=0,d=l-1;for(;f<=d;){let g=f+d>>1,x=this._intervals[g],m=x.a;if(x.b<o)f=g+1;else if(m>o)d=g-1;else return!0}return!1}get isNil(){return this._intervals==null||this._intervals.length===0}get maxElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[this._intervals.length-1].b}get minElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[0].a}get intervals(){return this._intervals}hashCode(){let o=r.MurmurHash.initialize();for(let l of this._intervals)o=r.MurmurHash.update(o,l.a),o=r.MurmurHash.update(o,l.b);return o=r.MurmurHash.finish(o,this._intervals.length*2),o}equals(o){return o==null||!(o instanceof Te)?!1:c.ArrayEqualityComparator.INSTANCE.equals(this._intervals,o._intervals)}toString(o=!1){let l="";if(this._intervals==null||this._intervals.length===0)return"{}";this.size>1&&(l+="{");let f=!0;for(let d of this._intervals){f?f=!1:l+=", ";let g=d.a,x=d.b;g===x?g===t.Token.EOF?l+="<EOF>":o?l+="'"+String.fromCodePoint(g)+"'":l+=g:o?l+="'"+String.fromCodePoint(g)+"'..'"+String.fromCodePoint(x)+"'":l+=g+".."+x}return this.size>1&&(l+="}"),l}toStringVocabulary(o){if(this._intervals==null||this._intervals.length===0)return"{}";let l="";this.size>1&&(l+="{");let f=!0;for(let d of this._intervals){f?f=!1:l+=", ";let g=d.a,x=d.b;if(g===x)l+=this.elementName(o,g);else for(let m=g;m<=x;m++)m>g&&(l+=", "),l+=this.elementName(o,m)}return this.size>1&&(l+="}"),l}elementName(o,l){return l===t.Token.EOF?"<EOF>":l===t.Token.EPSILON?"<EPSILON>":o.getDisplayName(l)}get size(){let o=0,l=this._intervals.length;if(l===1){let f=this._intervals[0];return f.b-f.a+1}for(let f=0;f<l;f++){let d=this._intervals[f];o+=d.b-d.a+1}return o}toIntegerList(){let o=new h.IntegerList(this.size),l=this._intervals.length;for(let f=0;f<l;f++){let d=this._intervals[f],g=d.a,x=d.b;for(let m=g;m<=x;m++)o.add(m)}return o}toSet(){let o=new Set;for(let l of this._intervals){let f=l.a,d=l.b;for(let g=f;g<=d;g++)o.add(g)}return o}toArray(){let o=new Array,l=this._intervals.length;for(let f=0;f<l;f++){let d=this._intervals[f],g=d.a,x=d.b;for(let m=g;m<=x;m++)o.push(m)}return o}remove(o){if(this.readonly)throw new Error("can't alter readonly IntervalSet");let l=this._intervals.length;for(let f=0;f<l;f++){let d=this._intervals[f],g=d.a,x=d.b;if(o<g)break;if(o===g&&o===x){this._intervals.splice(f,1);break}if(o===g){this._intervals[f]=p.Interval.of(d.a+1,d.b);break}if(o===x){this._intervals[f]=p.Interval.of(d.a,d.b-1);break}if(o>g&&o<x){let m=d.b;this._intervals[f]=p.Interval.of(d.a,o-1),this.add(o+1,m)}}}get isReadonly(){return this.readonly}setReadonly(o){if(this.readonly&&!o)throw new Error("can't alter readonly IntervalSet");this.readonly=o}};return u([n.Override],s.prototype,"addAll",null),u([n.Override],s.prototype,"complement",null),u([n.Override],s.prototype,"subtract",null),u([n.Override],s.prototype,"or",null),u([n.Override],s.prototype,"and",null),u([n.Override],s.prototype,"contains",null),u([n.Override],s.prototype,"isNil",null),u([n.Override],s.prototype,"hashCode",null),u([n.Override],s.prototype,"equals",null),u([i(0,n.NotNull)],s.prototype,"toStringVocabulary",null),u([n.NotNull,i(0,n.NotNull)],s.prototype,"elementName",null),u([n.Override],s.prototype,"size",null),u([n.Override],s.prototype,"remove",null),u([n.NotNull],s,"of",null),u([n.NotNull],s,"subtract",null),lt.IntervalSet=s,lt}var Wr={},$e={},Gr={},Oc;function Rc(){if(Oc)return Gr;Oc=1;var u=Gr&&Gr.__decorate||function(h,p,a,r){var n=arguments.length,t=n<3?p:r===null?r=Object.getOwnPropertyDescriptor(p,a):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(h,p,a,r);else for(var e=h.length-1;e>=0;e--)(s=h[e])&&(t=(n<3?s(t):n>3?s(p,a,t):s(p,a))||t);return n>3&&t&&Object.defineProperty(p,a,t),t};Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.ATNDeserializationOptions=void 0;const i=Q();let c=class jn{constructor(p){this.readOnly=!1,p?(this.verifyATN=p.verifyATN,this.generateRuleBypassTransitions=p.generateRuleBypassTransitions,this.optimize=p.optimize):(this.verifyATN=!0,this.generateRuleBypassTransitions=!1,this.optimize=!0)}static get defaultOptions(){return jn._defaultOptions==null&&(jn._defaultOptions=new jn,jn._defaultOptions.makeReadOnly()),jn._defaultOptions}get isReadOnly(){return this.readOnly}makeReadOnly(){this.readOnly=!0}get isVerifyATN(){return this.verifyATN}set isVerifyATN(p){this.throwIfReadOnly(),this.verifyATN=p}get isGenerateRuleBypassTransitions(){return this.generateRuleBypassTransitions}set isGenerateRuleBypassTransitions(p){this.throwIfReadOnly(),this.generateRuleBypassTransitions=p}get isOptimize(){return this.optimize}set isOptimize(p){this.throwIfReadOnly(),this.optimize=p}throwIfReadOnly(){if(this.isReadOnly)throw new Error("The object is read only.")}};return u([i.NotNull],c,"defaultOptions",null),Gr.ATNDeserializationOptions=c,Gr}var Nt={},bt={},Pc;function Dc(){if(Pc)return bt;Pc=1;var u=bt&&bt.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=bt&&bt.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(bt,"__esModule",{value:!0}),bt.ActionTransition=void 0;const c=Q(),h=lr();let p=class extends h.Transition{constructor(r,n,t=-1,s=!1){super(r),this.ruleIndex=n,this.actionIndex=t,this.isCtxDependent=s}get serializationType(){return 6}get isEpsilon(){return!0}matches(r,n,t){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}};return u([c.Override],p.prototype,"serializationType",null),u([c.Override],p.prototype,"isEpsilon",null),u([c.Override],p.prototype,"matches",null),u([c.Override],p.prototype,"toString",null),p=u([i(0,c.NotNull)],p),bt.ActionTransition=p,bt}var Ct={},Ic;function wc(){if(Ic)return Ct;Ic=1;var u=Ct&&Ct.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o},i=Ct&&Ct.__param||function(r,n){return function(t,s){n(t,s,r)}};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.AtomTransition=void 0;const c=Vr(),h=Q(),p=lr();let a=class extends p.Transition{constructor(n,t){super(n),this._label=t}get serializationType(){return 5}get label(){return c.IntervalSet.of(this._label)}matches(n,t,s){return this._label===n}toString(){return String(this.label)}};return u([h.Override],a.prototype,"serializationType",null),u([h.Override,h.NotNull],a.prototype,"label",null),u([h.Override],a.prototype,"matches",null),u([h.Override,h.NotNull],a.prototype,"toString",null),a=u([i(0,h.NotNull)],a),Ct.AtomTransition=a,Ct}var Xr={},ti={},Lc;function qi(){if(Lc)return ti;Lc=1;Object.defineProperty(ti,"__esModule",{value:!0}),ti.BlockStartState=void 0;const u=Ir();let i=class extends u.DecisionState{};return ti.BlockStartState=i,ti}var Fc;function g0(){if(Fc)return Xr;Fc=1;var u=Xr&&Xr.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.BasicBlockStartState=void 0;const i=Ie(),c=qi(),h=Q();let p=class extends c.BlockStartState{get stateType(){return i.ATNStateType.BLOCK_START}};return u([h.Override],p.prototype,"stateType",null),Xr.BasicBlockStartState=p,Xr}var $r={},Bc;function v0(){if(Bc)return $r;Bc=1;var u=$r&&$r.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty($r,"__esModule",{value:!0}),$r.BlockEndState=void 0;const i=rt(),c=Ie(),h=Q();let p=class extends i.ATNState{get stateType(){return c.ATNStateType.BLOCK_END}};return u([h.Override],p.prototype,"stateType",null),$r.BlockEndState=p,$r}var Ot={},jc;function A0(){if(jc)return Ot;jc=1;var u=Ot&&Ot.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=Ot&&Ot.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.EpsilonTransition=void 0;const c=Q(),h=lr();let p=class extends h.Transition{constructor(r,n=-1){super(r),this._outermostPrecedenceReturn=n}get outermostPrecedenceReturn(){return this._outermostPrecedenceReturn}get serializationType(){return 1}get isEpsilon(){return!0}matches(r,n,t){return!1}toString(){return"epsilon"}};return u([c.Override],p.prototype,"serializationType",null),u([c.Override],p.prototype,"isEpsilon",null),u([c.Override],p.prototype,"matches",null),u([c.Override,c.NotNull],p.prototype,"toString",null),p=u([i(0,c.NotNull)],p),Ot.EpsilonTransition=p,Ot}var Rt={},Mc;function T0(){if(Mc)return Rt;Mc=1;var u=Rt&&Rt.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=Rt&&Rt.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.LexerChannelAction=void 0;const c=Pe(),h=Q();let p=class ap{constructor(r){this._channel=r}get channel(){return this._channel}get actionType(){return 0}get isPositionDependent(){return!1}execute(r){r.channel=this._channel}hashCode(){let r=c.MurmurHash.initialize();return r=c.MurmurHash.update(r,this.actionType),r=c.MurmurHash.update(r,this._channel),c.MurmurHash.finish(r,2)}equals(r){return r===this?!0:r instanceof ap?this._channel===r._channel:!1}toString(){return`channel(${this._channel})`}};return u([h.Override],p.prototype,"actionType",null),u([h.Override],p.prototype,"isPositionDependent",null),u([h.Override,i(0,h.NotNull)],p.prototype,"execute",null),u([h.Override],p.prototype,"hashCode",null),u([h.Override],p.prototype,"equals",null),u([h.Override],p.prototype,"toString",null),Rt.LexerChannelAction=p,Rt}var Pt={},qc;function E0(){if(qc)return Pt;qc=1;var u=Pt&&Pt.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=Pt&&Pt.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.LexerCustomAction=void 0;const c=Pe(),h=Q();let p=class lp{constructor(r,n){this._ruleIndex=r,this._actionIndex=n}get ruleIndex(){return this._ruleIndex}get actionIndex(){return this._actionIndex}get actionType(){return 1}get isPositionDependent(){return!0}execute(r){r.action(void 0,this._ruleIndex,this._actionIndex)}hashCode(){let r=c.MurmurHash.initialize();return r=c.MurmurHash.update(r,this.actionType),r=c.MurmurHash.update(r,this._ruleIndex),r=c.MurmurHash.update(r,this._actionIndex),c.MurmurHash.finish(r,3)}equals(r){return r===this?!0:r instanceof lp?this._ruleIndex===r._ruleIndex&&this._actionIndex===r._actionIndex:!1}};return u([h.Override],p.prototype,"actionType",null),u([h.Override],p.prototype,"isPositionDependent",null),u([h.Override,i(0,h.NotNull)],p.prototype,"execute",null),u([h.Override],p.prototype,"hashCode",null),u([h.Override],p.prototype,"equals",null),Pt.LexerCustomAction=p,Pt}var Dt={},kc;function S0(){if(kc)return Dt;kc=1;var u=Dt&&Dt.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=Dt&&Dt.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.LexerModeAction=void 0;const c=Pe(),h=Q();let p=class cp{constructor(r){this._mode=r}get mode(){return this._mode}get actionType(){return 2}get isPositionDependent(){return!1}execute(r){r.mode(this._mode)}hashCode(){let r=c.MurmurHash.initialize();return r=c.MurmurHash.update(r,this.actionType),r=c.MurmurHash.update(r,this._mode),c.MurmurHash.finish(r,2)}equals(r){return r===this?!0:r instanceof cp?this._mode===r._mode:!1}toString(){return`mode(${this._mode})`}};return u([h.Override],p.prototype,"actionType",null),u([h.Override],p.prototype,"isPositionDependent",null),u([h.Override,i(0,h.NotNull)],p.prototype,"execute",null),u([h.Override],p.prototype,"hashCode",null),u([h.Override],p.prototype,"equals",null),u([h.Override],p.prototype,"toString",null),Dt.LexerModeAction=p,Dt}var Kr={},Uc;function N0(){return Uc||(Uc=1,(function(u){var i=Kr&&Kr.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o},c=Kr&&Kr.__param||function(r,n){return function(t,s){n(t,s,r)}};Object.defineProperty(u,"__esModule",{value:!0}),u.LexerMoreAction=void 0;const h=Pe(),p=Q();let a=class{constructor(){}get actionType(){return 3}get isPositionDependent(){return!1}execute(n){n.more()}hashCode(){let n=h.MurmurHash.initialize();return n=h.MurmurHash.update(n,this.actionType),h.MurmurHash.finish(n,1)}equals(n){return n===this}toString(){return"more"}};i([p.Override],a.prototype,"actionType",null),i([p.Override],a.prototype,"isPositionDependent",null),i([p.Override,c(0,p.NotNull)],a.prototype,"execute",null),i([p.Override],a.prototype,"hashCode",null),i([p.Override],a.prototype,"equals",null),i([p.Override],a.prototype,"toString",null),u.LexerMoreAction=a,(function(r){r.INSTANCE=new r})(a=u.LexerMoreAction||(u.LexerMoreAction={}))})(Kr)),Kr}var Qr={},zc;function b0(){return zc||(zc=1,(function(u){var i=Qr&&Qr.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o},c=Qr&&Qr.__param||function(r,n){return function(t,s){n(t,s,r)}};Object.defineProperty(u,"__esModule",{value:!0}),u.LexerPopModeAction=void 0;const h=Pe(),p=Q();let a=class{constructor(){}get actionType(){return 4}get isPositionDependent(){return!1}execute(n){n.popMode()}hashCode(){let n=h.MurmurHash.initialize();return n=h.MurmurHash.update(n,this.actionType),h.MurmurHash.finish(n,1)}equals(n){return n===this}toString(){return"popMode"}};i([p.Override],a.prototype,"actionType",null),i([p.Override],a.prototype,"isPositionDependent",null),i([p.Override,c(0,p.NotNull)],a.prototype,"execute",null),i([p.Override],a.prototype,"hashCode",null),i([p.Override],a.prototype,"equals",null),i([p.Override],a.prototype,"toString",null),u.LexerPopModeAction=a,(function(r){r.INSTANCE=new r})(a=u.LexerPopModeAction||(u.LexerPopModeAction={}))})(Qr)),Qr}var It={},Hc;function C0(){if(Hc)return It;Hc=1;var u=It&&It.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=It&&It.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(It,"__esModule",{value:!0}),It.LexerPushModeAction=void 0;const c=Pe(),h=Q();let p=class fp{constructor(r){this._mode=r}get mode(){return this._mode}get actionType(){return 5}get isPositionDependent(){return!1}execute(r){r.pushMode(this._mode)}hashCode(){let r=c.MurmurHash.initialize();return r=c.MurmurHash.update(r,this.actionType),r=c.MurmurHash.update(r,this._mode),c.MurmurHash.finish(r,2)}equals(r){return r===this?!0:r instanceof fp?this._mode===r._mode:!1}toString(){return`pushMode(${this._mode})`}};return u([h.Override],p.prototype,"actionType",null),u([h.Override],p.prototype,"isPositionDependent",null),u([h.Override,i(0,h.NotNull)],p.prototype,"execute",null),u([h.Override],p.prototype,"hashCode",null),u([h.Override],p.prototype,"equals",null),u([h.Override],p.prototype,"toString",null),It.LexerPushModeAction=p,It}var Jr={},Vc;function O0(){return Vc||(Vc=1,(function(u){var i=Jr&&Jr.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o},c=Jr&&Jr.__param||function(r,n){return function(t,s){n(t,s,r)}};Object.defineProperty(u,"__esModule",{value:!0}),u.LexerSkipAction=void 0;const h=Pe(),p=Q();let a=class{constructor(){}get actionType(){return 6}get isPositionDependent(){return!1}execute(n){n.skip()}hashCode(){let n=h.MurmurHash.initialize();return n=h.MurmurHash.update(n,this.actionType),h.MurmurHash.finish(n,1)}equals(n){return n===this}toString(){return"skip"}};i([p.Override],a.prototype,"actionType",null),i([p.Override],a.prototype,"isPositionDependent",null),i([p.Override,c(0,p.NotNull)],a.prototype,"execute",null),i([p.Override],a.prototype,"hashCode",null),i([p.Override],a.prototype,"equals",null),i([p.Override],a.prototype,"toString",null),u.LexerSkipAction=a,(function(r){r.INSTANCE=new r})(a=u.LexerSkipAction||(u.LexerSkipAction={}))})(Jr)),Jr}var wt={},Wc;function R0(){if(Wc)return wt;Wc=1;var u=wt&&wt.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=wt&&wt.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(wt,"__esModule",{value:!0}),wt.LexerTypeAction=void 0;const c=Pe(),h=Q();let p=class hp{constructor(r){this._type=r}get type(){return this._type}get actionType(){return 7}get isPositionDependent(){return!1}execute(r){r.type=this._type}hashCode(){let r=c.MurmurHash.initialize();return r=c.MurmurHash.update(r,this.actionType),r=c.MurmurHash.update(r,this._type),c.MurmurHash.finish(r,2)}equals(r){return r===this?!0:r instanceof hp?this._type===r._type:!1}toString(){return`type(${this._type})`}};return u([h.Override],p.prototype,"actionType",null),u([h.Override],p.prototype,"isPositionDependent",null),u([h.Override,i(0,h.NotNull)],p.prototype,"execute",null),u([h.Override],p.prototype,"hashCode",null),u([h.Override],p.prototype,"equals",null),u([h.Override],p.prototype,"toString",null),wt.LexerTypeAction=p,wt}var Zr={},Gc;function Xc(){if(Gc)return Zr;Gc=1;var u=Zr&&Zr.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.LoopEndState=void 0;const i=rt(),c=Ie(),h=Q();let p=class extends i.ATNState{get stateType(){return c.ATNStateType.LOOP_END}};return u([h.Override],p.prototype,"stateType",null),Zr.LoopEndState=p,Zr}var Lt={},Yr={},$c;function P0(){if($c)return Yr;$c=1;var u=Yr&&Yr.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.ConflictInfo=void 0;const i=Q(),c=ut();let h=class pp{constructor(a,r){this._conflictedAlts=a,this.exact=r}get conflictedAlts(){return this._conflictedAlts}get isExact(){return this.exact}equals(a){return a===this?!0:a instanceof pp?this.isExact===a.isExact&&c.equals(this.conflictedAlts,a.conflictedAlts):!1}hashCode(){return this.conflictedAlts.hashCode()}};return u([i.Override],h.prototype,"equals",null),u([i.Override],h.prototype,"hashCode",null),Yr.ConflictInfo=h,Yr}var en={},tn={},rn={},Kc;function pr(){if(Kc)return rn;Kc=1;var u=rn&&rn.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(rn,"__esModule",{value:!0}),rn.TerminalNode=void 0;const i=je(),c=Q(),h=Ne();let p=class{constructor(r){this._symbol=r}getChild(r){throw new RangeError("Terminal Node has no children.")}get symbol(){return this._symbol}get parent(){return this._parent}setParent(r){this._parent=r}get payload(){return this._symbol}get sourceInterval(){let r=this._symbol.tokenIndex;return new i.Interval(r,r)}get childCount(){return 0}accept(r){return r.visitTerminal(this)}get text(){return this._symbol.text||""}toStringTree(r){return this.toString()}toString(){return this._symbol.type===h.Token.EOF?"<EOF>":this._symbol.text||""}};return u([c.Override],p.prototype,"getChild",null),u([c.Override],p.prototype,"parent",null),u([c.Override],p.prototype,"setParent",null),u([c.Override],p.prototype,"payload",null),u([c.Override],p.prototype,"sourceInterval",null),u([c.Override],p.prototype,"childCount",null),u([c.Override],p.prototype,"accept",null),u([c.Override],p.prototype,"text",null),u([c.Override],p.prototype,"toStringTree",null),u([c.Override],p.prototype,"toString",null),rn.TerminalNode=p,rn}var Qc;function ri(){if(Qc)return tn;Qc=1;var u=tn&&tn.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s};Object.defineProperty(tn,"__esModule",{value:!0}),tn.ErrorNode=void 0;const i=Q(),c=pr();let h=class extends c.TerminalNode{constructor(a){super(a)}accept(a){return a.visitErrorNode(this)}};return u([i.Override],h.prototype,"accept",null),tn.ErrorNode=h,tn}var nn={},ni={},Jc;function ii(){if(Jc)return ni;Jc=1;Object.defineProperty(ni,"__esModule",{value:!0}),ni.RuleNode=void 0;let u=class{};return ni.RuleNode=u,ni}var Ft={},Zc;function dr(){if(Zc)return Ft;Zc=1;var u=Ft&&Ft.__decorate||function(f,d,g,x){var m=arguments.length,y=m<3?d:x===null?x=Object.getOwnPropertyDescriptor(d,g):x,_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(f,d,g,x);else for(var v=f.length-1;v>=0;v--)(_=f[v])&&(y=(m<3?_(y):m>3?_(d,g,y):_(d,g))||y);return m>3&&y&&Object.defineProperty(d,g,y),y},i=Ft&&Ft.__param||function(f,d){return function(g,x){d(g,x,f)}};Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.Trees=void 0;const c=At(),h=Vn(),p=ri(),a=Q(),r=di(),n=Ke(),t=ii(),s=pr(),e=Ne(),o=ut();let l=class yr{static toStringTree(d,g){let x;g instanceof r.Parser?x=g.ruleNames:x=g;let m=o.escapeWhitespace(this.getNodeText(d,x),!1);if(d.childCount===0)return m;let y="";y+="(",m=o.escapeWhitespace(this.getNodeText(d,x),!1),y+=m,y+=" ";for(let _=0;_<d.childCount;_++)_>0&&(y+=" "),y+=this.toStringTree(d.getChild(_),x);return y+=")",y}static getNodeText(d,g){let x;if(g instanceof r.Parser)x=g.ruleNames;else if(g)x=g;else{let m=d.payload;return typeof m.text=="string"?m.text:d.payload.toString()}if(d instanceof t.RuleNode){let m=d.ruleContext,y=m.ruleIndex,_=x[y],v=m.altNumber;return v!==c.ATN.INVALID_ALT_NUMBER?_+":"+v:_}else{if(d instanceof p.ErrorNode)return d.toString();if(d instanceof s.TerminalNode)return d.symbol.text||""}throw new TypeError("Unexpected node type")}static getChildren(d){let g=[];for(let x=0;x<d.childCount;x++)g.push(d.getChild(x));return g}static getAncestors(d){let g=[],x=d.parent;for(;x;)g.unshift(x),x=x.parent;return g}static isAncestorOf(d,g){if(!d||!g||!d.parent)return!1;let x=g.parent;for(;x;){if(d===x)return!0;x=x.parent}return!1}static findAllTokenNodes(d,g){return yr.findAllNodes(d,g,!0)}static findAllRuleNodes(d,g){return yr.findAllNodes(d,g,!1)}static findAllNodes(d,g,x){let m=[];return yr._findAllNodes(d,g,x,m),m}static _findAllNodes(d,g,x,m){x&&d instanceof s.TerminalNode?d.symbol.type===g&&m.push(d):!x&&d instanceof n.ParserRuleContext&&d.ruleIndex===g&&m.push(d);for(let y=0;y<d.childCount;y++)yr._findAllNodes(d.getChild(y),g,x,m)}static getDescendants(d){let g=[];function x(m){g.push(m);const y=m.childCount;for(let _=0;_<y;_++)x(m.getChild(_))}return x(d),g}static getRootOfSubtreeEnclosingRegion(d,g,x){let m=d.childCount;for(let y=0;y<m;y++){let _=d.getChild(y),v=yr.getRootOfSubtreeEnclosingRegion(_,g,x);if(v)return v}if(d instanceof n.ParserRuleContext){let y=d.stop;if(g>=d.start.tokenIndex&&(y==null||x<=y.tokenIndex))return d}}static stripChildrenOutOfRange(d,g,x,m){if(!d)return;let y=d.childCount;for(let _=0;_<y;_++){let v=d.getChild(_),N=v.sourceInterval;if(v instanceof n.ParserRuleContext&&(N.b<x||N.a>m)&&yr.isAncestorOf(v,g)){let T=new h.CommonToken(e.Token.INVALID_TYPE,"...");d.children[_]=new s.TerminalNode(T)}}}static findNodeSuchThat(d,g){if(g(d))return d;let x=d.childCount;for(let m=0;m<x;m++){let y=yr.findNodeSuchThat(d.getChild(m),g);if(y!==void 0)return y}}};return u([i(0,a.NotNull)],l,"toStringTree",null),u([a.NotNull,i(0,a.NotNull)],l,"getAncestors",null),u([i(0,a.NotNull)],l,"getRootOfSubtreeEnclosingRegion",null),Ft.Trees=l,Ft}var Yc;function ef(){if(Yc)return nn;Yc=1;var u=nn&&nn.__decorate||function(s,e,o,l){var f=arguments.length,d=f<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,o):l,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(s,e,o,l);else for(var x=s.length-1;x>=0;x--)(g=s[x])&&(d=(f<3?g(d):f>3?g(e,o,d):g(e,o))||d);return f>3&&d&&Object.defineProperty(e,o,d),d};Object.defineProperty(nn,"__esModule",{value:!0}),nn.RuleContext=void 0;const i=At(),c=Yn(),h=ii(),p=je(),a=Q(),r=dr(),n=Ke();let t=class dp extends h.RuleNode{constructor(e,o){super(),this._parent=e,this.invokingState=o??-1}static getChildContext(e,o){return new dp(e,o)}depth(){let e=0,o=this;for(;o;)o=o._parent,e++;return e}get isEmpty(){return this.invokingState===-1}get sourceInterval(){return p.Interval.INVALID}get ruleContext(){return this}get parent(){return this._parent}setParent(e){this._parent=e}get payload(){return this}get text(){if(this.childCount===0)return"";let e="";for(let o=0;o<this.childCount;o++)e+=this.getChild(o).text;return e.toString()}get ruleIndex(){return-1}get altNumber(){return i.ATN.INVALID_ALT_NUMBER}set altNumber(e){}getChild(e){throw new RangeError("i must be greater than or equal to 0 and less than childCount")}get childCount(){return 0}accept(e){return e.visitChildren(this)}toStringTree(e){return r.Trees.toStringTree(this,e)}toString(e,o){const l=e instanceof c.Recognizer?e.ruleNames:e;o=o||n.ParserRuleContext.emptyContext();let f="",d=this;for(f+="[";d&&d!==o;){if(!l)d.isEmpty||(f+=d.invokingState);else{let g=d.ruleIndex,x=g>=0&&g<l.length?l[g]:g.toString();f+=x}d._parent&&(l||!d._parent.isEmpty)&&(f+=" "),d=d._parent}return f+="]",f.toString()}};return u([a.Override],t.prototype,"sourceInterval",null),u([a.Override],t.prototype,"ruleContext",null),u([a.Override],t.prototype,"parent",null),u([a.Override],t.prototype,"setParent",null),u([a.Override],t.prototype,"payload",null),u([a.Override],t.prototype,"text",null),u([a.Override],t.prototype,"getChild",null),u([a.Override],t.prototype,"childCount",null),u([a.Override],t.prototype,"accept",null),u([a.Override],t.prototype,"toStringTree",null),nn.RuleContext=t,nn}var tf;function Ke(){if(tf)return en;tf=1;var u=en&&en.__decorate||function(n,t,s,e){var o=arguments.length,l=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,t,s,e);else for(var d=n.length-1;d>=0;d--)(f=n[d])&&(l=(o<3?f(l):o>3?f(t,s,l):f(t,s))||l);return o>3&&l&&Object.defineProperty(t,s,l),l};Object.defineProperty(en,"__esModule",{value:!0}),en.ParserRuleContext=void 0;const i=ri(),c=je(),h=Q(),p=ef(),a=pr();let r=class Eu extends p.RuleContext{constructor(t,s){s==null?super():super(t,s)}static emptyContext(){return Eu.EMPTY}copyFrom(t){if(this._parent=t._parent,this.invokingState=t.invokingState,this._start=t._start,this._stop=t._stop,t.children){this.children=[];for(let s of t.children)s instanceof i.ErrorNode&&this.addChild(s)}}enterRule(t){}exitRule(t){}addAnyChild(t){return this.children?this.children.push(t):this.children=[t],t}addChild(t){if(t instanceof a.TerminalNode){t.setParent(this),this.addAnyChild(t);return}else if(t instanceof p.RuleContext){this.addAnyChild(t);return}else return t=new a.TerminalNode(t),this.addAnyChild(t),t.setParent(this),t}addErrorNode(t){if(t instanceof i.ErrorNode){const s=t;return s.setParent(this),this.addAnyChild(s)}else{const s=t;let e=new i.ErrorNode(s);return this.addAnyChild(e),e.setParent(this),e}}removeLastChild(){this.children&&this.children.pop()}get parent(){let t=super.parent;if(t===void 0||t instanceof Eu)return t;throw new TypeError("Invalid parent type for ParserRuleContext")}getChild(t,s){if(!this.children||t<0||t>=this.children.length)throw new RangeError("index parameter must be between >= 0 and <= number of children.");if(s==null)return this.children[t];let e=this.tryGetChild(t,s);if(e===void 0)throw new Error("The specified node does not exist");return e}tryGetChild(t,s){if(!this.children||t<0||t>=this.children.length)return;let e=-1;for(let o of this.children)if(o instanceof s&&(e++,e===t))return o}getToken(t,s){let e=this.tryGetToken(t,s);if(e===void 0)throw new Error("The specified token does not exist");return e}tryGetToken(t,s){if(!this.children||s<0||s>=this.children.length)return;let e=-1;for(let o of this.children)if(o instanceof a.TerminalNode&&o.symbol.type===t&&(e++,e===s))return o}getTokens(t){let s=[];if(!this.children)return s;for(let e of this.children)e instanceof a.TerminalNode&&e.symbol.type===t&&s.push(e);return s}get ruleContext(){return this}getRuleContext(t,s){return this.getChild(t,s)}tryGetRuleContext(t,s){return this.tryGetChild(t,s)}getRuleContexts(t){let s=[];if(!this.children)return s;for(let e of this.children)e instanceof t&&s.push(e);return s}get childCount(){return this.children?this.children.length:0}get sourceInterval(){return this._start?!this._stop||this._stop.tokenIndex<this._start.tokenIndex?c.Interval.of(this._start.tokenIndex,this._start.tokenIndex-1):c.Interval.of(this._start.tokenIndex,this._stop.tokenIndex):c.Interval.INVALID}get start(){return this._start}get stop(){return this._stop}toInfoString(t){return"ParserRuleContext"+t.getRuleInvocationStack(this).reverse()+"{start="+this._start+", stop="+this._stop+"}"}};return r.EMPTY=new r,u([h.Override],r.prototype,"parent",null),u([h.Override],r.prototype,"childCount",null),u([h.Override],r.prototype,"sourceInterval",null),en.ParserRuleContext=r,en}var oi={},rf;function D0(){return rf||(rf=1,(function(u){var i=oi&&oi.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(u,"__esModule",{value:!0}),u.PredictionMode=void 0;const c=Fn(),h=Pe(),p=Q(),a=ei();(function(r){r[r.SLL=0]="SLL",r[r.LL=1]="LL",r[r.LL_EXACT_AMBIG_DETECTION=2]="LL_EXACT_AMBIG_DETECTION"})(u.PredictionMode||(u.PredictionMode={})),(function(r){class n extends c.Array2DHashMap{constructor(){super(t.INSTANCE)}}class t{AltAndContextConfigEqualityComparator(){}hashCode(l){let f=h.MurmurHash.initialize(7);return f=h.MurmurHash.update(f,l.state.stateNumber),f=h.MurmurHash.update(f,l.context),f=h.MurmurHash.finish(f,2),f}equals(l,f){return l===f?!0:l==null||f==null?!1:l.state.stateNumber===f.state.stateNumber&&l.context.equals(f.context)}}t.INSTANCE=new t,i([p.Override],t.prototype,"hashCode",null),i([p.Override],t.prototype,"equals",null);function s(o){for(let l of o)if(l.state instanceof a.RuleStopState)return!0;return!1}r.hasConfigInRuleStopState=s;function e(o){for(let l of o)if(!(l.state instanceof a.RuleStopState))return!1;return!0}r.allConfigsInRuleStopStates=e})(u.PredictionMode||(u.PredictionMode={}))})(oi)),oi}var Bt={},nf;function of(){if(nf)return Bt;nf=1;var u=Bt&&Bt.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=Bt&&Bt.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.SimulatorState=void 0;const c=Q(),h=Ke();let p=class{constructor(r,n,t,s){this.outerContext=r??h.ParserRuleContext.emptyContext(),this.s0=n,this.useContext=t,this.remainingOuterContext=s}};return p=u([i(1,c.NotNull)],p),Bt.SimulatorState=p,Bt}var sf;function si(){if(sf)return Lt;sf=1;var u=Lt&&Lt.__decorate||function(F,E,A,S){var C=arguments.length,P=C<3?E:S===null?S=Object.getOwnPropertyDescriptor(E,A):S,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(F,E,A,S);else for(var I=F.length-1;I>=0;I--)(R=F[I])&&(P=(C<3?R(P):C>3?R(E,A,P):R(E,A))||P);return C>3&&P&&Object.defineProperty(E,A,P),P},i=Lt&&Lt.__param||function(F,E){return function(A,S){E(A,S,F)}};Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.ParserATNSimulator=void 0;const c=zl(),h=Dc(),p=cr(),a=ws(),r=At(),n=Li(),t=Jn(),s=Bi(),e=Ie(),o=wc(),l=fr(),f=P0(),d=Ir(),g=Fi(),x=Ls(),m=je(),y=ur(),_=Q(),v=Us(),N=ki(),T=Ze(),b=Ke(),O=Xe(),D=js(),k=D0(),z=ei(),U=zs(),te=Ln(),ie=ks(),oe=of(),he=Ne(),Ee=Mr(),le=Fe(),Z=65535,ee=-2147483648;let J=class ye extends s.ATNSimulator{constructor(E,A){super(E),this.predictionMode=k.PredictionMode.LL,this.force_global_context=!1,this.always_try_local_context=!0,this.enable_global_context_dfa=!1,this.optimize_unique_closure=!0,this.optimize_ll1=!0,this.optimize_tail_calls=!0,this.tail_call_preserves_sll=!0,this.treat_sllk1_conflict_as_ambiguity=!1,this.reportAmbiguities=!1,this.userWantsCtxSensitive=!0,this._parser=A}getPredictionMode(){return this.predictionMode}setPredictionMode(E){this.predictionMode=E}reset(){}adaptivePredict(E,A,S,C){C===void 0&&(C=!1);let P=this.atn.decisionToDFA[A];if(le(P!=null),this.optimize_ll1&&!P.isPrecedenceDfa&&!P.isEmpty){let W=E.LA(1);if(W>=0&&W<=65535){let G=(A<<16>>>0)+W,w=this.atn.LL1Table.get(G);if(w!=null)return w}}this.dfa=P,this.force_global_context?C=!0:this.always_try_local_context||(C=C||P.isContextSensitive),this.userWantsCtxSensitive=C||this.predictionMode!==k.PredictionMode.SLL&&S!=null&&!this.atn.decisionToState[A].sll,S==null&&(S=b.ParserRuleContext.emptyContext());let R;P.isEmpty||(R=this.getStartState(P,E,S,C)),R==null&&(S==null&&(S=b.ParserRuleContext.emptyContext()),ye.debug&&console.log("ATN decision "+P.decision+" exec LA(1)=="+this.getLookaheadName(E)+", outerContext="+S.toString(this._parser)),R=this.computeStartState(P,S,C));let I=E.mark(),M=E.index;try{let W=this.execDFA(P,E,M,R);return ye.debug&&console.log("DFA after predictATN: "+P.toString(this._parser.vocabulary,this._parser.ruleNames)),W}finally{this.dfa=void 0,E.seek(M),E.release(I)}}getStartState(E,A,S,C){if(!C)if(E.isPrecedenceDfa){let I=E.getPrecedenceStartState(this._parser.precedence,!1);return I==null?void 0:new oe.SimulatorState(S,I,!1,S)}else return E.s0==null?void 0:new oe.SimulatorState(S,E.s0,!1,S);if(!this.enable_global_context_dfa)return;let P=S;le(S!=null);let R;for(E.isPrecedenceDfa?R=E.getPrecedenceStartState(this._parser.precedence,!0):R=E.s0full;P!=null&&R!=null&&R.isContextSensitive;)P=this.skipTailCalls(P),R=R.getContextTarget(this.getReturnState(P)),P.isEmpty?le(R==null||!R.isContextSensitive):P=P.parent;if(R!=null)return new oe.SimulatorState(S,R,C,P)}execDFA(E,A,S,C){let P=C.outerContext;ye.dfa_debug&&console.log("DFA decision "+E.decision+" exec LA(1)=="+this.getLookaheadName(A)+", outerContext="+P.toString(this._parser)),ye.dfa_debug&&console.log(E.toString(this._parser.vocabulary,this._parser.ruleNames));let R=C.s0,I=A.LA(1),M=C.remainingOuterContext;for(;;){if(ye.dfa_debug&&console.log("DFA state "+R.stateNumber+" LA(1)=="+this.getLookaheadName(A)),C.useContext)for(;R.isContextSymbol(I);){let w;if(M!=null&&(M=this.skipTailCalls(M),w=R.getContextTarget(this.getReturnState(M))),w==null){let L=new oe.SimulatorState(C.outerContext,R,C.useContext,M);return this.execATN(E,A,S,L)}le(M!=null),M=M.parent,R=w}if(this.isAcceptState(R,C.useContext)){R.predicates!=null?ye.dfa_debug&&console.log("accept "+R):ye.dfa_debug&&console.log("accept; predict "+R.prediction+" in state "+R.stateNumber);break}le(!this.isAcceptState(R,C.useContext));let G=this.getExistingTargetState(R,I);if(G==null){ye.dfa_debug&&I>=0&&console.log("no edge for "+this._parser.vocabulary.getDisplayName(I));let w;if(ye.dfa_debug){let H=m.Interval.of(S,this._parser.inputStream.index);console.log("ATN exec upon "+this._parser.inputStream.getText(H)+" at DFA state "+R.stateNumber)}let L=new oe.SimulatorState(P,R,C.useContext,M);return w=this.execATN(E,A,S,L),ye.dfa_debug&&console.log("back from DFA update, alt="+w+`, dfa=
|
|
76
|
-
`+E.toString(this._parser.vocabulary,this._parser.ruleNames)),ye.dfa_debug&&console.log("DFA decision "+E.decision+" predicts "+w),w}else if(G===s.ATNSimulator.ERROR){let w=new oe.SimulatorState(P,R,C.useContext,M);return this.handleNoViableAlt(A,S,w)}R=G,!this.isAcceptState(R,C.useContext)&&I!==y.IntStream.EOF&&(A.consume(),I=A.LA(1))}if(!C.useContext&&R.configs.conflictInfo!=null&&E.atnStartState instanceof d.DecisionState&&!(!this.userWantsCtxSensitive||!R.configs.dipsIntoOuterContext&&R.configs.isExactConflict||this.treat_sllk1_conflict_as_ambiguity&&A.index===S)){le(!C.useContext);let G,w=R.predicates;if(w!=null){let L=A.index;if(L!==S&&A.seek(S),G=this.evalSemanticContext(w,P,!0),G.cardinality()===1)return G.nextSetBit(0);L!==S&&A.seek(L)}if(this.reportAmbiguities){let L=new oe.SimulatorState(P,R,C.useContext,M);this.reportAttemptingFullContext(E,G,L,S,A.index)}return A.seek(S),this.adaptivePredict(A,E.decision,P,!0)}let W=R.predicates;if(W!=null){let G=A.index;S!==G&&A.seek(S);let w=this.evalSemanticContext(W,P,this.reportAmbiguities&&this.predictionMode===k.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(w.cardinality()){case 0:throw this.noViableAlt(A,P,R.configs,S);case 1:return w.nextSetBit(0);default:return S!==G&&A.seek(G),this.reportAmbiguity(E,R,S,G,R.configs.isExactConflict,w,R.configs),w.nextSetBit(0)}}return ye.dfa_debug&&console.log("DFA decision "+E.decision+" predicts "+R.prediction),R.prediction}isAcceptState(E,A){return E.isAcceptState?E.configs.conflictingAlts==null?!0:A&&this.predictionMode===k.PredictionMode.LL_EXACT_AMBIG_DETECTION?E.configs.isExactConflict:!0:!1}execATN(E,A,S,C){ye.debug&&console.log("execATN decision "+E.decision+" exec LA(1)=="+this.getLookaheadName(A));let P=C.outerContext,R=C.useContext,I=A.LA(1),M=C,W=new D.PredictionContextCache;for(;;){let G=this.computeReachSet(E,M,I,W);if(G==null)return this.setDFAEdge(M.s0,A.LA(1),s.ATNSimulator.ERROR),this.handleNoViableAlt(A,S,M);let w=G.s0;if(le(w.isAcceptState||w.prediction===r.ATN.INVALID_ALT_NUMBER),le(w.isAcceptState||w.configs.conflictInfo==null),this.isAcceptState(w,R)){let L=w.configs.conflictingAlts,H=L==null?w.prediction:r.ATN.INVALID_ALT_NUMBER;if(H!==r.ATN.INVALID_ALT_NUMBER){if(this.optimize_ll1&&A.index===S&&!E.isPrecedenceDfa&&G.outerContext===G.remainingOuterContext&&E.decision>=0&&!w.configs.hasSemanticContext&&I>=0&&I<=Z){let Y=(E.decision<<16>>>0)+I;this.atn.LL1Table.set(Y,H)}R&&this.always_try_local_context&&this.reportContextSensitivity(E,H,G,S,A.index)}H=w.prediction;let X=L!=null&&this.userWantsCtxSensitive;if(X&&(X=!R&&(w.configs.dipsIntoOuterContext||!w.configs.isExactConflict)&&(!this.treat_sllk1_conflict_as_ambiguity||A.index!==S)),w.configs.hasSemanticContext){let Y=w.predicates;if(Y!=null){let re=A.index;switch(re!==S&&A.seek(S),L=this.evalSemanticContext(Y,P,X||this.reportAmbiguities),L.cardinality()){case 0:throw this.noViableAlt(A,P,w.configs,S);case 1:return L.nextSetBit(0)}re!==S&&A.seek(re)}}if(X){le(!R),le(this.isAcceptState(w,!1)),ye.debug&&console.log("RETRY with outerContext="+P);let Y=this.computeStartState(E,P,!0);return this.reportAmbiguities&&this.reportAttemptingFullContext(E,L,G,S,A.index),A.seek(S),this.execATN(E,A,S,Y)}else return L!=null&&(this.reportAmbiguities&&L.cardinality()>1&&this.reportAmbiguity(E,w,S,A.index,w.configs.isExactConflict,L,w.configs),H=L.nextSetBit(0)),H}M=G,I!==y.IntStream.EOF&&(A.consume(),I=A.LA(1))}}handleNoViableAlt(E,A,S){if(S.s0!=null){let C=new l.BitSet,P=0;for(let R of S.s0.configs)(R.reachesIntoOuterContext||R.state instanceof z.RuleStopState)&&(C.set(R.alt),P=Math.max(P,R.alt));switch(C.cardinality()){case 0:break;case 1:return C.nextSetBit(0);default:if(!S.s0.configs.hasSemanticContext)return C.nextSetBit(0);let R=new t.ATNConfigSet;for(let M of S.s0.configs)(M.reachesIntoOuterContext||M.state instanceof z.RuleStopState)&&R.add(M);let I=this.getPredsForAmbigAlts(C,R,P);if(I!=null){let M=this.getPredicatePredictions(C,I);if(M!=null){let W=E.index;try{E.seek(A);let G=this.evalSemanticContext(M,S.outerContext,!1);if(!G.isEmpty)return G.nextSetBit(0)}finally{E.seek(W)}}}return C.nextSetBit(0)}}throw this.noViableAlt(E,S.outerContext,S.s0.configs,A)}computeReachSet(E,A,S,C){let P=A.useContext,R=A.remainingOuterContext,I=A.s0;if(P)for(;I.isContextSymbol(S);){let G;if(R!=null&&(R=this.skipTailCalls(R),G=I.getContextTarget(this.getReturnState(R))),G==null)break;le(R!=null),R=R.parent,I=G}if(le(!this.isAcceptState(I,P)),this.isAcceptState(I,P))return new oe.SimulatorState(A.outerContext,I,P,R);let M=I,W=this.getExistingTargetState(M,S);if(W==null){let G=this.computeTargetState(E,M,R,S,P,C);W=G[0],R=G[1]}if(W!==s.ATNSimulator.ERROR)return le(!P||!W.configs.dipsIntoOuterContext),new oe.SimulatorState(A.outerContext,W,P,R)}getExistingTargetState(E,A){return E.getTarget(A)}computeTargetState(E,A,S,C,P,R){let I=A.configs.toArray(),M,W=new t.ATNConfigSet,G;do{let L=!P||S!=null;L||(W.isOutermostConfigSet=!0);let H=new t.ATNConfigSet,X;for(let q of I){if(ye.debug&&console.log("testing "+this.getTokenName(C)+" at "+q.toString()),q.state instanceof z.RuleStopState){le(q.context.isEmpty),(P&&!q.reachesIntoOuterContext||C===y.IntStream.EOF)&&(X==null&&(X=[]),X.push(q));continue}let $=q.state.numberOfOptimizedTransitions;for(let se=0;se<$;se++){let me=q.state.getOptimizedTransition(se),ge=this.getReachableTarget(q,me,C);ge!=null&&H.add(q.transform(ge,!1),R)}}if(this.optimize_unique_closure&&X==null&&C!==he.Token.EOF&&H.uniqueAlt!==r.ATN.INVALID_ALT_NUMBER){H.isOutermostConfigSet=W.isOutermostConfigSet,W=H;break}let Y=!1,re=C===he.Token.EOF;if(this.closure(H,W,Y,L,R,re),G=W.dipsIntoOuterContext,C===y.IntStream.EOF&&(W=this.removeAllConfigsNotInRuleStopState(W,R)),X!=null&&(!P||!k.PredictionMode.hasConfigInRuleStopState(W))){le(X.length>0);for(let q of X)W.add(q,R)}if(P&&G){W.clear(),S=S,S=this.skipTailCalls(S);let q=this.getReturnState(S);if(M==null&&(M=new x.IntegerList),S.isEmpty?S=void 0:S=S.parent,M.add(q),q!==O.PredictionContext.EMPTY_FULL_STATE_KEY)for(let $=0;$<I.length;$++)I[$]=I[$].appendContext(q,R)}}while(P&&G);return W.isEmpty?(this.setDFAEdge(A,C,s.ATNSimulator.ERROR),[s.ATNSimulator.ERROR,S]):[this.addDFAEdge(E,A,C,M,W,R),S]}removeAllConfigsNotInRuleStopState(E,A){if(k.PredictionMode.allConfigsInRuleStopStates(E))return E;let S=new t.ATNConfigSet;for(let C of E)C.state instanceof z.RuleStopState&&S.add(C,A);return S}computeStartState(E,A,S){let C=E.isPrecedenceDfa?E.getPrecedenceStartState(this._parser.precedence,S):S?E.s0full:E.s0;if(C!=null){if(!S)return new oe.SimulatorState(A,C,S,A);C.setContextSensitive(this.atn)}E.decision;let P=E.atnStartState,R=0,I=A,M=S?O.PredictionContext.EMPTY_FULL:O.PredictionContext.EMPTY_LOCAL,W=new D.PredictionContextCache;if(S){if(!this.enable_global_context_dfa)for(;I!=null;)I.isEmpty?(R=O.PredictionContext.EMPTY_FULL_STATE_KEY,I=void 0):(R=this.getReturnState(I),M=M.appendSingleContext(R,W),I=I.parent);for(;C!=null&&C.isContextSensitive&&I!=null;){let w;if(I=this.skipTailCalls(I),I.isEmpty?(w=C.getContextTarget(O.PredictionContext.EMPTY_FULL_STATE_KEY),R=O.PredictionContext.EMPTY_FULL_STATE_KEY,I=void 0):(R=this.getReturnState(I),w=C.getContextTarget(R),M=M.appendSingleContext(R,W),I=I.parent),w==null)break;C=w}}if(C!=null&&!C.isContextSensitive)return new oe.SimulatorState(A,C,S,I);let G=new t.ATNConfigSet;for(;;){let w=new t.ATNConfigSet,L=P.numberOfTransitions;for(let $=0;$<L;$++){let se=P.transition($).target;w.add(n.ATNConfig.create(se,$+1,M))}let H=I!=null;H||(G.isOutermostConfigSet=!0),this.closure(w,G,!0,H,W,!1);let Y=G.dipsIntoOuterContext,re;if(S&&!this.enable_global_context_dfa){C=this.addDFAState(E,G,W);break}else C==null?E.isPrecedenceDfa?(G=this.applyPrecedenceFilter(G,A,W),re=this.addDFAState(E,G,W),E.setPrecedenceStartState(this._parser.precedence,S,re)):(re=this.addDFAState(E,G,W),S?E.s0full?re=E.s0full:E.s0full=re:E.s0?re=E.s0:E.s0=re):(E.isPrecedenceDfa&&(G=this.applyPrecedenceFilter(G,A,W)),re=this.addDFAState(E,G,W),C.setContextTarget(R,re));if(C=re,!S||!Y)break;re.setContextSensitive(this.atn),I=I,G.clear(),I=this.skipTailCalls(I);let q=this.getReturnState(I);I.isEmpty?I=void 0:I=I.parent,q!==O.PredictionContext.EMPTY_FULL_STATE_KEY&&(M=M.appendSingleContext(q,W)),R=q}return new oe.SimulatorState(A,C,S,I)}applyPrecedenceFilter(E,A,S){let C=new Map,P=new t.ATNConfigSet;for(let R of E){if(R.alt!==1)continue;let I=R.semanticContext.evalPrecedence(this._parser,A);I!=null&&(C.set(R.state.stateNumber,R.context),I!==R.semanticContext?P.add(R.transform(R.state,!1,I),S):P.add(R,S))}for(let R of E)if(R.alt!==1){if(!R.isPrecedenceFilterSuppressed){let I=C.get(R.state.stateNumber);if(I!=null&&I.equals(R.context))continue}P.add(R,S)}return P}getReachableTarget(E,A,S){if(A.matches(S,0,this.atn.maxTokenType))return A.target}predicateDFAState(E,A,S){let C=this.getConflictingAltsFromConfigSet(A);if(!C)throw new Error("This unhandled scenario is intended to be unreachable, but I'm currently not sure of why we know that's the case.");ye.debug&&console.log("predicateDFAState "+E);let P=this.getPredsForAmbigAlts(C,A,S),R;return P!=null&&(R=this.getPredicatePredictions(C,P),E.predicates=R),R}getPredsForAmbigAlts(E,A,S){let C=new Array(S+1),P=C.length;for(let M of A)E.get(M.alt)&&(C[M.alt]=te.SemanticContext.or(C[M.alt],M.semanticContext));let R=0;for(let M=0;M<P;M++)C[M]==null?C[M]=te.SemanticContext.NONE:C[M]!==te.SemanticContext.NONE&&R++;let I=C;return R===0&&(I=void 0),ye.debug&&console.log("getPredsForAmbigAlts result "+(I?a.Arrays.toString(I):"undefined")),I}getPredicatePredictions(E,A){let S=[],C=!1;for(let P=1;P<A.length;P++){let R=A[P];le(R!=null),E!=null&&E.get(P)&&R===te.SemanticContext.NONE?S.push(new g.DFAState.PredPrediction(R,P)):R!==te.SemanticContext.NONE&&(C=!0,S.push(new g.DFAState.PredPrediction(R,P)))}if(C)return S}evalSemanticContext(E,A,S){let C=new l.BitSet;for(let P of E){if(P.pred===te.SemanticContext.NONE){if(C.set(P.alt),!S)break;continue}let R=this.evalSemanticContextImpl(P.pred,A,P.alt);if((ye.debug||ye.dfa_debug)&&console.log("eval pred "+P+"="+R),R&&((ye.debug||ye.dfa_debug)&&console.log("PREDICT "+P.alt),C.set(P.alt),!S))break}return C}evalSemanticContextImpl(E,A,S){return E.eval(this._parser,A)}closure(E,A,S,C,P,R){P==null&&(P=D.PredictionContextCache.UNCACHED);let I=E,M=new p.Array2DHashSet(T.ObjectEqualityComparator.INSTANCE);for(;I.size>0;){let W=new t.ATNConfigSet;for(let G of I)this.closureImpl(G,A,W,M,S,C,P,0,R);I=W}}closureImpl(E,A,S,C,P,R,I,M,W){if(ye.debug&&console.log("closure("+E.toString(this._parser,!0)+")"),E.state instanceof z.RuleStopState)if(E.context.isEmpty)if(R)ye.debug&&console.log("FALLING off rule "+this.getRuleName(E.state.ruleIndex)),E.context===O.PredictionContext.EMPTY_FULL?E=E.transform(E.state,!1,O.PredictionContext.EMPTY_LOCAL):!E.reachesIntoOuterContext&&O.PredictionContext.isEmptyLocal(E.context)&&A.add(E,I);else{A.add(E,I);return}else{let w=E.context.hasEmpty,L=E.context.size-(w?1:0);for(let H=0;H<L;H++){let X=E.context.getParent(H),Y=this.atn.states[E.context.getReturnState(H)],re=n.ATNConfig.create(Y,E.alt,X,E.semanticContext);re.outerContextDepth=E.outerContextDepth,re.isPrecedenceFilterSuppressed=E.isPrecedenceFilterSuppressed,le(M>ee),this.closureImpl(re,A,S,C,P,R,I,M-1,W)}if(!w||!R)return;E=E.transform(E.state,!1,O.PredictionContext.EMPTY_LOCAL)}let G=E.state;G.onlyHasEpsilonTransitions||(A.add(E,I),ye.debug&&console.log("added config "+A));for(let w=0;w<G.numberOfOptimizedTransitions;w++){if(w===0&&G.stateType===e.ATNStateType.STAR_LOOP_ENTRY&&G.precedenceRuleDecision&&!E.context.hasEmpty){let Y=G,re=!0;for(let q=0;q<E.context.size;q++)if(!Y.precedenceLoopbackStates.get(E.context.getReturnState(q))){re=!1;break}if(re)continue}let L=G.getOptimizedTransition(w),H=!(L instanceof h.ActionTransition)&&P,X=this.getEpsilonTarget(E,L,H,M===0,I,W);if(X!=null){if(L instanceof U.RuleTransition&&S!=null&&!P){S.add(X,I);continue}let Y=M;if(E.state instanceof z.RuleStopState){if(this.dfa!=null&&this.dfa.isPrecedenceDfa&&L.outermostPrecedenceReturn===this.dfa.atnStartState.ruleIndex&&(X.isPrecedenceFilterSuppressed=!0),X.outerContextDepth=X.outerContextDepth+1,!C.add(X))continue;le(Y>ee),Y--,ye.debug&&console.log("dips into outer ctx: "+X)}else if(L instanceof U.RuleTransition)this.optimize_tail_calls&&L.optimizedTailCall&&(!this.tail_call_preserves_sll||!O.PredictionContext.isEmptyLocal(E.context))?(le(X.context===E.context),Y===0&&(Y--,!this.tail_call_preserves_sll&&O.PredictionContext.isEmptyLocal(E.context)&&(X.outerContextDepth=X.outerContextDepth+1))):Y>=0&&Y++;else if(!L.isEpsilon&&!C.add(X))continue;this.closureImpl(X,A,S,C,H,R,I,Y,W)}}}getRuleName(E){return this._parser!=null&&E>=0?this._parser.ruleNames[E]:"<rule "+E+">"}getEpsilonTarget(E,A,S,C,P,R){switch(A.serializationType){case 3:return this.ruleTransition(E,A,P);case 10:return this.precedenceTransition(E,A,S,C);case 4:return this.predTransition(E,A,S,C);case 6:return this.actionTransition(E,A);case 1:return E.transform(A.target,!1);case 5:case 2:case 7:return R&&A.matches(he.Token.EOF,0,1)?E.transform(A.target,!1):void 0;default:return}}actionTransition(E,A){return ye.debug&&console.log("ACTION edge "+A.ruleIndex+":"+A.actionIndex),E.transform(A.target,!1)}precedenceTransition(E,A,S,C){ye.debug&&(console.log("PRED (collectPredicates="+S+") "+A.precedence+">=_p, ctx dependent=true"),this._parser!=null&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack()));let P;if(S&&C){let R=te.SemanticContext.and(E.semanticContext,A.predicate);P=E.transform(A.target,!1,R)}else P=E.transform(A.target,!1);return ye.debug&&console.log("config from pred transition="+P),P}predTransition(E,A,S,C){ye.debug&&(console.log("PRED (collectPredicates="+S+") "+A.ruleIndex+":"+A.predIndex+", ctx dependent="+A.isCtxDependent),this._parser!=null&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack()));let P;if(S&&(!A.isCtxDependent||A.isCtxDependent&&C)){let R=te.SemanticContext.and(E.semanticContext,A.predicate);P=E.transform(A.target,!1,R)}else P=E.transform(A.target,!1);return ye.debug&&console.log("config from pred transition="+P),P}ruleTransition(E,A,S){ye.debug&&console.log("CALL rule "+this.getRuleName(A.target.ruleIndex)+", ctx="+E.context);let C=A.followState,P;return this.optimize_tail_calls&&A.optimizedTailCall&&(!this.tail_call_preserves_sll||!O.PredictionContext.isEmptyLocal(E.context))?P=E.context:S!=null?P=S.getChild(E.context,C.stateNumber):P=E.context.getChild(C.stateNumber),E.transform(A.target,!1,P)}isConflicted(E,A){if(E.uniqueAlt!==r.ATN.INVALID_ALT_NUMBER||E.size<=1)return;let S=E.toArray();S.sort(ye.STATE_ALT_SORT_COMPARATOR);let C=!E.dipsIntoOuterContext,P=new l.BitSet,R=S[0].alt;P.set(R);let I=S[0].state.nonStopStateNumber;for(let L of S){let H=L.state.nonStopStateNumber;if(H!==I){if(L.alt!==R)return;I=H}}let M;if(C){I=S[0].state.nonStopStateNumber,M=new l.BitSet;let L=R;for(let X of S){if(X.state.nonStopStateNumber!==I)break;let Y=X.alt;M.set(Y),L=Y}I=S[0].state.nonStopStateNumber;let H=R;for(let X of S){let Y=X.state.nonStopStateNumber,re=X.alt;if(Y!==I){if(H!==L){C=!1;break}I=Y,H=R}else if(re!==H){if(re!==M.nextSetBit(H+1)){C=!1;break}H=re}}}I=S[0].state.nonStopStateNumber;let W=0,G=0,w=S[0].context;for(let L=1;L<S.length;L++){let H=S[L];if(H.alt!==R||H.state.nonStopStateNumber!==I)break;G=L,w=A.join(w,S[L].context)}for(let L=G+1;L<S.length;L++){let H=S[L],X=H.state;if(P.set(H.alt),X.nonStopStateNumber!==I){I=X.nonStopStateNumber,W=L,G=L,w=H.context;for(let se=W+1;se<S.length;se++){let me=S[se];if(me.alt!==R||me.state.nonStopStateNumber!==I)break;G=se,w=A.join(w,me.context)}L=G;continue}let Y=H.context,re=H.alt,q=L;for(let se=q+1;se<S.length;se++){let me=S[se];if(me.alt!==re||me.state.nonStopStateNumber!==I)break;q=se,Y=A.join(Y,me.context)}L=q;let $=A.join(w,Y);if(!w.equals($))return;C=C&&w.equals(Y)}return new f.ConflictInfo(P,C)}getConflictingAltsFromConfigSet(E){let A=E.conflictingAlts;return A==null&&E.uniqueAlt!==r.ATN.INVALID_ALT_NUMBER&&(A=new l.BitSet,A.set(E.uniqueAlt)),A}getTokenName(E){if(E===he.Token.EOF)return"EOF";let S=(this._parser!=null?this._parser.vocabulary:Ee.VocabularyImpl.EMPTY_VOCABULARY).getDisplayName(E);return S===String(E)?S:S+"<"+E+">"}getLookaheadName(E){return this.getTokenName(E.LA(1))}dumpDeadEndConfigs(E){console.log("dead end configs: ");let A=E.deadEndConfigs;if(A)for(let S of A){let C="no edges";if(S.state.numberOfOptimizedTransitions>0){let P=S.state.getOptimizedTransition(0);P instanceof o.AtomTransition?C="Atom "+this.getTokenName(P._label):P instanceof ie.SetTransition&&(C=(P instanceof v.NotSetTransition?"~":"")+"Set "+P.set.toString())}console.log(S.toString(this._parser,!0)+":"+C)}}noViableAlt(E,A,S,C){return new N.NoViableAltException(this._parser,E,E.get(C),E.LT(1),S,A)}getUniqueAlt(E){let A=r.ATN.INVALID_ALT_NUMBER;for(let S of E)if(A===r.ATN.INVALID_ALT_NUMBER)A=S.alt;else if(S.alt!==A)return r.ATN.INVALID_ALT_NUMBER;return A}configWithAltAtStopState(E,A){for(let S of E)if(S.alt===A&&S.state instanceof z.RuleStopState)return!0;return!1}addDFAEdge(E,A,S,C,P,R){le(C==null||C.isEmpty||E.isContextSensitive);let I=A,M=this.addDFAState(E,P,R);if(C!=null)for(let W of C.toArray()){if(W===O.PredictionContext.EMPTY_FULL_STATE_KEY&&I.configs.isOutermostConfigSet)continue;I.setContextSensitive(this.atn),I.setContextSymbol(S);let G=I.getContextTarget(W);if(G!=null){I=G;continue}G=this.addDFAContextState(E,I.configs,W,R),le(W!==O.PredictionContext.EMPTY_FULL_STATE_KEY||G.configs.isOutermostConfigSet),I.setContextTarget(W,G),I=G}return ye.debug&&console.log("EDGE "+I+" -> "+M+" upon "+this.getTokenName(S)),this.setDFAEdge(I,S,M),ye.debug&&console.log(`DFA=
|
|
77
|
-
`+E.toString(this._parser!=null?this._parser.vocabulary:Ee.VocabularyImpl.EMPTY_VOCABULARY,this._parser!=null?this._parser.ruleNames:void 0)),M}setDFAEdge(E,A,S){E?.setTarget(A,S)}addDFAContextState(E,A,S,C){if(S!==O.PredictionContext.EMPTY_FULL_STATE_KEY){let P=new t.ATNConfigSet;for(let R of A)P.add(R.appendContext(S,C));return this.addDFAState(E,P,C)}else return le(!A.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),A=A.clone(!0),A.isOutermostConfigSet=!0,this.addDFAState(E,A,C)}addDFAState(E,A,S){let C=this.enable_global_context_dfa||!A.isOutermostConfigSet;if(C){A.isReadOnly||A.optimizeConfigs(this);let W=this.createDFAState(E,A),G=E.states.get(W);if(G!=null)return G}A.isReadOnly||A.conflictInfo==null&&(A.conflictInfo=this.isConflicted(A,S));let P=this.createDFAState(E,A.clone(!0)),R=this.atn.getDecisionState(E.decision),I=this.getUniqueAlt(A);if(I!==r.ATN.INVALID_ALT_NUMBER)P.acceptStateInfo=new c.AcceptStateInfo(I);else if(A.conflictingAlts!=null){let W=A.conflictingAlts;W&&(P.acceptStateInfo=new c.AcceptStateInfo(W.nextSetBit(0)))}if(P.isAcceptState&&A.hasSemanticContext&&this.predicateDFAState(P,A,R.numberOfTransitions),!C)return P;let M=E.addState(P);return ye.debug&&M===P&&console.log("adding new DFA state: "+P),M}createDFAState(E,A){return new g.DFAState(A)}reportAttemptingFullContext(E,A,S,C,P){if(ye.debug||ye.retry_debug){let R=m.Interval.of(C,P);console.log("reportAttemptingFullContext decision="+E.decision+":"+S.s0.configs+", input="+this._parser.inputStream.getText(R))}if(this._parser!=null){let R=this._parser.getErrorListenerDispatch();R.reportAttemptingFullContext&&R.reportAttemptingFullContext(this._parser,E,C,P,A,S)}}reportContextSensitivity(E,A,S,C,P){if(ye.debug||ye.retry_debug){let R=m.Interval.of(C,P);console.log("reportContextSensitivity decision="+E.decision+":"+S.s0.configs+", input="+this._parser.inputStream.getText(R))}if(this._parser!=null){let R=this._parser.getErrorListenerDispatch();R.reportContextSensitivity&&R.reportContextSensitivity(this._parser,E,C,P,A,S)}}reportAmbiguity(E,A,S,C,P,R,I){if(ye.debug||ye.retry_debug){let M=m.Interval.of(S,C);console.log("reportAmbiguity "+R+":"+I+", input="+this._parser.inputStream.getText(M))}if(this._parser!=null){let M=this._parser.getErrorListenerDispatch();M.reportAmbiguity&&M.reportAmbiguity(this._parser,E,S,C,P,R,I)}}getReturnState(E){return E.isEmpty?O.PredictionContext.EMPTY_FULL_STATE_KEY:this.atn.states[E.invokingState].transition(0).followState.stateNumber}skipTailCalls(E){if(!this.optimize_tail_calls)return E;for(;!E.isEmpty;){let A=this.atn.states[E.invokingState];if(le(A.numberOfTransitions===1&&A.transition(0).serializationType===3),!A.transition(0).tailCall)break;E=E.parent}return E}get parser(){return this._parser}};return J.debug=!1,J.dfa_debug=!1,J.retry_debug=!1,J.STATE_ALT_SORT_COMPARATOR=(F,E)=>{let A=F.state.nonStopStateNumber-E.state.nonStopStateNumber;return A!==0||(A=F.alt-E.alt,A!==0)?A:0},u([_.NotNull],J.prototype,"predictionMode",void 0),u([_.NotNull],J.prototype,"getPredictionMode",null),u([i(0,_.NotNull)],J.prototype,"setPredictionMode",null),u([_.Override],J.prototype,"reset",null),u([i(0,_.NotNull)],J.prototype,"adaptivePredict",null),u([i(0,_.NotNull),i(1,_.NotNull),i(2,_.NotNull)],J.prototype,"getStartState",null),u([i(0,_.NotNull),i(1,_.NotNull),i(3,_.NotNull)],J.prototype,"execDFA",null),u([i(0,_.NotNull),i(1,_.NotNull),i(3,_.NotNull)],J.prototype,"execATN",null),u([i(0,_.NotNull),i(2,_.NotNull)],J.prototype,"handleNoViableAlt",null),u([i(0,_.NotNull)],J.prototype,"getExistingTargetState",null),u([_.NotNull,i(0,_.NotNull),i(1,_.NotNull)],J.prototype,"computeTargetState",null),u([_.NotNull,i(0,_.NotNull)],J.prototype,"removeAllConfigsNotInRuleStopState",null),u([_.NotNull],J.prototype,"computeStartState",null),u([_.NotNull,i(0,_.NotNull)],J.prototype,"applyPrecedenceFilter",null),u([i(0,_.NotNull),i(1,_.NotNull)],J.prototype,"getReachableTarget",null),u([i(0,_.NotNull),i(1,_.NotNull)],J.prototype,"getPredsForAmbigAlts",null),u([i(0,_.NotNull)],J.prototype,"evalSemanticContext",null),u([i(0,_.NotNull)],J.prototype,"evalSemanticContextImpl",null),u([i(1,_.NotNull),i(4,_.Nullable)],J.prototype,"closure",null),u([i(0,_.NotNull),i(1,_.NotNull),i(2,_.Nullable),i(3,_.NotNull),i(6,_.NotNull)],J.prototype,"closureImpl",null),u([_.NotNull],J.prototype,"getRuleName",null),u([i(0,_.NotNull),i(1,_.NotNull)],J.prototype,"getEpsilonTarget",null),u([_.NotNull,i(0,_.NotNull),i(1,_.NotNull)],J.prototype,"actionTransition",null),u([_.Nullable,i(0,_.NotNull),i(1,_.NotNull)],J.prototype,"precedenceTransition",null),u([_.Nullable,i(0,_.NotNull),i(1,_.NotNull)],J.prototype,"predTransition",null),u([_.NotNull,i(0,_.NotNull),i(1,_.NotNull),i(2,_.Nullable)],J.prototype,"ruleTransition",null),u([i(0,_.NotNull)],J.prototype,"isConflicted",null),u([_.NotNull],J.prototype,"getTokenName",null),u([i(0,_.NotNull)],J.prototype,"dumpDeadEndConfigs",null),u([_.NotNull,i(0,_.NotNull),i(1,_.NotNull),i(2,_.NotNull)],J.prototype,"noViableAlt",null),u([i(0,_.NotNull)],J.prototype,"getUniqueAlt",null),u([i(0,_.NotNull)],J.prototype,"configWithAltAtStopState",null),u([_.NotNull,i(0,_.NotNull),i(1,_.NotNull),i(4,_.NotNull)],J.prototype,"addDFAEdge",null),u([i(0,_.Nullable),i(2,_.Nullable)],J.prototype,"setDFAEdge",null),u([_.NotNull,i(0,_.NotNull),i(1,_.NotNull)],J.prototype,"addDFAContextState",null),u([_.NotNull,i(0,_.NotNull),i(1,_.NotNull)],J.prototype,"addDFAState",null),u([_.NotNull,i(0,_.NotNull),i(1,_.NotNull)],J.prototype,"createDFAState",null),u([i(0,_.NotNull),i(2,_.NotNull)],J.prototype,"reportAttemptingFullContext",null),u([i(0,_.NotNull),i(2,_.NotNull)],J.prototype,"reportContextSensitivity",null),u([i(0,_.NotNull),i(5,_.NotNull),i(6,_.NotNull)],J.prototype,"reportAmbiguity",null),J=u([i(0,_.NotNull)],J),Lt.ParserATNSimulator=J,Lt}var on={},uf;function I0(){if(uf)return on;uf=1;var u=on&&on.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(on,"__esModule",{value:!0}),on.PlusBlockStartState=void 0;const i=Ie(),c=qi(),h=Q();let p=class extends c.BlockStartState{get stateType(){return i.ATNStateType.PLUS_BLOCK_START}};return u([h.Override],p.prototype,"stateType",null),on.PlusBlockStartState=p,on}var sn={},af;function w0(){if(af)return sn;af=1;var u=sn&&sn.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(sn,"__esModule",{value:!0}),sn.PlusLoopbackState=void 0;const i=Ie(),c=Ir(),h=Q();let p=class extends c.DecisionState{get stateType(){return i.ATNStateType.PLUS_LOOP_BACK}};return u([h.Override],p.prototype,"stateType",null),sn.PlusLoopbackState=p,sn}var jt={},lf;function L0(){if(lf)return jt;lf=1;var u=jt&&jt.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o},i=jt&&jt.__param||function(r,n){return function(t,s){n(t,s,r)}};Object.defineProperty(jt,"__esModule",{value:!0}),jt.PrecedencePredicateTransition=void 0;const c=Ps(),h=Q(),p=Ln();let a=class extends c.AbstractPredicateTransition{constructor(n,t){super(n),this.precedence=t}get serializationType(){return 10}get isEpsilon(){return!0}matches(n,t,s){return!1}get predicate(){return new p.SemanticContext.PrecedencePredicate(this.precedence)}toString(){return this.precedence+" >= _p"}};return u([h.Override],a.prototype,"serializationType",null),u([h.Override],a.prototype,"isEpsilon",null),u([h.Override],a.prototype,"matches",null),u([h.Override],a.prototype,"toString",null),a=u([i(0,h.NotNull)],a),jt.PrecedencePredicateTransition=a,jt}var Mt={},cf;function F0(){if(cf)return Mt;cf=1;var u=Mt&&Mt.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o},i=Mt&&Mt.__param||function(r,n){return function(t,s){n(t,s,r)}};Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.RangeTransition=void 0;const c=Vr(),h=Q(),p=lr();let a=class extends p.Transition{constructor(n,t,s){super(n),this.from=t,this.to=s}get serializationType(){return 2}get label(){return c.IntervalSet.of(this.from,this.to)}matches(n,t,s){return n>=this.from&&n<=this.to}toString(){return"'"+String.fromCodePoint(this.from)+"'..'"+String.fromCodePoint(this.to)+"'"}};return u([h.Override],a.prototype,"serializationType",null),u([h.Override,h.NotNull],a.prototype,"label",null),u([h.Override],a.prototype,"matches",null),u([h.Override,h.NotNull],a.prototype,"toString",null),a=u([i(0,h.NotNull)],a),Mt.RangeTransition=a,Mt}var un={},ff;function B0(){if(ff)return un;ff=1;var u=un&&un.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(un,"__esModule",{value:!0}),un.RuleStartState=void 0;const i=rt(),c=Ie(),h=Q();let p=class extends i.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=!1,this.leftFactored=!1}get stateType(){return c.ATNStateType.RULE_START}};return u([h.Override],p.prototype,"stateType",null),un.RuleStartState=p,un}var an={},hf;function j0(){if(hf)return an;hf=1;var u=an&&an.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(an,"__esModule",{value:!0}),an.StarBlockStartState=void 0;const i=Ie(),c=qi(),h=Q();let p=class extends c.BlockStartState{get stateType(){return i.ATNStateType.STAR_BLOCK_START}};return u([h.Override],p.prototype,"stateType",null),an.StarBlockStartState=p,an}var ln={},pf;function M0(){if(pf)return ln;pf=1;var u=ln&&ln.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(ln,"__esModule",{value:!0}),ln.StarLoopbackState=void 0;const i=rt(),c=Ie(),h=Q();let p=class extends i.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return c.ATNStateType.STAR_LOOP_BACK}};return u([h.Override],p.prototype,"stateType",null),ln.StarLoopbackState=p,ln}var cn={},df;function q0(){if(df)return cn;df=1;var u=cn&&cn.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(cn,"__esModule",{value:!0}),cn.TokensStartState=void 0;const i=Ie(),c=Ir(),h=Q();let p=class extends c.DecisionState{get stateType(){return i.ATNStateType.TOKEN_START}};return u([h.Override],p.prototype,"stateType",null),cn.TokensStartState=p,cn}var ui={},xf;function k0(){if(xf)return ui;xf=1;Object.defineProperty(ui,"__esModule",{value:!0}),ui.UUID=void 0;const u=Pe();let i=class Su{constructor(h,p,a,r){this.data=new Uint32Array(4),this.data[0]=h,this.data[1]=p,this.data[2]=a,this.data[3]=r}static fromString(h){if(!/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/.test(h))throw new Error("Incorrectly formatted UUID");let p=h.split("-"),a=parseInt(p[0],16),r=(parseInt(p[1],16)<<16>>>0)+parseInt(p[2],16),n=(parseInt(p[3],16)<<16>>>0)+parseInt(p[4].substr(0,4),16),t=parseInt(p[4].substr(-8),16);return new Su(a,r,n,t)}hashCode(){return u.MurmurHash.hashCode([this.data[0],this.data[1],this.data[2],this.data[3]])}equals(h){return h===this?!0:h instanceof Su?this.data[0]===h.data[0]&&this.data[1]===h.data[1]&&this.data[2]===h.data[2]&&this.data[3]===h.data[3]:!1}toString(){return("00000000"+this.data[0].toString(16)).substr(-8)+"-"+("0000"+(this.data[1]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[1].toString(16)).substr(-4)+"-"+("0000"+(this.data[2]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[2].toString(16)).substr(-4)+("00000000"+this.data[3].toString(16)).substr(-8)}};return ui.UUID=i,ui}var yf;function Hs(){if(yf)return Nt;yf=1;var u=Nt&&Nt.__decorate||function(G,w,L,H){var X=arguments.length,Y=X<3?w:H===null?H=Object.getOwnPropertyDescriptor(w,L):H,re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Y=Reflect.decorate(G,w,L,H);else for(var q=G.length-1;q>=0;q--)(re=G[q])&&(Y=(X<3?re(Y):X>3?re(w,L,Y):re(w,L))||Y);return X>3&&Y&&Object.defineProperty(w,L,Y),Y},i=Nt&&Nt.__param||function(G,w){return function(L,H){w(L,H,G)}};Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.ATNDeserializer=void 0;const c=Dc(),h=cr(),p=At(),a=Rc(),r=Ie(),n=wc(),t=g0(),s=cc(),e=fr(),o=v0(),l=qi(),f=Ir(),d=ac(),g=A0(),x=Vr(),m=hc(),y=T0(),_=E0(),v=S0(),N=N0(),T=b0(),b=C0(),O=O0(),D=R0(),k=Xc(),z=Q(),U=Us(),te=si(),ie=I0(),oe=w0(),he=L0(),Ee=Pl(),le=F0(),Z=B0(),ee=ei(),J=zs(),F=ks(),E=j0(),A=M0(),S=qs(),C=Ne(),P=q0(),R=k0(),I=mc();var M;(function(G){G[G.UNICODE_BMP=0]="UNICODE_BMP",G[G.UNICODE_SMP=1]="UNICODE_SMP"})(M||(M={}));let W=class ue{constructor(w){w===void 0&&(w=a.ATNDeserializationOptions.defaultOptions),this.deserializationOptions=w}static get SERIALIZED_VERSION(){return 3}static isFeatureSupported(w,L){let H=ue.SUPPORTED_UUIDS.findIndex(X=>X.equals(w));return H<0?!1:ue.SUPPORTED_UUIDS.findIndex(X=>X.equals(L))>=H}static getUnicodeDeserializer(w){return w===0?{readUnicode:(L,H)=>ue.toInt(L[H]),size:1}:{readUnicode:(L,H)=>ue.toInt32(L,H),size:2}}deserialize(w){w=w.slice(0);for(let K=1;K<w.length;K++)w[K]=w[K]-2&65535;let L=0,H=ue.toInt(w[L++]);if(H!==ue.SERIALIZED_VERSION){let K=`Could not deserialize ATN with version ${H} (expected ${ue.SERIALIZED_VERSION}).`;throw new Error(K)}let X=ue.toUUID(w,L);if(L+=8,ue.SUPPORTED_UUIDS.findIndex(K=>K.equals(X))<0){let K=`Could not deserialize ATN with UUID ${X} (expected ${ue.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(K)}let Y=ue.isFeatureSupported(ue.ADDED_LEXER_ACTIONS,X),re=ue.toInt(w[L++]),q=ue.toInt(w[L++]),$=new p.ATN(re,q),se=[],me=[],ge=ue.toInt(w[L++]);for(let K=0;K<ge;K++){let fe=ue.toInt(w[L++]);if(fe===r.ATNStateType.INVALID_TYPE){$.addState(new m.InvalidState);continue}let pe=ue.toInt(w[L++]);pe===65535&&(pe=-1);let xe=this.stateFactory(fe,pe);if(fe===r.ATNStateType.LOOP_END){let Se=ue.toInt(w[L++]);se.push([xe,Se])}else if(xe instanceof l.BlockStartState){let Se=ue.toInt(w[L++]);me.push([xe,Se])}$.addState(xe)}for(let K of se)K[0].loopBackState=$.states[K[1]];for(let K of me)K[0].endState=$.states[K[1]];let B=ue.toInt(w[L++]);for(let K=0;K<B;K++){let fe=ue.toInt(w[L++]);$.states[fe].nonGreedy=!0}let V=ue.toInt(w[L++]);for(let K=0;K<V;K++){let fe=ue.toInt(w[L++]);$.states[fe].sll=!0}let ne=ue.toInt(w[L++]);for(let K=0;K<ne;K++){let fe=ue.toInt(w[L++]);$.states[fe].isPrecedenceRule=!0}let ae=ue.toInt(w[L++]);$.grammarType===0&&($.ruleToTokenType=new Int32Array(ae)),$.ruleToStartState=new Array(ae);for(let K=0;K<ae;K++){let fe=ue.toInt(w[L++]),pe=$.states[fe];if(pe.leftFactored=ue.toInt(w[L++])!==0,$.ruleToStartState[K]=pe,$.grammarType===0){let xe=ue.toInt(w[L++]);xe===65535&&(xe=C.Token.EOF),$.ruleToTokenType[K]=xe,ue.isFeatureSupported(ue.ADDED_LEXER_ACTIONS,X)||ue.toInt(w[L++])}}$.ruleToStopState=new Array(ae);for(let K of $.states)K instanceof ee.RuleStopState&&($.ruleToStopState[K.ruleIndex]=K,$.ruleToStartState[K.ruleIndex].stopState=K);let ce=ue.toInt(w[L++]);for(let K=0;K<ce;K++){let fe=ue.toInt(w[L++]);$.modeToStartState.push($.states[fe])}$.modeToDFA=new Array(ce);for(let K=0;K<ce;K++)$.modeToDFA[K]=new d.DFA($.modeToStartState[K]);let _e=[];L=this.deserializeSets(w,L,_e,ue.getUnicodeDeserializer(0)),ue.isFeatureSupported(ue.ADDED_UNICODE_SMP,X)&&(L=this.deserializeSets(w,L,_e,ue.getUnicodeDeserializer(1)));let de=ue.toInt(w[L++]);for(let K=0;K<de;K++){let fe=ue.toInt(w[L]),pe=ue.toInt(w[L+1]),xe=ue.toInt(w[L+2]),Se=ue.toInt(w[L+3]),Me=ue.toInt(w[L+4]),we=ue.toInt(w[L+5]),ze=this.edgeFactory($,xe,fe,pe,Se,Me,we,_e);$.states[fe].addTransition(ze),L+=6}let ve=new h.Array2DHashSet({hashCode:K=>K.stopState^K.returnState^K.outermostPrecedenceReturn,equals:(K,fe)=>K.stopState===fe.stopState&&K.returnState===fe.returnState&&K.outermostPrecedenceReturn===fe.outermostPrecedenceReturn}),Ae=[];for(let K of $.states){let fe=K.ruleIndex>=0&&$.ruleToStartState[K.ruleIndex].leftFactored;for(let pe=0;pe<K.numberOfTransitions;pe++){let xe=K.transition(pe);if(!(xe instanceof J.RuleTransition))continue;let Se=xe;if(!$.ruleToStartState[Se.target.ruleIndex].leftFactored&&fe)continue;let we=-1;$.ruleToStartState[Se.target.ruleIndex].isPrecedenceRule&&Se.precedence===0&&(we=Se.target.ruleIndex);let ze={stopState:Se.target.ruleIndex,returnState:Se.followState.stateNumber,outermostPrecedenceReturn:we};ve.add(ze)&&Ae.push(ze)}}for(let K of Ae){let fe=new g.EpsilonTransition($.states[K.returnState],K.outermostPrecedenceReturn);$.ruleToStopState[K.stopState].addTransition(fe)}for(let K of $.states){if(K instanceof l.BlockStartState){if(K.endState===void 0)throw new Error("IllegalStateException");if(K.endState.startState!==void 0)throw new Error("IllegalStateException");K.endState.startState=K}if(K instanceof oe.PlusLoopbackState){let fe=K;for(let pe=0;pe<fe.numberOfTransitions;pe++){let xe=fe.transition(pe).target;xe instanceof ie.PlusBlockStartState&&(xe.loopBackState=fe)}}else if(K instanceof A.StarLoopbackState){let fe=K;for(let pe=0;pe<fe.numberOfTransitions;pe++){let xe=fe.transition(pe).target;xe instanceof S.StarLoopEntryState&&(xe.loopBackState=fe)}}}let De=ue.toInt(w[L++]);for(let K=1;K<=De;K++){let fe=ue.toInt(w[L++]),pe=$.states[fe];$.decisionToState.push(pe),pe.decision=K-1}if($.grammarType===0)if(Y){$.lexerActions=new Array(ue.toInt(w[L++]));for(let K=0;K<$.lexerActions.length;K++){let fe=ue.toInt(w[L++]),pe=ue.toInt(w[L++]);pe===65535&&(pe=-1);let xe=ue.toInt(w[L++]);xe===65535&&(xe=-1);let Se=this.lexerActionFactory(fe,pe,xe);$.lexerActions[K]=Se}}else{let K=[];for(let fe of $.states)for(let pe=0;pe<fe.numberOfTransitions;pe++){let xe=fe.transition(pe);if(!(xe instanceof c.ActionTransition))continue;let Se=xe.ruleIndex,Me=xe.actionIndex,we=new _.LexerCustomAction(Se,Me);fe.setTransition(pe,new c.ActionTransition(xe.target,Se,K.length,!1)),K.push(we)}$.lexerActions=K}this.markPrecedenceDecisions($),$.decisionToDFA=new Array(De);for(let K=0;K<De;K++)$.decisionToDFA[K]=new d.DFA($.decisionToState[K],K);if(this.deserializationOptions.isVerifyATN&&this.verifyATN($),this.deserializationOptions.isGenerateRuleBypassTransitions&&$.grammarType===1){$.ruleToTokenType=new Int32Array($.ruleToStartState.length);for(let K=0;K<$.ruleToStartState.length;K++)$.ruleToTokenType[K]=$.maxTokenType+K+1;for(let K=0;K<$.ruleToStartState.length;K++){let fe=new t.BasicBlockStartState;fe.ruleIndex=K,$.addState(fe);let pe=new o.BlockEndState;pe.ruleIndex=K,$.addState(pe),fe.endState=pe,$.defineDecisionState(fe),pe.startState=fe;let xe,Se;if($.ruleToStartState[K].isPrecedenceRule){xe=void 0;for(let we of $.states){if(we.ruleIndex!==K||!(we instanceof S.StarLoopEntryState))continue;let ze=we.transition(we.numberOfTransitions-1).target;if(ze instanceof k.LoopEndState&&ze.epsilonOnlyTransitions&&ze.transition(0).target instanceof ee.RuleStopState){xe=we;break}}if(!xe)throw new Error("Couldn't identify final state of the precedence rule prefix section.");Se=xe.loopBackState.transition(0)}else xe=$.ruleToStopState[K];for(let we of $.states)for(let ze=0;ze<we.numberOfTransitions;ze++){let Hi=we.transition(ze);Hi!==Se&&Hi.target===xe&&(Hi.target=pe)}for(;$.ruleToStartState[K].numberOfTransitions>0;){let we=$.ruleToStartState[K].removeTransition($.ruleToStartState[K].numberOfTransitions-1);fe.addTransition(we)}$.ruleToStartState[K].addTransition(new g.EpsilonTransition(fe)),pe.addTransition(new g.EpsilonTransition(xe));let Me=new s.BasicState;$.addState(Me),Me.addTransition(new n.AtomTransition(pe,$.ruleToTokenType[K])),fe.addTransition(new g.EpsilonTransition(Me))}this.deserializationOptions.isVerifyATN&&this.verifyATN($)}if(this.deserializationOptions.isOptimize){for(;;){let K=0;K+=ue.inlineSetRules($),K+=ue.combineChainedEpsilons($);let fe=$.grammarType===0;if(K+=ue.optimizeSets($,fe),K===0)break}this.deserializationOptions.isVerifyATN&&this.verifyATN($)}return ue.identifyTailCalls($),$}deserializeSets(w,L,H,X){let Y=ue.toInt(w[L++]);for(let re=0;re<Y;re++){let q=ue.toInt(w[L]);L++;let $=new x.IntervalSet;H.push($),ue.toInt(w[L++])!==0&&$.add(-1);for(let me=0;me<q;me++){let ge=X.readUnicode(w,L);L+=X.size;let B=X.readUnicode(w,L);L+=X.size,$.add(ge,B)}}return L}markPrecedenceDecisions(w){let L=new Map;for(let H of w.states)if(H instanceof S.StarLoopEntryState&&w.ruleToStartState[H.ruleIndex].isPrecedenceRule){let X=H.transition(H.numberOfTransitions-1).target;X instanceof k.LoopEndState&&X.epsilonOnlyTransitions&&X.transition(0).target instanceof ee.RuleStopState&&(L.set(H.ruleIndex,H),H.precedenceRuleDecision=!0,H.precedenceLoopbackStates=new e.BitSet(w.states.length))}for(let H of L)for(let X of w.ruleToStopState[H[0]].getTransitions())X.serializationType!==1||X.outermostPrecedenceReturn!==-1||H[1].precedenceLoopbackStates.set(X.target.stateNumber)}verifyATN(w){for(let L of w.states)if(this.checkCondition(L!==void 0,"ATN states should not be undefined."),L.stateType!==r.ATNStateType.INVALID_TYPE){if(this.checkCondition(L.onlyHasEpsilonTransitions||L.numberOfTransitions<=1),L instanceof ie.PlusBlockStartState&&this.checkCondition(L.loopBackState!==void 0),L instanceof S.StarLoopEntryState){let H=L;if(this.checkCondition(H.loopBackState!==void 0),this.checkCondition(H.numberOfTransitions===2),H.transition(0).target instanceof E.StarBlockStartState)this.checkCondition(H.transition(1).target instanceof k.LoopEndState),this.checkCondition(!H.nonGreedy);else if(H.transition(0).target instanceof k.LoopEndState)this.checkCondition(H.transition(1).target instanceof E.StarBlockStartState),this.checkCondition(H.nonGreedy);else throw new Error("IllegalStateException")}if(L instanceof A.StarLoopbackState&&(this.checkCondition(L.numberOfTransitions===1),this.checkCondition(L.transition(0).target instanceof S.StarLoopEntryState)),L instanceof k.LoopEndState&&this.checkCondition(L.loopBackState!==void 0),L instanceof Z.RuleStartState&&this.checkCondition(L.stopState!==void 0),L instanceof l.BlockStartState&&this.checkCondition(L.endState!==void 0),L instanceof o.BlockEndState&&this.checkCondition(L.startState!==void 0),L instanceof f.DecisionState){let H=L;this.checkCondition(H.numberOfTransitions<=1||H.decision>=0)}else this.checkCondition(L.numberOfTransitions<=1||L instanceof ee.RuleStopState)}}checkCondition(w,L){if(!w)throw new Error("IllegalStateException: "+L)}static inlineSetRules(w){let L=0,H=new Array(w.ruleToStartState.length);for(let X=0;X<w.ruleToStartState.length;X++){let re=w.ruleToStartState[X];for(;re.onlyHasEpsilonTransitions&&re.numberOfOptimizedTransitions===1&&re.getOptimizedTransition(0).serializationType===1;)re=re.getOptimizedTransition(0).target;if(re.numberOfOptimizedTransitions!==1)continue;let q=re.getOptimizedTransition(0),$=q.target;if(!(q.isEpsilon||!$.onlyHasEpsilonTransitions||$.numberOfOptimizedTransitions!==1||!($.getOptimizedTransition(0).target instanceof ee.RuleStopState)))switch(q.serializationType){case 5:case 2:case 7:H[X]=q;break;case 8:case 9:continue;default:continue}}for(let X of w.states){if(X.ruleIndex<0)continue;let Y;for(let re=0;re<X.numberOfOptimizedTransitions;re++){let q=X.getOptimizedTransition(re);if(!(q instanceof J.RuleTransition)){Y!==void 0&&Y.push(q);continue}let $=q,se=H[$.target.ruleIndex];if(se===void 0){Y!==void 0&&Y.push(q);continue}if(Y===void 0){Y=[];for(let B=0;B<re;B++)Y.push(X.getOptimizedTransition(re))}L++;let me=$.followState,ge=new s.BasicState;switch(ge.setRuleIndex(me.ruleIndex),w.addState(ge),Y.push(new g.EpsilonTransition(ge)),se.serializationType){case 5:ge.addTransition(new n.AtomTransition(me,se._label));break;case 2:ge.addTransition(new le.RangeTransition(me,se.from,se.to));break;case 7:ge.addTransition(new F.SetTransition(me,se.label));break;default:throw new Error("UnsupportedOperationException")}}if(Y!==void 0){if(X.isOptimized)for(;X.numberOfOptimizedTransitions>0;)X.removeOptimizedTransition(X.numberOfOptimizedTransitions-1);for(let re of Y)X.addOptimizedTransition(re)}}return te.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+L+" rule invocations by inlining sets."),L}static combineChainedEpsilons(w){let L=0;for(let H of w.states){if(!H.onlyHasEpsilonTransitions||H instanceof ee.RuleStopState)continue;let X;e:for(let Y=0;Y<H.numberOfOptimizedTransitions;Y++){let re=H.getOptimizedTransition(Y),q=re.target;if(re.serializationType!==1||re.outermostPrecedenceReturn!==-1||q.stateType!==r.ATNStateType.BASIC||!q.onlyHasEpsilonTransitions){X!==void 0&&X.push(re);continue e}for(let $=0;$<q.numberOfOptimizedTransitions;$++)if(q.getOptimizedTransition($).serializationType!==1||q.getOptimizedTransition($).outermostPrecedenceReturn!==-1){X!==void 0&&X.push(re);continue e}if(L++,X===void 0){X=[];for(let $=0;$<Y;$++)X.push(H.getOptimizedTransition($))}for(let $=0;$<q.numberOfOptimizedTransitions;$++){let se=q.getOptimizedTransition($).target;X.push(new g.EpsilonTransition(se))}}if(X!==void 0){if(H.isOptimized)for(;H.numberOfOptimizedTransitions>0;)H.removeOptimizedTransition(H.numberOfOptimizedTransitions-1);for(let Y of X)H.addOptimizedTransition(Y)}}return te.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+L+" transitions by combining chained epsilon transitions."),L}static optimizeSets(w,L){if(L)return 0;let H=0,X=w.decisionToState;for(let Y of X){let re=new x.IntervalSet;for(let B=0;B<Y.numberOfOptimizedTransitions;B++){let V=Y.getOptimizedTransition(B);if(!(V instanceof g.EpsilonTransition)||V.target.numberOfOptimizedTransitions!==1)continue;let ne=V.target.getOptimizedTransition(0);ne.target instanceof o.BlockEndState&&(ne instanceof U.NotSetTransition||(ne instanceof n.AtomTransition||ne instanceof le.RangeTransition||ne instanceof F.SetTransition)&&re.add(B))}if(re.size<=1)continue;let q=[];for(let B=0;B<Y.numberOfOptimizedTransitions;B++)re.contains(B)||q.push(Y.getOptimizedTransition(B));let $=Y.getOptimizedTransition(re.minElement).target.getOptimizedTransition(0).target,se=new x.IntervalSet;for(let B of re.intervals)for(let V=B.a;V<=B.b;V++){let ne=Y.getOptimizedTransition(V).target.getOptimizedTransition(0);if(ne instanceof U.NotSetTransition)throw new Error("Not yet implemented.");se.addAll(ne.label)}let me;if(se.intervals.length===1)if(se.size===1)me=new n.AtomTransition($,se.minElement);else{let B=se.intervals[0];me=new le.RangeTransition($,B.a,B.b)}else me=new F.SetTransition($,se);let ge=new s.BasicState;if(ge.setRuleIndex(Y.ruleIndex),w.addState(ge),ge.addTransition(me),q.push(new g.EpsilonTransition(ge)),H+=Y.numberOfOptimizedTransitions-q.length,Y.isOptimized)for(;Y.numberOfOptimizedTransitions>0;)Y.removeOptimizedTransition(Y.numberOfOptimizedTransitions-1);for(let B of q)Y.addOptimizedTransition(B)}return te.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+H+" paths by collapsing sets."),H}static identifyTailCalls(w){for(let L of w.states){for(let H=0;H<L.numberOfTransitions;H++){let X=L.transition(H);X instanceof J.RuleTransition&&(X.tailCall=this.testTailCall(w,X,!1),X.optimizedTailCall=this.testTailCall(w,X,!0))}if(L.isOptimized)for(let H=0;H<L.numberOfOptimizedTransitions;H++){let X=L.getOptimizedTransition(H);X instanceof J.RuleTransition&&(X.tailCall=this.testTailCall(w,X,!1),X.optimizedTailCall=this.testTailCall(w,X,!0))}}}static testTailCall(w,L,H){if(!H&&L.tailCall||H&&L.optimizedTailCall)return!0;let X=new e.BitSet(w.states.length),Y=[];for(Y.push(L.followState);;){let re=Y.pop();if(!re)break;if(X.get(re.stateNumber)||re instanceof ee.RuleStopState)continue;if(!re.onlyHasEpsilonTransitions)return!1;let q=H?re.numberOfOptimizedTransitions:re.numberOfTransitions;for(let $=0;$<q;$++){let se=H?re.getOptimizedTransition($):re.transition($);if(se.serializationType!==1)return!1;Y.push(se.target)}}return!0}static toInt(w){return w}static toInt32(w,L){return(w[L]|w[L+1]<<16)>>>0}static toUUID(w,L){let H=ue.toInt32(w,L),X=ue.toInt32(w,L+2),Y=ue.toInt32(w,L+4),re=ue.toInt32(w,L+6);return new R.UUID(re,Y,X,H)}edgeFactory(w,L,H,X,Y,re,q,$){let se=w.states[X];switch(L){case 1:return new g.EpsilonTransition(se);case 2:return q!==0?new le.RangeTransition(se,C.Token.EOF,re):new le.RangeTransition(se,Y,re);case 3:return new J.RuleTransition(w.states[Y],re,q,se);case 4:return new Ee.PredicateTransition(se,Y,re,q!==0);case 10:return new he.PrecedencePredicateTransition(se,Y);case 5:return q!==0?new n.AtomTransition(se,C.Token.EOF):new n.AtomTransition(se,Y);case 6:return new c.ActionTransition(se,Y,re,q!==0);case 7:return new F.SetTransition(se,$[Y]);case 8:return new U.NotSetTransition(se,$[Y]);case 9:return new I.WildcardTransition(se)}throw new Error("The specified transition type is not valid.")}stateFactory(w,L){let H;switch(w){case r.ATNStateType.INVALID_TYPE:return new m.InvalidState;case r.ATNStateType.BASIC:H=new s.BasicState;break;case r.ATNStateType.RULE_START:H=new Z.RuleStartState;break;case r.ATNStateType.BLOCK_START:H=new t.BasicBlockStartState;break;case r.ATNStateType.PLUS_BLOCK_START:H=new ie.PlusBlockStartState;break;case r.ATNStateType.STAR_BLOCK_START:H=new E.StarBlockStartState;break;case r.ATNStateType.TOKEN_START:H=new P.TokensStartState;break;case r.ATNStateType.RULE_STOP:H=new ee.RuleStopState;break;case r.ATNStateType.BLOCK_END:H=new o.BlockEndState;break;case r.ATNStateType.STAR_LOOP_BACK:H=new A.StarLoopbackState;break;case r.ATNStateType.STAR_LOOP_ENTRY:H=new S.StarLoopEntryState;break;case r.ATNStateType.PLUS_LOOP_BACK:H=new oe.PlusLoopbackState;break;case r.ATNStateType.LOOP_END:H=new k.LoopEndState;break;default:let X=`The specified state type ${w} is not valid.`;throw new Error(X)}return H.ruleIndex=L,H}lexerActionFactory(w,L,H){switch(w){case 0:return new y.LexerChannelAction(L);case 1:return new _.LexerCustomAction(L,H);case 2:return new v.LexerModeAction(L);case 3:return N.LexerMoreAction.INSTANCE;case 4:return T.LexerPopModeAction.INSTANCE;case 5:return new b.LexerPushModeAction(L);case 6:return O.LexerSkipAction.INSTANCE;case 7:return new D.LexerTypeAction(L);default:let X=`The specified lexer action type ${w} is not valid.`;throw new Error(X)}}};return W.BASE_SERIALIZED_UUID=R.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"),W.ADDED_LEXER_ACTIONS=R.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"),W.ADDED_UNICODE_SMP=R.UUID.fromString("C23FEA89-0605-4f51-AFB8-058BCAB8C91B"),W.SUPPORTED_UUIDS=[W.BASE_SERIALIZED_UUID,W.ADDED_LEXER_ACTIONS,W.ADDED_UNICODE_SMP],W.SERIALIZED_UUID=W.ADDED_UNICODE_SMP,u([z.NotNull],W.prototype,"deserializationOptions",void 0),u([i(0,z.NotNull)],W.prototype,"deserialize",null),u([i(0,z.NotNull)],W.prototype,"markPrecedenceDecisions",null),u([z.NotNull,i(0,z.NotNull)],W.prototype,"edgeFactory",null),Nt.ATNDeserializer=W,Nt}var qt={},_f;function U0(){if(_f)return qt;_f=1;var u=qt&&qt.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s},i=qt&&qt.__param||function(p,a){return function(r,n){a(r,n,p)}};Object.defineProperty(qt,"__esModule",{value:!0}),qt.ParseInfo=void 0;const c=Q();let h=class{constructor(a){this.atnSimulator=a}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let a=this.atnSimulator.getDecisionInfo(),r=[];for(let n=0;n<a.length;n++)a[n].LL_Fallback>0&&r.push(n);return r}getTotalTimeInPrediction(){let a=this.atnSimulator.getDecisionInfo(),r=0;for(let n of a)r+=n.timeInPrediction;return r}getTotalSLLLookaheadOps(){let a=this.atnSimulator.getDecisionInfo(),r=0;for(let n of a)r+=n.SLL_TotalLook;return r}getTotalLLLookaheadOps(){let a=this.atnSimulator.getDecisionInfo(),r=0;for(let n of a)r+=n.LL_TotalLook;return r}getTotalSLLATNLookaheadOps(){let a=this.atnSimulator.getDecisionInfo(),r=0;for(let n of a)r+=n.SLL_ATNTransitions;return r}getTotalLLATNLookaheadOps(){let a=this.atnSimulator.getDecisionInfo(),r=0;for(let n of a)r+=n.LL_ATNTransitions;return r}getTotalATNLookaheadOps(){let a=this.atnSimulator.getDecisionInfo(),r=0;for(let n of a)r+=n.SLL_ATNTransitions,r+=n.LL_ATNTransitions;return r}getDFASize(a){if(a)return this.atnSimulator.atn.decisionToDFA[a].states.size;{let r=0,n=this.atnSimulator.atn.decisionToDFA;for(let t=0;t<n.length;t++)r+=this.getDFASize(t);return r}}};return u([c.NotNull],h.prototype,"getDecisionInfo",null),u([c.NotNull],h.prototype,"getLLDecisions",null),h=u([i(0,c.NotNull)],h),qt.ParseInfo=h,qt}var fn={},mf;function gf(){if(mf)return fn;mf=1;var u=fn&&fn.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s};Object.defineProperty(fn,"__esModule",{value:!0}),fn.ProxyParserErrorListener=void 0;const i=Ms(),c=Q();let h=class extends i.ProxyErrorListener{constructor(a){super(a)}reportAmbiguity(a,r,n,t,s,e,o){this.getDelegates().forEach(l=>{l.reportAmbiguity&&l.reportAmbiguity(a,r,n,t,s,e,o)})}reportAttemptingFullContext(a,r,n,t,s,e){this.getDelegates().forEach(o=>{o.reportAttemptingFullContext&&o.reportAttemptingFullContext(a,r,n,t,s,e)})}reportContextSensitivity(a,r,n,t,s,e){this.getDelegates().forEach(o=>{o.reportContextSensitivity&&o.reportContextSensitivity(a,r,n,t,s,e)})}};return u([c.Override],h.prototype,"reportAmbiguity",null),u([c.Override],h.prototype,"reportAttemptingFullContext",null),u([c.Override],h.prototype,"reportContextSensitivity",null),fn.ProxyParserErrorListener=h,fn}var hn={},Vs={},Ws={},kt={},vf;function z0(){if(vf)return kt;vf=1;Object.defineProperty(kt,"__esModule",{value:!0}),kt.isSupplementaryCodePoint=kt.isLowSurrogate=kt.isHighSurrogate=void 0;function u(h){return h>=55296&&h<=56319}kt.isHighSurrogate=u;function i(h){return h>=56320&&h<=57343}kt.isLowSurrogate=i;function c(h){return h>=65536}return kt.isSupplementaryCodePoint=c,kt}var Af;function Tf(){return Af||(Af=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.CodePointBuffer=void 0;const i=Fe(),c=z0();class h{constructor(a,r){this.buffer=a,this._position=0,this._size=r}static withArray(a){return new h(a,a.length)}get position(){return this._position}set position(a){if(a<0||a>this._size)throw new RangeError;this._position=a}get remaining(){return this._size-this.position}get(a){return this.buffer[a]}array(){return this.buffer.slice(0,this._size)}static builder(a){return new h.Builder(a)}}u.CodePointBuffer=h,(function(p){let a;(function(n){n[n.BYTE=0]="BYTE",n[n.CHAR=1]="CHAR",n[n.INT=2]="INT"})(a||(a={}));class r{constructor(t){this.type=0,this.buffer=new Uint8Array(t),this.prevHighSurrogate=-1,this.position=0}build(){return new p(this.buffer,this.position)}static roundUpToNextPowerOfTwo(t){let s=32-Math.clz32(t-1);return Math.pow(2,s)}ensureRemaining(t){switch(this.type){case 0:if(this.buffer.length-this.position<t){let s=r.roundUpToNextPowerOfTwo(this.buffer.length+t),e=new Uint8Array(s);e.set(this.buffer.subarray(0,this.position),0),this.buffer=e}break;case 1:if(this.buffer.length-this.position<t){let s=r.roundUpToNextPowerOfTwo(this.buffer.length+t),e=new Uint16Array(s);e.set(this.buffer.subarray(0,this.position),0),this.buffer=e}break;case 2:if(this.buffer.length-this.position<t){let s=r.roundUpToNextPowerOfTwo(this.buffer.length+t),e=new Int32Array(s);e.set(this.buffer.subarray(0,this.position),0),this.buffer=e}break}}append(t){this.ensureRemaining(t.length),this.appendArray(t)}appendArray(t){switch(this.type){case 0:this.appendArrayByte(t);break;case 1:this.appendArrayChar(t);break;case 2:this.appendArrayInt(t);break}}appendArrayByte(t){i(this.prevHighSurrogate===-1);let s=t,e=0,o=t.length,l=this.buffer,f=this.position;for(;e<o;){let d=s[e];if(d<=255)l[f]=d;else if(t=t.subarray(e,o),this.position=f,c.isHighSurrogate(d)){this.byteToIntBuffer(t.length),this.appendArrayInt(t);return}else{this.byteToCharBuffer(t.length),this.appendArrayChar(t);return}e++,f++}this.position=f}appendArrayChar(t){i(this.prevHighSurrogate===-1);let s=t,e=0,o=t.length,l=this.buffer,f=this.position;for(;e<o;){let d=s[e];if(!c.isHighSurrogate(d))l[f]=d;else{t=t.subarray(e,o),this.position=f,this.charToIntBuffer(t.length),this.appendArrayInt(t);return}e++,f++}this.position=f}appendArrayInt(t){let s=t,e=0,o=t.length,l=this.buffer,f=this.position;for(;e<o;){let d=s[e];e++,this.prevHighSurrogate!==-1?c.isLowSurrogate(d)?(l[f]=String.fromCharCode(this.prevHighSurrogate,d).codePointAt(0),f++,this.prevHighSurrogate=-1):(l[f]=this.prevHighSurrogate,f++,c.isHighSurrogate(d)?this.prevHighSurrogate=d:(l[f]=d,f++,this.prevHighSurrogate=-1)):c.isHighSurrogate(d)?this.prevHighSurrogate=d:(l[f]=d,f++)}this.prevHighSurrogate!==-1&&(l[f]=this.prevHighSurrogate,f++),this.position=f}byteToCharBuffer(t){let s=new Uint16Array(Math.max(this.position+t,this.buffer.length>>1));s.set(this.buffer.subarray(0,this.position),0),this.type=1,this.buffer=s}byteToIntBuffer(t){let s=new Int32Array(Math.max(this.position+t,this.buffer.length>>2));s.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=s}charToIntBuffer(t){let s=new Int32Array(Math.max(this.position+t,this.buffer.length>>1));s.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=s}}p.Builder=r})(h=u.CodePointBuffer||(u.CodePointBuffer={}))})(Ws)),Ws}var pn={},Ef;function Sf(){if(Ef)return pn;Ef=1;var u=pn&&pn.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(pn,"__esModule",{value:!0}),pn.CodePointCharStream=void 0;const i=Fe(),c=ur(),h=je(),p=Q();let a=class xp{constructor(n,t,s,e){i(t===0),this._array=n,this._size=s,this._name=e,this._position=0}get internalStorage(){return this._array}static fromBuffer(n,t){return(t===void 0||t.length===0)&&(t=c.IntStream.UNKNOWN_SOURCE_NAME),new xp(n.array(),n.position,n.remaining,t)}consume(){if(this._size-this._position===0)throw i(this.LA(1)===c.IntStream.EOF),new RangeError("cannot consume EOF");this._position++}get index(){return this._position}get size(){return this._size}mark(){return-1}release(n){}seek(n){this._position=n}get sourceName(){return this._name}toString(){return this.getText(h.Interval.of(0,this.size-1))}LA(n){let t;switch(Math.sign(n)){case-1:return t=this.index+n,t<0?c.IntStream.EOF:this._array[t];case 0:return 0;case 1:return t=this.index+n-1,t>=this.size?c.IntStream.EOF:this._array[t]}throw new RangeError("Not reached")}getText(n){const t=Math.min(n.a,this.size),s=Math.min(n.b-n.a+1,this.size-t);return this._array instanceof Int32Array?String.fromCodePoint(...Array.from(this._array.subarray(t,t+s))):String.fromCharCode(...Array.from(this._array.subarray(t,t+s)))}};return u([p.Override],a.prototype,"consume",null),u([p.Override],a.prototype,"index",null),u([p.Override],a.prototype,"size",null),u([p.Override],a.prototype,"mark",null),u([p.Override],a.prototype,"release",null),u([p.Override],a.prototype,"seek",null),u([p.Override],a.prototype,"sourceName",null),u([p.Override],a.prototype,"toString",null),u([p.Override],a.prototype,"LA",null),u([p.Override],a.prototype,"getText",null),pn.CodePointCharStream=a,pn}var Nf;function Gs(){return Nf||(Nf=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.CharStreams=void 0;const i=Tf(),c=Sf(),h=ur();(function(p){function a(r,n){(n===void 0||n.length===0)&&(n=h.IntStream.UNKNOWN_SOURCE_NAME);let t=i.CodePointBuffer.builder(r.length),s=new Uint16Array(r.length);for(let e=0;e<r.length;e++)s[e]=r.charCodeAt(e);return t.append(s),c.CodePointCharStream.fromBuffer(t.build(),n)}p.fromString=a})(u.CharStreams||(u.CharStreams={}))})(Vs)),Vs}var Ut={},zt={},bf;function Cf(){if(bf)return zt;bf=1;var u=zt&&zt.__decorate||function(s,e,o,l){var f=arguments.length,d=f<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,o):l,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(s,e,o,l);else for(var x=s.length-1;x>=0;x--)(g=s[x])&&(d=(f<3?g(d):f>3?g(e,o,d):g(e,o))||d);return f>3&&d&&Object.defineProperty(e,o,d),d},i=zt&&zt.__param||function(s,e){return function(o,l){e(o,l,s)}};Object.defineProperty(zt,"__esModule",{value:!0}),zt.BufferedTokenStream=void 0;const c=Fe(),h=Vn(),p=je(),a=hr(),r=Q(),n=Ne();let t=class{constructor(e){if(this.tokens=[],this.p=-1,this.fetchedEOF=!1,e==null)throw new Error("tokenSource cannot be null");this._tokenSource=e}get tokenSource(){return this._tokenSource}set tokenSource(e){this._tokenSource=e,this.tokens.length=0,this.p=-1,this.fetchedEOF=!1}get index(){return this.p}mark(){return 0}release(e){}seek(e){this.lazyInit(),this.p=this.adjustSeekIndex(e)}get size(){return this.tokens.length}consume(){let e;if(this.p>=0?this.fetchedEOF?e=this.p<this.tokens.length-1:e=this.p<this.tokens.length:e=!1,!e&&this.LA(1)===n.Token.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1))}sync(e){c(e>=0);let o=e-this.tokens.length+1;return o>0?this.fetch(o)>=o:!0}fetch(e){if(this.fetchedEOF)return 0;for(let o=0;o<e;o++){let l=this.tokenSource.nextToken();if(this.isWritableToken(l)&&(l.tokenIndex=this.tokens.length),this.tokens.push(l),l.type===n.Token.EOF)return this.fetchedEOF=!0,o+1}return e}get(e){if(e<0||e>=this.tokens.length)throw new RangeError("token index "+e+" out of range 0.."+(this.tokens.length-1));return this.tokens[e]}getRange(e,o){if(e<0||o<0)return[];this.lazyInit();let l=new Array;o>=this.tokens.length&&(o=this.tokens.length-1);for(let f=e;f<=o;f++){let d=this.tokens[f];if(d.type===n.Token.EOF)break;l.push(d)}return l}LA(e){let o=this.LT(e);return o?o.type:n.Token.INVALID_TYPE}tryLB(e){if(!(this.p-e<0))return this.tokens[this.p-e]}LT(e){let o=this.tryLT(e);if(o===void 0)throw new RangeError("requested lookback index out of range");return o}tryLT(e){if(this.lazyInit(),e===0)throw new RangeError("0 is not a valid lookahead index");if(e<0)return this.tryLB(-e);let o=this.p+e-1;return this.sync(o),o>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[o]}adjustSeekIndex(e){return e}lazyInit(){this.p===-1&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}getTokens(e,o,l){if(this.lazyInit(),e===void 0)return c(o===void 0&&l===void 0),this.tokens;if(o===void 0&&(o=this.tokens.length-1),e<0||o>=this.tokens.length||o<0||e>=this.tokens.length)throw new RangeError("start "+e+" or stop "+o+" not in 0.."+(this.tokens.length-1));if(e>o)return[];if(l===void 0)return this.tokens.slice(e,o+1);typeof l=="number"&&(l=new Set().add(l));let f=l,d=this.tokens.slice(e,o+1);return d=d.filter(g=>f.has(g.type)),d}nextTokenOnChannel(e,o){if(this.sync(e),e>=this.size)return this.size-1;let l=this.tokens[e];for(;l.channel!==o;){if(l.type===n.Token.EOF)return e;e++,this.sync(e),l=this.tokens[e]}return e}previousTokenOnChannel(e,o){if(this.sync(e),e>=this.size)return this.size-1;for(;e>=0;){let l=this.tokens[e];if(l.type===n.Token.EOF||l.channel===o)return e;e--}return e}getHiddenTokensToRight(e,o=-1){if(this.lazyInit(),e<0||e>=this.tokens.length)throw new RangeError(e+" not in 0.."+(this.tokens.length-1));let l=this.nextTokenOnChannel(e+1,a.Lexer.DEFAULT_TOKEN_CHANNEL),f,d=e+1;return l===-1?f=this.size-1:f=l,this.filterForChannel(d,f,o)}getHiddenTokensToLeft(e,o=-1){if(this.lazyInit(),e<0||e>=this.tokens.length)throw new RangeError(e+" not in 0.."+(this.tokens.length-1));if(e===0)return[];let l=this.previousTokenOnChannel(e-1,a.Lexer.DEFAULT_TOKEN_CHANNEL);if(l===e-1)return[];let f=l+1,d=e-1;return this.filterForChannel(f,d,o)}filterForChannel(e,o,l){let f=new Array;for(let d=e;d<=o;d++){let g=this.tokens[d];l===-1?g.channel!==a.Lexer.DEFAULT_TOKEN_CHANNEL&&f.push(g):g.channel===l&&f.push(g)}return f}get sourceName(){return this.tokenSource.sourceName}getText(e){e===void 0?e=p.Interval.of(0,this.size-1):e instanceof p.Interval||(e=e.sourceInterval);let o=e.a,l=e.b;if(o<0||l<0)return"";this.fill(),l>=this.tokens.length&&(l=this.tokens.length-1);let f="";for(let d=o;d<=l;d++){let g=this.tokens[d];if(g.type===n.Token.EOF)break;f+=g.text}return f.toString()}getTextFromRange(e,o){return this.isToken(e)&&this.isToken(o)?this.getText(p.Interval.of(e.tokenIndex,o.tokenIndex)):""}fill(){this.lazyInit();const e=1e3;for(;;)if(this.fetch(e)<e)return}isWritableToken(e){return e instanceof h.CommonToken}isToken(e){return e instanceof h.CommonToken}};return u([r.NotNull],t.prototype,"_tokenSource",void 0),u([r.Override],t.prototype,"tokenSource",null),u([r.Override],t.prototype,"index",null),u([r.Override],t.prototype,"mark",null),u([r.Override],t.prototype,"release",null),u([r.Override],t.prototype,"seek",null),u([r.Override],t.prototype,"size",null),u([r.Override],t.prototype,"consume",null),u([r.Override],t.prototype,"get",null),u([r.Override],t.prototype,"LA",null),u([r.NotNull,r.Override],t.prototype,"LT",null),u([r.Override],t.prototype,"sourceName",null),u([r.NotNull,r.Override],t.prototype,"getText",null),u([r.NotNull,r.Override],t.prototype,"getTextFromRange",null),t=u([i(0,r.NotNull)],t),zt.BufferedTokenStream=t,zt}var Of;function Xs(){if(Of)return Ut;Of=1;var u=Ut&&Ut.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o},i=Ut&&Ut.__param||function(r,n){return function(t,s){n(t,s,r)}};Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.CommonTokenStream=void 0;const c=Cf(),h=Q(),p=Ne();let a=class extends c.BufferedTokenStream{constructor(n,t=p.Token.DEFAULT_CHANNEL){super(n),this.channel=t}adjustSeekIndex(n){return this.nextTokenOnChannel(n,this.channel)}tryLB(n){if(this.p-n<0)return;let t=this.p,s=1;for(;s<=n&&t>0;)t=this.previousTokenOnChannel(t-1,this.channel),s++;if(!(t<0))return this.tokens[t]}tryLT(n){if(this.lazyInit(),n===0)throw new RangeError("0 is not a valid lookahead index");if(n<0)return this.tryLB(-n);let t=this.p,s=1;for(;s<n;)this.sync(t+1)&&(t=this.nextTokenOnChannel(t+1,this.channel)),s++;return this.tokens[t]}getNumberOfOnChannelTokens(){let n=0;this.fill();for(let t of this.tokens)if(t.channel===this.channel&&n++,t.type===p.Token.EOF)break;return n}};return u([h.Override],a.prototype,"adjustSeekIndex",null),u([h.Override],a.prototype,"tryLB",null),u([h.Override],a.prototype,"tryLT",null),a=u([i(0,h.NotNull)],a),Ut.CommonTokenStream=a,Ut}var Ht={},Rf;function Pf(){if(Rf)return Ht;Rf=1;var u=Ht&&Ht.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o},i=Ht&&Ht.__param||function(r,n){return function(t,s){n(t,s,r)}};Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.ListTokenSource=void 0;const c=Bs(),h=Q(),p=Ne();let a=class{constructor(n,t){if(this.i=0,this._factory=c.CommonTokenFactory.DEFAULT,n==null)throw new Error("tokens cannot be null");this.tokens=n,this._sourceName=t}get charPositionInLine(){if(this.i<this.tokens.length)return this.tokens[this.i].charPositionInLine;if(this.eofToken!=null)return this.eofToken.charPositionInLine;if(this.tokens.length>0){let n=this.tokens[this.tokens.length-1],t=n.text;if(t!=null){let s=t.lastIndexOf(`
|
|
78
|
-
`);if(s>=0)return t.length-s-1}return
|
|
79
|
-
`&&t++;return t}return 1}get inputStream(){if(this.i<this.tokens.length)return this.tokens[this.i].inputStream;if(this.eofToken!=null)return this.eofToken.inputStream;if(this.tokens.length>0)return this.tokens[this.tokens.length-1].inputStream}get sourceName(){if(this._sourceName)return this._sourceName;let n=this.inputStream;return n!=null?n.sourceName:"List"}set tokenFactory(n){this._factory=n}get tokenFactory(){return this._factory}};return u([h.Override],a.prototype,"charPositionInLine",null),u([h.Override],a.prototype,"nextToken",null),u([h.Override],a.prototype,"line",null),u([h.Override],a.prototype,"inputStream",null),u([h.Override],a.prototype,"sourceName",null),u([h.Override,h.NotNull,i(0,h.NotNull)],a.prototype,"tokenFactory",null),a=u([i(0,h.NotNull)],a),Ht.ListTokenSource=a,Ht}var ai={},Df;function H0(){if(Df)return ai;Df=1;Object.defineProperty(ai,"__esModule",{value:!0}),ai.MultiMap=void 0;let u=class extends Map{constructor(){super()}map(c,h){let p=super.get(c);p||(p=[],super.set(c,p)),p.push(h)}getPairs(){let c=[];return this.forEach((h,p)=>{h.forEach(a=>{c.push([p,a])})}),c}};return ai.MultiMap=u,ai}var li={},If;function wf(){if(If)return li;If=1;Object.defineProperty(li,"__esModule",{value:!0}),li.ParseCancellationException=void 0;let u=class extends Error{constructor(c){super(c.message),this.cause=c,this.stack=c.stack}getCause(){return this.cause}};return li.ParseCancellationException=u,li}var Vt={},dn={},Lf;function Ff(){if(Lf)return dn;Lf=1;var u=dn&&dn.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s};Object.defineProperty(dn,"__esModule",{value:!0}),dn.InterpreterRuleContext=void 0;const i=Q(),c=Ke();let h=class extends c.ParserRuleContext{constructor(a,r,n){n!==void 0?super(r,n):super(),this._ruleIndex=a}get ruleIndex(){return this._ruleIndex}};return u([i.Override],h.prototype,"ruleIndex",null),dn.InterpreterRuleContext=h,dn}var Bf;function jf(){if(Bf)return Vt;Bf=1;var u=Vt&&Vt.__decorate||function(m,y,_,v){var N=arguments.length,T=N<3?y:v===null?v=Object.getOwnPropertyDescriptor(y,_):v,b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(m,y,_,v);else for(var O=m.length-1;O>=0;O--)(b=m[O])&&(T=(N<3?b(T):N>3?b(y,_,T):b(y,_))||T);return N>3&&T&&Object.defineProperty(y,_,T),T},i=Vt&&Vt.__param||function(m,y){return function(_,v){y(_,v,m)}};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.ParserInterpreter=void 0;const c=rt(),h=Ie(),p=fr(),a=Ii(),r=wi(),n=Ff(),t=Xc(),s=Q(),e=Q(),o=di(),l=si(),f=ar(),d=qs(),g=Ne();let x=class Nu extends o.Parser{constructor(y,_,v,N,T){if(super(y instanceof Nu?y.inputStream:T),this._parentContextStack=[],this.overrideDecision=-1,this.overrideDecisionInputIndex=-1,this.overrideDecisionAlt=-1,this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0,y instanceof Nu){let b=y;this._grammarFileName=b._grammarFileName,this._atn=b._atn,this.pushRecursionContextStates=b.pushRecursionContextStates,this._ruleNames=b._ruleNames,this._vocabulary=b._vocabulary,this.interpreter=new l.ParserATNSimulator(this._atn,this)}else{_=_,v=v,N=N,this._grammarFileName=y,this._atn=N,this._ruleNames=v.slice(0),this._vocabulary=_,this.pushRecursionContextStates=new p.BitSet(N.states.length);for(let b of N.states)b instanceof d.StarLoopEntryState&&b.precedenceRuleDecision&&this.pushRecursionContextStates.set(b.stateNumber);this.interpreter=new l.ParserATNSimulator(N,this)}}reset(y){y===void 0?super.reset():super.reset(y),this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0}get atn(){return this._atn}get vocabulary(){return this._vocabulary}get ruleNames(){return this._ruleNames}get grammarFileName(){return this._grammarFileName}parse(y){let _=this._atn.ruleToStartState[y];for(this._rootContext=this.createInterpreterRuleContext(void 0,c.ATNState.INVALID_STATE_NUMBER,y),_.isPrecedenceRule?this.enterRecursionRule(this._rootContext,_.stateNumber,y,0):this.enterRule(this._rootContext,_.stateNumber,y);;){let v=this.atnState;switch(v.stateType){case h.ATNStateType.RULE_STOP:if(this._ctx.isEmpty)if(_.isPrecedenceRule){let N=this._ctx,T=this._parentContextStack.pop();return this.unrollRecursionContexts(T[0]),N}else return this.exitRule(),this._rootContext;this.visitRuleStopState(v);break;default:try{this.visitState(v)}catch(N){if(N instanceof f.RecognitionException)this.state=this._atn.ruleToStopState[v.ruleIndex].stateNumber,this.context.exception=N,this.errorHandler.reportError(this,N),this.recover(N);else throw N}break}}}enterRecursionRule(y,_,v,N){this._parentContextStack.push([this._ctx,y.invokingState]),super.enterRecursionRule(y,_,v,N)}get atnState(){return this._atn.states[this.state]}visitState(y){let _=1;y.numberOfTransitions>1&&(_=this.visitDecisionState(y));let v=y.transition(_-1);switch(v.serializationType){case 1:if(this.pushRecursionContextStates.get(y.stateNumber)&&!(v.target instanceof t.LoopEndState)){let k=this._parentContextStack[this._parentContextStack.length-1],z=this.createInterpreterRuleContext(k[0],k[1],this._ctx.ruleIndex);this.pushNewRecursionContext(z,this._atn.ruleToStartState[y.ruleIndex].stateNumber,this._ctx.ruleIndex)}break;case 5:this.match(v._label);break;case 2:case 7:case 8:v.matches(this._input.LA(1),g.Token.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case 9:this.matchWildcard();break;case 3:let N=v.target,T=N.ruleIndex,b=this.createInterpreterRuleContext(this._ctx,y.stateNumber,T);N.isPrecedenceRule?this.enterRecursionRule(b,N.stateNumber,T,v.precedence):this.enterRule(b,v.target.stateNumber,T);break;case 4:let O=v;if(!this.sempred(this._ctx,O.ruleIndex,O.predIndex))throw new a.FailedPredicateException(this);break;case 6:let D=v;this.action(this._ctx,D.ruleIndex,D.actionIndex);break;case 10:if(!this.precpred(this._ctx,v.precedence)){let k=v.precedence;throw new a.FailedPredicateException(this,`precpred(_ctx, ${k})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=v.target.stateNumber}visitDecisionState(y){let _;this.errorHandler.sync(this);let v=y.decision;return v===this.overrideDecision&&this._input.index===this.overrideDecisionInputIndex&&!this.overrideDecisionReached?(_=this.overrideDecisionAlt,this.overrideDecisionReached=!0):_=this.interpreter.adaptivePredict(this._input,v,this._ctx),_}createInterpreterRuleContext(y,_,v){return new n.InterpreterRuleContext(v,y,_)}visitRuleStopState(y){if(this._atn.ruleToStartState[y.ruleIndex].isPrecedenceRule){let N=this._parentContextStack.pop();this.unrollRecursionContexts(N[0]),this.state=N[1]}else this.exitRule();let v=this._atn.states[this.state].transition(0);this.state=v.followState.stateNumber}addDecisionOverride(y,_,v){this.overrideDecision=y,this.overrideDecisionInputIndex=_,this.overrideDecisionAlt=v}get overrideDecisionRoot(){return this._overrideDecisionRoot}recover(y){let _=this._input.index;if(this.errorHandler.recover(this,y),this._input.index===_){let v=y.getOffendingToken();if(!v)throw new Error("Expected exception to have an offending token");let N=v.tokenSource,T=N!==void 0?N.inputStream:void 0,b={source:N,stream:T};if(y instanceof r.InputMismatchException){let O=y.expectedTokens;if(O===void 0)throw new Error("Expected the exception to provide expected tokens");let D=g.Token.INVALID_TYPE;O.isNil||(D=O.minElement);let k=this.tokenFactory.create(b,D,v.text,g.Token.DEFAULT_CHANNEL,-1,-1,v.line,v.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,k))}else{v.tokenSource;let O=this.tokenFactory.create(b,g.Token.INVALID_TYPE,v.text,g.Token.DEFAULT_CHANNEL,-1,-1,v.line,v.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,O))}}}recoverInline(){return this._errHandler.recoverInline(this)}get rootContext(){return this._rootContext}};return u([s.NotNull],x.prototype,"_vocabulary",void 0),u([e.Override],x.prototype,"reset",null),u([e.Override],x.prototype,"atn",null),u([e.Override],x.prototype,"vocabulary",null),u([e.Override],x.prototype,"ruleNames",null),u([e.Override],x.prototype,"grammarFileName",null),u([e.Override],x.prototype,"enterRecursionRule",null),x=u([i(1,s.NotNull)],x),Vt.ParserInterpreter=x,Vt}var Wt={},Mf;function V0(){if(Mf)return Wt;Mf=1;var u=Wt&&Wt.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s},i=Wt&&Wt.__param||function(p,a){return function(r,n){a(r,n,p)}};Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.ParseTreeMatch=void 0;const c=Q();let h=class{constructor(a,r,n,t){if(!a)throw new Error("tree cannot be null");if(!r)throw new Error("pattern cannot be null");if(!n)throw new Error("labels cannot be null");this._tree=a,this._pattern=r,this._labels=n,this._mismatchedNode=t}get(a){let r=this._labels.get(a);if(!(!r||r.length===0))return r[r.length-1]}getAll(a){const r=this._labels.get(a);return r||[]}get labels(){return this._labels}get mismatchedNode(){return this._mismatchedNode}get succeeded(){return!this._mismatchedNode}get pattern(){return this._pattern}get tree(){return this._tree}toString(){return`Match ${this.succeeded?"succeeded":"failed"}; found ${this.labels.size} labels`}};return u([c.NotNull,i(0,c.NotNull)],h.prototype,"getAll",null),u([c.NotNull],h.prototype,"labels",null),u([c.NotNull],h.prototype,"pattern",null),u([c.NotNull],h.prototype,"tree",null),u([c.Override],h.prototype,"toString",null),h=u([i(0,c.NotNull),i(1,c.NotNull),i(2,c.NotNull)],h),Wt.ParseTreeMatch=h,Wt}var Gt={},ci={},fi={},qf;function W0(){if(qf)return fi;qf=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.XPathLexer=void 0;const u=Hs(),i=hr(),c=Mi(),h=Mr(),p=ut();let a=class Ue extends i.Lexer{constructor(n){super(n),this._interp=new c.LexerATNSimulator(Ue._ATN,this)}get vocabulary(){return Ue.VOCABULARY}get grammarFileName(){return"XPathLexer.g4"}get ruleNames(){return Ue.ruleNames}get serializedATN(){return Ue._serializedATN}get channelNames(){return Ue.channelNames}get modeNames(){return Ue.modeNames}action(n,t,s){switch(t){case 4:this.ID_action(n,s);break}}ID_action(n,t){switch(t){case 0:let s=this.text;s.charAt(0)===s.charAt(0).toUpperCase()?this.type=Ue.TOKEN_REF:this.type=Ue.RULE_REF;break}}static get _ATN(){return Ue.__ATN||(Ue.__ATN=new u.ATNDeserializer().deserialize(p.toCharArray(Ue._serializedATN))),Ue.__ATN}};return fi.XPathLexer=a,a.TOKEN_REF=1,a.RULE_REF=2,a.ANYWHERE=3,a.ROOT=4,a.WILDCARD=5,a.BANG=6,a.ID=7,a.STRING=8,a.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],a.modeNames=["DEFAULT_MODE"],a.ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"],a._LITERAL_NAMES=[void 0,void 0,void 0,"'//'","'/'","'*'","'!'"],a._SYMBOLIC_NAMES=[void 0,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"],a.VOCABULARY=new h.VocabularyImpl(a._LITERAL_NAMES,a._SYMBOLIC_NAMES,[]),a._serializedATNSegments=2,a._serializedATNSegment0=`줝쪺֍꾺体؇쉁
|
|
75
|
+
`}}let s=t;return s.length===0?"":s}getContextLabel(t){if(t===h.PredictionContext.EMPTY_FULL_STATE_KEY)return"ctx:EMPTY_FULL";if(t===h.PredictionContext.EMPTY_LOCAL_STATE_KEY)return"ctx:EMPTY_LOCAL";if(this.atn&&t>0&&t<=this.atn.states.length){let e=this.atn.states[t].ruleIndex;if(this.ruleNames&&e>=0&&e<this.ruleNames.length)return"ctx:"+String(t)+"("+this.ruleNames[e]+")"}return"ctx:"+String(t)}getEdgeLabel(t){return this.vocabulary.getDisplayName(t)}getStateString(t){if(t===r.ATNSimulator.ERROR)return"ERROR";let s=t.stateNumber,e="s"+s;if(t.isAcceptState&&(t.predicates?e=":s"+s+"=>"+t.predicates:e=":s"+s+"=>"+t.prediction),t.isContextSensitive){e+="*";for(let o of t.configs)if(o.reachesIntoOuterContext){e+="*";break}}return e}};return u([c.NotNull],n.prototype,"dfa",void 0),u([c.NotNull],n.prototype,"vocabulary",void 0),u([c.Override],n.prototype,"toString",null),wr.DFASerializer=n,wr}var yt={},uc;function m0(){if(uc)return yt;uc=1;var u=yt&&yt.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o},r=yt&&yt.__param||function(n,i){return function(t,s){i(t,s,n)}};Object.defineProperty(yt,"__esModule",{value:!0}),yt.LexerDFASerializer=void 0;const c=sc(),h=Q(),p=Mr();let a=class extends c.DFASerializer{constructor(i){super(i,p.VocabularyImpl.EMPTY_VOCABULARY)}getEdgeLabel(i){return"'"+String.fromCodePoint(i)+"'"}};return u([h.Override,h.NotNull],a.prototype,"getEdgeLabel",null),a=u([r(0,h.NotNull)],a),yt.LexerDFASerializer=a,yt}var qr={},ac;function qs(){if(ac)return qr;ac=1;var u=qr&&qr.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o};Object.defineProperty(qr,"__esModule",{value:!0}),qr.StarLoopEntryState=void 0;const r=Ie(),c=fr(),h=Ir(),p=Q();let a=class extends h.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=!1,this.precedenceLoopbackStates=new c.BitSet}get stateType(){return r.ATNStateType.STAR_LOOP_ENTRY}};return u([p.Override],a.prototype,"stateType",null),qr.StarLoopEntryState=a,qr}var lc;function cc(){if(lc)return ht;lc=1;var u=ht&&ht.__decorate||function(l,f,d,g){var x=arguments.length,m=x<3?f:g===null?g=Object.getOwnPropertyDescriptor(f,d):g,y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(l,f,d,g);else for(var _=l.length-1;_>=0;_--)(y=l[_])&&(m=(x<3?y(m):x>3?y(f,d,m):y(f,d))||m);return x>3&&m&&Object.defineProperty(f,d,m),m},r=ht&&ht.__param||function(l,f){return function(d,g){f(d,g,l)}};Object.defineProperty(ht,"__esModule",{value:!0}),ht.DFA=void 0;const c=cr(),h=Jn(),p=sc(),a=Fi(),n=m0(),i=Q(),t=Ze(),s=qs(),e=Mr();let o=class{constructor(f,d=0){if(this.states=new c.Array2DHashSet(t.ObjectEqualityComparator.INSTANCE),this.nextStateNumber=0,!f.atn)throw new Error("The ATNState must be associated with an ATN");this.atnStartState=f,this.atn=f.atn,this.decision=d;let g=!1;f instanceof s.StarLoopEntryState&&f.precedenceRuleDecision&&(g=!0,this.s0=new a.DFAState(new h.ATNConfigSet),this.s0full=new a.DFAState(new h.ATNConfigSet)),this.precedenceDfa=g}get isPrecedenceDfa(){return this.precedenceDfa}getPrecedenceStartState(f,d){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");return d?this.s0full.getTarget(f):this.s0.getTarget(f)}setPrecedenceStartState(f,d,g){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");f<0||(d?this.s0full.setTarget(f,g):this.s0.setTarget(f,g))}get isEmpty(){return this.isPrecedenceDfa?this.s0.getEdgeMap().size===0&&this.s0full.getEdgeMap().size===0:this.s0==null&&this.s0full==null}get isContextSensitive(){return this.isPrecedenceDfa?this.s0full.getEdgeMap().size>0:this.s0full!=null}addState(f){return f.stateNumber=this.nextStateNumber++,this.states.getOrAdd(f)}toString(f,d){if(f||(f=e.VocabularyImpl.EMPTY_VOCABULARY),!this.s0)return"";let g;return d?g=new p.DFASerializer(this,f,d,this.atnStartState.atn):g=new p.DFASerializer(this,f),g.toString()}toLexerString(){return this.s0?new n.LexerDFASerializer(this).toString():""}};return u([i.NotNull],o.prototype,"states",void 0),u([i.NotNull],o.prototype,"atnStartState",void 0),u([i.NotNull],o.prototype,"atn",void 0),o=u([r(0,i.NotNull)],o),ht.DFA=o,ht}var kr={},Ur={},fc;function hc(){if(fc)return Ur;fc=1;var u=Ur&&Ur.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.BasicState=void 0;const r=nt(),c=Ie(),h=Q();let p=class extends r.ATNState{get stateType(){return c.ATNStateType.BASIC}};return u([h.Override],p.prototype,"stateType",null),Ur.BasicState=p,Ur}var pc;function dc(){if(pc)return kr;pc=1;var u=kr&&kr.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(kr,"__esModule",{value:!0}),kr.InvalidState=void 0;const r=Ie(),c=hc(),h=Q();let p=class extends c.BasicState{get stateType(){return r.ATNStateType.INVALID_TYPE}};return u([h.Override],p.prototype,"stateType",null),kr.InvalidState=p,kr}var _t={},mt={},gt={},xc;function ks(){if(xc)return gt;xc=1;var u=gt&>.__decorate||function(i,t,s,e){var o=arguments.length,l=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(i,t,s,e);else for(var d=i.length-1;d>=0;d--)(f=i[d])&&(l=(o<3?f(l):o>3?f(t,s,l):f(t,s))||l);return o>3&&l&&Object.defineProperty(t,s,l),l},r=gt&>.__param||function(i,t){return function(s,e){t(s,e,i)}};Object.defineProperty(gt,"__esModule",{value:!0}),gt.SetTransition=void 0;const c=Vr(),h=Q(),p=Ce(),a=lr();let n=class extends a.Transition{constructor(t,s){super(t),s==null&&(s=c.IntervalSet.of(p.Token.INVALID_TYPE)),this.set=s}get serializationType(){return 7}get label(){return this.set}matches(t,s,e){return this.set.contains(t)}toString(){return this.set.toString()}};return u([h.NotNull],n.prototype,"set",void 0),u([h.Override],n.prototype,"serializationType",null),u([h.Override,h.NotNull],n.prototype,"label",null),u([h.Override],n.prototype,"matches",null),u([h.Override,h.NotNull],n.prototype,"toString",null),n=u([r(0,h.NotNull),r(1,h.Nullable)],n),gt.SetTransition=n,gt}var yc;function Us(){if(yc)return mt;yc=1;var u=mt&&mt.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=mt&&mt.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(mt,"__esModule",{value:!0}),mt.NotSetTransition=void 0;const c=Q(),h=ks();let p=class extends h.SetTransition{constructor(n,i){super(n,i)}get serializationType(){return 8}matches(n,i,t){return n>=i&&n<=t&&!super.matches(n,i,t)}toString(){return"~"+super.toString()}};return u([c.Override],p.prototype,"serializationType",null),u([c.Override],p.prototype,"matches",null),u([c.Override],p.prototype,"toString",null),p=u([r(0,c.NotNull),r(1,c.Nullable)],p),mt.NotSetTransition=p,mt}var zr={},_c;function ei(){if(_c)return zr;_c=1;var u=zr&&zr.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(zr,"__esModule",{value:!0}),zr.RuleStopState=void 0;const r=nt(),c=Ie(),h=Q();let p=class extends r.ATNState{get nonStopStateNumber(){return-1}get stateType(){return c.ATNStateType.RULE_STOP}};return u([h.Override],p.prototype,"nonStopStateNumber",null),u([h.Override],p.prototype,"stateType",null),zr.RuleStopState=p,zr}var vt={},mc;function zs(){if(mc)return vt;mc=1;var u=vt&&vt.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=vt&&vt.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(vt,"__esModule",{value:!0}),vt.RuleTransition=void 0;const c=Q(),h=lr();let p=class extends h.Transition{constructor(n,i,t,s){super(n),this.tailCall=!1,this.optimizedTailCall=!1,this.ruleIndex=i,this.precedence=t,this.followState=s}get serializationType(){return 3}get isEpsilon(){return!0}matches(n,i,t){return!1}};return u([c.NotNull],p.prototype,"followState",void 0),u([c.Override],p.prototype,"serializationType",null),u([c.Override],p.prototype,"isEpsilon",null),u([c.Override],p.prototype,"matches",null),p=u([r(0,c.NotNull),r(3,c.NotNull)],p),vt.RuleTransition=p,vt}var At={},gc;function vc(){if(gc)return At;gc=1;var u=At&&At.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=At&&At.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(At,"__esModule",{value:!0}),At.WildcardTransition=void 0;const c=Q(),h=lr();let p=class extends h.Transition{constructor(n){super(n)}get serializationType(){return 9}matches(n,i,t){return n>=i&&n<=t}toString(){return"."}};return u([c.Override],p.prototype,"serializationType",null),u([c.Override],p.prototype,"matches",null),u([c.Override,c.NotNull],p.prototype,"toString",null),p=u([r(0,c.NotNull)],p),At.WildcardTransition=p,At}var Ac;function g0(){if(Ac)return _t;Ac=1;var u=_t&&_t.__decorate||function(x,m,y,_){var v=arguments.length,N=v<3?m:_===null?_=Object.getOwnPropertyDescriptor(m,y):_,T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(x,m,y,_);else for(var b=x.length-1;b>=0;b--)(T=x[b])&&(N=(v<3?T(N):v>3?T(m,y,N):T(m,y))||N);return v>3&&N&&Object.defineProperty(m,y,N),N},r=_t&&_t.__param||function(x,m){return function(y,_){m(y,_,x)}};Object.defineProperty(_t,"__esModule",{value:!0}),_t.LL1Analyzer=void 0;const c=Ps(),h=cr(),p=wi(),a=fr(),n=Vr(),i=Q(),t=Us(),s=Ze(),e=$e(),o=ei(),l=zs(),f=Ce(),d=vc();let g=class Su{constructor(m){this.atn=m}getDecisionLookahead(m){if(m==null)return;let y=new Array(m.numberOfTransitions);for(let _=0;_<m.numberOfTransitions;_++){let v=new n.IntervalSet;y[_]=v;let N=new h.Array2DHashSet(s.ObjectEqualityComparator.INSTANCE);this._LOOK(m.transition(_).target,void 0,e.PredictionContext.EMPTY_LOCAL,v,N,new a.BitSet,!1,!1),(v.size===0||v.contains(Su.HIT_PRED))&&(v=void 0,y[_]=v)}return y}LOOK(m,y,_){if(_===void 0){if(m.atn==null)throw new Error("Illegal state");_=m.atn.ruleToStopState[m.ruleIndex]}else _===null&&(_=void 0);let v=new n.IntervalSet;return this._LOOK(m,_,y,v,new h.Array2DHashSet,new a.BitSet,!0,!0),v}_LOOK(m,y,_,v,N,T,b,O){let D=p.ATNConfig.create(m,0,_);if(!N.add(D))return;if(m===y){if(e.PredictionContext.isEmptyLocal(_)){v.add(f.Token.EPSILON);return}else if(_.isEmpty){O&&v.add(f.Token.EOF);return}}if(m instanceof o.RuleStopState){if(_.isEmpty&&!e.PredictionContext.isEmptyLocal(_)){O&&v.add(f.Token.EOF);return}let z=T.get(m.ruleIndex);try{T.clear(m.ruleIndex);for(let U=0;U<_.size;U++){if(_.getReturnState(U)===e.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let te=this.atn.states[_.getReturnState(U)];this._LOOK(te,y,_.getParent(U),v,N,T,b,O)}}finally{z&&T.set(m.ruleIndex)}}let k=m.numberOfTransitions;for(let z=0;z<k;z++){let U=m.transition(z);if(U instanceof l.RuleTransition){if(T.get(U.ruleIndex))continue;let te=_.getChild(U.followState.stateNumber);try{T.set(U.ruleIndex),this._LOOK(U.target,y,te,v,N,T,b,O)}finally{T.clear(U.ruleIndex)}}else if(U instanceof c.AbstractPredicateTransition)b?this._LOOK(U.target,y,_,v,N,T,b,O):v.add(Su.HIT_PRED);else if(U.isEpsilon)this._LOOK(U.target,y,_,v,N,T,b,O);else if(U instanceof d.WildcardTransition)v.addAll(n.IntervalSet.of(f.Token.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));else{let te=U.label;te!=null&&(U instanceof t.NotSetTransition&&(te=te.complement(n.IntervalSet.of(f.Token.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType))),v.addAll(te))}}}};return g.HIT_PRED=f.Token.INVALID_TYPE,u([i.NotNull],g.prototype,"atn",void 0),u([i.NotNull,r(0,i.NotNull),r(1,i.NotNull)],g.prototype,"LOOK",null),u([r(0,i.NotNull),r(2,i.NotNull),r(3,i.NotNull),r(4,i.NotNull),r(5,i.NotNull)],g.prototype,"_LOOK",null),g=u([r(0,i.NotNull)],g),_t.LL1Analyzer=g,_t}var Tc;function Ye(){return Tc||(Tc=1,(function(u){var r=Pr&&Pr.__decorate||function(d,g,x,m){var y=arguments.length,_=y<3?g:m===null?m=Object.getOwnPropertyDescriptor(g,x):m,v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(d,g,x,m);else for(var N=d.length-1;N>=0;N--)(v=d[N])&&(_=(y<3?v(_):y>3?v(g,x,_):v(g,x))||_);return y>3&&_&&Object.defineProperty(g,x,_),_},c=Pr&&Pr.__param||function(d,g){return function(x,m){g(x,m,d)}};Object.defineProperty(u,"__esModule",{value:!0}),u.ATN=void 0;const h=Fn(),p=cc(),a=Vr(),n=dc(),i=g0(),t=Q(),s=Ze(),e=$e(),o=Ce(),l=Fe();let f=class{constructor(g,x){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new h.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.decisionToDFA=[],this.modeToDFA=[],this.LL1Table=new Map,this.grammarType=g,this.maxTokenType=x}clearDFA(){this.decisionToDFA=new Array(this.decisionToState.length);for(let g=0;g<this.decisionToDFA.length;g++)this.decisionToDFA[g]=new p.DFA(this.decisionToState[g],g);this.modeToDFA=new Array(this.modeToStartState.length);for(let g=0;g<this.modeToDFA.length;g++)this.modeToDFA[g]=new p.DFA(this.modeToStartState[g]);this.contextCache.clear(),this.LL1Table.clear()}get contextCacheSize(){return this.contextCache.size}getCachedContext(g){return e.PredictionContext.getCachedContext(g,this.contextCache,new e.PredictionContext.IdentityHashMap)}getDecisionToDFA(){return l(this.decisionToDFA!=null&&this.decisionToDFA.length===this.decisionToState.length),this.decisionToDFA}nextTokens(g,x){return x?new i.LL1Analyzer(this).LOOK(g,x):(g.nextTokenWithinRule||(g.nextTokenWithinRule=this.nextTokens(g,e.PredictionContext.EMPTY_LOCAL),g.nextTokenWithinRule.setReadonly(!0)),g.nextTokenWithinRule)}addState(g){g.atn=this,g.stateNumber=this.states.length,this.states.push(g)}removeState(g){let x=new n.InvalidState;x.atn=this,x.stateNumber=g.stateNumber,this.states[g.stateNumber]=x}defineMode(g,x){this.modeNameToStartState.set(g,x),this.modeToStartState.push(x),this.modeToDFA.push(new p.DFA(x)),this.defineDecisionState(x)}defineDecisionState(g){return this.decisionToState.push(g),g.decision=this.decisionToState.length-1,this.decisionToDFA.push(new p.DFA(g,g.decision)),g.decision}getDecisionState(g){if(this.decisionToState.length>0)return this.decisionToState[g]}get numberOfDecisions(){return this.decisionToState.length}getExpectedTokens(g,x){if(g<0||g>=this.states.length)throw new RangeError("Invalid state number.");let m=x,y=this.states[g],_=this.nextTokens(y);if(!_.contains(o.Token.EPSILON))return _;let v=new a.IntervalSet;for(v.addAll(_),v.remove(o.Token.EPSILON);m!=null&&m.invokingState>=0&&_.contains(o.Token.EPSILON);){let T=this.states[m.invokingState].transition(0);_=this.nextTokens(T.followState),v.addAll(_),v.remove(o.Token.EPSILON),m=m._parent}return _.contains(o.Token.EPSILON)&&v.add(o.Token.EOF),v}};r([t.NotNull],f.prototype,"states",void 0),r([t.NotNull],f.prototype,"decisionToState",void 0),r([t.NotNull],f.prototype,"modeNameToStartState",void 0),r([t.NotNull],f.prototype,"modeToStartState",void 0),r([t.NotNull],f.prototype,"decisionToDFA",void 0),r([t.NotNull],f.prototype,"modeToDFA",void 0),r([t.NotNull],f.prototype,"nextTokens",null),r([c(0,t.NotNull)],f.prototype,"removeState",null),r([c(0,t.NotNull),c(1,t.NotNull)],f.prototype,"defineMode",null),r([c(0,t.NotNull)],f.prototype,"defineDecisionState",null),r([t.NotNull],f.prototype,"getExpectedTokens",null),f=r([c(0,t.NotNull)],f),u.ATN=f,(function(d){d.INVALID_ALT_NUMBER=0})(f=u.ATN||(u.ATN={})),u.ATN=f})(Pr)),Pr}var Tt={},Et={},Ec;function v0(){if(Ec)return Et;Ec=1;var u=Et&&Et.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=Et&&Et.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(Et,"__esModule",{value:!0}),Et.LexerIndexedCustomAction=void 0;const c=Pe(),h=Q();let p=class cp{constructor(n,i){this._offset=n,this._action=i}get offset(){return this._offset}get action(){return this._action}get actionType(){return this._action.actionType}get isPositionDependent(){return!0}execute(n){this._action.execute(n)}hashCode(){let n=c.MurmurHash.initialize();return n=c.MurmurHash.update(n,this._offset),n=c.MurmurHash.update(n,this._action),c.MurmurHash.finish(n,2)}equals(n){return n===this?!0:n instanceof cp?this._offset===n._offset&&this._action.equals(n._action):!1}};return u([h.NotNull],p.prototype,"action",null),u([h.Override],p.prototype,"actionType",null),u([h.Override],p.prototype,"isPositionDependent",null),u([h.Override],p.prototype,"execute",null),u([h.Override],p.prototype,"hashCode",null),u([h.Override],p.prototype,"equals",null),p=u([r(1,h.NotNull)],p),Et.LexerIndexedCustomAction=p,Et}var Sc;function A0(){if(Sc)return Tt;Sc=1;var u=Tt&&Tt.__decorate||function(i,t,s,e){var o=arguments.length,l=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(i,t,s,e);else for(var d=i.length-1;d>=0;d--)(f=i[d])&&(l=(o<3?f(l):o>3?f(t,s,l):f(t,s))||l);return o>3&&l&&Object.defineProperty(t,s,l),l},r=Tt&&Tt.__param||function(i,t){return function(s,e){t(s,e,i)}};Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.LexerActionExecutor=void 0;const c=Di(),h=v0(),p=Pe(),a=Q();let n=class Si{constructor(t){this._lexerActions=t;let s=p.MurmurHash.initialize();for(let e of t)s=p.MurmurHash.update(s,e);this.cachedHashCode=p.MurmurHash.finish(s,t.length)}static append(t,s){if(!t)return new Si([s]);let e=t._lexerActions.slice(0);return e.push(s),new Si(e)}fixOffsetBeforeMatch(t){let s;for(let e=0;e<this._lexerActions.length;e++)this._lexerActions[e].isPositionDependent&&!(this._lexerActions[e]instanceof h.LexerIndexedCustomAction)&&(s||(s=this._lexerActions.slice(0)),s[e]=new h.LexerIndexedCustomAction(t,this._lexerActions[e]));return s?new Si(s):this}get lexerActions(){return this._lexerActions}execute(t,s,e){let o=!1,l=s.index;try{for(let f of this._lexerActions){if(f instanceof h.LexerIndexedCustomAction){let d=f.offset;s.seek(e+d),f=f.action,o=e+d!==l}else f.isPositionDependent&&(s.seek(l),o=!1);f.execute(t)}}finally{o&&s.seek(l)}}hashCode(){return this.cachedHashCode}equals(t){return t===this?!0:t instanceof Si?this.cachedHashCode===t.cachedHashCode&&c.ArrayEqualityComparator.INSTANCE.equals(this._lexerActions,t._lexerActions):!1}};return u([a.NotNull],n.prototype,"_lexerActions",void 0),u([a.NotNull],n.prototype,"lexerActions",null),u([r(0,a.NotNull)],n.prototype,"execute",null),u([a.Override],n.prototype,"hashCode",null),u([a.Override],n.prototype,"equals",null),u([a.NotNull,r(1,a.NotNull)],n,"append",null),n=u([r(0,a.NotNull)],n),Tt.LexerActionExecutor=n,Tt}var St={},Nc;function ji(){if(Nc)return St;Nc=1;var u=St&&St.__decorate||function(i,t,s,e){var o=arguments.length,l=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(i,t,s,e);else for(var d=i.length-1;d>=0;d--)(f=i[d])&&(l=(o<3?f(l):o>3?f(t,s,l):f(t,s))||l);return o>3&&l&&Object.defineProperty(t,s,l),l},r=St&&St.__param||function(i,t){return function(s,e){t(s,e,i)}};Object.defineProperty(St,"__esModule",{value:!0}),St.LexerNoViableAltException=void 0;const c=ar(),h=Q(),p=je(),a=at();let n=class extends c.RecognitionException{constructor(t,s,e,o){super(t,s),this._startIndex=e,this._deadEndConfigs=o}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let t="";return this._startIndex>=0&&this._startIndex<this.inputStream.size&&(t=this.inputStream.getText(p.Interval.of(this._startIndex,this._startIndex)),t=a.escapeWhitespace(t,!1)),`LexerNoViableAltException('${t}')`}};return u([h.Override],n.prototype,"inputStream",null),u([h.Override],n.prototype,"toString",null),n=u([r(1,h.NotNull)],n),St.LexerNoViableAltException=n,St}var Hr={},bc;function T0(){if(bc)return Hr;bc=1;var u=Hr&&Hr.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s};Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.OrderedATNConfigSet=void 0;const r=Jn(),c=Q();let h=class fp extends r.ATNConfigSet{constructor(a,n){a!=null&&n!=null?super(a,n):super()}clone(a){let n=new fp(this,a);return!a&&this.isReadOnly&&n.addAll(this),n}getKey(a){return{state:0,alt:a.hashCode()}}canMerge(a,n,i){return a.equals(i)}};return u([c.Override],h.prototype,"clone",null),u([c.Override],h.prototype,"getKey",null),u([c.Override],h.prototype,"canMerge",null),Hr.OrderedATNConfigSet=h,Hr}var Cc;function Mi(){return Cc||(Cc=1,(function(u){var r=Rr&&Rr.__decorate||function(N,T,b,O){var D=arguments.length,k=D<3?T:O===null?O=Object.getOwnPropertyDescriptor(T,b):O,z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(N,T,b,O);else for(var U=N.length-1;U>=0;U--)(z=N[U])&&(k=(D<3?z(k):D>3?z(T,b,k):z(T,b))||k);return D>3&&k&&Object.defineProperty(T,b,k),k},c=Rr&&Rr.__param||function(N,T){return function(b,O){T(b,O,N)}};Object.defineProperty(u,"__esModule",{value:!0}),u.LexerATNSimulator=void 0;const h=Vl(),p=Ye(),a=wi(),n=Jn(),i=Bi(),t=Fi(),s=je(),e=ur(),o=hr(),l=A0(),f=ji(),d=Q(),g=T0(),x=$e(),m=ei(),y=Ce(),_=Fe();let v=class ke extends i.ATNSimulator{constructor(T,b){super(T),this.optimize_tail_calls=!0,this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=o.Lexer.DEFAULT_MODE,this.prevAccept=new ke.SimState,this.recog=b}copyState(T){this._charPositionInLine=T.charPositionInLine,this._line=T._line,this.mode=T.mode,this.startIndex=T.startIndex}match(T,b){this.mode=b;let O=T.mark();try{this.startIndex=T.index,this.prevAccept.reset();let D=this.atn.modeToDFA[b].s0;return D==null?this.matchATN(T):this.execATN(T,D)}finally{T.release(O)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=o.Lexer.DEFAULT_MODE}matchATN(T){let b=this.atn.modeToStartState[this.mode];ke.debug&&console.log(`matchATN mode ${this.mode} start: ${b}`);let O=this.mode,D=this.computeStartState(T,b),k=D.hasSemanticContext;k&&(D.hasSemanticContext=!1);let z=this.addDFAState(D);if(!k){let te=this.atn.modeToDFA[this.mode];te.s0?z=te.s0:te.s0=z}let U=this.execATN(T,z);return ke.debug&&console.log(`DFA after matchATN: ${this.atn.modeToDFA[O].toLexerString()}`),U}execATN(T,b){ke.debug&&console.log(`start state closure=${b.configs}`),b.isAcceptState&&this.captureSimState(this.prevAccept,T,b);let O=T.LA(1),D=b;for(;;){ke.debug&&console.log(`execATN loop starting closure: ${D.configs}`);let k=this.getExistingTargetState(D,O);if(k==null&&(k=this.computeTargetState(T,D,O)),k===i.ATNSimulator.ERROR||(O!==e.IntStream.EOF&&this.consume(T),k.isAcceptState&&(this.captureSimState(this.prevAccept,T,k),O===e.IntStream.EOF)))break;O=T.LA(1),D=k}return this.failOrAccept(this.prevAccept,T,D.configs,O)}getExistingTargetState(T,b){let O=T.getTarget(b);return ke.debug&&O!=null&&console.log("reuse state "+T.stateNumber+" edge to "+O.stateNumber),O}computeTargetState(T,b,O){let D=new g.OrderedATNConfigSet;return this.getReachableConfigSet(T,b.configs,D,O),D.isEmpty?(D.hasSemanticContext||this.addDFAEdge(b,O,i.ATNSimulator.ERROR),i.ATNSimulator.ERROR):this.addDFAEdge(b,O,D)}failOrAccept(T,b,O,D){if(T.dfaState!=null){let k=T.dfaState.lexerActionExecutor;return this.accept(b,k,this.startIndex,T.index,T.line,T.charPos),T.dfaState.prediction}else{if(D===e.IntStream.EOF&&b.index===this.startIndex)return y.Token.EOF;throw new f.LexerNoViableAltException(this.recog,b,this.startIndex,O)}}getReachableConfigSet(T,b,O,D){let k=p.ATN.INVALID_ALT_NUMBER;for(let z of b){let U=z.alt===k;if(U&&z.hasPassedThroughNonGreedyDecision)continue;ke.debug&&console.log(`testing ${this.getTokenName(D)} at ${z.toString(this.recog,!0)}`);let te=z.state.numberOfOptimizedTransitions;for(let ie=0;ie<te;ie++){let oe=z.state.getOptimizedTransition(ie),he=this.getReachableTarget(oe,D);if(he!=null){let Ee=z.lexerActionExecutor,le;Ee!=null?(Ee=Ee.fixOffsetBeforeMatch(T.index-this.startIndex),le=z.transform(he,!0,Ee)):(_(z.lexerActionExecutor==null),le=z.transform(he,!0));let Z=D===e.IntStream.EOF;if(this.closure(T,le,O,U,!0,Z)){k=z.alt;break}}}}}accept(T,b,O,D,k,z){ke.debug&&console.log(`ACTION ${b}`),T.seek(D),this._line=k,this._charPositionInLine=z,b!=null&&this.recog!=null&&b.execute(this.recog,T,O)}getReachableTarget(T,b){if(T.matches(b,o.Lexer.MIN_CHAR_VALUE,o.Lexer.MAX_CHAR_VALUE))return T.target}computeStartState(T,b){let O=x.PredictionContext.EMPTY_FULL,D=new g.OrderedATNConfigSet;for(let k=0;k<b.numberOfTransitions;k++){let z=b.transition(k).target,U=a.ATNConfig.create(z,k+1,O);this.closure(T,U,D,!1,!1,!1)}return D}closure(T,b,O,D,k,z){if(ke.debug&&console.log("closure("+b.toString(this.recog,!0)+")"),b.state instanceof m.RuleStopState){ke.debug&&(this.recog!=null?console.log(`closure at ${this.recog.ruleNames[b.state.ruleIndex]} rule stop ${b}`):console.log(`closure at rule stop ${b}`));let te=b.context;if(te.isEmpty)return O.add(b),!0;te.hasEmpty&&(O.add(b.transform(b.state,!0,x.PredictionContext.EMPTY_FULL)),D=!0);for(let ie=0;ie<te.size;ie++){let oe=te.getReturnState(ie);if(oe===x.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let he=te.getParent(ie),Ee=this.atn.states[oe],le=b.transform(Ee,!1,he);D=this.closure(T,le,O,D,k,z)}return D}b.state.onlyHasEpsilonTransitions||(!D||!b.hasPassedThroughNonGreedyDecision)&&O.add(b);let U=b.state;for(let te=0;te<U.numberOfOptimizedTransitions;te++){let ie=U.getOptimizedTransition(te),oe=this.getEpsilonTarget(T,b,ie,O,k,z);oe!=null&&(D=this.closure(T,oe,O,D,k,z))}return D}getEpsilonTarget(T,b,O,D,k,z){let U;switch(O.serializationType){case 3:let te=O;if(this.optimize_tail_calls&&te.optimizedTailCall&&!b.context.hasEmpty)U=b.transform(O.target,!0);else{let oe=b.context.getChild(te.followState.stateNumber);U=b.transform(O.target,!0,oe)}break;case 10:throw new Error("Precedence predicates are not supported in lexers.");case 4:let ie=O;ke.debug&&console.log("EVAL rule "+ie.ruleIndex+":"+ie.predIndex),D.hasSemanticContext=!0,this.evaluatePredicate(T,ie.ruleIndex,ie.predIndex,k)?U=b.transform(O.target,!0):U=void 0;break;case 6:if(b.context.hasEmpty){let oe=l.LexerActionExecutor.append(b.lexerActionExecutor,this.atn.lexerActions[O.actionIndex]);U=b.transform(O.target,!0,oe);break}else{U=b.transform(O.target,!0);break}case 1:U=b.transform(O.target,!0);break;case 5:case 2:case 7:if(z&&O.matches(e.IntStream.EOF,o.Lexer.MIN_CHAR_VALUE,o.Lexer.MAX_CHAR_VALUE)){U=b.transform(O.target,!1);break}U=void 0;break;default:U=void 0;break}return U}evaluatePredicate(T,b,O,D){if(this.recog==null)return!0;if(!D)return this.recog.sempred(void 0,b,O);let k=this._charPositionInLine,z=this._line,U=T.index,te=T.mark();try{return this.consume(T),this.recog.sempred(void 0,b,O)}finally{this._charPositionInLine=k,this._line=z,T.seek(U),T.release(te)}}captureSimState(T,b,O){T.index=b.index,T.line=this._line,T.charPos=this._charPositionInLine,T.dfaState=O}addDFAEdge(T,b,O){if(O instanceof n.ATNConfigSet){let D=O.hasSemanticContext;D&&(O.hasSemanticContext=!1);let k=this.addDFAState(O);return D||this.addDFAEdge(T,b,k),k}else ke.debug&&console.log("EDGE "+T+" -> "+O+" upon "+String.fromCharCode(b)),T?.setTarget(b,O)}addDFAState(T){_(!T.hasSemanticContext);let b=new t.DFAState(T),O=this.atn.modeToDFA[this.mode].states.get(b);if(O!=null)return O;T.optimizeConfigs(this);let D=new t.DFAState(T.clone(!0)),k;for(let z of T)if(z.state instanceof m.RuleStopState){k=z;break}if(k!=null){let z=this.atn.ruleToTokenType[k.state.ruleIndex],U=k.lexerActionExecutor;D.acceptStateInfo=new h.AcceptStateInfo(z,U)}return this.atn.modeToDFA[this.mode].addState(D)}getDFA(T){return this.atn.modeToDFA[T]}getText(T){return T.getText(s.Interval.of(this.startIndex,T.index-1))}get line(){return this._line}set line(T){this._line=T}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(T){this._charPositionInLine=T}consume(T){T.LA(1)===10?(this._line++,this._charPositionInLine=0):this._charPositionInLine++,T.consume()}getTokenName(T){return T===-1?"EOF":"'"+String.fromCharCode(T)+"'"}};r([d.NotNull],v.prototype,"prevAccept",void 0),r([c(0,d.NotNull)],v.prototype,"copyState",null),r([c(0,d.NotNull)],v.prototype,"match",null),r([d.Override],v.prototype,"reset",null),r([c(0,d.NotNull)],v.prototype,"matchATN",null),r([c(0,d.NotNull),c(1,d.NotNull)],v.prototype,"execATN",null),r([c(0,d.NotNull)],v.prototype,"getExistingTargetState",null),r([d.NotNull,c(0,d.NotNull),c(1,d.NotNull)],v.prototype,"computeTargetState",null),r([c(0,d.NotNull),c(1,d.NotNull),c(2,d.NotNull)],v.prototype,"getReachableConfigSet",null),r([c(0,d.NotNull)],v.prototype,"accept",null),r([d.NotNull,c(0,d.NotNull),c(1,d.NotNull)],v.prototype,"computeStartState",null),r([c(0,d.NotNull),c(1,d.NotNull),c(2,d.NotNull)],v.prototype,"closure",null),r([c(0,d.NotNull),c(1,d.NotNull),c(2,d.NotNull),c(3,d.NotNull)],v.prototype,"getEpsilonTarget",null),r([c(0,d.NotNull)],v.prototype,"evaluatePredicate",null),r([c(0,d.NotNull),c(1,d.NotNull),c(2,d.NotNull)],v.prototype,"captureSimState",null),r([d.NotNull,c(0,d.NotNull)],v.prototype,"addDFAState",null),r([d.NotNull],v.prototype,"getDFA",null),r([d.NotNull,c(0,d.NotNull)],v.prototype,"getText",null),r([c(0,d.NotNull)],v.prototype,"consume",null),r([d.NotNull],v.prototype,"getTokenName",null),v=r([c(0,d.NotNull)],v),u.LexerATNSimulator=v,(function(N){N.debug=!1,N.dfa_debug=!1;class T{constructor(){this.index=-1,this.line=0,this.charPos=-1}reset(){this.index=-1,this.line=0,this.charPos=-1,this.dfaState=void 0}}N.SimState=T})(v=u.LexerATNSimulator||(u.LexerATNSimulator={})),u.LexerATNSimulator=v})(Rr)),Rr}var Oc;function hr(){if(Oc)return Or;Oc=1;var u=Or&&Or.__decorate||function(o,l,f,d){var g=arguments.length,x=g<3?l:d===null?d=Object.getOwnPropertyDescriptor(l,f):d,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(o,l,f,d);else for(var y=o.length-1;y>=0;y--)(m=o[y])&&(x=(g<3?m(x):g>3?m(l,f,x):m(l,f))||x);return g>3&&x&&Object.defineProperty(l,f,x),x};Object.defineProperty(Or,"__esModule",{value:!0}),Or.Lexer=void 0;const r=Bs(),c=zl(),h=je(),p=ur(),a=Mi(),n=ji(),i=Q(),t=Yn(),s=Ce();let e=class xr extends t.Recognizer{constructor(l){super(),this._factory=r.CommonTokenFactory.DEFAULT,this._tokenStartCharIndex=-1,this._tokenStartLine=0,this._tokenStartCharPositionInLine=0,this._hitEOF=!1,this._channel=0,this._type=0,this._modeStack=new c.IntegerStack,this._mode=xr.DEFAULT_MODE,this._input=l,this._tokenFactorySourcePair={source:this,stream:l}}static get DEFAULT_TOKEN_CHANNEL(){return s.Token.DEFAULT_CHANNEL}static get HIDDEN(){return s.Token.HIDDEN_CHANNEL}reset(l){(l===void 0||l)&&this._input.seek(0),this._token=void 0,this._type=s.Token.INVALID_TYPE,this._channel=s.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartCharPositionInLine=-1,this._tokenStartLine=-1,this._text=void 0,this._hitEOF=!1,this._mode=xr.DEFAULT_MODE,this._modeStack.clear(),this.interpreter.reset()}nextToken(){if(this._input==null)throw new Error("nextToken requires a non-null input stream.");let l=this._input.mark();try{e:for(;;){if(this._hitEOF)return this.emitEOF();this._token=void 0,this._channel=s.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartCharPositionInLine=this.interpreter.charPositionInLine,this._tokenStartLine=this.interpreter.line,this._text=void 0;do{this._type=s.Token.INVALID_TYPE;let f;try{f=this.interpreter.match(this._input,this._mode)}catch(d){if(d instanceof n.LexerNoViableAltException)this.notifyListeners(d),this.recover(d),f=xr.SKIP;else throw d}if(this._input.LA(1)===p.IntStream.EOF&&(this._hitEOF=!0),this._type===s.Token.INVALID_TYPE&&(this._type=f),this._type===xr.SKIP)continue e}while(this._type===xr.MORE);return this._token==null?this.emit():this._token}}finally{this._input.release(l)}}skip(){this._type=xr.SKIP}more(){this._type=xr.MORE}mode(l){this._mode=l}pushMode(l){a.LexerATNSimulator.debug&&console.log("pushMode "+l),this._modeStack.push(this._mode),this.mode(l)}popMode(){if(this._modeStack.isEmpty)throw new Error("EmptyStackException");return a.LexerATNSimulator.debug&&console.log("popMode back to "+this._modeStack.peek()),this.mode(this._modeStack.pop()),this._mode}get tokenFactory(){return this._factory}set tokenFactory(l){this._factory=l}get inputStream(){return this._input}set inputStream(l){this.reset(!1),this._input=l,this._tokenFactorySourcePair={source:this,stream:this._input}}get sourceName(){return this._input.sourceName}emit(l){return l||(l=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.charIndex-1,this._tokenStartLine,this._tokenStartCharPositionInLine)),this._token=l,l}emitEOF(){let l=this.charPositionInLine,f=this.line,d=this._factory.create(this._tokenFactorySourcePair,s.Token.EOF,void 0,s.Token.DEFAULT_CHANNEL,this._input.index,this._input.index-1,f,l);return this.emit(d),d}get line(){return this.interpreter.line}set line(l){this.interpreter.line=l}get charPositionInLine(){return this.interpreter.charPositionInLine}set charPositionInLine(l){this.interpreter.charPositionInLine=l}get charIndex(){return this._input.index}get text(){return this._text!=null?this._text:this.interpreter.getText(this._input)}set text(l){this._text=l}get token(){return this._token}set token(l){this._token=l}set type(l){this._type=l}get type(){return this._type}set channel(l){this._channel=l}get channel(){return this._channel}getAllTokens(){let l=[],f=this.nextToken();for(;f.type!==s.Token.EOF;)l.push(f),f=this.nextToken();return l}notifyListeners(l){let f=this._input.getText(h.Interval.of(this._tokenStartCharIndex,this._input.index)),d="token recognition error at: '"+this.getErrorDisplay(f)+"'",g=this.getErrorListenerDispatch();g.syntaxError&&g.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,d,l)}getErrorDisplay(l){if(typeof l=="number"){switch(l){case s.Token.EOF:return"<EOF>";case 10:return"\\n";case 9:return"\\t";case 13:return"\\r"}return String.fromCharCode(l)}return l.replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}getCharErrorDisplay(l){return"'"+this.getErrorDisplay(l)+"'"}recover(l){l instanceof n.LexerNoViableAltException?this._input.LA(1)!==p.IntStream.EOF&&this.interpreter.consume(this._input):this._input.consume()}};return e.DEFAULT_MODE=0,e.MORE=-2,e.SKIP=-3,e.MIN_CHAR_VALUE=0,e.MAX_CHAR_VALUE=1114111,u([i.Override],e.prototype,"nextToken",null),u([i.Override],e.prototype,"tokenFactory",null),u([i.Override],e.prototype,"inputStream",null),u([i.Override],e.prototype,"sourceName",null),u([i.Override],e.prototype,"line",null),u([i.Override],e.prototype,"charPositionInLine",null),Or.Lexer=e,Or}var Rc;function Vr(){if(Rc)return ct;Rc=1;var u=ct&&ct.__decorate||function(e,o,l,f){var d=arguments.length,g=d<3?o:f===null?f=Object.getOwnPropertyDescriptor(o,l):f,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,o,l,f);else for(var m=e.length-1;m>=0;m--)(x=e[m])&&(g=(d<3?x(g):d>3?x(o,l,g):x(o,l))||g);return d>3&&g&&Object.defineProperty(o,l,g),g},r=ct&&ct.__param||function(e,o){return function(l,f){o(l,f,e)}};Object.defineProperty(ct,"__esModule",{value:!0}),ct.IntervalSet=void 0;const c=Di(),h=ws(),p=je(),a=hr(),n=Pe(),i=Q(),t=Ce();let s=class Te{constructor(o){this.readonly=!1,o!=null?this._intervals=o.slice(0):this._intervals=[]}static get COMPLETE_CHAR_SET(){return Te._COMPLETE_CHAR_SET===void 0&&(Te._COMPLETE_CHAR_SET=Te.of(a.Lexer.MIN_CHAR_VALUE,a.Lexer.MAX_CHAR_VALUE),Te._COMPLETE_CHAR_SET.setReadonly(!0)),Te._COMPLETE_CHAR_SET}static get EMPTY_SET(){return Te._EMPTY_SET==null&&(Te._EMPTY_SET=new Te,Te._EMPTY_SET.setReadonly(!0)),Te._EMPTY_SET}static of(o,l=o){let f=new Te;return f.add(o,l),f}clear(){if(this.readonly)throw new Error("can't alter readonly IntervalSet");this._intervals.length=0}add(o,l=o){this.addRange(p.Interval.of(o,l))}addRange(o){if(this.readonly)throw new Error("can't alter readonly IntervalSet");if(!(o.b<o.a)){for(let l=0;l<this._intervals.length;l++){let f=this._intervals[l];if(o.equals(f))return;if(o.adjacent(f)||!o.disjoint(f)){let d=o.union(f);for(this._intervals[l]=d;l<this._intervals.length-1;){l++;let g=this._intervals[l];if(!d.adjacent(g)&&d.disjoint(g))break;this._intervals.splice(l,1),l--,this._intervals[l]=d.union(g)}return}if(o.startsBeforeDisjoint(f)){this._intervals.splice(l,0,o);return}}this._intervals.push(o)}}static or(o){let l=new Te;for(let f of o)l.addAll(f);return l}addAll(o){if(o==null)return this;if(o instanceof Te){let l=o,f=l._intervals.length;for(let d=0;d<f;d++){let g=l._intervals[d];this.add(g.a,g.b)}}else for(let l of o.toArray())this.add(l);return this}complementRange(o,l){return this.complement(Te.of(o,l))}complement(o){if(o.isNil)return Te.EMPTY_SET;let l;return o instanceof Te?l=o:(l=new Te,l.addAll(o)),l.subtract(this)}subtract(o){if(o==null||o.isNil)return new Te(this._intervals);if(o instanceof Te)return Te.subtract(this,o);let l=new Te;return l.addAll(o),Te.subtract(this,l)}static subtract(o,l){if(o.isNil)return new Te;let f=new Te(o._intervals);if(l.isNil)return f;let d=0,g=0;for(;d<f._intervals.length&&g<l._intervals.length;){let x=f._intervals[d],m=l._intervals[g];if(m.b<x.a){g++;continue}if(m.a>x.b){d++;continue}let y,_;if(m.a>x.a&&(y=new p.Interval(x.a,m.a-1)),m.b<x.b&&(_=new p.Interval(m.b+1,x.b)),y)if(_){f._intervals[d]=y,f._intervals.splice(d+1,0,_),d++,g++;continue}else{f._intervals[d]=y,d++;continue}else if(_){f._intervals[d]=_,g++;continue}else{f._intervals.splice(d,1);continue}}return f}or(o){let l=new Te;return l.addAll(this),l.addAll(o),l}and(o){if(o.isNil)return new Te;let l=this._intervals,f=o._intervals,d,g=l.length,x=f.length,m=0,y=0;for(;m<g&&y<x;){let _=l[m],v=f[y];_.startsBeforeDisjoint(v)?m++:v.startsBeforeDisjoint(_)?y++:_.properlyContains(v)?(d||(d=new Te),d.addRange(_.intersection(v)),y++):v.properlyContains(_)?(d||(d=new Te),d.addRange(_.intersection(v)),m++):_.disjoint(v)||(d||(d=new Te),d.addRange(_.intersection(v)),_.startsAfterNonDisjoint(v)?y++:v.startsAfterNonDisjoint(_)&&m++)}return d||new Te}contains(o){let l=this._intervals.length,f=0,d=l-1;for(;f<=d;){let g=f+d>>1,x=this._intervals[g],m=x.a;if(x.b<o)f=g+1;else if(m>o)d=g-1;else return!0}return!1}get isNil(){return this._intervals==null||this._intervals.length===0}get maxElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[this._intervals.length-1].b}get minElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[0].a}get intervals(){return this._intervals}hashCode(){let o=n.MurmurHash.initialize();for(let l of this._intervals)o=n.MurmurHash.update(o,l.a),o=n.MurmurHash.update(o,l.b);return o=n.MurmurHash.finish(o,this._intervals.length*2),o}equals(o){return o==null||!(o instanceof Te)?!1:c.ArrayEqualityComparator.INSTANCE.equals(this._intervals,o._intervals)}toString(o=!1){let l="";if(this._intervals==null||this._intervals.length===0)return"{}";this.size>1&&(l+="{");let f=!0;for(let d of this._intervals){f?f=!1:l+=", ";let g=d.a,x=d.b;g===x?g===t.Token.EOF?l+="<EOF>":o?l+="'"+String.fromCodePoint(g)+"'":l+=g:o?l+="'"+String.fromCodePoint(g)+"'..'"+String.fromCodePoint(x)+"'":l+=g+".."+x}return this.size>1&&(l+="}"),l}toStringVocabulary(o){if(this._intervals==null||this._intervals.length===0)return"{}";let l="";this.size>1&&(l+="{");let f=!0;for(let d of this._intervals){f?f=!1:l+=", ";let g=d.a,x=d.b;if(g===x)l+=this.elementName(o,g);else for(let m=g;m<=x;m++)m>g&&(l+=", "),l+=this.elementName(o,m)}return this.size>1&&(l+="}"),l}elementName(o,l){return l===t.Token.EOF?"<EOF>":l===t.Token.EPSILON?"<EPSILON>":o.getDisplayName(l)}get size(){let o=0,l=this._intervals.length;if(l===1){let f=this._intervals[0];return f.b-f.a+1}for(let f=0;f<l;f++){let d=this._intervals[f];o+=d.b-d.a+1}return o}toIntegerList(){let o=new h.IntegerList(this.size),l=this._intervals.length;for(let f=0;f<l;f++){let d=this._intervals[f],g=d.a,x=d.b;for(let m=g;m<=x;m++)o.add(m)}return o}toSet(){let o=new Set;for(let l of this._intervals){let f=l.a,d=l.b;for(let g=f;g<=d;g++)o.add(g)}return o}toArray(){let o=new Array,l=this._intervals.length;for(let f=0;f<l;f++){let d=this._intervals[f],g=d.a,x=d.b;for(let m=g;m<=x;m++)o.push(m)}return o}remove(o){if(this.readonly)throw new Error("can't alter readonly IntervalSet");let l=this._intervals.length;for(let f=0;f<l;f++){let d=this._intervals[f],g=d.a,x=d.b;if(o<g)break;if(o===g&&o===x){this._intervals.splice(f,1);break}if(o===g){this._intervals[f]=p.Interval.of(d.a+1,d.b);break}if(o===x){this._intervals[f]=p.Interval.of(d.a,d.b-1);break}if(o>g&&o<x){let m=d.b;this._intervals[f]=p.Interval.of(d.a,o-1),this.add(o+1,m)}}}get isReadonly(){return this.readonly}setReadonly(o){if(this.readonly&&!o)throw new Error("can't alter readonly IntervalSet");this.readonly=o}};return u([i.Override],s.prototype,"addAll",null),u([i.Override],s.prototype,"complement",null),u([i.Override],s.prototype,"subtract",null),u([i.Override],s.prototype,"or",null),u([i.Override],s.prototype,"and",null),u([i.Override],s.prototype,"contains",null),u([i.Override],s.prototype,"isNil",null),u([i.Override],s.prototype,"hashCode",null),u([i.Override],s.prototype,"equals",null),u([r(0,i.NotNull)],s.prototype,"toStringVocabulary",null),u([i.NotNull,r(0,i.NotNull)],s.prototype,"elementName",null),u([i.Override],s.prototype,"size",null),u([i.Override],s.prototype,"remove",null),u([i.NotNull],s,"of",null),u([i.NotNull],s,"subtract",null),ct.IntervalSet=s,ct}var Wr={},Xe={},Gr={},Pc;function Dc(){if(Pc)return Gr;Pc=1;var u=Gr&&Gr.__decorate||function(h,p,a,n){var i=arguments.length,t=i<3?p:n===null?n=Object.getOwnPropertyDescriptor(p,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(h,p,a,n);else for(var e=h.length-1;e>=0;e--)(s=h[e])&&(t=(i<3?s(t):i>3?s(p,a,t):s(p,a))||t);return i>3&&t&&Object.defineProperty(p,a,t),t};Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.ATNDeserializationOptions=void 0;const r=Q();let c=class jn{constructor(p){this.readOnly=!1,p?(this.verifyATN=p.verifyATN,this.generateRuleBypassTransitions=p.generateRuleBypassTransitions,this.optimize=p.optimize):(this.verifyATN=!0,this.generateRuleBypassTransitions=!1,this.optimize=!0)}static get defaultOptions(){return jn._defaultOptions==null&&(jn._defaultOptions=new jn,jn._defaultOptions.makeReadOnly()),jn._defaultOptions}get isReadOnly(){return this.readOnly}makeReadOnly(){this.readOnly=!0}get isVerifyATN(){return this.verifyATN}set isVerifyATN(p){this.throwIfReadOnly(),this.verifyATN=p}get isGenerateRuleBypassTransitions(){return this.generateRuleBypassTransitions}set isGenerateRuleBypassTransitions(p){this.throwIfReadOnly(),this.generateRuleBypassTransitions=p}get isOptimize(){return this.optimize}set isOptimize(p){this.throwIfReadOnly(),this.optimize=p}throwIfReadOnly(){if(this.isReadOnly)throw new Error("The object is read only.")}};return u([r.NotNull],c,"defaultOptions",null),Gr.ATNDeserializationOptions=c,Gr}var Nt={},bt={},Ic;function Lc(){if(Ic)return bt;Ic=1;var u=bt&&bt.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=bt&&bt.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(bt,"__esModule",{value:!0}),bt.ActionTransition=void 0;const c=Q(),h=lr();let p=class extends h.Transition{constructor(n,i,t=-1,s=!1){super(n),this.ruleIndex=i,this.actionIndex=t,this.isCtxDependent=s}get serializationType(){return 6}get isEpsilon(){return!0}matches(n,i,t){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}};return u([c.Override],p.prototype,"serializationType",null),u([c.Override],p.prototype,"isEpsilon",null),u([c.Override],p.prototype,"matches",null),u([c.Override],p.prototype,"toString",null),p=u([r(0,c.NotNull)],p),bt.ActionTransition=p,bt}var Ct={},wc;function Fc(){if(wc)return Ct;wc=1;var u=Ct&&Ct.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o},r=Ct&&Ct.__param||function(n,i){return function(t,s){i(t,s,n)}};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.AtomTransition=void 0;const c=Vr(),h=Q(),p=lr();let a=class extends p.Transition{constructor(i,t){super(i),this._label=t}get serializationType(){return 5}get label(){return c.IntervalSet.of(this._label)}matches(i,t,s){return this._label===i}toString(){return String(this.label)}};return u([h.Override],a.prototype,"serializationType",null),u([h.Override,h.NotNull],a.prototype,"label",null),u([h.Override],a.prototype,"matches",null),u([h.Override,h.NotNull],a.prototype,"toString",null),a=u([r(0,h.NotNull)],a),Ct.AtomTransition=a,Ct}var $r={},ti={},Bc;function qi(){if(Bc)return ti;Bc=1;Object.defineProperty(ti,"__esModule",{value:!0}),ti.BlockStartState=void 0;const u=Ir();let r=class extends u.DecisionState{};return ti.BlockStartState=r,ti}var jc;function E0(){if(jc)return $r;jc=1;var u=$r&&$r.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty($r,"__esModule",{value:!0}),$r.BasicBlockStartState=void 0;const r=Ie(),c=qi(),h=Q();let p=class extends c.BlockStartState{get stateType(){return r.ATNStateType.BLOCK_START}};return u([h.Override],p.prototype,"stateType",null),$r.BasicBlockStartState=p,$r}var Xr={},Mc;function S0(){if(Mc)return Xr;Mc=1;var u=Xr&&Xr.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.BlockEndState=void 0;const r=nt(),c=Ie(),h=Q();let p=class extends r.ATNState{get stateType(){return c.ATNStateType.BLOCK_END}};return u([h.Override],p.prototype,"stateType",null),Xr.BlockEndState=p,Xr}var Ot={},qc;function N0(){if(qc)return Ot;qc=1;var u=Ot&&Ot.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=Ot&&Ot.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.EpsilonTransition=void 0;const c=Q(),h=lr();let p=class extends h.Transition{constructor(n,i=-1){super(n),this._outermostPrecedenceReturn=i}get outermostPrecedenceReturn(){return this._outermostPrecedenceReturn}get serializationType(){return 1}get isEpsilon(){return!0}matches(n,i,t){return!1}toString(){return"epsilon"}};return u([c.Override],p.prototype,"serializationType",null),u([c.Override],p.prototype,"isEpsilon",null),u([c.Override],p.prototype,"matches",null),u([c.Override,c.NotNull],p.prototype,"toString",null),p=u([r(0,c.NotNull)],p),Ot.EpsilonTransition=p,Ot}var Rt={},kc;function b0(){if(kc)return Rt;kc=1;var u=Rt&&Rt.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=Rt&&Rt.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.LexerChannelAction=void 0;const c=Pe(),h=Q();let p=class hp{constructor(n){this._channel=n}get channel(){return this._channel}get actionType(){return 0}get isPositionDependent(){return!1}execute(n){n.channel=this._channel}hashCode(){let n=c.MurmurHash.initialize();return n=c.MurmurHash.update(n,this.actionType),n=c.MurmurHash.update(n,this._channel),c.MurmurHash.finish(n,2)}equals(n){return n===this?!0:n instanceof hp?this._channel===n._channel:!1}toString(){return`channel(${this._channel})`}};return u([h.Override],p.prototype,"actionType",null),u([h.Override],p.prototype,"isPositionDependent",null),u([h.Override,r(0,h.NotNull)],p.prototype,"execute",null),u([h.Override],p.prototype,"hashCode",null),u([h.Override],p.prototype,"equals",null),u([h.Override],p.prototype,"toString",null),Rt.LexerChannelAction=p,Rt}var Pt={},Uc;function C0(){if(Uc)return Pt;Uc=1;var u=Pt&&Pt.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=Pt&&Pt.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.LexerCustomAction=void 0;const c=Pe(),h=Q();let p=class pp{constructor(n,i){this._ruleIndex=n,this._actionIndex=i}get ruleIndex(){return this._ruleIndex}get actionIndex(){return this._actionIndex}get actionType(){return 1}get isPositionDependent(){return!0}execute(n){n.action(void 0,this._ruleIndex,this._actionIndex)}hashCode(){let n=c.MurmurHash.initialize();return n=c.MurmurHash.update(n,this.actionType),n=c.MurmurHash.update(n,this._ruleIndex),n=c.MurmurHash.update(n,this._actionIndex),c.MurmurHash.finish(n,3)}equals(n){return n===this?!0:n instanceof pp?this._ruleIndex===n._ruleIndex&&this._actionIndex===n._actionIndex:!1}};return u([h.Override],p.prototype,"actionType",null),u([h.Override],p.prototype,"isPositionDependent",null),u([h.Override,r(0,h.NotNull)],p.prototype,"execute",null),u([h.Override],p.prototype,"hashCode",null),u([h.Override],p.prototype,"equals",null),Pt.LexerCustomAction=p,Pt}var Dt={},zc;function O0(){if(zc)return Dt;zc=1;var u=Dt&&Dt.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=Dt&&Dt.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.LexerModeAction=void 0;const c=Pe(),h=Q();let p=class dp{constructor(n){this._mode=n}get mode(){return this._mode}get actionType(){return 2}get isPositionDependent(){return!1}execute(n){n.mode(this._mode)}hashCode(){let n=c.MurmurHash.initialize();return n=c.MurmurHash.update(n,this.actionType),n=c.MurmurHash.update(n,this._mode),c.MurmurHash.finish(n,2)}equals(n){return n===this?!0:n instanceof dp?this._mode===n._mode:!1}toString(){return`mode(${this._mode})`}};return u([h.Override],p.prototype,"actionType",null),u([h.Override],p.prototype,"isPositionDependent",null),u([h.Override,r(0,h.NotNull)],p.prototype,"execute",null),u([h.Override],p.prototype,"hashCode",null),u([h.Override],p.prototype,"equals",null),u([h.Override],p.prototype,"toString",null),Dt.LexerModeAction=p,Dt}var Kr={},Hc;function R0(){return Hc||(Hc=1,(function(u){var r=Kr&&Kr.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o},c=Kr&&Kr.__param||function(n,i){return function(t,s){i(t,s,n)}};Object.defineProperty(u,"__esModule",{value:!0}),u.LexerMoreAction=void 0;const h=Pe(),p=Q();let a=class{constructor(){}get actionType(){return 3}get isPositionDependent(){return!1}execute(i){i.more()}hashCode(){let i=h.MurmurHash.initialize();return i=h.MurmurHash.update(i,this.actionType),h.MurmurHash.finish(i,1)}equals(i){return i===this}toString(){return"more"}};r([p.Override],a.prototype,"actionType",null),r([p.Override],a.prototype,"isPositionDependent",null),r([p.Override,c(0,p.NotNull)],a.prototype,"execute",null),r([p.Override],a.prototype,"hashCode",null),r([p.Override],a.prototype,"equals",null),r([p.Override],a.prototype,"toString",null),u.LexerMoreAction=a,(function(n){n.INSTANCE=new n})(a=u.LexerMoreAction||(u.LexerMoreAction={}))})(Kr)),Kr}var Qr={},Vc;function P0(){return Vc||(Vc=1,(function(u){var r=Qr&&Qr.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o},c=Qr&&Qr.__param||function(n,i){return function(t,s){i(t,s,n)}};Object.defineProperty(u,"__esModule",{value:!0}),u.LexerPopModeAction=void 0;const h=Pe(),p=Q();let a=class{constructor(){}get actionType(){return 4}get isPositionDependent(){return!1}execute(i){i.popMode()}hashCode(){let i=h.MurmurHash.initialize();return i=h.MurmurHash.update(i,this.actionType),h.MurmurHash.finish(i,1)}equals(i){return i===this}toString(){return"popMode"}};r([p.Override],a.prototype,"actionType",null),r([p.Override],a.prototype,"isPositionDependent",null),r([p.Override,c(0,p.NotNull)],a.prototype,"execute",null),r([p.Override],a.prototype,"hashCode",null),r([p.Override],a.prototype,"equals",null),r([p.Override],a.prototype,"toString",null),u.LexerPopModeAction=a,(function(n){n.INSTANCE=new n})(a=u.LexerPopModeAction||(u.LexerPopModeAction={}))})(Qr)),Qr}var It={},Wc;function D0(){if(Wc)return It;Wc=1;var u=It&&It.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=It&&It.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(It,"__esModule",{value:!0}),It.LexerPushModeAction=void 0;const c=Pe(),h=Q();let p=class xp{constructor(n){this._mode=n}get mode(){return this._mode}get actionType(){return 5}get isPositionDependent(){return!1}execute(n){n.pushMode(this._mode)}hashCode(){let n=c.MurmurHash.initialize();return n=c.MurmurHash.update(n,this.actionType),n=c.MurmurHash.update(n,this._mode),c.MurmurHash.finish(n,2)}equals(n){return n===this?!0:n instanceof xp?this._mode===n._mode:!1}toString(){return`pushMode(${this._mode})`}};return u([h.Override],p.prototype,"actionType",null),u([h.Override],p.prototype,"isPositionDependent",null),u([h.Override,r(0,h.NotNull)],p.prototype,"execute",null),u([h.Override],p.prototype,"hashCode",null),u([h.Override],p.prototype,"equals",null),u([h.Override],p.prototype,"toString",null),It.LexerPushModeAction=p,It}var Jr={},Gc;function I0(){return Gc||(Gc=1,(function(u){var r=Jr&&Jr.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o},c=Jr&&Jr.__param||function(n,i){return function(t,s){i(t,s,n)}};Object.defineProperty(u,"__esModule",{value:!0}),u.LexerSkipAction=void 0;const h=Pe(),p=Q();let a=class{constructor(){}get actionType(){return 6}get isPositionDependent(){return!1}execute(i){i.skip()}hashCode(){let i=h.MurmurHash.initialize();return i=h.MurmurHash.update(i,this.actionType),h.MurmurHash.finish(i,1)}equals(i){return i===this}toString(){return"skip"}};r([p.Override],a.prototype,"actionType",null),r([p.Override],a.prototype,"isPositionDependent",null),r([p.Override,c(0,p.NotNull)],a.prototype,"execute",null),r([p.Override],a.prototype,"hashCode",null),r([p.Override],a.prototype,"equals",null),r([p.Override],a.prototype,"toString",null),u.LexerSkipAction=a,(function(n){n.INSTANCE=new n})(a=u.LexerSkipAction||(u.LexerSkipAction={}))})(Jr)),Jr}var Lt={},$c;function L0(){if($c)return Lt;$c=1;var u=Lt&&Lt.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=Lt&&Lt.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.LexerTypeAction=void 0;const c=Pe(),h=Q();let p=class yp{constructor(n){this._type=n}get type(){return this._type}get actionType(){return 7}get isPositionDependent(){return!1}execute(n){n.type=this._type}hashCode(){let n=c.MurmurHash.initialize();return n=c.MurmurHash.update(n,this.actionType),n=c.MurmurHash.update(n,this._type),c.MurmurHash.finish(n,2)}equals(n){return n===this?!0:n instanceof yp?this._type===n._type:!1}toString(){return`type(${this._type})`}};return u([h.Override],p.prototype,"actionType",null),u([h.Override],p.prototype,"isPositionDependent",null),u([h.Override,r(0,h.NotNull)],p.prototype,"execute",null),u([h.Override],p.prototype,"hashCode",null),u([h.Override],p.prototype,"equals",null),u([h.Override],p.prototype,"toString",null),Lt.LexerTypeAction=p,Lt}var Zr={},Xc;function Kc(){if(Xc)return Zr;Xc=1;var u=Zr&&Zr.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.LoopEndState=void 0;const r=nt(),c=Ie(),h=Q();let p=class extends r.ATNState{get stateType(){return c.ATNStateType.LOOP_END}};return u([h.Override],p.prototype,"stateType",null),Zr.LoopEndState=p,Zr}var wt={},Yr={},Qc;function w0(){if(Qc)return Yr;Qc=1;var u=Yr&&Yr.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.ConflictInfo=void 0;const r=Q(),c=at();let h=class _p{constructor(a,n){this._conflictedAlts=a,this.exact=n}get conflictedAlts(){return this._conflictedAlts}get isExact(){return this.exact}equals(a){return a===this?!0:a instanceof _p?this.isExact===a.isExact&&c.equals(this.conflictedAlts,a.conflictedAlts):!1}hashCode(){return this.conflictedAlts.hashCode()}};return u([r.Override],h.prototype,"equals",null),u([r.Override],h.prototype,"hashCode",null),Yr.ConflictInfo=h,Yr}var en={},tn={},rn={},Jc;function pr(){if(Jc)return rn;Jc=1;var u=rn&&rn.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(rn,"__esModule",{value:!0}),rn.TerminalNode=void 0;const r=je(),c=Q(),h=Ce();let p=class{constructor(n){this._symbol=n}getChild(n){throw new RangeError("Terminal Node has no children.")}get symbol(){return this._symbol}get parent(){return this._parent}setParent(n){this._parent=n}get payload(){return this._symbol}get sourceInterval(){let n=this._symbol.tokenIndex;return new r.Interval(n,n)}get childCount(){return 0}accept(n){return n.visitTerminal(this)}get text(){return this._symbol.text||""}toStringTree(n){return this.toString()}toString(){return this._symbol.type===h.Token.EOF?"<EOF>":this._symbol.text||""}};return u([c.Override],p.prototype,"getChild",null),u([c.Override],p.prototype,"parent",null),u([c.Override],p.prototype,"setParent",null),u([c.Override],p.prototype,"payload",null),u([c.Override],p.prototype,"sourceInterval",null),u([c.Override],p.prototype,"childCount",null),u([c.Override],p.prototype,"accept",null),u([c.Override],p.prototype,"text",null),u([c.Override],p.prototype,"toStringTree",null),u([c.Override],p.prototype,"toString",null),rn.TerminalNode=p,rn}var Zc;function ri(){if(Zc)return tn;Zc=1;var u=tn&&tn.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s};Object.defineProperty(tn,"__esModule",{value:!0}),tn.ErrorNode=void 0;const r=Q(),c=pr();let h=class extends c.TerminalNode{constructor(a){super(a)}accept(a){return a.visitErrorNode(this)}};return u([r.Override],h.prototype,"accept",null),tn.ErrorNode=h,tn}var nn={},ni={},Yc;function ii(){if(Yc)return ni;Yc=1;Object.defineProperty(ni,"__esModule",{value:!0}),ni.RuleNode=void 0;let u=class{};return ni.RuleNode=u,ni}var Ft={},ef;function dr(){if(ef)return Ft;ef=1;var u=Ft&&Ft.__decorate||function(f,d,g,x){var m=arguments.length,y=m<3?d:x===null?x=Object.getOwnPropertyDescriptor(d,g):x,_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(f,d,g,x);else for(var v=f.length-1;v>=0;v--)(_=f[v])&&(y=(m<3?_(y):m>3?_(d,g,y):_(d,g))||y);return m>3&&y&&Object.defineProperty(d,g,y),y},r=Ft&&Ft.__param||function(f,d){return function(g,x){d(g,x,f)}};Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.Trees=void 0;const c=Ye(),h=Vn(),p=ri(),a=Q(),n=di(),i=Ke(),t=ii(),s=pr(),e=Ce(),o=at();let l=class yr{static toStringTree(d,g){let x;g instanceof n.Parser?x=g.ruleNames:x=g;let m=o.escapeWhitespace(this.getNodeText(d,x),!1);if(d.childCount===0)return m;let y="";y+="(",m=o.escapeWhitespace(this.getNodeText(d,x),!1),y+=m,y+=" ";for(let _=0;_<d.childCount;_++)_>0&&(y+=" "),y+=this.toStringTree(d.getChild(_),x);return y+=")",y}static getNodeText(d,g){let x;if(g instanceof n.Parser)x=g.ruleNames;else if(g)x=g;else{let m=d.payload;return typeof m.text=="string"?m.text:d.payload.toString()}if(d instanceof t.RuleNode){let m=d.ruleContext,y=m.ruleIndex,_=x[y],v=m.altNumber;return v!==c.ATN.INVALID_ALT_NUMBER?_+":"+v:_}else{if(d instanceof p.ErrorNode)return d.toString();if(d instanceof s.TerminalNode)return d.symbol.text||""}throw new TypeError("Unexpected node type")}static getChildren(d){let g=[];for(let x=0;x<d.childCount;x++)g.push(d.getChild(x));return g}static getAncestors(d){let g=[],x=d.parent;for(;x;)g.unshift(x),x=x.parent;return g}static isAncestorOf(d,g){if(!d||!g||!d.parent)return!1;let x=g.parent;for(;x;){if(d===x)return!0;x=x.parent}return!1}static findAllTokenNodes(d,g){return yr.findAllNodes(d,g,!0)}static findAllRuleNodes(d,g){return yr.findAllNodes(d,g,!1)}static findAllNodes(d,g,x){let m=[];return yr._findAllNodes(d,g,x,m),m}static _findAllNodes(d,g,x,m){x&&d instanceof s.TerminalNode?d.symbol.type===g&&m.push(d):!x&&d instanceof i.ParserRuleContext&&d.ruleIndex===g&&m.push(d);for(let y=0;y<d.childCount;y++)yr._findAllNodes(d.getChild(y),g,x,m)}static getDescendants(d){let g=[];function x(m){g.push(m);const y=m.childCount;for(let _=0;_<y;_++)x(m.getChild(_))}return x(d),g}static getRootOfSubtreeEnclosingRegion(d,g,x){let m=d.childCount;for(let y=0;y<m;y++){let _=d.getChild(y),v=yr.getRootOfSubtreeEnclosingRegion(_,g,x);if(v)return v}if(d instanceof i.ParserRuleContext){let y=d.stop;if(g>=d.start.tokenIndex&&(y==null||x<=y.tokenIndex))return d}}static stripChildrenOutOfRange(d,g,x,m){if(!d)return;let y=d.childCount;for(let _=0;_<y;_++){let v=d.getChild(_),N=v.sourceInterval;if(v instanceof i.ParserRuleContext&&(N.b<x||N.a>m)&&yr.isAncestorOf(v,g)){let T=new h.CommonToken(e.Token.INVALID_TYPE,"...");d.children[_]=new s.TerminalNode(T)}}}static findNodeSuchThat(d,g){if(g(d))return d;let x=d.childCount;for(let m=0;m<x;m++){let y=yr.findNodeSuchThat(d.getChild(m),g);if(y!==void 0)return y}}};return u([r(0,a.NotNull)],l,"toStringTree",null),u([a.NotNull,r(0,a.NotNull)],l,"getAncestors",null),u([r(0,a.NotNull)],l,"getRootOfSubtreeEnclosingRegion",null),Ft.Trees=l,Ft}var tf;function rf(){if(tf)return nn;tf=1;var u=nn&&nn.__decorate||function(s,e,o,l){var f=arguments.length,d=f<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,o):l,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(s,e,o,l);else for(var x=s.length-1;x>=0;x--)(g=s[x])&&(d=(f<3?g(d):f>3?g(e,o,d):g(e,o))||d);return f>3&&d&&Object.defineProperty(e,o,d),d};Object.defineProperty(nn,"__esModule",{value:!0}),nn.RuleContext=void 0;const r=Ye(),c=Yn(),h=ii(),p=je(),a=Q(),n=dr(),i=Ke();let t=class mp extends h.RuleNode{constructor(e,o){super(),this._parent=e,this.invokingState=o??-1}static getChildContext(e,o){return new mp(e,o)}depth(){let e=0,o=this;for(;o;)o=o._parent,e++;return e}get isEmpty(){return this.invokingState===-1}get sourceInterval(){return p.Interval.INVALID}get ruleContext(){return this}get parent(){return this._parent}setParent(e){this._parent=e}get payload(){return this}get text(){if(this.childCount===0)return"";let e="";for(let o=0;o<this.childCount;o++)e+=this.getChild(o).text;return e.toString()}get ruleIndex(){return-1}get altNumber(){return r.ATN.INVALID_ALT_NUMBER}set altNumber(e){}getChild(e){throw new RangeError("i must be greater than or equal to 0 and less than childCount")}get childCount(){return 0}accept(e){return e.visitChildren(this)}toStringTree(e){return n.Trees.toStringTree(this,e)}toString(e,o){const l=e instanceof c.Recognizer?e.ruleNames:e;o=o||i.ParserRuleContext.emptyContext();let f="",d=this;for(f+="[";d&&d!==o;){if(!l)d.isEmpty||(f+=d.invokingState);else{let g=d.ruleIndex,x=g>=0&&g<l.length?l[g]:g.toString();f+=x}d._parent&&(l||!d._parent.isEmpty)&&(f+=" "),d=d._parent}return f+="]",f.toString()}};return u([a.Override],t.prototype,"sourceInterval",null),u([a.Override],t.prototype,"ruleContext",null),u([a.Override],t.prototype,"parent",null),u([a.Override],t.prototype,"setParent",null),u([a.Override],t.prototype,"payload",null),u([a.Override],t.prototype,"text",null),u([a.Override],t.prototype,"getChild",null),u([a.Override],t.prototype,"childCount",null),u([a.Override],t.prototype,"accept",null),u([a.Override],t.prototype,"toStringTree",null),nn.RuleContext=t,nn}var nf;function Ke(){if(nf)return en;nf=1;var u=en&&en.__decorate||function(i,t,s,e){var o=arguments.length,l=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(i,t,s,e);else for(var d=i.length-1;d>=0;d--)(f=i[d])&&(l=(o<3?f(l):o>3?f(t,s,l):f(t,s))||l);return o>3&&l&&Object.defineProperty(t,s,l),l};Object.defineProperty(en,"__esModule",{value:!0}),en.ParserRuleContext=void 0;const r=ri(),c=je(),h=Q(),p=rf(),a=pr();let n=class Nu extends p.RuleContext{constructor(t,s){s==null?super():super(t,s)}static emptyContext(){return Nu.EMPTY}copyFrom(t){if(this._parent=t._parent,this.invokingState=t.invokingState,this._start=t._start,this._stop=t._stop,t.children){this.children=[];for(let s of t.children)s instanceof r.ErrorNode&&this.addChild(s)}}enterRule(t){}exitRule(t){}addAnyChild(t){return this.children?this.children.push(t):this.children=[t],t}addChild(t){if(t instanceof a.TerminalNode){t.setParent(this),this.addAnyChild(t);return}else if(t instanceof p.RuleContext){this.addAnyChild(t);return}else return t=new a.TerminalNode(t),this.addAnyChild(t),t.setParent(this),t}addErrorNode(t){if(t instanceof r.ErrorNode){const s=t;return s.setParent(this),this.addAnyChild(s)}else{const s=t;let e=new r.ErrorNode(s);return this.addAnyChild(e),e.setParent(this),e}}removeLastChild(){this.children&&this.children.pop()}get parent(){let t=super.parent;if(t===void 0||t instanceof Nu)return t;throw new TypeError("Invalid parent type for ParserRuleContext")}getChild(t,s){if(!this.children||t<0||t>=this.children.length)throw new RangeError("index parameter must be between >= 0 and <= number of children.");if(s==null)return this.children[t];let e=this.tryGetChild(t,s);if(e===void 0)throw new Error("The specified node does not exist");return e}tryGetChild(t,s){if(!this.children||t<0||t>=this.children.length)return;let e=-1;for(let o of this.children)if(o instanceof s&&(e++,e===t))return o}getToken(t,s){let e=this.tryGetToken(t,s);if(e===void 0)throw new Error("The specified token does not exist");return e}tryGetToken(t,s){if(!this.children||s<0||s>=this.children.length)return;let e=-1;for(let o of this.children)if(o instanceof a.TerminalNode&&o.symbol.type===t&&(e++,e===s))return o}getTokens(t){let s=[];if(!this.children)return s;for(let e of this.children)e instanceof a.TerminalNode&&e.symbol.type===t&&s.push(e);return s}get ruleContext(){return this}getRuleContext(t,s){return this.getChild(t,s)}tryGetRuleContext(t,s){return this.tryGetChild(t,s)}getRuleContexts(t){let s=[];if(!this.children)return s;for(let e of this.children)e instanceof t&&s.push(e);return s}get childCount(){return this.children?this.children.length:0}get sourceInterval(){return this._start?!this._stop||this._stop.tokenIndex<this._start.tokenIndex?c.Interval.of(this._start.tokenIndex,this._start.tokenIndex-1):c.Interval.of(this._start.tokenIndex,this._stop.tokenIndex):c.Interval.INVALID}get start(){return this._start}get stop(){return this._stop}toInfoString(t){return"ParserRuleContext"+t.getRuleInvocationStack(this).reverse()+"{start="+this._start+", stop="+this._stop+"}"}};return n.EMPTY=new n,u([h.Override],n.prototype,"parent",null),u([h.Override],n.prototype,"childCount",null),u([h.Override],n.prototype,"sourceInterval",null),en.ParserRuleContext=n,en}var oi={},of;function F0(){return of||(of=1,(function(u){var r=oi&&oi.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o};Object.defineProperty(u,"__esModule",{value:!0}),u.PredictionMode=void 0;const c=Fn(),h=Pe(),p=Q(),a=ei();(function(n){n[n.SLL=0]="SLL",n[n.LL=1]="LL",n[n.LL_EXACT_AMBIG_DETECTION=2]="LL_EXACT_AMBIG_DETECTION"})(u.PredictionMode||(u.PredictionMode={})),(function(n){class i extends c.Array2DHashMap{constructor(){super(t.INSTANCE)}}class t{AltAndContextConfigEqualityComparator(){}hashCode(l){let f=h.MurmurHash.initialize(7);return f=h.MurmurHash.update(f,l.state.stateNumber),f=h.MurmurHash.update(f,l.context),f=h.MurmurHash.finish(f,2),f}equals(l,f){return l===f?!0:l==null||f==null?!1:l.state.stateNumber===f.state.stateNumber&&l.context.equals(f.context)}}t.INSTANCE=new t,r([p.Override],t.prototype,"hashCode",null),r([p.Override],t.prototype,"equals",null);function s(o){for(let l of o)if(l.state instanceof a.RuleStopState)return!0;return!1}n.hasConfigInRuleStopState=s;function e(o){for(let l of o)if(!(l.state instanceof a.RuleStopState))return!1;return!0}n.allConfigsInRuleStopStates=e})(u.PredictionMode||(u.PredictionMode={}))})(oi)),oi}var Bt={},sf;function uf(){if(sf)return Bt;sf=1;var u=Bt&&Bt.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=Bt&&Bt.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.SimulatorState=void 0;const c=Q(),h=Ke();let p=class{constructor(n,i,t,s){this.outerContext=n??h.ParserRuleContext.emptyContext(),this.s0=i,this.useContext=t,this.remainingOuterContext=s}};return p=u([r(1,c.NotNull)],p),Bt.SimulatorState=p,Bt}var af;function si(){if(af)return wt;af=1;var u=wt&&wt.__decorate||function(F,E,A,S){var C=arguments.length,P=C<3?E:S===null?S=Object.getOwnPropertyDescriptor(E,A):S,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(F,E,A,S);else for(var I=F.length-1;I>=0;I--)(R=F[I])&&(P=(C<3?R(P):C>3?R(E,A,P):R(E,A))||P);return C>3&&P&&Object.defineProperty(E,A,P),P},r=wt&&wt.__param||function(F,E){return function(A,S){E(A,S,F)}};Object.defineProperty(wt,"__esModule",{value:!0}),wt.ParserATNSimulator=void 0;const c=Vl(),h=Lc(),p=cr(),a=Ls(),n=Ye(),i=wi(),t=Jn(),s=Bi(),e=Ie(),o=Fc(),l=fr(),f=w0(),d=Ir(),g=Fi(),x=ws(),m=je(),y=ur(),_=Q(),v=Us(),N=ki(),T=Ze(),b=Ke(),O=$e(),D=js(),k=F0(),z=ei(),U=zs(),te=wn(),ie=ks(),oe=uf(),he=Ce(),Ee=Mr(),le=Fe(),Z=65535,ee=-2147483648;let J=class ye extends s.ATNSimulator{constructor(E,A){super(E),this.predictionMode=k.PredictionMode.LL,this.force_global_context=!1,this.always_try_local_context=!0,this.enable_global_context_dfa=!1,this.optimize_unique_closure=!0,this.optimize_ll1=!0,this.optimize_tail_calls=!0,this.tail_call_preserves_sll=!0,this.treat_sllk1_conflict_as_ambiguity=!1,this.reportAmbiguities=!1,this.userWantsCtxSensitive=!0,this._parser=A}getPredictionMode(){return this.predictionMode}setPredictionMode(E){this.predictionMode=E}reset(){}adaptivePredict(E,A,S,C){C===void 0&&(C=!1);let P=this.atn.decisionToDFA[A];if(le(P!=null),this.optimize_ll1&&!P.isPrecedenceDfa&&!P.isEmpty){let W=E.LA(1);if(W>=0&&W<=65535){let G=(A<<16>>>0)+W,L=this.atn.LL1Table.get(G);if(L!=null)return L}}this.dfa=P,this.force_global_context?C=!0:this.always_try_local_context||(C=C||P.isContextSensitive),this.userWantsCtxSensitive=C||this.predictionMode!==k.PredictionMode.SLL&&S!=null&&!this.atn.decisionToState[A].sll,S==null&&(S=b.ParserRuleContext.emptyContext());let R;P.isEmpty||(R=this.getStartState(P,E,S,C)),R==null&&(S==null&&(S=b.ParserRuleContext.emptyContext()),ye.debug&&console.log("ATN decision "+P.decision+" exec LA(1)=="+this.getLookaheadName(E)+", outerContext="+S.toString(this._parser)),R=this.computeStartState(P,S,C));let I=E.mark(),M=E.index;try{let W=this.execDFA(P,E,M,R);return ye.debug&&console.log("DFA after predictATN: "+P.toString(this._parser.vocabulary,this._parser.ruleNames)),W}finally{this.dfa=void 0,E.seek(M),E.release(I)}}getStartState(E,A,S,C){if(!C)if(E.isPrecedenceDfa){let I=E.getPrecedenceStartState(this._parser.precedence,!1);return I==null?void 0:new oe.SimulatorState(S,I,!1,S)}else return E.s0==null?void 0:new oe.SimulatorState(S,E.s0,!1,S);if(!this.enable_global_context_dfa)return;let P=S;le(S!=null);let R;for(E.isPrecedenceDfa?R=E.getPrecedenceStartState(this._parser.precedence,!0):R=E.s0full;P!=null&&R!=null&&R.isContextSensitive;)P=this.skipTailCalls(P),R=R.getContextTarget(this.getReturnState(P)),P.isEmpty?le(R==null||!R.isContextSensitive):P=P.parent;if(R!=null)return new oe.SimulatorState(S,R,C,P)}execDFA(E,A,S,C){let P=C.outerContext;ye.dfa_debug&&console.log("DFA decision "+E.decision+" exec LA(1)=="+this.getLookaheadName(A)+", outerContext="+P.toString(this._parser)),ye.dfa_debug&&console.log(E.toString(this._parser.vocabulary,this._parser.ruleNames));let R=C.s0,I=A.LA(1),M=C.remainingOuterContext;for(;;){if(ye.dfa_debug&&console.log("DFA state "+R.stateNumber+" LA(1)=="+this.getLookaheadName(A)),C.useContext)for(;R.isContextSymbol(I);){let L;if(M!=null&&(M=this.skipTailCalls(M),L=R.getContextTarget(this.getReturnState(M))),L==null){let w=new oe.SimulatorState(C.outerContext,R,C.useContext,M);return this.execATN(E,A,S,w)}le(M!=null),M=M.parent,R=L}if(this.isAcceptState(R,C.useContext)){R.predicates!=null?ye.dfa_debug&&console.log("accept "+R):ye.dfa_debug&&console.log("accept; predict "+R.prediction+" in state "+R.stateNumber);break}le(!this.isAcceptState(R,C.useContext));let G=this.getExistingTargetState(R,I);if(G==null){ye.dfa_debug&&I>=0&&console.log("no edge for "+this._parser.vocabulary.getDisplayName(I));let L;if(ye.dfa_debug){let H=m.Interval.of(S,this._parser.inputStream.index);console.log("ATN exec upon "+this._parser.inputStream.getText(H)+" at DFA state "+R.stateNumber)}let w=new oe.SimulatorState(P,R,C.useContext,M);return L=this.execATN(E,A,S,w),ye.dfa_debug&&console.log("back from DFA update, alt="+L+`, dfa=
|
|
76
|
+
`+E.toString(this._parser.vocabulary,this._parser.ruleNames)),ye.dfa_debug&&console.log("DFA decision "+E.decision+" predicts "+L),L}else if(G===s.ATNSimulator.ERROR){let L=new oe.SimulatorState(P,R,C.useContext,M);return this.handleNoViableAlt(A,S,L)}R=G,!this.isAcceptState(R,C.useContext)&&I!==y.IntStream.EOF&&(A.consume(),I=A.LA(1))}if(!C.useContext&&R.configs.conflictInfo!=null&&E.atnStartState instanceof d.DecisionState&&!(!this.userWantsCtxSensitive||!R.configs.dipsIntoOuterContext&&R.configs.isExactConflict||this.treat_sllk1_conflict_as_ambiguity&&A.index===S)){le(!C.useContext);let G,L=R.predicates;if(L!=null){let w=A.index;if(w!==S&&A.seek(S),G=this.evalSemanticContext(L,P,!0),G.cardinality()===1)return G.nextSetBit(0);w!==S&&A.seek(w)}if(this.reportAmbiguities){let w=new oe.SimulatorState(P,R,C.useContext,M);this.reportAttemptingFullContext(E,G,w,S,A.index)}return A.seek(S),this.adaptivePredict(A,E.decision,P,!0)}let W=R.predicates;if(W!=null){let G=A.index;S!==G&&A.seek(S);let L=this.evalSemanticContext(W,P,this.reportAmbiguities&&this.predictionMode===k.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(L.cardinality()){case 0:throw this.noViableAlt(A,P,R.configs,S);case 1:return L.nextSetBit(0);default:return S!==G&&A.seek(G),this.reportAmbiguity(E,R,S,G,R.configs.isExactConflict,L,R.configs),L.nextSetBit(0)}}return ye.dfa_debug&&console.log("DFA decision "+E.decision+" predicts "+R.prediction),R.prediction}isAcceptState(E,A){return E.isAcceptState?E.configs.conflictingAlts==null?!0:A&&this.predictionMode===k.PredictionMode.LL_EXACT_AMBIG_DETECTION?E.configs.isExactConflict:!0:!1}execATN(E,A,S,C){ye.debug&&console.log("execATN decision "+E.decision+" exec LA(1)=="+this.getLookaheadName(A));let P=C.outerContext,R=C.useContext,I=A.LA(1),M=C,W=new D.PredictionContextCache;for(;;){let G=this.computeReachSet(E,M,I,W);if(G==null)return this.setDFAEdge(M.s0,A.LA(1),s.ATNSimulator.ERROR),this.handleNoViableAlt(A,S,M);let L=G.s0;if(le(L.isAcceptState||L.prediction===n.ATN.INVALID_ALT_NUMBER),le(L.isAcceptState||L.configs.conflictInfo==null),this.isAcceptState(L,R)){let w=L.configs.conflictingAlts,H=w==null?L.prediction:n.ATN.INVALID_ALT_NUMBER;if(H!==n.ATN.INVALID_ALT_NUMBER){if(this.optimize_ll1&&A.index===S&&!E.isPrecedenceDfa&&G.outerContext===G.remainingOuterContext&&E.decision>=0&&!L.configs.hasSemanticContext&&I>=0&&I<=Z){let Y=(E.decision<<16>>>0)+I;this.atn.LL1Table.set(Y,H)}R&&this.always_try_local_context&&this.reportContextSensitivity(E,H,G,S,A.index)}H=L.prediction;let $=w!=null&&this.userWantsCtxSensitive;if($&&($=!R&&(L.configs.dipsIntoOuterContext||!L.configs.isExactConflict)&&(!this.treat_sllk1_conflict_as_ambiguity||A.index!==S)),L.configs.hasSemanticContext){let Y=L.predicates;if(Y!=null){let re=A.index;switch(re!==S&&A.seek(S),w=this.evalSemanticContext(Y,P,$||this.reportAmbiguities),w.cardinality()){case 0:throw this.noViableAlt(A,P,L.configs,S);case 1:return w.nextSetBit(0)}re!==S&&A.seek(re)}}if($){le(!R),le(this.isAcceptState(L,!1)),ye.debug&&console.log("RETRY with outerContext="+P);let Y=this.computeStartState(E,P,!0);return this.reportAmbiguities&&this.reportAttemptingFullContext(E,w,G,S,A.index),A.seek(S),this.execATN(E,A,S,Y)}else return w!=null&&(this.reportAmbiguities&&w.cardinality()>1&&this.reportAmbiguity(E,L,S,A.index,L.configs.isExactConflict,w,L.configs),H=w.nextSetBit(0)),H}M=G,I!==y.IntStream.EOF&&(A.consume(),I=A.LA(1))}}handleNoViableAlt(E,A,S){if(S.s0!=null){let C=new l.BitSet,P=0;for(let R of S.s0.configs)(R.reachesIntoOuterContext||R.state instanceof z.RuleStopState)&&(C.set(R.alt),P=Math.max(P,R.alt));switch(C.cardinality()){case 0:break;case 1:return C.nextSetBit(0);default:if(!S.s0.configs.hasSemanticContext)return C.nextSetBit(0);let R=new t.ATNConfigSet;for(let M of S.s0.configs)(M.reachesIntoOuterContext||M.state instanceof z.RuleStopState)&&R.add(M);let I=this.getPredsForAmbigAlts(C,R,P);if(I!=null){let M=this.getPredicatePredictions(C,I);if(M!=null){let W=E.index;try{E.seek(A);let G=this.evalSemanticContext(M,S.outerContext,!1);if(!G.isEmpty)return G.nextSetBit(0)}finally{E.seek(W)}}}return C.nextSetBit(0)}}throw this.noViableAlt(E,S.outerContext,S.s0.configs,A)}computeReachSet(E,A,S,C){let P=A.useContext,R=A.remainingOuterContext,I=A.s0;if(P)for(;I.isContextSymbol(S);){let G;if(R!=null&&(R=this.skipTailCalls(R),G=I.getContextTarget(this.getReturnState(R))),G==null)break;le(R!=null),R=R.parent,I=G}if(le(!this.isAcceptState(I,P)),this.isAcceptState(I,P))return new oe.SimulatorState(A.outerContext,I,P,R);let M=I,W=this.getExistingTargetState(M,S);if(W==null){let G=this.computeTargetState(E,M,R,S,P,C);W=G[0],R=G[1]}if(W!==s.ATNSimulator.ERROR)return le(!P||!W.configs.dipsIntoOuterContext),new oe.SimulatorState(A.outerContext,W,P,R)}getExistingTargetState(E,A){return E.getTarget(A)}computeTargetState(E,A,S,C,P,R){let I=A.configs.toArray(),M,W=new t.ATNConfigSet,G;do{let w=!P||S!=null;w||(W.isOutermostConfigSet=!0);let H=new t.ATNConfigSet,$;for(let q of I){if(ye.debug&&console.log("testing "+this.getTokenName(C)+" at "+q.toString()),q.state instanceof z.RuleStopState){le(q.context.isEmpty),(P&&!q.reachesIntoOuterContext||C===y.IntStream.EOF)&&($==null&&($=[]),$.push(q));continue}let X=q.state.numberOfOptimizedTransitions;for(let se=0;se<X;se++){let me=q.state.getOptimizedTransition(se),ge=this.getReachableTarget(q,me,C);ge!=null&&H.add(q.transform(ge,!1),R)}}if(this.optimize_unique_closure&&$==null&&C!==he.Token.EOF&&H.uniqueAlt!==n.ATN.INVALID_ALT_NUMBER){H.isOutermostConfigSet=W.isOutermostConfigSet,W=H;break}let Y=!1,re=C===he.Token.EOF;if(this.closure(H,W,Y,w,R,re),G=W.dipsIntoOuterContext,C===y.IntStream.EOF&&(W=this.removeAllConfigsNotInRuleStopState(W,R)),$!=null&&(!P||!k.PredictionMode.hasConfigInRuleStopState(W))){le($.length>0);for(let q of $)W.add(q,R)}if(P&&G){W.clear(),S=S,S=this.skipTailCalls(S);let q=this.getReturnState(S);if(M==null&&(M=new x.IntegerList),S.isEmpty?S=void 0:S=S.parent,M.add(q),q!==O.PredictionContext.EMPTY_FULL_STATE_KEY)for(let X=0;X<I.length;X++)I[X]=I[X].appendContext(q,R)}}while(P&&G);return W.isEmpty?(this.setDFAEdge(A,C,s.ATNSimulator.ERROR),[s.ATNSimulator.ERROR,S]):[this.addDFAEdge(E,A,C,M,W,R),S]}removeAllConfigsNotInRuleStopState(E,A){if(k.PredictionMode.allConfigsInRuleStopStates(E))return E;let S=new t.ATNConfigSet;for(let C of E)C.state instanceof z.RuleStopState&&S.add(C,A);return S}computeStartState(E,A,S){let C=E.isPrecedenceDfa?E.getPrecedenceStartState(this._parser.precedence,S):S?E.s0full:E.s0;if(C!=null){if(!S)return new oe.SimulatorState(A,C,S,A);C.setContextSensitive(this.atn)}E.decision;let P=E.atnStartState,R=0,I=A,M=S?O.PredictionContext.EMPTY_FULL:O.PredictionContext.EMPTY_LOCAL,W=new D.PredictionContextCache;if(S){if(!this.enable_global_context_dfa)for(;I!=null;)I.isEmpty?(R=O.PredictionContext.EMPTY_FULL_STATE_KEY,I=void 0):(R=this.getReturnState(I),M=M.appendSingleContext(R,W),I=I.parent);for(;C!=null&&C.isContextSensitive&&I!=null;){let L;if(I=this.skipTailCalls(I),I.isEmpty?(L=C.getContextTarget(O.PredictionContext.EMPTY_FULL_STATE_KEY),R=O.PredictionContext.EMPTY_FULL_STATE_KEY,I=void 0):(R=this.getReturnState(I),L=C.getContextTarget(R),M=M.appendSingleContext(R,W),I=I.parent),L==null)break;C=L}}if(C!=null&&!C.isContextSensitive)return new oe.SimulatorState(A,C,S,I);let G=new t.ATNConfigSet;for(;;){let L=new t.ATNConfigSet,w=P.numberOfTransitions;for(let X=0;X<w;X++){let se=P.transition(X).target;L.add(i.ATNConfig.create(se,X+1,M))}let H=I!=null;H||(G.isOutermostConfigSet=!0),this.closure(L,G,!0,H,W,!1);let Y=G.dipsIntoOuterContext,re;if(S&&!this.enable_global_context_dfa){C=this.addDFAState(E,G,W);break}else C==null?E.isPrecedenceDfa?(G=this.applyPrecedenceFilter(G,A,W),re=this.addDFAState(E,G,W),E.setPrecedenceStartState(this._parser.precedence,S,re)):(re=this.addDFAState(E,G,W),S?E.s0full?re=E.s0full:E.s0full=re:E.s0?re=E.s0:E.s0=re):(E.isPrecedenceDfa&&(G=this.applyPrecedenceFilter(G,A,W)),re=this.addDFAState(E,G,W),C.setContextTarget(R,re));if(C=re,!S||!Y)break;re.setContextSensitive(this.atn),I=I,G.clear(),I=this.skipTailCalls(I);let q=this.getReturnState(I);I.isEmpty?I=void 0:I=I.parent,q!==O.PredictionContext.EMPTY_FULL_STATE_KEY&&(M=M.appendSingleContext(q,W)),R=q}return new oe.SimulatorState(A,C,S,I)}applyPrecedenceFilter(E,A,S){let C=new Map,P=new t.ATNConfigSet;for(let R of E){if(R.alt!==1)continue;let I=R.semanticContext.evalPrecedence(this._parser,A);I!=null&&(C.set(R.state.stateNumber,R.context),I!==R.semanticContext?P.add(R.transform(R.state,!1,I),S):P.add(R,S))}for(let R of E)if(R.alt!==1){if(!R.isPrecedenceFilterSuppressed){let I=C.get(R.state.stateNumber);if(I!=null&&I.equals(R.context))continue}P.add(R,S)}return P}getReachableTarget(E,A,S){if(A.matches(S,0,this.atn.maxTokenType))return A.target}predicateDFAState(E,A,S){let C=this.getConflictingAltsFromConfigSet(A);if(!C)throw new Error("This unhandled scenario is intended to be unreachable, but I'm currently not sure of why we know that's the case.");ye.debug&&console.log("predicateDFAState "+E);let P=this.getPredsForAmbigAlts(C,A,S),R;return P!=null&&(R=this.getPredicatePredictions(C,P),E.predicates=R),R}getPredsForAmbigAlts(E,A,S){let C=new Array(S+1),P=C.length;for(let M of A)E.get(M.alt)&&(C[M.alt]=te.SemanticContext.or(C[M.alt],M.semanticContext));let R=0;for(let M=0;M<P;M++)C[M]==null?C[M]=te.SemanticContext.NONE:C[M]!==te.SemanticContext.NONE&&R++;let I=C;return R===0&&(I=void 0),ye.debug&&console.log("getPredsForAmbigAlts result "+(I?a.Arrays.toString(I):"undefined")),I}getPredicatePredictions(E,A){let S=[],C=!1;for(let P=1;P<A.length;P++){let R=A[P];le(R!=null),E!=null&&E.get(P)&&R===te.SemanticContext.NONE?S.push(new g.DFAState.PredPrediction(R,P)):R!==te.SemanticContext.NONE&&(C=!0,S.push(new g.DFAState.PredPrediction(R,P)))}if(C)return S}evalSemanticContext(E,A,S){let C=new l.BitSet;for(let P of E){if(P.pred===te.SemanticContext.NONE){if(C.set(P.alt),!S)break;continue}let R=this.evalSemanticContextImpl(P.pred,A,P.alt);if((ye.debug||ye.dfa_debug)&&console.log("eval pred "+P+"="+R),R&&((ye.debug||ye.dfa_debug)&&console.log("PREDICT "+P.alt),C.set(P.alt),!S))break}return C}evalSemanticContextImpl(E,A,S){return E.eval(this._parser,A)}closure(E,A,S,C,P,R){P==null&&(P=D.PredictionContextCache.UNCACHED);let I=E,M=new p.Array2DHashSet(T.ObjectEqualityComparator.INSTANCE);for(;I.size>0;){let W=new t.ATNConfigSet;for(let G of I)this.closureImpl(G,A,W,M,S,C,P,0,R);I=W}}closureImpl(E,A,S,C,P,R,I,M,W){if(ye.debug&&console.log("closure("+E.toString(this._parser,!0)+")"),E.state instanceof z.RuleStopState)if(E.context.isEmpty)if(R)ye.debug&&console.log("FALLING off rule "+this.getRuleName(E.state.ruleIndex)),E.context===O.PredictionContext.EMPTY_FULL?E=E.transform(E.state,!1,O.PredictionContext.EMPTY_LOCAL):!E.reachesIntoOuterContext&&O.PredictionContext.isEmptyLocal(E.context)&&A.add(E,I);else{A.add(E,I);return}else{let L=E.context.hasEmpty,w=E.context.size-(L?1:0);for(let H=0;H<w;H++){let $=E.context.getParent(H),Y=this.atn.states[E.context.getReturnState(H)],re=i.ATNConfig.create(Y,E.alt,$,E.semanticContext);re.outerContextDepth=E.outerContextDepth,re.isPrecedenceFilterSuppressed=E.isPrecedenceFilterSuppressed,le(M>ee),this.closureImpl(re,A,S,C,P,R,I,M-1,W)}if(!L||!R)return;E=E.transform(E.state,!1,O.PredictionContext.EMPTY_LOCAL)}let G=E.state;G.onlyHasEpsilonTransitions||(A.add(E,I),ye.debug&&console.log("added config "+A));for(let L=0;L<G.numberOfOptimizedTransitions;L++){if(L===0&&G.stateType===e.ATNStateType.STAR_LOOP_ENTRY&&G.precedenceRuleDecision&&!E.context.hasEmpty){let Y=G,re=!0;for(let q=0;q<E.context.size;q++)if(!Y.precedenceLoopbackStates.get(E.context.getReturnState(q))){re=!1;break}if(re)continue}let w=G.getOptimizedTransition(L),H=!(w instanceof h.ActionTransition)&&P,$=this.getEpsilonTarget(E,w,H,M===0,I,W);if($!=null){if(w instanceof U.RuleTransition&&S!=null&&!P){S.add($,I);continue}let Y=M;if(E.state instanceof z.RuleStopState){if(this.dfa!=null&&this.dfa.isPrecedenceDfa&&w.outermostPrecedenceReturn===this.dfa.atnStartState.ruleIndex&&($.isPrecedenceFilterSuppressed=!0),$.outerContextDepth=$.outerContextDepth+1,!C.add($))continue;le(Y>ee),Y--,ye.debug&&console.log("dips into outer ctx: "+$)}else if(w instanceof U.RuleTransition)this.optimize_tail_calls&&w.optimizedTailCall&&(!this.tail_call_preserves_sll||!O.PredictionContext.isEmptyLocal(E.context))?(le($.context===E.context),Y===0&&(Y--,!this.tail_call_preserves_sll&&O.PredictionContext.isEmptyLocal(E.context)&&($.outerContextDepth=$.outerContextDepth+1))):Y>=0&&Y++;else if(!w.isEpsilon&&!C.add($))continue;this.closureImpl($,A,S,C,H,R,I,Y,W)}}}getRuleName(E){return this._parser!=null&&E>=0?this._parser.ruleNames[E]:"<rule "+E+">"}getEpsilonTarget(E,A,S,C,P,R){switch(A.serializationType){case 3:return this.ruleTransition(E,A,P);case 10:return this.precedenceTransition(E,A,S,C);case 4:return this.predTransition(E,A,S,C);case 6:return this.actionTransition(E,A);case 1:return E.transform(A.target,!1);case 5:case 2:case 7:return R&&A.matches(he.Token.EOF,0,1)?E.transform(A.target,!1):void 0;default:return}}actionTransition(E,A){return ye.debug&&console.log("ACTION edge "+A.ruleIndex+":"+A.actionIndex),E.transform(A.target,!1)}precedenceTransition(E,A,S,C){ye.debug&&(console.log("PRED (collectPredicates="+S+") "+A.precedence+">=_p, ctx dependent=true"),this._parser!=null&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack()));let P;if(S&&C){let R=te.SemanticContext.and(E.semanticContext,A.predicate);P=E.transform(A.target,!1,R)}else P=E.transform(A.target,!1);return ye.debug&&console.log("config from pred transition="+P),P}predTransition(E,A,S,C){ye.debug&&(console.log("PRED (collectPredicates="+S+") "+A.ruleIndex+":"+A.predIndex+", ctx dependent="+A.isCtxDependent),this._parser!=null&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack()));let P;if(S&&(!A.isCtxDependent||A.isCtxDependent&&C)){let R=te.SemanticContext.and(E.semanticContext,A.predicate);P=E.transform(A.target,!1,R)}else P=E.transform(A.target,!1);return ye.debug&&console.log("config from pred transition="+P),P}ruleTransition(E,A,S){ye.debug&&console.log("CALL rule "+this.getRuleName(A.target.ruleIndex)+", ctx="+E.context);let C=A.followState,P;return this.optimize_tail_calls&&A.optimizedTailCall&&(!this.tail_call_preserves_sll||!O.PredictionContext.isEmptyLocal(E.context))?P=E.context:S!=null?P=S.getChild(E.context,C.stateNumber):P=E.context.getChild(C.stateNumber),E.transform(A.target,!1,P)}isConflicted(E,A){if(E.uniqueAlt!==n.ATN.INVALID_ALT_NUMBER||E.size<=1)return;let S=E.toArray();S.sort(ye.STATE_ALT_SORT_COMPARATOR);let C=!E.dipsIntoOuterContext,P=new l.BitSet,R=S[0].alt;P.set(R);let I=S[0].state.nonStopStateNumber;for(let w of S){let H=w.state.nonStopStateNumber;if(H!==I){if(w.alt!==R)return;I=H}}let M;if(C){I=S[0].state.nonStopStateNumber,M=new l.BitSet;let w=R;for(let $ of S){if($.state.nonStopStateNumber!==I)break;let Y=$.alt;M.set(Y),w=Y}I=S[0].state.nonStopStateNumber;let H=R;for(let $ of S){let Y=$.state.nonStopStateNumber,re=$.alt;if(Y!==I){if(H!==w){C=!1;break}I=Y,H=R}else if(re!==H){if(re!==M.nextSetBit(H+1)){C=!1;break}H=re}}}I=S[0].state.nonStopStateNumber;let W=0,G=0,L=S[0].context;for(let w=1;w<S.length;w++){let H=S[w];if(H.alt!==R||H.state.nonStopStateNumber!==I)break;G=w,L=A.join(L,S[w].context)}for(let w=G+1;w<S.length;w++){let H=S[w],$=H.state;if(P.set(H.alt),$.nonStopStateNumber!==I){I=$.nonStopStateNumber,W=w,G=w,L=H.context;for(let se=W+1;se<S.length;se++){let me=S[se];if(me.alt!==R||me.state.nonStopStateNumber!==I)break;G=se,L=A.join(L,me.context)}w=G;continue}let Y=H.context,re=H.alt,q=w;for(let se=q+1;se<S.length;se++){let me=S[se];if(me.alt!==re||me.state.nonStopStateNumber!==I)break;q=se,Y=A.join(Y,me.context)}w=q;let X=A.join(L,Y);if(!L.equals(X))return;C=C&&L.equals(Y)}return new f.ConflictInfo(P,C)}getConflictingAltsFromConfigSet(E){let A=E.conflictingAlts;return A==null&&E.uniqueAlt!==n.ATN.INVALID_ALT_NUMBER&&(A=new l.BitSet,A.set(E.uniqueAlt)),A}getTokenName(E){if(E===he.Token.EOF)return"EOF";let S=(this._parser!=null?this._parser.vocabulary:Ee.VocabularyImpl.EMPTY_VOCABULARY).getDisplayName(E);return S===String(E)?S:S+"<"+E+">"}getLookaheadName(E){return this.getTokenName(E.LA(1))}dumpDeadEndConfigs(E){console.log("dead end configs: ");let A=E.deadEndConfigs;if(A)for(let S of A){let C="no edges";if(S.state.numberOfOptimizedTransitions>0){let P=S.state.getOptimizedTransition(0);P instanceof o.AtomTransition?C="Atom "+this.getTokenName(P._label):P instanceof ie.SetTransition&&(C=(P instanceof v.NotSetTransition?"~":"")+"Set "+P.set.toString())}console.log(S.toString(this._parser,!0)+":"+C)}}noViableAlt(E,A,S,C){return new N.NoViableAltException(this._parser,E,E.get(C),E.LT(1),S,A)}getUniqueAlt(E){let A=n.ATN.INVALID_ALT_NUMBER;for(let S of E)if(A===n.ATN.INVALID_ALT_NUMBER)A=S.alt;else if(S.alt!==A)return n.ATN.INVALID_ALT_NUMBER;return A}configWithAltAtStopState(E,A){for(let S of E)if(S.alt===A&&S.state instanceof z.RuleStopState)return!0;return!1}addDFAEdge(E,A,S,C,P,R){le(C==null||C.isEmpty||E.isContextSensitive);let I=A,M=this.addDFAState(E,P,R);if(C!=null)for(let W of C.toArray()){if(W===O.PredictionContext.EMPTY_FULL_STATE_KEY&&I.configs.isOutermostConfigSet)continue;I.setContextSensitive(this.atn),I.setContextSymbol(S);let G=I.getContextTarget(W);if(G!=null){I=G;continue}G=this.addDFAContextState(E,I.configs,W,R),le(W!==O.PredictionContext.EMPTY_FULL_STATE_KEY||G.configs.isOutermostConfigSet),I.setContextTarget(W,G),I=G}return ye.debug&&console.log("EDGE "+I+" -> "+M+" upon "+this.getTokenName(S)),this.setDFAEdge(I,S,M),ye.debug&&console.log(`DFA=
|
|
77
|
+
`+E.toString(this._parser!=null?this._parser.vocabulary:Ee.VocabularyImpl.EMPTY_VOCABULARY,this._parser!=null?this._parser.ruleNames:void 0)),M}setDFAEdge(E,A,S){E?.setTarget(A,S)}addDFAContextState(E,A,S,C){if(S!==O.PredictionContext.EMPTY_FULL_STATE_KEY){let P=new t.ATNConfigSet;for(let R of A)P.add(R.appendContext(S,C));return this.addDFAState(E,P,C)}else return le(!A.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),A=A.clone(!0),A.isOutermostConfigSet=!0,this.addDFAState(E,A,C)}addDFAState(E,A,S){let C=this.enable_global_context_dfa||!A.isOutermostConfigSet;if(C){A.isReadOnly||A.optimizeConfigs(this);let W=this.createDFAState(E,A),G=E.states.get(W);if(G!=null)return G}A.isReadOnly||A.conflictInfo==null&&(A.conflictInfo=this.isConflicted(A,S));let P=this.createDFAState(E,A.clone(!0)),R=this.atn.getDecisionState(E.decision),I=this.getUniqueAlt(A);if(I!==n.ATN.INVALID_ALT_NUMBER)P.acceptStateInfo=new c.AcceptStateInfo(I);else if(A.conflictingAlts!=null){let W=A.conflictingAlts;W&&(P.acceptStateInfo=new c.AcceptStateInfo(W.nextSetBit(0)))}if(P.isAcceptState&&A.hasSemanticContext&&this.predicateDFAState(P,A,R.numberOfTransitions),!C)return P;let M=E.addState(P);return ye.debug&&M===P&&console.log("adding new DFA state: "+P),M}createDFAState(E,A){return new g.DFAState(A)}reportAttemptingFullContext(E,A,S,C,P){if(ye.debug||ye.retry_debug){let R=m.Interval.of(C,P);console.log("reportAttemptingFullContext decision="+E.decision+":"+S.s0.configs+", input="+this._parser.inputStream.getText(R))}if(this._parser!=null){let R=this._parser.getErrorListenerDispatch();R.reportAttemptingFullContext&&R.reportAttemptingFullContext(this._parser,E,C,P,A,S)}}reportContextSensitivity(E,A,S,C,P){if(ye.debug||ye.retry_debug){let R=m.Interval.of(C,P);console.log("reportContextSensitivity decision="+E.decision+":"+S.s0.configs+", input="+this._parser.inputStream.getText(R))}if(this._parser!=null){let R=this._parser.getErrorListenerDispatch();R.reportContextSensitivity&&R.reportContextSensitivity(this._parser,E,C,P,A,S)}}reportAmbiguity(E,A,S,C,P,R,I){if(ye.debug||ye.retry_debug){let M=m.Interval.of(S,C);console.log("reportAmbiguity "+R+":"+I+", input="+this._parser.inputStream.getText(M))}if(this._parser!=null){let M=this._parser.getErrorListenerDispatch();M.reportAmbiguity&&M.reportAmbiguity(this._parser,E,S,C,P,R,I)}}getReturnState(E){return E.isEmpty?O.PredictionContext.EMPTY_FULL_STATE_KEY:this.atn.states[E.invokingState].transition(0).followState.stateNumber}skipTailCalls(E){if(!this.optimize_tail_calls)return E;for(;!E.isEmpty;){let A=this.atn.states[E.invokingState];if(le(A.numberOfTransitions===1&&A.transition(0).serializationType===3),!A.transition(0).tailCall)break;E=E.parent}return E}get parser(){return this._parser}};return J.debug=!1,J.dfa_debug=!1,J.retry_debug=!1,J.STATE_ALT_SORT_COMPARATOR=(F,E)=>{let A=F.state.nonStopStateNumber-E.state.nonStopStateNumber;return A!==0||(A=F.alt-E.alt,A!==0)?A:0},u([_.NotNull],J.prototype,"predictionMode",void 0),u([_.NotNull],J.prototype,"getPredictionMode",null),u([r(0,_.NotNull)],J.prototype,"setPredictionMode",null),u([_.Override],J.prototype,"reset",null),u([r(0,_.NotNull)],J.prototype,"adaptivePredict",null),u([r(0,_.NotNull),r(1,_.NotNull),r(2,_.NotNull)],J.prototype,"getStartState",null),u([r(0,_.NotNull),r(1,_.NotNull),r(3,_.NotNull)],J.prototype,"execDFA",null),u([r(0,_.NotNull),r(1,_.NotNull),r(3,_.NotNull)],J.prototype,"execATN",null),u([r(0,_.NotNull),r(2,_.NotNull)],J.prototype,"handleNoViableAlt",null),u([r(0,_.NotNull)],J.prototype,"getExistingTargetState",null),u([_.NotNull,r(0,_.NotNull),r(1,_.NotNull)],J.prototype,"computeTargetState",null),u([_.NotNull,r(0,_.NotNull)],J.prototype,"removeAllConfigsNotInRuleStopState",null),u([_.NotNull],J.prototype,"computeStartState",null),u([_.NotNull,r(0,_.NotNull)],J.prototype,"applyPrecedenceFilter",null),u([r(0,_.NotNull),r(1,_.NotNull)],J.prototype,"getReachableTarget",null),u([r(0,_.NotNull),r(1,_.NotNull)],J.prototype,"getPredsForAmbigAlts",null),u([r(0,_.NotNull)],J.prototype,"evalSemanticContext",null),u([r(0,_.NotNull)],J.prototype,"evalSemanticContextImpl",null),u([r(1,_.NotNull),r(4,_.Nullable)],J.prototype,"closure",null),u([r(0,_.NotNull),r(1,_.NotNull),r(2,_.Nullable),r(3,_.NotNull),r(6,_.NotNull)],J.prototype,"closureImpl",null),u([_.NotNull],J.prototype,"getRuleName",null),u([r(0,_.NotNull),r(1,_.NotNull)],J.prototype,"getEpsilonTarget",null),u([_.NotNull,r(0,_.NotNull),r(1,_.NotNull)],J.prototype,"actionTransition",null),u([_.Nullable,r(0,_.NotNull),r(1,_.NotNull)],J.prototype,"precedenceTransition",null),u([_.Nullable,r(0,_.NotNull),r(1,_.NotNull)],J.prototype,"predTransition",null),u([_.NotNull,r(0,_.NotNull),r(1,_.NotNull),r(2,_.Nullable)],J.prototype,"ruleTransition",null),u([r(0,_.NotNull)],J.prototype,"isConflicted",null),u([_.NotNull],J.prototype,"getTokenName",null),u([r(0,_.NotNull)],J.prototype,"dumpDeadEndConfigs",null),u([_.NotNull,r(0,_.NotNull),r(1,_.NotNull),r(2,_.NotNull)],J.prototype,"noViableAlt",null),u([r(0,_.NotNull)],J.prototype,"getUniqueAlt",null),u([r(0,_.NotNull)],J.prototype,"configWithAltAtStopState",null),u([_.NotNull,r(0,_.NotNull),r(1,_.NotNull),r(4,_.NotNull)],J.prototype,"addDFAEdge",null),u([r(0,_.Nullable),r(2,_.Nullable)],J.prototype,"setDFAEdge",null),u([_.NotNull,r(0,_.NotNull),r(1,_.NotNull)],J.prototype,"addDFAContextState",null),u([_.NotNull,r(0,_.NotNull),r(1,_.NotNull)],J.prototype,"addDFAState",null),u([_.NotNull,r(0,_.NotNull),r(1,_.NotNull)],J.prototype,"createDFAState",null),u([r(0,_.NotNull),r(2,_.NotNull)],J.prototype,"reportAttemptingFullContext",null),u([r(0,_.NotNull),r(2,_.NotNull)],J.prototype,"reportContextSensitivity",null),u([r(0,_.NotNull),r(5,_.NotNull),r(6,_.NotNull)],J.prototype,"reportAmbiguity",null),J=u([r(0,_.NotNull)],J),wt.ParserATNSimulator=J,wt}var on={},lf;function B0(){if(lf)return on;lf=1;var u=on&&on.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(on,"__esModule",{value:!0}),on.PlusBlockStartState=void 0;const r=Ie(),c=qi(),h=Q();let p=class extends c.BlockStartState{get stateType(){return r.ATNStateType.PLUS_BLOCK_START}};return u([h.Override],p.prototype,"stateType",null),on.PlusBlockStartState=p,on}var sn={},cf;function j0(){if(cf)return sn;cf=1;var u=sn&&sn.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(sn,"__esModule",{value:!0}),sn.PlusLoopbackState=void 0;const r=Ie(),c=Ir(),h=Q();let p=class extends c.DecisionState{get stateType(){return r.ATNStateType.PLUS_LOOP_BACK}};return u([h.Override],p.prototype,"stateType",null),sn.PlusLoopbackState=p,sn}var jt={},ff;function M0(){if(ff)return jt;ff=1;var u=jt&&jt.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o},r=jt&&jt.__param||function(n,i){return function(t,s){i(t,s,n)}};Object.defineProperty(jt,"__esModule",{value:!0}),jt.PrecedencePredicateTransition=void 0;const c=Ps(),h=Q(),p=wn();let a=class extends c.AbstractPredicateTransition{constructor(i,t){super(i),this.precedence=t}get serializationType(){return 10}get isEpsilon(){return!0}matches(i,t,s){return!1}get predicate(){return new p.SemanticContext.PrecedencePredicate(this.precedence)}toString(){return this.precedence+" >= _p"}};return u([h.Override],a.prototype,"serializationType",null),u([h.Override],a.prototype,"isEpsilon",null),u([h.Override],a.prototype,"matches",null),u([h.Override],a.prototype,"toString",null),a=u([r(0,h.NotNull)],a),jt.PrecedencePredicateTransition=a,jt}var Mt={},hf;function q0(){if(hf)return Mt;hf=1;var u=Mt&&Mt.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o},r=Mt&&Mt.__param||function(n,i){return function(t,s){i(t,s,n)}};Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.RangeTransition=void 0;const c=Vr(),h=Q(),p=lr();let a=class extends p.Transition{constructor(i,t,s){super(i),this.from=t,this.to=s}get serializationType(){return 2}get label(){return c.IntervalSet.of(this.from,this.to)}matches(i,t,s){return i>=this.from&&i<=this.to}toString(){return"'"+String.fromCodePoint(this.from)+"'..'"+String.fromCodePoint(this.to)+"'"}};return u([h.Override],a.prototype,"serializationType",null),u([h.Override,h.NotNull],a.prototype,"label",null),u([h.Override],a.prototype,"matches",null),u([h.Override,h.NotNull],a.prototype,"toString",null),a=u([r(0,h.NotNull)],a),Mt.RangeTransition=a,Mt}var un={},pf;function k0(){if(pf)return un;pf=1;var u=un&&un.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(un,"__esModule",{value:!0}),un.RuleStartState=void 0;const r=nt(),c=Ie(),h=Q();let p=class extends r.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=!1,this.leftFactored=!1}get stateType(){return c.ATNStateType.RULE_START}};return u([h.Override],p.prototype,"stateType",null),un.RuleStartState=p,un}var an={},df;function U0(){if(df)return an;df=1;var u=an&&an.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(an,"__esModule",{value:!0}),an.StarBlockStartState=void 0;const r=Ie(),c=qi(),h=Q();let p=class extends c.BlockStartState{get stateType(){return r.ATNStateType.STAR_BLOCK_START}};return u([h.Override],p.prototype,"stateType",null),an.StarBlockStartState=p,an}var ln={},xf;function z0(){if(xf)return ln;xf=1;var u=ln&&ln.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(ln,"__esModule",{value:!0}),ln.StarLoopbackState=void 0;const r=nt(),c=Ie(),h=Q();let p=class extends r.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return c.ATNStateType.STAR_LOOP_BACK}};return u([h.Override],p.prototype,"stateType",null),ln.StarLoopbackState=p,ln}var cn={},yf;function H0(){if(yf)return cn;yf=1;var u=cn&&cn.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(cn,"__esModule",{value:!0}),cn.TokensStartState=void 0;const r=Ie(),c=Ir(),h=Q();let p=class extends c.DecisionState{get stateType(){return r.ATNStateType.TOKEN_START}};return u([h.Override],p.prototype,"stateType",null),cn.TokensStartState=p,cn}var ui={},_f;function V0(){if(_f)return ui;_f=1;Object.defineProperty(ui,"__esModule",{value:!0}),ui.UUID=void 0;const u=Pe();let r=class bu{constructor(h,p,a,n){this.data=new Uint32Array(4),this.data[0]=h,this.data[1]=p,this.data[2]=a,this.data[3]=n}static fromString(h){if(!/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/.test(h))throw new Error("Incorrectly formatted UUID");let p=h.split("-"),a=parseInt(p[0],16),n=(parseInt(p[1],16)<<16>>>0)+parseInt(p[2],16),i=(parseInt(p[3],16)<<16>>>0)+parseInt(p[4].substr(0,4),16),t=parseInt(p[4].substr(-8),16);return new bu(a,n,i,t)}hashCode(){return u.MurmurHash.hashCode([this.data[0],this.data[1],this.data[2],this.data[3]])}equals(h){return h===this?!0:h instanceof bu?this.data[0]===h.data[0]&&this.data[1]===h.data[1]&&this.data[2]===h.data[2]&&this.data[3]===h.data[3]:!1}toString(){return("00000000"+this.data[0].toString(16)).substr(-8)+"-"+("0000"+(this.data[1]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[1].toString(16)).substr(-4)+"-"+("0000"+(this.data[2]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[2].toString(16)).substr(-4)+("00000000"+this.data[3].toString(16)).substr(-8)}};return ui.UUID=r,ui}var mf;function Hs(){if(mf)return Nt;mf=1;var u=Nt&&Nt.__decorate||function(G,L,w,H){var $=arguments.length,Y=$<3?L:H===null?H=Object.getOwnPropertyDescriptor(L,w):H,re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Y=Reflect.decorate(G,L,w,H);else for(var q=G.length-1;q>=0;q--)(re=G[q])&&(Y=($<3?re(Y):$>3?re(L,w,Y):re(L,w))||Y);return $>3&&Y&&Object.defineProperty(L,w,Y),Y},r=Nt&&Nt.__param||function(G,L){return function(w,H){L(w,H,G)}};Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.ATNDeserializer=void 0;const c=Lc(),h=cr(),p=Ye(),a=Dc(),n=Ie(),i=Fc(),t=E0(),s=hc(),e=fr(),o=S0(),l=qi(),f=Ir(),d=cc(),g=N0(),x=Vr(),m=dc(),y=b0(),_=C0(),v=O0(),N=R0(),T=P0(),b=D0(),O=I0(),D=L0(),k=Kc(),z=Q(),U=Us(),te=si(),ie=B0(),oe=j0(),he=M0(),Ee=Il(),le=q0(),Z=k0(),ee=ei(),J=zs(),F=ks(),E=U0(),A=z0(),S=qs(),C=Ce(),P=H0(),R=V0(),I=vc();var M;(function(G){G[G.UNICODE_BMP=0]="UNICODE_BMP",G[G.UNICODE_SMP=1]="UNICODE_SMP"})(M||(M={}));let W=class ue{constructor(L){L===void 0&&(L=a.ATNDeserializationOptions.defaultOptions),this.deserializationOptions=L}static get SERIALIZED_VERSION(){return 3}static isFeatureSupported(L,w){let H=ue.SUPPORTED_UUIDS.findIndex($=>$.equals(L));return H<0?!1:ue.SUPPORTED_UUIDS.findIndex($=>$.equals(w))>=H}static getUnicodeDeserializer(L){return L===0?{readUnicode:(w,H)=>ue.toInt(w[H]),size:1}:{readUnicode:(w,H)=>ue.toInt32(w,H),size:2}}deserialize(L){L=L.slice(0);for(let K=1;K<L.length;K++)L[K]=L[K]-2&65535;let w=0,H=ue.toInt(L[w++]);if(H!==ue.SERIALIZED_VERSION){let K=`Could not deserialize ATN with version ${H} (expected ${ue.SERIALIZED_VERSION}).`;throw new Error(K)}let $=ue.toUUID(L,w);if(w+=8,ue.SUPPORTED_UUIDS.findIndex(K=>K.equals($))<0){let K=`Could not deserialize ATN with UUID ${$} (expected ${ue.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(K)}let Y=ue.isFeatureSupported(ue.ADDED_LEXER_ACTIONS,$),re=ue.toInt(L[w++]),q=ue.toInt(L[w++]),X=new p.ATN(re,q),se=[],me=[],ge=ue.toInt(L[w++]);for(let K=0;K<ge;K++){let fe=ue.toInt(L[w++]);if(fe===n.ATNStateType.INVALID_TYPE){X.addState(new m.InvalidState);continue}let pe=ue.toInt(L[w++]);pe===65535&&(pe=-1);let xe=this.stateFactory(fe,pe);if(fe===n.ATNStateType.LOOP_END){let Se=ue.toInt(L[w++]);se.push([xe,Se])}else if(xe instanceof l.BlockStartState){let Se=ue.toInt(L[w++]);me.push([xe,Se])}X.addState(xe)}for(let K of se)K[0].loopBackState=X.states[K[1]];for(let K of me)K[0].endState=X.states[K[1]];let j=ue.toInt(L[w++]);for(let K=0;K<j;K++){let fe=ue.toInt(L[w++]);X.states[fe].nonGreedy=!0}let V=ue.toInt(L[w++]);for(let K=0;K<V;K++){let fe=ue.toInt(L[w++]);X.states[fe].sll=!0}let ne=ue.toInt(L[w++]);for(let K=0;K<ne;K++){let fe=ue.toInt(L[w++]);X.states[fe].isPrecedenceRule=!0}let ae=ue.toInt(L[w++]);X.grammarType===0&&(X.ruleToTokenType=new Int32Array(ae)),X.ruleToStartState=new Array(ae);for(let K=0;K<ae;K++){let fe=ue.toInt(L[w++]),pe=X.states[fe];if(pe.leftFactored=ue.toInt(L[w++])!==0,X.ruleToStartState[K]=pe,X.grammarType===0){let xe=ue.toInt(L[w++]);xe===65535&&(xe=C.Token.EOF),X.ruleToTokenType[K]=xe,ue.isFeatureSupported(ue.ADDED_LEXER_ACTIONS,$)||ue.toInt(L[w++])}}X.ruleToStopState=new Array(ae);for(let K of X.states)K instanceof ee.RuleStopState&&(X.ruleToStopState[K.ruleIndex]=K,X.ruleToStartState[K.ruleIndex].stopState=K);let ce=ue.toInt(L[w++]);for(let K=0;K<ce;K++){let fe=ue.toInt(L[w++]);X.modeToStartState.push(X.states[fe])}X.modeToDFA=new Array(ce);for(let K=0;K<ce;K++)X.modeToDFA[K]=new d.DFA(X.modeToStartState[K]);let _e=[];w=this.deserializeSets(L,w,_e,ue.getUnicodeDeserializer(0)),ue.isFeatureSupported(ue.ADDED_UNICODE_SMP,$)&&(w=this.deserializeSets(L,w,_e,ue.getUnicodeDeserializer(1)));let de=ue.toInt(L[w++]);for(let K=0;K<de;K++){let fe=ue.toInt(L[w]),pe=ue.toInt(L[w+1]),xe=ue.toInt(L[w+2]),Se=ue.toInt(L[w+3]),Me=ue.toInt(L[w+4]),Le=ue.toInt(L[w+5]),ze=this.edgeFactory(X,xe,fe,pe,Se,Me,Le,_e);X.states[fe].addTransition(ze),w+=6}let ve=new h.Array2DHashSet({hashCode:K=>K.stopState^K.returnState^K.outermostPrecedenceReturn,equals:(K,fe)=>K.stopState===fe.stopState&&K.returnState===fe.returnState&&K.outermostPrecedenceReturn===fe.outermostPrecedenceReturn}),Ae=[];for(let K of X.states){let fe=K.ruleIndex>=0&&X.ruleToStartState[K.ruleIndex].leftFactored;for(let pe=0;pe<K.numberOfTransitions;pe++){let xe=K.transition(pe);if(!(xe instanceof J.RuleTransition))continue;let Se=xe;if(!X.ruleToStartState[Se.target.ruleIndex].leftFactored&&fe)continue;let Le=-1;X.ruleToStartState[Se.target.ruleIndex].isPrecedenceRule&&Se.precedence===0&&(Le=Se.target.ruleIndex);let ze={stopState:Se.target.ruleIndex,returnState:Se.followState.stateNumber,outermostPrecedenceReturn:Le};ve.add(ze)&&Ae.push(ze)}}for(let K of Ae){let fe=new g.EpsilonTransition(X.states[K.returnState],K.outermostPrecedenceReturn);X.ruleToStopState[K.stopState].addTransition(fe)}for(let K of X.states){if(K instanceof l.BlockStartState){if(K.endState===void 0)throw new Error("IllegalStateException");if(K.endState.startState!==void 0)throw new Error("IllegalStateException");K.endState.startState=K}if(K instanceof oe.PlusLoopbackState){let fe=K;for(let pe=0;pe<fe.numberOfTransitions;pe++){let xe=fe.transition(pe).target;xe instanceof ie.PlusBlockStartState&&(xe.loopBackState=fe)}}else if(K instanceof A.StarLoopbackState){let fe=K;for(let pe=0;pe<fe.numberOfTransitions;pe++){let xe=fe.transition(pe).target;xe instanceof S.StarLoopEntryState&&(xe.loopBackState=fe)}}}let De=ue.toInt(L[w++]);for(let K=1;K<=De;K++){let fe=ue.toInt(L[w++]),pe=X.states[fe];X.decisionToState.push(pe),pe.decision=K-1}if(X.grammarType===0)if(Y){X.lexerActions=new Array(ue.toInt(L[w++]));for(let K=0;K<X.lexerActions.length;K++){let fe=ue.toInt(L[w++]),pe=ue.toInt(L[w++]);pe===65535&&(pe=-1);let xe=ue.toInt(L[w++]);xe===65535&&(xe=-1);let Se=this.lexerActionFactory(fe,pe,xe);X.lexerActions[K]=Se}}else{let K=[];for(let fe of X.states)for(let pe=0;pe<fe.numberOfTransitions;pe++){let xe=fe.transition(pe);if(!(xe instanceof c.ActionTransition))continue;let Se=xe.ruleIndex,Me=xe.actionIndex,Le=new _.LexerCustomAction(Se,Me);fe.setTransition(pe,new c.ActionTransition(xe.target,Se,K.length,!1)),K.push(Le)}X.lexerActions=K}this.markPrecedenceDecisions(X),X.decisionToDFA=new Array(De);for(let K=0;K<De;K++)X.decisionToDFA[K]=new d.DFA(X.decisionToState[K],K);if(this.deserializationOptions.isVerifyATN&&this.verifyATN(X),this.deserializationOptions.isGenerateRuleBypassTransitions&&X.grammarType===1){X.ruleToTokenType=new Int32Array(X.ruleToStartState.length);for(let K=0;K<X.ruleToStartState.length;K++)X.ruleToTokenType[K]=X.maxTokenType+K+1;for(let K=0;K<X.ruleToStartState.length;K++){let fe=new t.BasicBlockStartState;fe.ruleIndex=K,X.addState(fe);let pe=new o.BlockEndState;pe.ruleIndex=K,X.addState(pe),fe.endState=pe,X.defineDecisionState(fe),pe.startState=fe;let xe,Se;if(X.ruleToStartState[K].isPrecedenceRule){xe=void 0;for(let Le of X.states){if(Le.ruleIndex!==K||!(Le instanceof S.StarLoopEntryState))continue;let ze=Le.transition(Le.numberOfTransitions-1).target;if(ze instanceof k.LoopEndState&&ze.epsilonOnlyTransitions&&ze.transition(0).target instanceof ee.RuleStopState){xe=Le;break}}if(!xe)throw new Error("Couldn't identify final state of the precedence rule prefix section.");Se=xe.loopBackState.transition(0)}else xe=X.ruleToStopState[K];for(let Le of X.states)for(let ze=0;ze<Le.numberOfTransitions;ze++){let Hi=Le.transition(ze);Hi!==Se&&Hi.target===xe&&(Hi.target=pe)}for(;X.ruleToStartState[K].numberOfTransitions>0;){let Le=X.ruleToStartState[K].removeTransition(X.ruleToStartState[K].numberOfTransitions-1);fe.addTransition(Le)}X.ruleToStartState[K].addTransition(new g.EpsilonTransition(fe)),pe.addTransition(new g.EpsilonTransition(xe));let Me=new s.BasicState;X.addState(Me),Me.addTransition(new i.AtomTransition(pe,X.ruleToTokenType[K])),fe.addTransition(new g.EpsilonTransition(Me))}this.deserializationOptions.isVerifyATN&&this.verifyATN(X)}if(this.deserializationOptions.isOptimize){for(;;){let K=0;K+=ue.inlineSetRules(X),K+=ue.combineChainedEpsilons(X);let fe=X.grammarType===0;if(K+=ue.optimizeSets(X,fe),K===0)break}this.deserializationOptions.isVerifyATN&&this.verifyATN(X)}return ue.identifyTailCalls(X),X}deserializeSets(L,w,H,$){let Y=ue.toInt(L[w++]);for(let re=0;re<Y;re++){let q=ue.toInt(L[w]);w++;let X=new x.IntervalSet;H.push(X),ue.toInt(L[w++])!==0&&X.add(-1);for(let me=0;me<q;me++){let ge=$.readUnicode(L,w);w+=$.size;let j=$.readUnicode(L,w);w+=$.size,X.add(ge,j)}}return w}markPrecedenceDecisions(L){let w=new Map;for(let H of L.states)if(H instanceof S.StarLoopEntryState&&L.ruleToStartState[H.ruleIndex].isPrecedenceRule){let $=H.transition(H.numberOfTransitions-1).target;$ instanceof k.LoopEndState&&$.epsilonOnlyTransitions&&$.transition(0).target instanceof ee.RuleStopState&&(w.set(H.ruleIndex,H),H.precedenceRuleDecision=!0,H.precedenceLoopbackStates=new e.BitSet(L.states.length))}for(let H of w)for(let $ of L.ruleToStopState[H[0]].getTransitions())$.serializationType!==1||$.outermostPrecedenceReturn!==-1||H[1].precedenceLoopbackStates.set($.target.stateNumber)}verifyATN(L){for(let w of L.states)if(this.checkCondition(w!==void 0,"ATN states should not be undefined."),w.stateType!==n.ATNStateType.INVALID_TYPE){if(this.checkCondition(w.onlyHasEpsilonTransitions||w.numberOfTransitions<=1),w instanceof ie.PlusBlockStartState&&this.checkCondition(w.loopBackState!==void 0),w instanceof S.StarLoopEntryState){let H=w;if(this.checkCondition(H.loopBackState!==void 0),this.checkCondition(H.numberOfTransitions===2),H.transition(0).target instanceof E.StarBlockStartState)this.checkCondition(H.transition(1).target instanceof k.LoopEndState),this.checkCondition(!H.nonGreedy);else if(H.transition(0).target instanceof k.LoopEndState)this.checkCondition(H.transition(1).target instanceof E.StarBlockStartState),this.checkCondition(H.nonGreedy);else throw new Error("IllegalStateException")}if(w instanceof A.StarLoopbackState&&(this.checkCondition(w.numberOfTransitions===1),this.checkCondition(w.transition(0).target instanceof S.StarLoopEntryState)),w instanceof k.LoopEndState&&this.checkCondition(w.loopBackState!==void 0),w instanceof Z.RuleStartState&&this.checkCondition(w.stopState!==void 0),w instanceof l.BlockStartState&&this.checkCondition(w.endState!==void 0),w instanceof o.BlockEndState&&this.checkCondition(w.startState!==void 0),w instanceof f.DecisionState){let H=w;this.checkCondition(H.numberOfTransitions<=1||H.decision>=0)}else this.checkCondition(w.numberOfTransitions<=1||w instanceof ee.RuleStopState)}}checkCondition(L,w){if(!L)throw new Error("IllegalStateException: "+w)}static inlineSetRules(L){let w=0,H=new Array(L.ruleToStartState.length);for(let $=0;$<L.ruleToStartState.length;$++){let re=L.ruleToStartState[$];for(;re.onlyHasEpsilonTransitions&&re.numberOfOptimizedTransitions===1&&re.getOptimizedTransition(0).serializationType===1;)re=re.getOptimizedTransition(0).target;if(re.numberOfOptimizedTransitions!==1)continue;let q=re.getOptimizedTransition(0),X=q.target;if(!(q.isEpsilon||!X.onlyHasEpsilonTransitions||X.numberOfOptimizedTransitions!==1||!(X.getOptimizedTransition(0).target instanceof ee.RuleStopState)))switch(q.serializationType){case 5:case 2:case 7:H[$]=q;break;case 8:case 9:continue;default:continue}}for(let $ of L.states){if($.ruleIndex<0)continue;let Y;for(let re=0;re<$.numberOfOptimizedTransitions;re++){let q=$.getOptimizedTransition(re);if(!(q instanceof J.RuleTransition)){Y!==void 0&&Y.push(q);continue}let X=q,se=H[X.target.ruleIndex];if(se===void 0){Y!==void 0&&Y.push(q);continue}if(Y===void 0){Y=[];for(let j=0;j<re;j++)Y.push($.getOptimizedTransition(re))}w++;let me=X.followState,ge=new s.BasicState;switch(ge.setRuleIndex(me.ruleIndex),L.addState(ge),Y.push(new g.EpsilonTransition(ge)),se.serializationType){case 5:ge.addTransition(new i.AtomTransition(me,se._label));break;case 2:ge.addTransition(new le.RangeTransition(me,se.from,se.to));break;case 7:ge.addTransition(new F.SetTransition(me,se.label));break;default:throw new Error("UnsupportedOperationException")}}if(Y!==void 0){if($.isOptimized)for(;$.numberOfOptimizedTransitions>0;)$.removeOptimizedTransition($.numberOfOptimizedTransitions-1);for(let re of Y)$.addOptimizedTransition(re)}}return te.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+w+" rule invocations by inlining sets."),w}static combineChainedEpsilons(L){let w=0;for(let H of L.states){if(!H.onlyHasEpsilonTransitions||H instanceof ee.RuleStopState)continue;let $;e:for(let Y=0;Y<H.numberOfOptimizedTransitions;Y++){let re=H.getOptimizedTransition(Y),q=re.target;if(re.serializationType!==1||re.outermostPrecedenceReturn!==-1||q.stateType!==n.ATNStateType.BASIC||!q.onlyHasEpsilonTransitions){$!==void 0&&$.push(re);continue e}for(let X=0;X<q.numberOfOptimizedTransitions;X++)if(q.getOptimizedTransition(X).serializationType!==1||q.getOptimizedTransition(X).outermostPrecedenceReturn!==-1){$!==void 0&&$.push(re);continue e}if(w++,$===void 0){$=[];for(let X=0;X<Y;X++)$.push(H.getOptimizedTransition(X))}for(let X=0;X<q.numberOfOptimizedTransitions;X++){let se=q.getOptimizedTransition(X).target;$.push(new g.EpsilonTransition(se))}}if($!==void 0){if(H.isOptimized)for(;H.numberOfOptimizedTransitions>0;)H.removeOptimizedTransition(H.numberOfOptimizedTransitions-1);for(let Y of $)H.addOptimizedTransition(Y)}}return te.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+w+" transitions by combining chained epsilon transitions."),w}static optimizeSets(L,w){if(w)return 0;let H=0,$=L.decisionToState;for(let Y of $){let re=new x.IntervalSet;for(let j=0;j<Y.numberOfOptimizedTransitions;j++){let V=Y.getOptimizedTransition(j);if(!(V instanceof g.EpsilonTransition)||V.target.numberOfOptimizedTransitions!==1)continue;let ne=V.target.getOptimizedTransition(0);ne.target instanceof o.BlockEndState&&(ne instanceof U.NotSetTransition||(ne instanceof i.AtomTransition||ne instanceof le.RangeTransition||ne instanceof F.SetTransition)&&re.add(j))}if(re.size<=1)continue;let q=[];for(let j=0;j<Y.numberOfOptimizedTransitions;j++)re.contains(j)||q.push(Y.getOptimizedTransition(j));let X=Y.getOptimizedTransition(re.minElement).target.getOptimizedTransition(0).target,se=new x.IntervalSet;for(let j of re.intervals)for(let V=j.a;V<=j.b;V++){let ne=Y.getOptimizedTransition(V).target.getOptimizedTransition(0);if(ne instanceof U.NotSetTransition)throw new Error("Not yet implemented.");se.addAll(ne.label)}let me;if(se.intervals.length===1)if(se.size===1)me=new i.AtomTransition(X,se.minElement);else{let j=se.intervals[0];me=new le.RangeTransition(X,j.a,j.b)}else me=new F.SetTransition(X,se);let ge=new s.BasicState;if(ge.setRuleIndex(Y.ruleIndex),L.addState(ge),ge.addTransition(me),q.push(new g.EpsilonTransition(ge)),H+=Y.numberOfOptimizedTransitions-q.length,Y.isOptimized)for(;Y.numberOfOptimizedTransitions>0;)Y.removeOptimizedTransition(Y.numberOfOptimizedTransitions-1);for(let j of q)Y.addOptimizedTransition(j)}return te.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+H+" paths by collapsing sets."),H}static identifyTailCalls(L){for(let w of L.states){for(let H=0;H<w.numberOfTransitions;H++){let $=w.transition(H);$ instanceof J.RuleTransition&&($.tailCall=this.testTailCall(L,$,!1),$.optimizedTailCall=this.testTailCall(L,$,!0))}if(w.isOptimized)for(let H=0;H<w.numberOfOptimizedTransitions;H++){let $=w.getOptimizedTransition(H);$ instanceof J.RuleTransition&&($.tailCall=this.testTailCall(L,$,!1),$.optimizedTailCall=this.testTailCall(L,$,!0))}}}static testTailCall(L,w,H){if(!H&&w.tailCall||H&&w.optimizedTailCall)return!0;let $=new e.BitSet(L.states.length),Y=[];for(Y.push(w.followState);;){let re=Y.pop();if(!re)break;if($.get(re.stateNumber)||re instanceof ee.RuleStopState)continue;if(!re.onlyHasEpsilonTransitions)return!1;let q=H?re.numberOfOptimizedTransitions:re.numberOfTransitions;for(let X=0;X<q;X++){let se=H?re.getOptimizedTransition(X):re.transition(X);if(se.serializationType!==1)return!1;Y.push(se.target)}}return!0}static toInt(L){return L}static toInt32(L,w){return(L[w]|L[w+1]<<16)>>>0}static toUUID(L,w){let H=ue.toInt32(L,w),$=ue.toInt32(L,w+2),Y=ue.toInt32(L,w+4),re=ue.toInt32(L,w+6);return new R.UUID(re,Y,$,H)}edgeFactory(L,w,H,$,Y,re,q,X){let se=L.states[$];switch(w){case 1:return new g.EpsilonTransition(se);case 2:return q!==0?new le.RangeTransition(se,C.Token.EOF,re):new le.RangeTransition(se,Y,re);case 3:return new J.RuleTransition(L.states[Y],re,q,se);case 4:return new Ee.PredicateTransition(se,Y,re,q!==0);case 10:return new he.PrecedencePredicateTransition(se,Y);case 5:return q!==0?new i.AtomTransition(se,C.Token.EOF):new i.AtomTransition(se,Y);case 6:return new c.ActionTransition(se,Y,re,q!==0);case 7:return new F.SetTransition(se,X[Y]);case 8:return new U.NotSetTransition(se,X[Y]);case 9:return new I.WildcardTransition(se)}throw new Error("The specified transition type is not valid.")}stateFactory(L,w){let H;switch(L){case n.ATNStateType.INVALID_TYPE:return new m.InvalidState;case n.ATNStateType.BASIC:H=new s.BasicState;break;case n.ATNStateType.RULE_START:H=new Z.RuleStartState;break;case n.ATNStateType.BLOCK_START:H=new t.BasicBlockStartState;break;case n.ATNStateType.PLUS_BLOCK_START:H=new ie.PlusBlockStartState;break;case n.ATNStateType.STAR_BLOCK_START:H=new E.StarBlockStartState;break;case n.ATNStateType.TOKEN_START:H=new P.TokensStartState;break;case n.ATNStateType.RULE_STOP:H=new ee.RuleStopState;break;case n.ATNStateType.BLOCK_END:H=new o.BlockEndState;break;case n.ATNStateType.STAR_LOOP_BACK:H=new A.StarLoopbackState;break;case n.ATNStateType.STAR_LOOP_ENTRY:H=new S.StarLoopEntryState;break;case n.ATNStateType.PLUS_LOOP_BACK:H=new oe.PlusLoopbackState;break;case n.ATNStateType.LOOP_END:H=new k.LoopEndState;break;default:let $=`The specified state type ${L} is not valid.`;throw new Error($)}return H.ruleIndex=w,H}lexerActionFactory(L,w,H){switch(L){case 0:return new y.LexerChannelAction(w);case 1:return new _.LexerCustomAction(w,H);case 2:return new v.LexerModeAction(w);case 3:return N.LexerMoreAction.INSTANCE;case 4:return T.LexerPopModeAction.INSTANCE;case 5:return new b.LexerPushModeAction(w);case 6:return O.LexerSkipAction.INSTANCE;case 7:return new D.LexerTypeAction(w);default:let $=`The specified lexer action type ${L} is not valid.`;throw new Error($)}}};return W.BASE_SERIALIZED_UUID=R.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"),W.ADDED_LEXER_ACTIONS=R.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"),W.ADDED_UNICODE_SMP=R.UUID.fromString("C23FEA89-0605-4f51-AFB8-058BCAB8C91B"),W.SUPPORTED_UUIDS=[W.BASE_SERIALIZED_UUID,W.ADDED_LEXER_ACTIONS,W.ADDED_UNICODE_SMP],W.SERIALIZED_UUID=W.ADDED_UNICODE_SMP,u([z.NotNull],W.prototype,"deserializationOptions",void 0),u([r(0,z.NotNull)],W.prototype,"deserialize",null),u([r(0,z.NotNull)],W.prototype,"markPrecedenceDecisions",null),u([z.NotNull,r(0,z.NotNull)],W.prototype,"edgeFactory",null),Nt.ATNDeserializer=W,Nt}var qt={},gf;function W0(){if(gf)return qt;gf=1;var u=qt&&qt.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s},r=qt&&qt.__param||function(p,a){return function(n,i){a(n,i,p)}};Object.defineProperty(qt,"__esModule",{value:!0}),qt.ParseInfo=void 0;const c=Q();let h=class{constructor(a){this.atnSimulator=a}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let a=this.atnSimulator.getDecisionInfo(),n=[];for(let i=0;i<a.length;i++)a[i].LL_Fallback>0&&n.push(i);return n}getTotalTimeInPrediction(){let a=this.atnSimulator.getDecisionInfo(),n=0;for(let i of a)n+=i.timeInPrediction;return n}getTotalSLLLookaheadOps(){let a=this.atnSimulator.getDecisionInfo(),n=0;for(let i of a)n+=i.SLL_TotalLook;return n}getTotalLLLookaheadOps(){let a=this.atnSimulator.getDecisionInfo(),n=0;for(let i of a)n+=i.LL_TotalLook;return n}getTotalSLLATNLookaheadOps(){let a=this.atnSimulator.getDecisionInfo(),n=0;for(let i of a)n+=i.SLL_ATNTransitions;return n}getTotalLLATNLookaheadOps(){let a=this.atnSimulator.getDecisionInfo(),n=0;for(let i of a)n+=i.LL_ATNTransitions;return n}getTotalATNLookaheadOps(){let a=this.atnSimulator.getDecisionInfo(),n=0;for(let i of a)n+=i.SLL_ATNTransitions,n+=i.LL_ATNTransitions;return n}getDFASize(a){if(a)return this.atnSimulator.atn.decisionToDFA[a].states.size;{let n=0,i=this.atnSimulator.atn.decisionToDFA;for(let t=0;t<i.length;t++)n+=this.getDFASize(t);return n}}};return u([c.NotNull],h.prototype,"getDecisionInfo",null),u([c.NotNull],h.prototype,"getLLDecisions",null),h=u([r(0,c.NotNull)],h),qt.ParseInfo=h,qt}var fn={},vf;function Af(){if(vf)return fn;vf=1;var u=fn&&fn.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s};Object.defineProperty(fn,"__esModule",{value:!0}),fn.ProxyParserErrorListener=void 0;const r=Ms(),c=Q();let h=class extends r.ProxyErrorListener{constructor(a){super(a)}reportAmbiguity(a,n,i,t,s,e,o){this.getDelegates().forEach(l=>{l.reportAmbiguity&&l.reportAmbiguity(a,n,i,t,s,e,o)})}reportAttemptingFullContext(a,n,i,t,s,e){this.getDelegates().forEach(o=>{o.reportAttemptingFullContext&&o.reportAttemptingFullContext(a,n,i,t,s,e)})}reportContextSensitivity(a,n,i,t,s,e){this.getDelegates().forEach(o=>{o.reportContextSensitivity&&o.reportContextSensitivity(a,n,i,t,s,e)})}};return u([c.Override],h.prototype,"reportAmbiguity",null),u([c.Override],h.prototype,"reportAttemptingFullContext",null),u([c.Override],h.prototype,"reportContextSensitivity",null),fn.ProxyParserErrorListener=h,fn}var hn={},Vs={},Ws={},kt={},Tf;function G0(){if(Tf)return kt;Tf=1;Object.defineProperty(kt,"__esModule",{value:!0}),kt.isSupplementaryCodePoint=kt.isLowSurrogate=kt.isHighSurrogate=void 0;function u(h){return h>=55296&&h<=56319}kt.isHighSurrogate=u;function r(h){return h>=56320&&h<=57343}kt.isLowSurrogate=r;function c(h){return h>=65536}return kt.isSupplementaryCodePoint=c,kt}var Ef;function Sf(){return Ef||(Ef=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.CodePointBuffer=void 0;const r=Fe(),c=G0();class h{constructor(a,n){this.buffer=a,this._position=0,this._size=n}static withArray(a){return new h(a,a.length)}get position(){return this._position}set position(a){if(a<0||a>this._size)throw new RangeError;this._position=a}get remaining(){return this._size-this.position}get(a){return this.buffer[a]}array(){return this.buffer.slice(0,this._size)}static builder(a){return new h.Builder(a)}}u.CodePointBuffer=h,(function(p){let a;(function(i){i[i.BYTE=0]="BYTE",i[i.CHAR=1]="CHAR",i[i.INT=2]="INT"})(a||(a={}));class n{constructor(t){this.type=0,this.buffer=new Uint8Array(t),this.prevHighSurrogate=-1,this.position=0}build(){return new p(this.buffer,this.position)}static roundUpToNextPowerOfTwo(t){let s=32-Math.clz32(t-1);return Math.pow(2,s)}ensureRemaining(t){switch(this.type){case 0:if(this.buffer.length-this.position<t){let s=n.roundUpToNextPowerOfTwo(this.buffer.length+t),e=new Uint8Array(s);e.set(this.buffer.subarray(0,this.position),0),this.buffer=e}break;case 1:if(this.buffer.length-this.position<t){let s=n.roundUpToNextPowerOfTwo(this.buffer.length+t),e=new Uint16Array(s);e.set(this.buffer.subarray(0,this.position),0),this.buffer=e}break;case 2:if(this.buffer.length-this.position<t){let s=n.roundUpToNextPowerOfTwo(this.buffer.length+t),e=new Int32Array(s);e.set(this.buffer.subarray(0,this.position),0),this.buffer=e}break}}append(t){this.ensureRemaining(t.length),this.appendArray(t)}appendArray(t){switch(this.type){case 0:this.appendArrayByte(t);break;case 1:this.appendArrayChar(t);break;case 2:this.appendArrayInt(t);break}}appendArrayByte(t){r(this.prevHighSurrogate===-1);let s=t,e=0,o=t.length,l=this.buffer,f=this.position;for(;e<o;){let d=s[e];if(d<=255)l[f]=d;else if(t=t.subarray(e,o),this.position=f,c.isHighSurrogate(d)){this.byteToIntBuffer(t.length),this.appendArrayInt(t);return}else{this.byteToCharBuffer(t.length),this.appendArrayChar(t);return}e++,f++}this.position=f}appendArrayChar(t){r(this.prevHighSurrogate===-1);let s=t,e=0,o=t.length,l=this.buffer,f=this.position;for(;e<o;){let d=s[e];if(!c.isHighSurrogate(d))l[f]=d;else{t=t.subarray(e,o),this.position=f,this.charToIntBuffer(t.length),this.appendArrayInt(t);return}e++,f++}this.position=f}appendArrayInt(t){let s=t,e=0,o=t.length,l=this.buffer,f=this.position;for(;e<o;){let d=s[e];e++,this.prevHighSurrogate!==-1?c.isLowSurrogate(d)?(l[f]=String.fromCharCode(this.prevHighSurrogate,d).codePointAt(0),f++,this.prevHighSurrogate=-1):(l[f]=this.prevHighSurrogate,f++,c.isHighSurrogate(d)?this.prevHighSurrogate=d:(l[f]=d,f++,this.prevHighSurrogate=-1)):c.isHighSurrogate(d)?this.prevHighSurrogate=d:(l[f]=d,f++)}this.prevHighSurrogate!==-1&&(l[f]=this.prevHighSurrogate,f++),this.position=f}byteToCharBuffer(t){let s=new Uint16Array(Math.max(this.position+t,this.buffer.length>>1));s.set(this.buffer.subarray(0,this.position),0),this.type=1,this.buffer=s}byteToIntBuffer(t){let s=new Int32Array(Math.max(this.position+t,this.buffer.length>>2));s.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=s}charToIntBuffer(t){let s=new Int32Array(Math.max(this.position+t,this.buffer.length>>1));s.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=s}}p.Builder=n})(h=u.CodePointBuffer||(u.CodePointBuffer={}))})(Ws)),Ws}var pn={},Nf;function bf(){if(Nf)return pn;Nf=1;var u=pn&&pn.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o};Object.defineProperty(pn,"__esModule",{value:!0}),pn.CodePointCharStream=void 0;const r=Fe(),c=ur(),h=je(),p=Q();let a=class gp{constructor(i,t,s,e){r(t===0),this._array=i,this._size=s,this._name=e,this._position=0}get internalStorage(){return this._array}static fromBuffer(i,t){return(t===void 0||t.length===0)&&(t=c.IntStream.UNKNOWN_SOURCE_NAME),new gp(i.array(),i.position,i.remaining,t)}consume(){if(this._size-this._position===0)throw r(this.LA(1)===c.IntStream.EOF),new RangeError("cannot consume EOF");this._position++}get index(){return this._position}get size(){return this._size}mark(){return-1}release(i){}seek(i){this._position=i}get sourceName(){return this._name}toString(){return this.getText(h.Interval.of(0,this.size-1))}LA(i){let t;switch(Math.sign(i)){case-1:return t=this.index+i,t<0?c.IntStream.EOF:this._array[t];case 0:return 0;case 1:return t=this.index+i-1,t>=this.size?c.IntStream.EOF:this._array[t]}throw new RangeError("Not reached")}getText(i){const t=Math.min(i.a,this.size),s=Math.min(i.b-i.a+1,this.size-t);return this._array instanceof Int32Array?String.fromCodePoint(...Array.from(this._array.subarray(t,t+s))):String.fromCharCode(...Array.from(this._array.subarray(t,t+s)))}};return u([p.Override],a.prototype,"consume",null),u([p.Override],a.prototype,"index",null),u([p.Override],a.prototype,"size",null),u([p.Override],a.prototype,"mark",null),u([p.Override],a.prototype,"release",null),u([p.Override],a.prototype,"seek",null),u([p.Override],a.prototype,"sourceName",null),u([p.Override],a.prototype,"toString",null),u([p.Override],a.prototype,"LA",null),u([p.Override],a.prototype,"getText",null),pn.CodePointCharStream=a,pn}var Cf;function Gs(){return Cf||(Cf=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.CharStreams=void 0;const r=Sf(),c=bf(),h=ur();(function(p){function a(n,i){(i===void 0||i.length===0)&&(i=h.IntStream.UNKNOWN_SOURCE_NAME);let t=r.CodePointBuffer.builder(n.length),s=new Uint16Array(n.length);for(let e=0;e<n.length;e++)s[e]=n.charCodeAt(e);return t.append(s),c.CodePointCharStream.fromBuffer(t.build(),i)}p.fromString=a})(u.CharStreams||(u.CharStreams={}))})(Vs)),Vs}var Ut={},zt={},Of;function Rf(){if(Of)return zt;Of=1;var u=zt&&zt.__decorate||function(s,e,o,l){var f=arguments.length,d=f<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,o):l,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(s,e,o,l);else for(var x=s.length-1;x>=0;x--)(g=s[x])&&(d=(f<3?g(d):f>3?g(e,o,d):g(e,o))||d);return f>3&&d&&Object.defineProperty(e,o,d),d},r=zt&&zt.__param||function(s,e){return function(o,l){e(o,l,s)}};Object.defineProperty(zt,"__esModule",{value:!0}),zt.BufferedTokenStream=void 0;const c=Fe(),h=Vn(),p=je(),a=hr(),n=Q(),i=Ce();let t=class{constructor(e){if(this.tokens=[],this.p=-1,this.fetchedEOF=!1,e==null)throw new Error("tokenSource cannot be null");this._tokenSource=e}get tokenSource(){return this._tokenSource}set tokenSource(e){this._tokenSource=e,this.tokens.length=0,this.p=-1,this.fetchedEOF=!1}get index(){return this.p}mark(){return 0}release(e){}seek(e){this.lazyInit(),this.p=this.adjustSeekIndex(e)}get size(){return this.tokens.length}consume(){let e;if(this.p>=0?this.fetchedEOF?e=this.p<this.tokens.length-1:e=this.p<this.tokens.length:e=!1,!e&&this.LA(1)===i.Token.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1))}sync(e){c(e>=0);let o=e-this.tokens.length+1;return o>0?this.fetch(o)>=o:!0}fetch(e){if(this.fetchedEOF)return 0;for(let o=0;o<e;o++){let l=this.tokenSource.nextToken();if(this.isWritableToken(l)&&(l.tokenIndex=this.tokens.length),this.tokens.push(l),l.type===i.Token.EOF)return this.fetchedEOF=!0,o+1}return e}get(e){if(e<0||e>=this.tokens.length)throw new RangeError("token index "+e+" out of range 0.."+(this.tokens.length-1));return this.tokens[e]}getRange(e,o){if(e<0||o<0)return[];this.lazyInit();let l=new Array;o>=this.tokens.length&&(o=this.tokens.length-1);for(let f=e;f<=o;f++){let d=this.tokens[f];if(d.type===i.Token.EOF)break;l.push(d)}return l}LA(e){let o=this.LT(e);return o?o.type:i.Token.INVALID_TYPE}tryLB(e){if(!(this.p-e<0))return this.tokens[this.p-e]}LT(e){let o=this.tryLT(e);if(o===void 0)throw new RangeError("requested lookback index out of range");return o}tryLT(e){if(this.lazyInit(),e===0)throw new RangeError("0 is not a valid lookahead index");if(e<0)return this.tryLB(-e);let o=this.p+e-1;return this.sync(o),o>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[o]}adjustSeekIndex(e){return e}lazyInit(){this.p===-1&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}getTokens(e,o,l){if(this.lazyInit(),e===void 0)return c(o===void 0&&l===void 0),this.tokens;if(o===void 0&&(o=this.tokens.length-1),e<0||o>=this.tokens.length||o<0||e>=this.tokens.length)throw new RangeError("start "+e+" or stop "+o+" not in 0.."+(this.tokens.length-1));if(e>o)return[];if(l===void 0)return this.tokens.slice(e,o+1);typeof l=="number"&&(l=new Set().add(l));let f=l,d=this.tokens.slice(e,o+1);return d=d.filter(g=>f.has(g.type)),d}nextTokenOnChannel(e,o){if(this.sync(e),e>=this.size)return this.size-1;let l=this.tokens[e];for(;l.channel!==o;){if(l.type===i.Token.EOF)return e;e++,this.sync(e),l=this.tokens[e]}return e}previousTokenOnChannel(e,o){if(this.sync(e),e>=this.size)return this.size-1;for(;e>=0;){let l=this.tokens[e];if(l.type===i.Token.EOF||l.channel===o)return e;e--}return e}getHiddenTokensToRight(e,o=-1){if(this.lazyInit(),e<0||e>=this.tokens.length)throw new RangeError(e+" not in 0.."+(this.tokens.length-1));let l=this.nextTokenOnChannel(e+1,a.Lexer.DEFAULT_TOKEN_CHANNEL),f,d=e+1;return l===-1?f=this.size-1:f=l,this.filterForChannel(d,f,o)}getHiddenTokensToLeft(e,o=-1){if(this.lazyInit(),e<0||e>=this.tokens.length)throw new RangeError(e+" not in 0.."+(this.tokens.length-1));if(e===0)return[];let l=this.previousTokenOnChannel(e-1,a.Lexer.DEFAULT_TOKEN_CHANNEL);if(l===e-1)return[];let f=l+1,d=e-1;return this.filterForChannel(f,d,o)}filterForChannel(e,o,l){let f=new Array;for(let d=e;d<=o;d++){let g=this.tokens[d];l===-1?g.channel!==a.Lexer.DEFAULT_TOKEN_CHANNEL&&f.push(g):g.channel===l&&f.push(g)}return f}get sourceName(){return this.tokenSource.sourceName}getText(e){e===void 0?e=p.Interval.of(0,this.size-1):e instanceof p.Interval||(e=e.sourceInterval);let o=e.a,l=e.b;if(o<0||l<0)return"";this.fill(),l>=this.tokens.length&&(l=this.tokens.length-1);let f="";for(let d=o;d<=l;d++){let g=this.tokens[d];if(g.type===i.Token.EOF)break;f+=g.text}return f.toString()}getTextFromRange(e,o){return this.isToken(e)&&this.isToken(o)?this.getText(p.Interval.of(e.tokenIndex,o.tokenIndex)):""}fill(){this.lazyInit();const e=1e3;for(;;)if(this.fetch(e)<e)return}isWritableToken(e){return e instanceof h.CommonToken}isToken(e){return e instanceof h.CommonToken}};return u([n.NotNull],t.prototype,"_tokenSource",void 0),u([n.Override],t.prototype,"tokenSource",null),u([n.Override],t.prototype,"index",null),u([n.Override],t.prototype,"mark",null),u([n.Override],t.prototype,"release",null),u([n.Override],t.prototype,"seek",null),u([n.Override],t.prototype,"size",null),u([n.Override],t.prototype,"consume",null),u([n.Override],t.prototype,"get",null),u([n.Override],t.prototype,"LA",null),u([n.NotNull,n.Override],t.prototype,"LT",null),u([n.Override],t.prototype,"sourceName",null),u([n.NotNull,n.Override],t.prototype,"getText",null),u([n.NotNull,n.Override],t.prototype,"getTextFromRange",null),t=u([r(0,n.NotNull)],t),zt.BufferedTokenStream=t,zt}var Pf;function $s(){if(Pf)return Ut;Pf=1;var u=Ut&&Ut.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o},r=Ut&&Ut.__param||function(n,i){return function(t,s){i(t,s,n)}};Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.CommonTokenStream=void 0;const c=Rf(),h=Q(),p=Ce();let a=class extends c.BufferedTokenStream{constructor(i,t=p.Token.DEFAULT_CHANNEL){super(i),this.channel=t}adjustSeekIndex(i){return this.nextTokenOnChannel(i,this.channel)}tryLB(i){if(this.p-i<0)return;let t=this.p,s=1;for(;s<=i&&t>0;)t=this.previousTokenOnChannel(t-1,this.channel),s++;if(!(t<0))return this.tokens[t]}tryLT(i){if(this.lazyInit(),i===0)throw new RangeError("0 is not a valid lookahead index");if(i<0)return this.tryLB(-i);let t=this.p,s=1;for(;s<i;)this.sync(t+1)&&(t=this.nextTokenOnChannel(t+1,this.channel)),s++;return this.tokens[t]}getNumberOfOnChannelTokens(){let i=0;this.fill();for(let t of this.tokens)if(t.channel===this.channel&&i++,t.type===p.Token.EOF)break;return i}};return u([h.Override],a.prototype,"adjustSeekIndex",null),u([h.Override],a.prototype,"tryLB",null),u([h.Override],a.prototype,"tryLT",null),a=u([r(0,h.NotNull)],a),Ut.CommonTokenStream=a,Ut}var Ht={},Df;function If(){if(Df)return Ht;Df=1;var u=Ht&&Ht.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o},r=Ht&&Ht.__param||function(n,i){return function(t,s){i(t,s,n)}};Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.ListTokenSource=void 0;const c=Bs(),h=Q(),p=Ce();let a=class{constructor(i,t){if(this.i=0,this._factory=c.CommonTokenFactory.DEFAULT,i==null)throw new Error("tokens cannot be null");this.tokens=i,this._sourceName=t}get charPositionInLine(){if(this.i<this.tokens.length)return this.tokens[this.i].charPositionInLine;if(this.eofToken!=null)return this.eofToken.charPositionInLine;if(this.tokens.length>0){let i=this.tokens[this.tokens.length-1],t=i.text;if(t!=null){let s=t.lastIndexOf(`
|
|
78
|
+
`);if(s>=0)return t.length-s-1}return i.charPositionInLine+i.stopIndex-i.startIndex+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(this.eofToken==null){let t=-1;if(this.tokens.length>0){let e=this.tokens[this.tokens.length-1].stopIndex;e!==-1&&(t=e+1)}let s=Math.max(-1,t-1);this.eofToken=this._factory.create({source:this,stream:this.inputStream},p.Token.EOF,"EOF",p.Token.DEFAULT_CHANNEL,t,s,this.line,this.charPositionInLine)}return this.eofToken}let i=this.tokens[this.i];return this.i===this.tokens.length-1&&i.type===p.Token.EOF&&(this.eofToken=i),this.i++,i}get line(){if(this.i<this.tokens.length)return this.tokens[this.i].line;if(this.eofToken!=null)return this.eofToken.line;if(this.tokens.length>0){let i=this.tokens[this.tokens.length-1],t=i.line,s=i.text;if(s!=null)for(let e=0;e<s.length;e++)s.charAt(e)===`
|
|
79
|
+
`&&t++;return t}return 1}get inputStream(){if(this.i<this.tokens.length)return this.tokens[this.i].inputStream;if(this.eofToken!=null)return this.eofToken.inputStream;if(this.tokens.length>0)return this.tokens[this.tokens.length-1].inputStream}get sourceName(){if(this._sourceName)return this._sourceName;let i=this.inputStream;return i!=null?i.sourceName:"List"}set tokenFactory(i){this._factory=i}get tokenFactory(){return this._factory}};return u([h.Override],a.prototype,"charPositionInLine",null),u([h.Override],a.prototype,"nextToken",null),u([h.Override],a.prototype,"line",null),u([h.Override],a.prototype,"inputStream",null),u([h.Override],a.prototype,"sourceName",null),u([h.Override,h.NotNull,r(0,h.NotNull)],a.prototype,"tokenFactory",null),a=u([r(0,h.NotNull)],a),Ht.ListTokenSource=a,Ht}var ai={},Lf;function $0(){if(Lf)return ai;Lf=1;Object.defineProperty(ai,"__esModule",{value:!0}),ai.MultiMap=void 0;let u=class extends Map{constructor(){super()}map(c,h){let p=super.get(c);p||(p=[],super.set(c,p)),p.push(h)}getPairs(){let c=[];return this.forEach((h,p)=>{h.forEach(a=>{c.push([p,a])})}),c}};return ai.MultiMap=u,ai}var li={},wf;function Ff(){if(wf)return li;wf=1;Object.defineProperty(li,"__esModule",{value:!0}),li.ParseCancellationException=void 0;let u=class extends Error{constructor(c){super(c.message),this.cause=c,this.stack=c.stack}getCause(){return this.cause}};return li.ParseCancellationException=u,li}var Vt={},dn={},Bf;function jf(){if(Bf)return dn;Bf=1;var u=dn&&dn.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s};Object.defineProperty(dn,"__esModule",{value:!0}),dn.InterpreterRuleContext=void 0;const r=Q(),c=Ke();let h=class extends c.ParserRuleContext{constructor(a,n,i){i!==void 0?super(n,i):super(),this._ruleIndex=a}get ruleIndex(){return this._ruleIndex}};return u([r.Override],h.prototype,"ruleIndex",null),dn.InterpreterRuleContext=h,dn}var Mf;function qf(){if(Mf)return Vt;Mf=1;var u=Vt&&Vt.__decorate||function(m,y,_,v){var N=arguments.length,T=N<3?y:v===null?v=Object.getOwnPropertyDescriptor(y,_):v,b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(m,y,_,v);else for(var O=m.length-1;O>=0;O--)(b=m[O])&&(T=(N<3?b(T):N>3?b(y,_,T):b(y,_))||T);return N>3&&T&&Object.defineProperty(y,_,T),T},r=Vt&&Vt.__param||function(m,y){return function(_,v){y(_,v,m)}};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.ParserInterpreter=void 0;const c=nt(),h=Ie(),p=fr(),a=Ii(),n=Li(),i=jf(),t=Kc(),s=Q(),e=Q(),o=di(),l=si(),f=ar(),d=qs(),g=Ce();let x=class Cu extends o.Parser{constructor(y,_,v,N,T){if(super(y instanceof Cu?y.inputStream:T),this._parentContextStack=[],this.overrideDecision=-1,this.overrideDecisionInputIndex=-1,this.overrideDecisionAlt=-1,this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0,y instanceof Cu){let b=y;this._grammarFileName=b._grammarFileName,this._atn=b._atn,this.pushRecursionContextStates=b.pushRecursionContextStates,this._ruleNames=b._ruleNames,this._vocabulary=b._vocabulary,this.interpreter=new l.ParserATNSimulator(this._atn,this)}else{_=_,v=v,N=N,this._grammarFileName=y,this._atn=N,this._ruleNames=v.slice(0),this._vocabulary=_,this.pushRecursionContextStates=new p.BitSet(N.states.length);for(let b of N.states)b instanceof d.StarLoopEntryState&&b.precedenceRuleDecision&&this.pushRecursionContextStates.set(b.stateNumber);this.interpreter=new l.ParserATNSimulator(N,this)}}reset(y){y===void 0?super.reset():super.reset(y),this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0}get atn(){return this._atn}get vocabulary(){return this._vocabulary}get ruleNames(){return this._ruleNames}get grammarFileName(){return this._grammarFileName}parse(y){let _=this._atn.ruleToStartState[y];for(this._rootContext=this.createInterpreterRuleContext(void 0,c.ATNState.INVALID_STATE_NUMBER,y),_.isPrecedenceRule?this.enterRecursionRule(this._rootContext,_.stateNumber,y,0):this.enterRule(this._rootContext,_.stateNumber,y);;){let v=this.atnState;switch(v.stateType){case h.ATNStateType.RULE_STOP:if(this._ctx.isEmpty)if(_.isPrecedenceRule){let N=this._ctx,T=this._parentContextStack.pop();return this.unrollRecursionContexts(T[0]),N}else return this.exitRule(),this._rootContext;this.visitRuleStopState(v);break;default:try{this.visitState(v)}catch(N){if(N instanceof f.RecognitionException)this.state=this._atn.ruleToStopState[v.ruleIndex].stateNumber,this.context.exception=N,this.errorHandler.reportError(this,N),this.recover(N);else throw N}break}}}enterRecursionRule(y,_,v,N){this._parentContextStack.push([this._ctx,y.invokingState]),super.enterRecursionRule(y,_,v,N)}get atnState(){return this._atn.states[this.state]}visitState(y){let _=1;y.numberOfTransitions>1&&(_=this.visitDecisionState(y));let v=y.transition(_-1);switch(v.serializationType){case 1:if(this.pushRecursionContextStates.get(y.stateNumber)&&!(v.target instanceof t.LoopEndState)){let k=this._parentContextStack[this._parentContextStack.length-1],z=this.createInterpreterRuleContext(k[0],k[1],this._ctx.ruleIndex);this.pushNewRecursionContext(z,this._atn.ruleToStartState[y.ruleIndex].stateNumber,this._ctx.ruleIndex)}break;case 5:this.match(v._label);break;case 2:case 7:case 8:v.matches(this._input.LA(1),g.Token.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case 9:this.matchWildcard();break;case 3:let N=v.target,T=N.ruleIndex,b=this.createInterpreterRuleContext(this._ctx,y.stateNumber,T);N.isPrecedenceRule?this.enterRecursionRule(b,N.stateNumber,T,v.precedence):this.enterRule(b,v.target.stateNumber,T);break;case 4:let O=v;if(!this.sempred(this._ctx,O.ruleIndex,O.predIndex))throw new a.FailedPredicateException(this);break;case 6:let D=v;this.action(this._ctx,D.ruleIndex,D.actionIndex);break;case 10:if(!this.precpred(this._ctx,v.precedence)){let k=v.precedence;throw new a.FailedPredicateException(this,`precpred(_ctx, ${k})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=v.target.stateNumber}visitDecisionState(y){let _;this.errorHandler.sync(this);let v=y.decision;return v===this.overrideDecision&&this._input.index===this.overrideDecisionInputIndex&&!this.overrideDecisionReached?(_=this.overrideDecisionAlt,this.overrideDecisionReached=!0):_=this.interpreter.adaptivePredict(this._input,v,this._ctx),_}createInterpreterRuleContext(y,_,v){return new i.InterpreterRuleContext(v,y,_)}visitRuleStopState(y){if(this._atn.ruleToStartState[y.ruleIndex].isPrecedenceRule){let N=this._parentContextStack.pop();this.unrollRecursionContexts(N[0]),this.state=N[1]}else this.exitRule();let v=this._atn.states[this.state].transition(0);this.state=v.followState.stateNumber}addDecisionOverride(y,_,v){this.overrideDecision=y,this.overrideDecisionInputIndex=_,this.overrideDecisionAlt=v}get overrideDecisionRoot(){return this._overrideDecisionRoot}recover(y){let _=this._input.index;if(this.errorHandler.recover(this,y),this._input.index===_){let v=y.getOffendingToken();if(!v)throw new Error("Expected exception to have an offending token");let N=v.tokenSource,T=N!==void 0?N.inputStream:void 0,b={source:N,stream:T};if(y instanceof n.InputMismatchException){let O=y.expectedTokens;if(O===void 0)throw new Error("Expected the exception to provide expected tokens");let D=g.Token.INVALID_TYPE;O.isNil||(D=O.minElement);let k=this.tokenFactory.create(b,D,v.text,g.Token.DEFAULT_CHANNEL,-1,-1,v.line,v.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,k))}else{v.tokenSource;let O=this.tokenFactory.create(b,g.Token.INVALID_TYPE,v.text,g.Token.DEFAULT_CHANNEL,-1,-1,v.line,v.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,O))}}}recoverInline(){return this._errHandler.recoverInline(this)}get rootContext(){return this._rootContext}};return u([s.NotNull],x.prototype,"_vocabulary",void 0),u([e.Override],x.prototype,"reset",null),u([e.Override],x.prototype,"atn",null),u([e.Override],x.prototype,"vocabulary",null),u([e.Override],x.prototype,"ruleNames",null),u([e.Override],x.prototype,"grammarFileName",null),u([e.Override],x.prototype,"enterRecursionRule",null),x=u([r(1,s.NotNull)],x),Vt.ParserInterpreter=x,Vt}var Wt={},kf;function X0(){if(kf)return Wt;kf=1;var u=Wt&&Wt.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s},r=Wt&&Wt.__param||function(p,a){return function(n,i){a(n,i,p)}};Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.ParseTreeMatch=void 0;const c=Q();let h=class{constructor(a,n,i,t){if(!a)throw new Error("tree cannot be null");if(!n)throw new Error("pattern cannot be null");if(!i)throw new Error("labels cannot be null");this._tree=a,this._pattern=n,this._labels=i,this._mismatchedNode=t}get(a){let n=this._labels.get(a);if(!(!n||n.length===0))return n[n.length-1]}getAll(a){const n=this._labels.get(a);return n||[]}get labels(){return this._labels}get mismatchedNode(){return this._mismatchedNode}get succeeded(){return!this._mismatchedNode}get pattern(){return this._pattern}get tree(){return this._tree}toString(){return`Match ${this.succeeded?"succeeded":"failed"}; found ${this.labels.size} labels`}};return u([c.NotNull,r(0,c.NotNull)],h.prototype,"getAll",null),u([c.NotNull],h.prototype,"labels",null),u([c.NotNull],h.prototype,"pattern",null),u([c.NotNull],h.prototype,"tree",null),u([c.Override],h.prototype,"toString",null),h=u([r(0,c.NotNull),r(1,c.NotNull),r(2,c.NotNull)],h),Wt.ParseTreeMatch=h,Wt}var Gt={},ci={},fi={},Uf;function K0(){if(Uf)return fi;Uf=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.XPathLexer=void 0;const u=Hs(),r=hr(),c=Mi(),h=Mr(),p=at();let a=class Ue extends r.Lexer{constructor(i){super(i),this._interp=new c.LexerATNSimulator(Ue._ATN,this)}get vocabulary(){return Ue.VOCABULARY}get grammarFileName(){return"XPathLexer.g4"}get ruleNames(){return Ue.ruleNames}get serializedATN(){return Ue._serializedATN}get channelNames(){return Ue.channelNames}get modeNames(){return Ue.modeNames}action(i,t,s){switch(t){case 4:this.ID_action(i,s);break}}ID_action(i,t){switch(t){case 0:let s=this.text;s.charAt(0)===s.charAt(0).toUpperCase()?this.type=Ue.TOKEN_REF:this.type=Ue.RULE_REF;break}}static get _ATN(){return Ue.__ATN||(Ue.__ATN=new u.ATNDeserializer().deserialize(p.toCharArray(Ue._serializedATN))),Ue.__ATN}};return fi.XPathLexer=a,a.TOKEN_REF=1,a.RULE_REF=2,a.ANYWHERE=3,a.ROOT=4,a.WILDCARD=5,a.BANG=6,a.ID=7,a.STRING=8,a.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],a.modeNames=["DEFAULT_MODE"],a.ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"],a._LITERAL_NAMES=[void 0,void 0,void 0,"'//'","'/'","'*'","'!'"],a._SYMBOLIC_NAMES=[void 0,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"],a.VOCABULARY=new h.VocabularyImpl(a._LITERAL_NAMES,a._SYMBOLIC_NAMES,[]),a._serializedATNSegments=2,a._serializedATNSegment0=`줝쪺֍꾺体؇쉁
|
|
80
80
|
2\b \x07 \x07\b \b \x07
|
|
81
81
|
\f"\v\x07\x07\b\b \x07 ,
|
|
82
82
|
\f /\v -
|
|
83
83
|
\x07\x07 \b\v \r
|
|
84
84
|
ʶ
|
|
85
85
|
2;C\\aac|¡¬¬¯¯··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰̂ͶͼͿΈΈΊΌΎΎΐΣΥϷϹ҃҅҉ҌԱԳ՛՛գ։ֿׁׁ֓׃ׄ׆ׇגײ״؇ؒ؞؞آ٫ٰە۪ۗ۟ۡ۬۾܁܁ܑݏ߂߷ࠂࡂࢢࢶࢸࢿࣖ॥२ॱॳঅইকপবলসা্য়ৡ২৳ਃਅਇਕਪਬਲਵਸਾਾੀ੍ਜ਼ਫ਼੨ઃઅઇએઑઓકપબલવષાેૉો્ૢ૨૱ૻૻଃଅଇକପବଲଵଷା୍ୟୡ୨ୱ୳୳அஇஐஒஔஜஞஞபரீைொௌ௨௱ంఅఇఎఐఒఔపబిెైొౌౘౚౢ౨ಂಅಇಎಐಒಔಪಬವಷಾೆೈೊೌೠೠೢ೨ೱೳഃഅഇഎഐഒഔ഼ിെൈൊൌൖ൙ൡ൨൱ർඁඅඇගඳඵලෂෑූෘෘේ෨෴ฃโ๐๒๛ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯົຽໂໆ່່໊໒ໞ༂༂༚༛༢༫༹༹༷༷༻༻ཀཉཋཱི྆ྈྙྛ྾࿈࿈ဂ။ၒ႟ႢჇგჼჾቊቌቒቘቚቚቜቢኊኌኒኲኴኺዀዂዂዄዊዘዚጒጔጚ፟፡ᎂ᎑Ꭲᏺᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰᜂᜎᜐᜢ᜶ᝂᝢᝮᝰᝲគ៕៙៙២᠍᠐᠒ᠢᢂᢲᤂᤠᤢᤲ᥈ᥲᦂᦲ᧒ᨂᨢ᩠ᩢ᪁᪒᪩᪩ᪿ᪲ᬂ᭒᭛᭭᭵ᮂᰂ᱂ᱏ᱿ᲂ᳔᳖᳒᳸ᳺᴂ᷽᷷ἚἢὊὒὙὛὛὝὝὟὟὡᾂᾶᾸι῀῀ῄῆῈ῎ῒῘ῝ῢ΅ῴῶῸ῾‑‰⁁⁂⁖⁖ⁱ₁₁ₒ⃒⃞⃣⃣⃧℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮⴂⴧⴲⶁⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠⷢ⸁⸱⸱〇〉〣〱〳〷〺〾ぃ゛゜ゟァィーヾㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂꓒ꓿ꔂ꘎ꘒꙂ꙱ꙶꙿꚁ꛳ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹ꠩ꡂ꡵ꢂ꣒꣢꣹ꣽꣽꣿꣿ꤂꤯ꤲꥢꦂ꧂꧑ꧢꨀꨂꩂ꩒ꩢ꩸ꩼꫝ꫟ꫢ꫱ꫴꬃꬋꬓꬢꬨꬪꬰꬲꭜꭞꭧꭲ꯬꯲갂ힲퟍ車全flﬕײַשׁשּׁטּךּמּנּנּףּצּרּ﮳ﯕ﴿ﵒﶔﷲ﷽︂︑︢︱︵︶﹏﹑ﹲﹶﹸ!!2;C\aac|ィᅣᅩᅯᅵ�\r(*<>?AOR_üłŶǿǿʂʞʢ˒ˢˢ̡̲̂͌͒ͼΟυϊϑϓϗЂҟҢҫҲӕӚӽԂԩԲեܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠࣶࣴࣷंगढऻংহীুਂਅਇਈਕਗਙਛਵ਼ੁੁંઞૂૉો૨ଂଷୂୗୢ୴ஂஓంొಂೂဂ၈ၨၱႁႼႿႿგცჲ჻ᄂᄶᄸᅁᅒᅵᅸᅸᆂᇆᇌᇎᇒᇜᇞᇞሂሓሕሹቀቀኂኈኊኊኌኑኟኡኪኲዬዲዻጂጅጇጎጒጕጪጬጲጴጵጷጻጾፆፉፊፍፏፒፒፙፙ፟፥፨፮፲፶ᐂᑌᑒᑛᒂᓇᓉᓉᓒᓛᖂᖷᖺᗂᗚᗟᘂᙂᙆᙆᙒᙛᚂᚹᛂᛋᜂᜟᜭᜲᢢᣫᤁᤁ᫂ᰂᰊᰌ᱂᱒ᱛᱴᲑᲔᲩᲫᲸ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠橢橫櫒櫯櫲櫶欂欸歂歅歒歛步歹歿殑漂潆潒澀澑澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛벟베벢벥텧텫텯톄톇톍톬톯퉄퉆퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌ퟄퟆퟍퟐ\uD801\uDA02\uDA38\uDA3D\uDA6E\uDA77\uDA77\uDA86\uDA86\uDA9D\uDAA1\uDAA3\uDAB1ꛘ꜂뜶띂렟렢캣﨟"ĂDZɀC\\c|¬¬··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰ͲͶͼͿΈΈΊΌΎΎΐΣΥϷϹ҃ҌԱԳ՛՛գ։גײ״آٌٰٱٳەۗۗۧۨ۰۱ۼ۾܁܁ܒܒܔܱݏާߌ߬߶߷ࠂࠗࠜࠜࠦࠦࠪࠪࡂ࡚ࢢࢶࢸࢿआऻिि॒॒ग़ॣॳংইকপবলসিিয়ৡৣ৲৳ਇਕਪਬਲਵਸਜ਼ਫ਼ੴ੶ઇએઑઓકપબલવષિિૢૣૻૻଇକପବଲଵଷିିୟୡୣ୳୳அஅஇஐஒஔஜஞஞபரఇఎఐఒఔపబిిౚౢౣಂಂಇಎಐಒಔಪಬವಷಿಿೠೠೢೣೳഇഎഐഒഔ഼ിിൖ൘ൡൣർඁඇගඳඵලෂฃาิีโ่ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯາິີໂໆ່່ໞ༂༂གཉཋྊྎဂာ၁၁ၒၗၜၟၣၣၧၨၰၲၷႃ႐႐ႢჇგჼჾቊቌቒቘቚቚቜቢኊኌኒኲኴኺዀዂዂዄዊዘዚጒጔጚᎂ᎑Ꭲᏺᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰᜂᜎᜐᜓᜢᜳᝂᝓᝢᝮᝰᝲគ឵៙៙ᠢᢂᢆᢉᢪᢲᤂᤠᥒᥲᦂᦲᨂᨘᨢᩖ᪩᪩ᬈᭇᮅᮢ᮰᮱ᮼᯧᰂᰥᱏ᱑ᱜ᱿ᲂᳫᳮᳰᳳ᳷᳸ᴂ᷁ḂἚἢὊὒὙὛὛὝὝὟὟὡᾂᾶᾸι῀῀ῄῆῈ῎ῒῘ῝ῢ΅ῴῶῸ῾₁₁ₒ℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳰ⴂⴧⴲⶂⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠ⸱⸱〇〉〣〫〳〷〺〾ぃゟァィーヾㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂꓒ꓿ꔂ꘎ꘒ꘡Ꙃ꙰ꚁꚟꚢ꛱ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹꠃꠅꠇꠉꠌꠎꠤꡂ꡵ꢄꢵꣴ꣹ꣽꣽꣿꣿꤌꤧꤲꥈꥢꦆꦴ꧑꧑ꧢꧦꧨ꧱ꧼꨀꨂꨪꩂꩄꩆꩍꩢ꩸ꩼꩼꪀꪱꪳꪳꪷꪸꪻ꪿ꫂꫂꫝ꫟ꫢꫬꫴ꫶ꬃꬋꬓꬢꬨꬪꬰꬲꭜꭞꭧꭲꯤ갂ힲퟍ車全flﬕײַײַﬡשׁשּׁטּךּמּנּנּףּצּרּ﮳ﯕ﴿ﵒﶔﷲ﷽ﹲﹶﹸC\c|ィᅣᅩᅯᅵ\r(*<>?AOR_üłŶʂʞʢ˒̡̲̂͌͒ͷΟυϊϑϓϗЂҟҲӕӚӽԂԩԲեܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠࣶࣴࣷंगढऻংহীুਂਂਕਗਙਛਵંઞૂૉો૦ଂଷୂୗୢ୴ஂஓంొಂೂစ္ႅႱგცᄅᄨᅒᅴᅸᅸᆅᆴᇃᇆᇜᇜᇞᇞሂሓሕርኂኈኊኊኌኑኟኡኪኲዠጇጎጒጕጪጬጲጴጵጷጻጿጿፒፒ፟፣ᐂᐶᑉᑌᒂᒱᓆᓇᓉᓉᖂᖰᗚᗝᘂᘱᙆᙆᚂᚬᜂᢢᣡᤁᤁ᫂ᰂᰊᰌᰰ᱂᱂ᱴᲑ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠櫒櫯欂欱歂歅步歹歿殑漂潆潒潒澕澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈`,a._serializedATNSegment1=`핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌ퟄퟆퟍꛘ꜂뜶띂렟렢캣﨟1\x07 \v\x07 \v\r%')\x071\x071\x071\x07,\b\x1B\x07#\x1B
|
|
86
|
-
\b\r\x07" !!#" #$\b$\f%& &'( ()-\x07)*,\v+*,/-.-+.0/-01\x07)1 -`,a._serializedATN=p.join([a._serializedATNSegment0,a._serializedATNSegment1],""),fi}var xn={},kf;function G0(){if(kf)return xn;kf=1;var u=xn&&xn.__decorate||function(h,p,a,r){var n=arguments.length,t=n<3?p:r===null?r=Object.getOwnPropertyDescriptor(p,a):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(h,p,a,r);else for(var e=h.length-1;e>=0;e--)(s=h[e])&&(t=(n<3?s(t):n>3?s(p,a,t):s(p,a))||t);return n>3&&t&&Object.defineProperty(p,a,t),t};Object.defineProperty(xn,"__esModule",{value:!0}),xn.XPathLexerErrorListener=void 0;const i=Q();let c=class{syntaxError(p,a,r,n,t,s){}};return u([i.Override],c.prototype,"syntaxError",null),xn.XPathLexerErrorListener=c,xn}var yn={},_n={},Uf;function Bn(){if(Uf)return _n;Uf=1;var u=_n&&_n.__decorate||function(h,p,a,r){var n=arguments.length,t=n<3?p:r===null?r=Object.getOwnPropertyDescriptor(p,a):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(h,p,a,r);else for(var e=h.length-1;e>=0;e--)(s=h[e])&&(t=(n<3?s(t):n>3?s(p,a,t):s(p,a))||t);return n>3&&t&&Object.defineProperty(p,a,t),t};Object.defineProperty(_n,"__esModule",{value:!0}),_n.XPathElement=void 0;const i=Q();let c=class{constructor(p){this.nodeName=p,this.invert=!1}toString(){let p=this.invert?"!":"";return Object.constructor.name+"["+p+this.nodeName+"]"}};return u([i.Override],c.prototype,"toString",null),_n.XPathElement=c,_n}var zf;function X0(){if(zf)return yn;zf=1;var u=yn&&yn.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(yn,"__esModule",{value:!0}),yn.XPathRuleAnywhereElement=void 0;const i=Q(),c=dr(),h=Bn();let p=class extends h.XPathElement{constructor(r,n){super(r),this.ruleIndex=n}evaluate(r){return c.Trees.findAllRuleNodes(r,this.ruleIndex)}};return u([i.Override],p.prototype,"evaluate",null),yn.XPathRuleAnywhereElement=p,yn}var mn={},Hf;function $0(){if(Hf)return mn;Hf=1;var u=mn&&mn.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(mn,"__esModule",{value:!0}),mn.XPathRuleElement=void 0;const i=Ke(),c=Q(),h=dr(),p=Bn();let a=class extends p.XPathElement{constructor(n,t){super(n),this.ruleIndex=t}evaluate(n){let t=[];for(let s of h.Trees.getChildren(n))s instanceof i.ParserRuleContext&&(s.ruleIndex===this.ruleIndex&&!this.invert||s.ruleIndex!==this.ruleIndex&&this.invert)&&t.push(s);return t}};return u([c.Override],a.prototype,"evaluate",null),mn.XPathRuleElement=a,mn}var gn={},Vf;function K0(){if(Vf)return gn;Vf=1;var u=gn&&gn.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(gn,"__esModule",{value:!0}),gn.XPathTokenAnywhereElement=void 0;const i=Q(),c=dr(),h=Bn();let p=class extends h.XPathElement{constructor(r,n){super(r),this.tokenType=n}evaluate(r){return c.Trees.findAllTokenNodes(r,this.tokenType)}};return u([i.Override],p.prototype,"evaluate",null),gn.XPathTokenAnywhereElement=p,gn}var vn={},Wf;function Q0(){if(Wf)return vn;Wf=1;var u=vn&&vn.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(vn,"__esModule",{value:!0}),vn.XPathTokenElement=void 0;const i=Q(),c=pr(),h=dr(),p=Bn();let a=class extends p.XPathElement{constructor(n,t){super(n),this.tokenType=t}evaluate(n){let t=[];for(let s of h.Trees.getChildren(n))s instanceof c.TerminalNode&&(s.symbol.type===this.tokenType&&!this.invert||s.symbol.type!==this.tokenType&&this.invert)&&t.push(s);return t}};return u([i.Override],a.prototype,"evaluate",null),vn.XPathTokenElement=a,vn}var An={},Gf;function J0(){if(Gf)return An;Gf=1;var u=An&&An.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(An,"__esModule",{value:!0}),An.XPathWildcardAnywhereElement=void 0;const i=Q(),c=dr(),h=$s(),p=Bn();let a=class extends p.XPathElement{constructor(){super(h.XPath.WILDCARD)}evaluate(n){return this.invert?[]:c.Trees.getDescendants(n)}};return u([i.Override],a.prototype,"evaluate",null),An.XPathWildcardAnywhereElement=a,An}var Tn={},Xf;function Z0(){if(Xf)return Tn;Xf=1;var u=Tn&&Tn.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.XPathWildcardElement=void 0;const i=Q(),c=dr(),h=$s(),p=Bn();let a=class extends p.XPathElement{constructor(){super(h.XPath.WILDCARD)}evaluate(n){let t=[];if(this.invert)return t;for(let s of c.Trees.getChildren(n))t.push(s);return t}};return u([i.Override],a.prototype,"evaluate",null),Tn.XPathWildcardElement=a,Tn}var $f;function $s(){if($f)return ci;$f=1;Object.defineProperty(ci,"__esModule",{value:!0}),ci.XPath=void 0;const u=Gs(),i=Xs(),c=ji(),h=Ke(),p=Ne(),a=W0(),r=G0(),n=X0(),t=$0(),s=K0(),e=Q0(),o=J0(),l=Z0();let f=class yp{constructor(g,x){this.parser=g,this.path=x,this.elements=this.split(x)}split(g){let x=new a.XPathLexer(u.CharStreams.fromString(g));x.recover=T=>{throw T},x.removeErrorListeners(),x.addErrorListener(new r.XPathLexerErrorListener);let m=new i.CommonTokenStream(x);try{m.fill()}catch(T){if(T instanceof c.LexerNoViableAltException){let O="Invalid tokens or characters at index "+x.charPositionInLine+" in path '"+g+"' -- "+T.message;throw new RangeError(O)}throw T}let y=m.getTokens(),_=[],v=y.length,N=0;e:for(;N<v;){let T=y[N],b;switch(T.type){case a.XPathLexer.ROOT:case a.XPathLexer.ANYWHERE:let O=T.type===a.XPathLexer.ANYWHERE;N++,b=y[N];let D=b.type===a.XPathLexer.BANG;D&&(N++,b=y[N]);let k=this.getXPathElement(b,O);k.invert=D,_.push(k),N++;break;case a.XPathLexer.TOKEN_REF:case a.XPathLexer.RULE_REF:case a.XPathLexer.WILDCARD:_.push(this.getXPathElement(T,!1)),N++;break;case p.Token.EOF:break e;default:throw new Error("Unknowth path element "+T)}}return _}getXPathElement(g,x){if(g.type===p.Token.EOF)throw new Error("Missing path element at end of path");let m=g.text;if(m==null)throw new Error("Expected wordToken to have text content.");let y=this.parser.getTokenType(m),_=this.parser.getRuleIndex(m);switch(g.type){case a.XPathLexer.WILDCARD:return x?new o.XPathWildcardAnywhereElement:new l.XPathWildcardElement;case a.XPathLexer.TOKEN_REF:case a.XPathLexer.STRING:if(y===p.Token.INVALID_TYPE)throw new Error(m+" at index "+g.startIndex+" isn't a valid token name");return x?new s.XPathTokenAnywhereElement(m,y):new e.XPathTokenElement(m,y);default:if(_===-1)throw new Error(m+" at index "+g.startIndex+" isn't a valid rule name");return x?new n.XPathRuleAnywhereElement(m,_):new t.XPathRuleElement(m,_)}}static findAll(g,x,m){return new yp(m,x).evaluate(g)}evaluate(g){let x=new h.ParserRuleContext;x.addChild(g);let m=new Set([x]),y=0;for(;y<this.elements.length;){let _=new Set;for(let v of m)v.childCount>0&&this.elements[y].evaluate(v).forEach(_.add,_);y++,m=_}return m}};return ci.XPath=f,f.WILDCARD="*",f.NOT="!",ci}var Kf;function Y0(){if(Kf)return Gt;Kf=1;var u=Gt&&Gt.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=Gt&&Gt.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.ParseTreePattern=void 0;const c=Q(),h=$s();let p=class{constructor(r,n,t,s){this._matcher=r,this._patternRuleIndex=t,this._pattern=n,this._patternTree=s}match(r){return this._matcher.match(r,this)}matches(r){return this._matcher.match(r,this).succeeded}findAll(r,n){let t=h.XPath.findAll(r,n,this._matcher.parser),s=[];for(let e of t){let o=this.match(e);o.succeeded&&s.push(o)}return s}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};return u([c.NotNull],p.prototype,"_pattern",void 0),u([c.NotNull],p.prototype,"_patternTree",void 0),u([c.NotNull],p.prototype,"_matcher",void 0),u([c.NotNull,i(0,c.NotNull)],p.prototype,"match",null),u([i(0,c.NotNull)],p.prototype,"matches",null),u([c.NotNull,i(0,c.NotNull),i(1,c.NotNull)],p.prototype,"findAll",null),u([c.NotNull],p.prototype,"matcher",null),u([c.NotNull],p.prototype,"pattern",null),u([c.NotNull],p.prototype,"patternTree",null),p=u([i(0,c.NotNull),i(1,c.NotNull),i(3,c.NotNull)],p),Gt.ParseTreePattern=p,Gt}var Xt={},Qf;function ed(){if(Qf)return Xt;Qf=1;var u=Xt&&Xt.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=Xt&&Xt.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.RuleTagToken=void 0;const c=Q(),h=Ne();let p=class{constructor(r,n,t){if(r==null||r.length===0)throw new Error("ruleName cannot be null or empty.");this._ruleName=r,this.bypassTokenType=n,this._label=t}get ruleName(){return this._ruleName}get label(){return this._label}get channel(){return h.Token.DEFAULT_CHANNEL}get text(){return this._label!=null?"<"+this._label+":"+this._ruleName+">":"<"+this._ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get charPositionInLine(){return-1}get tokenIndex(){return-1}get startIndex(){return-1}get stopIndex(){return-1}get tokenSource(){}get inputStream(){}toString(){return this._ruleName+":"+this.bypassTokenType}};return u([c.NotNull],p.prototype,"ruleName",null),u([c.Override],p.prototype,"channel",null),u([c.Override],p.prototype,"text",null),u([c.Override],p.prototype,"type",null),u([c.Override],p.prototype,"line",null),u([c.Override],p.prototype,"charPositionInLine",null),u([c.Override],p.prototype,"tokenIndex",null),u([c.Override],p.prototype,"startIndex",null),u([c.Override],p.prototype,"stopIndex",null),u([c.Override],p.prototype,"tokenSource",null),u([c.Override],p.prototype,"inputStream",null),u([c.Override],p.prototype,"toString",null),p=u([i(0,c.NotNull)],p),Xt.RuleTagToken=p,Xt}var En={},hi={},Jf;function Zf(){if(Jf)return hi;Jf=1;Object.defineProperty(hi,"__esModule",{value:!0}),hi.Chunk=void 0;let u=class{};return hi.Chunk=u,hi}var Yf;function td(){if(Yf)return En;Yf=1;var u=En&&En.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s};Object.defineProperty(En,"__esModule",{value:!0}),En.TagChunk=void 0;const i=Zf(),c=Q();let h=class extends i.Chunk{constructor(a,r){if(super(),a==null||a.length===0)throw new Error("tag cannot be null or empty");this._tag=a,this._label=r}get tag(){return this._tag}get label(){return this._label}toString(){return this._label!=null?this._label+":"+this._tag:this._tag}};return u([c.NotNull],h.prototype,"tag",null),u([c.Override],h.prototype,"toString",null),En.TagChunk=h,En}var $t={},eh;function rd(){if(eh)return $t;eh=1;var u=$t&&$t.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=$t&&$t.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty($t,"__esModule",{value:!0}),$t.TextChunk=void 0;const c=Zf(),h=Q();let p=class extends c.Chunk{constructor(r){if(super(),r==null)throw new Error("text cannot be null");this._text=r}get text(){return this._text}toString(){return"'"+this._text+"'"}};return u([h.NotNull],p.prototype,"_text",void 0),u([h.NotNull],p.prototype,"text",null),u([h.Override],p.prototype,"toString",null),p=u([i(0,h.NotNull)],p),$t.TextChunk=p,$t}var Kt={},th;function nd(){if(th)return Kt;th=1;var u=Kt&&Kt.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=Kt&&Kt.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.TokenTagToken=void 0;const c=Vn(),h=Q();let p=class extends c.CommonToken{constructor(r,n,t){super(n),this._tokenName=r,this._label=t}get tokenName(){return this._tokenName}get label(){return this._label}get text(){return this._label!=null?"<"+this._label+":"+this._tokenName+">":"<"+this._tokenName+">"}toString(){return this._tokenName+":"+this.type}};return u([h.NotNull],p.prototype,"_tokenName",void 0),u([h.NotNull],p.prototype,"tokenName",null),u([h.Override],p.prototype,"text",null),u([h.Override],p.prototype,"toString",null),p=u([i(0,h.NotNull)],p),Kt.TokenTagToken=p,Kt}var rh;function id(){return rh||(rh=1,(function(u){var i=hn&&hn.__decorate||function(b,O,D,k){var z=arguments.length,U=z<3?O:k===null?k=Object.getOwnPropertyDescriptor(O,D):k,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")U=Reflect.decorate(b,O,D,k);else for(var ie=b.length-1;ie>=0;ie--)(te=b[ie])&&(U=(z<3?te(U):z>3?te(O,D,U):te(O,D))||U);return z>3&&U&&Object.defineProperty(O,D,U),U},c=hn&&hn.__param||function(b,O){return function(D,k){O(D,k,b)}};Object.defineProperty(u,"__esModule",{value:!0}),u.ParseTreePatternMatcher=void 0;const h=yh(),p=Gs(),a=Xs(),r=Pf(),n=H0(),t=Q(),s=wf(),e=jf(),o=Ke(),l=V0(),f=Y0(),d=ar(),g=ii(),x=ed(),m=td(),y=pr(),_=rd(),v=Ne(),N=nd();let T=class bu{constructor(O,D){this.start="<",this.stop=">",this.escape="\\",this.escapeRE=/\\/g,this._lexer=O,this._parser=D}setDelimiters(O,D,k){if(!O)throw new Error("start cannot be null or empty");if(!D)throw new Error("stop cannot be null or empty");this.start=O,this.stop=D,this.escape=k,this.escapeRE=new RegExp(k.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g")}matches(O,D,k=0){if(typeof D=="string"){let z=this.compile(D,k);return this.matches(O,z)}else{let z=new n.MultiMap;return!this.matchImpl(O,D.patternTree,z)}}match(O,D,k=0){if(typeof D=="string"){let z=this.compile(D,k);return this.match(O,z)}else{let z=new n.MultiMap,U=this.matchImpl(O,D.patternTree,z);return new l.ParseTreeMatch(O,D,z,U)}}compile(O,D){let k=this.tokenize(O),z=new r.ListTokenSource(k),U=new a.CommonTokenStream(z);const te=this._parser;let ie=new e.ParserInterpreter(te.grammarFileName,te.vocabulary,te.ruleNames,te.getATNWithBypassAlts(),U),oe;try{ie.errorHandler=new h.BailErrorStrategy,oe=ie.parse(D)}catch(he){throw he instanceof s.ParseCancellationException?he.getCause():he instanceof d.RecognitionException?he:he instanceof Error?new bu.CannotInvokeStartRule(he):he}if(U.LA(1)!==v.Token.EOF)throw new bu.StartRuleDoesNotConsumeFullPattern;return new f.ParseTreePattern(this,O,D,oe)}get lexer(){return this._lexer}get parser(){return this._parser}matchImpl(O,D,k){if(!O)throw new TypeError("tree cannot be null");if(!D)throw new TypeError("patternTree cannot be null");if(O instanceof y.TerminalNode&&D instanceof y.TerminalNode){let z;if(O.symbol.type===D.symbol.type)if(D.symbol instanceof N.TokenTagToken){let U=D.symbol;k.map(U.tokenName,O);const te=U.label;te&&k.map(te,O)}else O.text===D.text||z||(z=O);else z||(z=O);return z}if(O instanceof o.ParserRuleContext&&D instanceof o.ParserRuleContext){let z,U=this.getRuleTagToken(D);if(U){if(O.ruleContext.ruleIndex===D.ruleContext.ruleIndex){k.map(U.ruleName,O);const ie=U.label;ie&&k.map(ie,O)}else z||(z=O);return z}if(O.childCount!==D.childCount)return z||(z=O),z;let te=O.childCount;for(let ie=0;ie<te;ie++){let oe=this.matchImpl(O.getChild(ie),D.getChild(ie),k);if(oe)return oe}return z}return O}getRuleTagToken(O){if(O instanceof g.RuleNode&&O.childCount===1&&O.getChild(0)instanceof y.TerminalNode){let D=O.getChild(0);if(D.symbol instanceof x.RuleTagToken)return D.symbol}}tokenize(O){let D=this.split(O),k=[];for(let z of D)if(z instanceof m.TagChunk){let U=z;const te=U.tag.substr(0,1);if(te===te.toUpperCase()){let ie=this._parser.getTokenType(U.tag);if(ie===v.Token.INVALID_TYPE)throw new Error("Unknown token "+U.tag+" in pattern: "+O);let oe=new N.TokenTagToken(U.tag,ie,U.label);k.push(oe)}else if(te===te.toLowerCase()){let ie=this._parser.getRuleIndex(U.tag);if(ie===-1)throw new Error("Unknown rule "+U.tag+" in pattern: "+O);let oe=this._parser.getATNWithBypassAlts().ruleToTokenType[ie];k.push(new x.RuleTagToken(U.tag,oe,U.label))}else throw new Error("invalid tag: "+U.tag+" in pattern: "+O)}else{let U=z;this._lexer.inputStream=p.CharStreams.fromString(U.text);let te=this._lexer.nextToken();for(;te.type!==v.Token.EOF;)k.push(te),te=this._lexer.nextToken()}return k}split(O){let D=0,k=O.length,z=[],U=[],te=[];for(;D<k;)D===O.indexOf(this.escape+this.start,D)?D+=this.escape.length+this.start.length:D===O.indexOf(this.escape+this.stop,D)?D+=this.escape.length+this.stop.length:D===O.indexOf(this.start,D)?(U.push(D),D+=this.start.length):D===O.indexOf(this.stop,D)?(te.push(D),D+=this.stop.length):D++;if(U.length>te.length)throw new Error("unterminated tag in pattern: "+O);if(U.length<te.length)throw new Error("missing start tag in pattern: "+O);let ie=U.length;for(let oe=0;oe<ie;oe++)if(U[oe]>=te[oe])throw new Error("tag delimiters out of order in pattern: "+O);if(ie===0){let oe=O.substring(0,k);z.push(new _.TextChunk(oe))}if(ie>0&&U[0]>0){let oe=O.substring(0,U[0]);z.push(new _.TextChunk(oe))}for(let oe=0;oe<ie;oe++){let he=O.substring(U[oe]+this.start.length,te[oe]),Ee=he,le,Z=he.indexOf(":");if(Z>=0&&(le=he.substring(0,Z),Ee=he.substring(Z+1,he.length)),z.push(new m.TagChunk(Ee,le)),oe+1<ie){let ee=O.substring(te[oe]+this.stop.length,U[oe+1]);z.push(new _.TextChunk(ee))}}if(ie>0){let oe=te[ie-1]+this.stop.length;if(oe<k){let he=O.substring(oe,k);z.push(new _.TextChunk(he))}}for(let oe=0;oe<z.length;oe++){let he=z[oe];if(he instanceof _.TextChunk){let Ee=he.text.replace(this.escapeRE,"");Ee.length<he.text.length&&(z[oe]=new _.TextChunk(Ee))}}return z}};i([t.NotNull,c(1,t.NotNull)],T.prototype,"match",null),i([t.NotNull],T.prototype,"lexer",null),i([t.NotNull],T.prototype,"parser",null),i([c(0,t.NotNull),c(1,t.NotNull),c(2,t.NotNull)],T.prototype,"matchImpl",null),u.ParseTreePatternMatcher=T,(function(b){class O extends Error{constructor(z){super(`CannotInvokeStartRule: ${z}`),this.error=z}}b.CannotInvokeStartRule=O;class D extends Error{constructor(){super("StartRuleDoesNotConsumeFullPattern")}}b.StartRuleDoesNotConsumeFullPattern=D})(T=u.ParseTreePatternMatcher||(u.ParseTreePatternMatcher={}))})(hn)),hn}var Qt={},Jt={},Zt={},nh;function pi(){if(nh)return Zt;nh=1;var u=Zt&&Zt.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s},i=Zt&&Zt.__param||function(p,a){return function(r,n){a(r,n,p)}};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.DecisionEventInfo=void 0;const c=Q();let h=class{constructor(a,r,n,t,s,e){this.decision=a,this.fullCtx=e,this.stopIndex=s,this.input=n,this.startIndex=t,this.state=r}};return u([c.NotNull],h.prototype,"input",void 0),h=u([i(2,c.NotNull)],h),Zt.DecisionEventInfo=h,Zt}var ih;function od(){if(ih)return Jt;ih=1;var u=Jt&&Jt.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=Jt&&Jt.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.AmbiguityInfo=void 0;const c=pi(),h=Q();let p=class extends c.DecisionEventInfo{constructor(r,n,t,s,e,o){super(r,n,s,e,o,n.useContext),this.ambigAlts=t}get ambiguousAlternatives(){return this.ambigAlts}};return u([h.NotNull],p.prototype,"ambigAlts",void 0),u([h.NotNull],p.prototype,"ambiguousAlternatives",null),p=u([i(1,h.NotNull),i(2,h.NotNull),i(3,h.NotNull)],p),Jt.AmbiguityInfo=p,Jt}var Yt={},oh;function sd(){if(oh)return Yt;oh=1;var u=Yt&&Yt.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=Yt&&Yt.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.ContextSensitivityInfo=void 0;const c=pi(),h=Q();let p=class extends c.DecisionEventInfo{constructor(r,n,t,s,e){super(r,n,t,s,e,!0)}};return p=u([i(1,h.NotNull),i(2,h.NotNull)],p),Yt.ContextSensitivityInfo=p,Yt}var Sn={},sh;function ud(){if(sh)return Sn;sh=1;var u=Sn&&Sn.__decorate||function(h,p,a,r){var n=arguments.length,t=n<3?p:r===null?r=Object.getOwnPropertyDescriptor(p,a):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(h,p,a,r);else for(var e=h.length-1;e>=0;e--)(s=h[e])&&(t=(n<3?s(t):n>3?s(p,a,t):s(p,a))||t);return n>3&&t&&Object.defineProperty(p,a,t),t};Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.DecisionInfo=void 0;const i=Q();let c=class{constructor(p){this.invocations=0,this.timeInPrediction=0,this.SLL_TotalLook=0,this.SLL_MinLook=0,this.SLL_MaxLook=0,this.LL_TotalLook=0,this.LL_MinLook=0,this.LL_MaxLook=0,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[],this.SLL_ATNTransitions=0,this.SLL_DFATransitions=0,this.LL_Fallback=0,this.LL_ATNTransitions=0,this.LL_DFATransitions=0,this.decision=p}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", SLL_lookahead="+this.SLL_TotalLook+", SLL_ATNTransitions="+this.SLL_ATNTransitions+", SLL_DFATransitions="+this.SLL_DFATransitions+", LL_Fallback="+this.LL_Fallback+", LL_lookahead="+this.LL_TotalLook+", LL_ATNTransitions="+this.LL_ATNTransitions+"}"}};return u([i.Override],c.prototype,"toString",null),Sn.DecisionInfo=c,Sn}var er={},uh;function ad(){if(uh)return er;uh=1;var u=er&&er.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=er&&er.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(er,"__esModule",{value:!0}),er.ErrorInfo=void 0;const c=pi(),h=Q();let p=class extends c.DecisionEventInfo{constructor(r,n,t,s,e){super(r,n,t,s,e,n.useContext)}};return p=u([i(1,h.NotNull),i(2,h.NotNull)],p),er.ErrorInfo=p,er}var tr={},ah;function ld(){if(ah)return tr;ah=1;var u=tr&&tr.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=tr&&tr.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(tr,"__esModule",{value:!0}),tr.LookaheadEventInfo=void 0;const c=pi(),h=Q();let p=class extends c.DecisionEventInfo{constructor(r,n,t,s,e,o,l){super(r,n,s,e,o,l),this.predictedAlt=t}};return p=u([i(3,h.NotNull)],p),tr.LookaheadEventInfo=p,tr}var rr={},lh;function cd(){if(lh)return rr;lh=1;var u=rr&&rr.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e},i=rr&&rr.__param||function(a,r){return function(n,t){r(n,t,a)}};Object.defineProperty(rr,"__esModule",{value:!0}),rr.PredicateEvalInfo=void 0;const c=pi(),h=Q();let p=class extends c.DecisionEventInfo{constructor(r,n,t,s,e,o,l,f){super(n,r,t,s,e,r.useContext),this.semctx=o,this.evalResult=l,this.predictedAlt=f}};return p=u([i(0,h.NotNull),i(2,h.NotNull),i(5,h.NotNull)],p),rr.PredicateEvalInfo=p,rr}var ch;function fh(){if(ch)return Qt;ch=1;var u=Qt&&Qt.__decorate||function(g,x,m,y){var _=arguments.length,v=_<3?x:y===null?y=Object.getOwnPropertyDescriptor(x,m):y,N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(g,x,m,y);else for(var T=g.length-1;T>=0;T--)(N=g[T])&&(v=(_<3?N(v):_>3?N(x,m,v):N(x,m))||v);return _>3&&v&&Object.defineProperty(x,m,v),v},i=Qt&&Qt.__param||function(g,x){return function(m,y){x(m,y,g)}};Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.ProfilingATNSimulator=void 0;const c=od(),h=At(),p=Bi(),a=sd(),r=ud(),n=ad(),t=Q(),s=ld(),e=si(),o=cd(),l=Ln(),f=of();let d=class extends e.ParserATNSimulator{constructor(x){super(x.interpreter.atn,x),this._startIndex=0,this._sllStopIndex=0,this._llStopIndex=0,this.currentDecision=0,this.conflictingAltResolvedBySLL=0,this.optimize_ll1=!1,this.reportAmbiguities=!0,this.numDecisions=this.atn.decisionToState.length,this.decisions=[];for(let m=0;m<this.numDecisions;m++)this.decisions.push(new r.DecisionInfo(m))}adaptivePredict(x,m,y,_){if(_!==void 0)return super.adaptivePredict(x,m,y,_);try{this._input=x,this._startIndex=x.index,this._sllStopIndex=this._startIndex-1,this._llStopIndex=-1,this.currentDecision=m,this.currentState=void 0,this.conflictingAltResolvedBySLL=h.ATN.INVALID_ALT_NUMBER;let v=be.hrtime(),N=super.adaptivePredict(x,m,y),T=be.hrtime(),b=(T[0]-v[0])*1e9;b===0?b=T[1]-v[1]:b+=1e9-v[1]+T[1],this.decisions[m].timeInPrediction+=b,this.decisions[m].invocations++;let O=this._sllStopIndex-this._startIndex+1;if(this.decisions[m].SLL_TotalLook+=O,this.decisions[m].SLL_MinLook=this.decisions[m].SLL_MinLook===0?O:Math.min(this.decisions[m].SLL_MinLook,O),O>this.decisions[m].SLL_MaxLook&&(this.decisions[m].SLL_MaxLook=O,this.decisions[m].SLL_MaxLookEvent=new s.LookaheadEventInfo(m,void 0,N,x,this._startIndex,this._sllStopIndex,!1)),this._llStopIndex>=0){let D=this._llStopIndex-this._startIndex+1;this.decisions[m].LL_TotalLook+=D,this.decisions[m].LL_MinLook=this.decisions[m].LL_MinLook===0?D:Math.min(this.decisions[m].LL_MinLook,D),D>this.decisions[m].LL_MaxLook&&(this.decisions[m].LL_MaxLook=D,this.decisions[m].LL_MaxLookEvent=new s.LookaheadEventInfo(m,void 0,N,x,this._startIndex,this._llStopIndex,!0))}return N}finally{this._input=void 0,this.currentDecision=-1}}getStartState(x,m,y,_){let v=super.getStartState(x,m,y,_);return this.currentState=v,v}computeStartState(x,m,y){let _=super.computeStartState(x,m,y);return this.currentState=_,_}computeReachSet(x,m,y,_){if(this._input===void 0)throw new Error("Invalid state");let v=super.computeReachSet(x,m,y,_);return v==null&&this.decisions[this.currentDecision].errors.push(new n.ErrorInfo(this.currentDecision,m,this._input,this._startIndex,this._input.index)),this.currentState=v,v}getExistingTargetState(x,m){if(this.currentState===void 0||this._input===void 0)throw new Error("Invalid state");this.currentState.useContext?this._llStopIndex=this._input.index:this._sllStopIndex=this._input.index;let y=super.getExistingTargetState(x,m);if(y!=null&&(this.currentState=new f.SimulatorState(this.currentState.outerContext,y,this.currentState.useContext,this.currentState.remainingOuterContext),this.currentState.useContext?this.decisions[this.currentDecision].LL_DFATransitions++:this.decisions[this.currentDecision].SLL_DFATransitions++,y===p.ATNSimulator.ERROR)){let _=new f.SimulatorState(this.currentState.outerContext,x,this.currentState.useContext,this.currentState.remainingOuterContext);this.decisions[this.currentDecision].errors.push(new n.ErrorInfo(this.currentDecision,_,this._input,this._startIndex,this._input.index))}return y}computeTargetState(x,m,y,_,v,N){let T=super.computeTargetState(x,m,y,_,v,N);return v?this.decisions[this.currentDecision].LL_ATNTransitions++:this.decisions[this.currentDecision].SLL_ATNTransitions++,T}evalSemanticContextImpl(x,m,y){if(this.currentState===void 0||this._input===void 0)throw new Error("Invalid state");let _=super.evalSemanticContextImpl(x,m,y);if(!(x instanceof l.SemanticContext.PrecedencePredicate)){let N=this._llStopIndex>=0?this._llStopIndex:this._sllStopIndex;this.decisions[this.currentDecision].predicateEvals.push(new o.PredicateEvalInfo(this.currentState,this.currentDecision,this._input,this._startIndex,N,x,_,y))}return _}reportContextSensitivity(x,m,y,_,v){if(this._input===void 0)throw new Error("Invalid state");m!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new a.ContextSensitivityInfo(this.currentDecision,y,this._input,_,v)),super.reportContextSensitivity(x,m,y,_,v)}reportAttemptingFullContext(x,m,y,_,v){m!=null?this.conflictingAltResolvedBySLL=m.nextSetBit(0):this.conflictingAltResolvedBySLL=y.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(x,m,y,_,v)}reportAmbiguity(x,m,y,_,v,N,T){if(this.currentState===void 0||this._input===void 0)throw new Error("Invalid state");let b;N!=null?b=N.nextSetBit(0):b=T.getRepresentedAlternatives().nextSetBit(0),this.conflictingAltResolvedBySLL!==h.ATN.INVALID_ALT_NUMBER&&b!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new a.ContextSensitivityInfo(this.currentDecision,this.currentState,this._input,y,_)),this.decisions[this.currentDecision].ambiguities.push(new c.AmbiguityInfo(this.currentDecision,this.currentState,N,this._input,y,_)),super.reportAmbiguity(x,m,y,_,v,N,T)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}};return u([t.Override,i(0,t.NotNull)],d.prototype,"adaptivePredict",null),u([t.Override],d.prototype,"getStartState",null),u([t.Override],d.prototype,"computeStartState",null),u([t.Override],d.prototype,"computeReachSet",null),u([t.Override],d.prototype,"getExistingTargetState",null),u([t.Override],d.prototype,"computeTargetState",null),u([t.Override],d.prototype,"evalSemanticContextImpl",null),u([t.Override],d.prototype,"reportContextSensitivity",null),u([t.Override],d.prototype,"reportAttemptingFullContext",null),u([t.Override,i(0,t.NotNull),i(5,t.NotNull),i(6,t.NotNull)],d.prototype,"reportAmbiguity",null),Qt.ProfilingATNSimulator=d,Qt}var hh;function di(){if(hh)return $e;hh=1;var u=$e&&$e.__decorate||function(_,v,N,T){var b=arguments.length,O=b<3?v:T===null?T=Object.getOwnPropertyDescriptor(v,N):T,D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(_,v,N,T);else for(var k=_.length-1;k>=0;k--)(D=_[k])&&(O=(b<3?D(O):b>3?D(v,N,O):D(v,N))||O);return b>3&&O&&Object.defineProperty(v,N,O),O},i=$e&&$e.__param||function(_,v){return function(N,T){v(N,T,_)}},c=$e&&$e.__awaiter||function(_,v,N,T){function b(O){return O instanceof N?O:new N(function(D){D(O)})}return new(N||(N=Promise))(function(O,D){function k(te){try{U(T.next(te))}catch(ie){D(ie)}}function z(te){try{U(T.throw(te))}catch(ie){D(ie)}}function U(te){te.done?O(te.value):b(te.value).then(k,z)}U((T=T.apply(_,v||[])).next())})};Object.defineProperty($e,"__esModule",{value:!0}),$e.Parser=void 0;const h=ut(),p=Rc(),a=Hs(),r=Ks(),n=ri(),t=kl(),s=hr(),e=Q(),o=U0(),l=si(),f=gf(),d=Yn(),g=pr(),x=Ne();class m{constructor(v,N){this.ruleNames=v,this.tokenStream=N}enterEveryRule(v){console.log("enter "+this.ruleNames[v.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}exitEveryRule(v){console.log("exit "+this.ruleNames[v.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}visitErrorNode(v){}visitTerminal(v){let N=v.parent.ruleContext,T=v.symbol;console.log("consume "+T+" rule "+this.ruleNames[N.ruleIndex])}}u([e.Override],m.prototype,"enterEveryRule",null),u([e.Override],m.prototype,"exitEveryRule",null),u([e.Override],m.prototype,"visitErrorNode",null),u([e.Override],m.prototype,"visitTerminal",null);let y=class $i extends d.Recognizer{constructor(v){super(),this._errHandler=new r.DefaultErrorStrategy,this._precedenceStack=new t.IntegerStack,this._buildParseTrees=!0,this._parseListeners=[],this._syntaxErrors=0,this.matchedEOF=!1,this._precedenceStack.push(0),this.inputStream=v}reset(v){(v===void 0||v)&&this.inputStream.seek(0),this._errHandler.reset(this),this._ctx=void 0,this._syntaxErrors=0,this.matchedEOF=!1,this.isTrace=!1,this._precedenceStack.clear(),this._precedenceStack.push(0);let N=this.interpreter;N?.reset()}match(v){let N=this.currentToken;return N.type===v?(v===x.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):(N=this._errHandler.recoverInline(this),this._buildParseTrees&&N.tokenIndex===-1&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,N))),N}matchWildcard(){let v=this.currentToken;return v.type>0?(this._errHandler.reportMatch(this),this.consume()):(v=this._errHandler.recoverInline(this),this._buildParseTrees&&v.tokenIndex===-1&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,v))),v}set buildParseTree(v){this._buildParseTrees=v}get buildParseTree(){return this._buildParseTrees}getParseListeners(){return this._parseListeners}addParseListener(v){if(v==null)throw new TypeError("listener cannot be null");this._parseListeners.push(v)}removeParseListener(v){let N=this._parseListeners.findIndex(T=>T===v);N!==-1&&this._parseListeners.splice(N,1)}removeParseListeners(){this._parseListeners.length=0}triggerEnterRuleEvent(){for(let v of this._parseListeners)v.enterEveryRule&&v.enterEveryRule(this._ctx),this._ctx.enterRule(v)}triggerExitRuleEvent(){for(let v=this._parseListeners.length-1;v>=0;v--){let N=this._parseListeners[v];this._ctx.exitRule(N),N.exitEveryRule&&N.exitEveryRule(this._ctx)}}get numberOfSyntaxErrors(){return this._syntaxErrors}get tokenFactory(){return this._input.tokenSource.tokenFactory}getATNWithBypassAlts(){let v=this.serializedATN;if(v==null)throw new Error("The current parser does not support an ATN with bypass alternatives.");let N=$i.bypassAltsAtnCache.get(v);if(N==null){let T=new p.ATNDeserializationOptions;T.isGenerateRuleBypassTransitions=!0,N=new a.ATNDeserializer(T).deserialize(h.toCharArray(v)),$i.bypassAltsAtnCache.set(v,N)}return N}compileParseTreePattern(v,N,T){return c(this,void 0,void 0,function*(){if(!T){if(this.inputStream){let k=this.inputStream.tokenSource;k instanceof s.Lexer&&(T=k)}if(!T)throw new Error("Parser can't discover a lexer to use")}let b=T,O=yield Promise.resolve().then(()=>id());return new O.ParseTreePatternMatcher(b,this).compile(v,N)})}get errorHandler(){return this._errHandler}set errorHandler(v){this._errHandler=v}get inputStream(){return this._input}set inputStream(v){this.reset(!1),this._input=v}get currentToken(){return this._input.LT(1)}notifyErrorListeners(v,N,T){N===void 0?N=this.currentToken:N===null&&(N=void 0),this._syntaxErrors++;let b=-1,O=-1;N!=null&&(b=N.line,O=N.charPositionInLine);let D=this.getErrorListenerDispatch();D.syntaxError&&D.syntaxError(this,N,b,O,v,T)}consume(){let v=this.currentToken;v.type!==$i.EOF&&this.inputStream.consume();let N=this._parseListeners.length!==0;if(this._buildParseTrees||N)if(this._errHandler.inErrorRecoveryMode(this)){let T=this._ctx.addErrorNode(this.createErrorNode(this._ctx,v));if(N)for(let b of this._parseListeners)b.visitErrorNode&&b.visitErrorNode(T)}else{let T=this.createTerminalNode(this._ctx,v);if(this._ctx.addChild(T),N)for(let b of this._parseListeners)b.visitTerminal&&b.visitTerminal(T)}return v}createTerminalNode(v,N){return new g.TerminalNode(N)}createErrorNode(v,N){return new n.ErrorNode(N)}addContextToParseTree(){let v=this._ctx._parent;v?.addChild(this._ctx)}enterRule(v,N,T){this.state=N,this._ctx=v,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}enterLeftFactoredRule(v,N,T){if(this.state=N,this._buildParseTrees){let b=this._ctx.getChild(this._ctx.childCount-1);this._ctx.removeLastChild(),b._parent=v,v.addChild(b)}this._ctx=v,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this._ctx._stop=this._input.LT(1):this._ctx._stop=this._input.tryLT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx._parent}enterOuterAlt(v,N){if(v.altNumber=N,this._buildParseTrees&&this._ctx!==v){let T=this._ctx._parent;T!=null&&(T.removeLastChild(),T.addChild(v))}this._ctx=v}get precedence(){return this._precedenceStack.isEmpty?-1:this._precedenceStack.peek()}enterRecursionRule(v,N,T,b){this.state=N,this._precedenceStack.push(b),this._ctx=v,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(v,N,T){let b=this._ctx;b._parent=v,b.invokingState=N,b._stop=this._input.tryLT(-1),this._ctx=v,this._ctx._start=b._start,this._buildParseTrees&&this._ctx.addChild(b),this.triggerEnterRuleEvent()}unrollRecursionContexts(v){this._precedenceStack.pop(),this._ctx._stop=this._input.tryLT(-1);let N=this._ctx;if(this._parseListeners.length>0)for(;this._ctx!==v;)this.triggerExitRuleEvent(),this._ctx=this._ctx._parent;else this._ctx=v;N._parent=v,this._buildParseTrees&&v!=null&&v.addChild(N)}getInvokingContext(v){let N=this._ctx;for(;N&&N.ruleIndex!==v;)N=N._parent;return N}get context(){return this._ctx}set context(v){this._ctx=v}precpred(v,N){return N>=this._precedenceStack.peek()}getErrorListenerDispatch(){return new f.ProxyParserErrorListener(this.getErrorListeners())}inContext(v){return!1}isExpectedToken(v){let N=this.interpreter.atn,T=this._ctx,b=N.states[this.state],O=N.nextTokens(b);if(O.contains(v))return!0;if(!O.contains(x.Token.EPSILON))return!1;for(;T!=null&&T.invokingState>=0&&O.contains(x.Token.EPSILON);){let k=N.states[T.invokingState].transition(0);if(O=N.nextTokens(k.followState),O.contains(v))return!0;T=T._parent}return!!(O.contains(x.Token.EPSILON)&&v===x.Token.EOF)}get isMatchedEOF(){return this.matchedEOF}getExpectedTokens(){return this.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let v=this.interpreter.atn,N=v.states[this.state];return v.nextTokens(N)}getRuleIndex(v){let N=this.getRuleIndexMap().get(v);return N??-1}get ruleContext(){return this._ctx}getRuleInvocationStack(v=this._ctx){let N=v,T=this.ruleNames,b=[];for(;N!=null;){let O=N.ruleIndex;O<0?b.push("n/a"):b.push(T[O]),N=N._parent}return b}getDFAStrings(){let v=[];for(let N of this._interp.atn.decisionToDFA)v.push(N.toString(this.vocabulary,this.ruleNames));return v}dumpDFA(){let v=!1;for(let N of this._interp.atn.decisionToDFA)N.isEmpty||(v&&console.log(),console.log("Decision "+N.decision+":"),be.stdout.write(N.toString(this.vocabulary,this.ruleNames)),v=!0)}get sourceName(){return this._input.sourceName}get parseInfo(){return Promise.resolve().then(()=>fh()).then(v=>{let N=this.interpreter;if(N instanceof v.ProfilingATNSimulator)return new o.ParseInfo(N)})}setProfile(v){return c(this,void 0,void 0,function*(){let N=yield Promise.resolve().then(()=>fh()),T=this.interpreter;v?T instanceof N.ProfilingATNSimulator||(this.interpreter=new N.ProfilingATNSimulator(this)):T instanceof N.ProfilingATNSimulator&&(this.interpreter=new l.ParserATNSimulator(this.atn,this)),this.interpreter.setPredictionMode(T.getPredictionMode())})}set isTrace(v){v?(this._tracer?this.removeParseListener(this._tracer):this._tracer=new m(this.ruleNames,this._input),this.addParseListener(this._tracer)):this._tracer&&(this.removeParseListener(this._tracer),this._tracer=void 0)}get isTrace(){return this._tracer!=null}};return y.bypassAltsAtnCache=new Map,u([e.NotNull],y.prototype,"_errHandler",void 0),u([e.NotNull],y.prototype,"match",null),u([e.NotNull],y.prototype,"matchWildcard",null),u([e.NotNull],y.prototype,"getParseListeners",null),u([i(0,e.NotNull)],y.prototype,"addParseListener",null),u([e.NotNull],y.prototype,"getATNWithBypassAlts",null),u([e.NotNull,i(0,e.NotNull)],y.prototype,"errorHandler",null),u([e.Override],y.prototype,"inputStream",null),u([e.NotNull],y.prototype,"currentToken",null),u([i(0,e.NotNull)],y.prototype,"enterRule",null),u([e.Override,i(0,e.Nullable)],y.prototype,"precpred",null),u([e.Override],y.prototype,"getErrorListenerDispatch",null),u([e.NotNull],y.prototype,"getExpectedTokens",null),u([e.NotNull],y.prototype,"getExpectedTokensWithinCurrentRule",null),u([e.Override],y.prototype,"parseInfo",null),$e.Parser=y,$e}var ph;function ki(){if(ph)return Wr;ph=1;var u=Wr&&Wr.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.NoViableAltException=void 0;const i=di(),c=ar(),h=Q();let p=class extends c.RecognitionException{constructor(r,n,t,s,e,o){r instanceof i.Parser&&(n===void 0&&(n=r.inputStream),t===void 0&&(t=r.currentToken),s===void 0&&(s=r.currentToken),o===void 0&&(o=r.context)),super(r,n,o),this._deadEndConfigs=e,this._startToken=t,this.setOffendingToken(r,s)}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}};return u([h.NotNull],p.prototype,"_startToken",void 0),Wr.NoViableAltException=p,Wr}var dh;function Ks(){if(dh)return tt;dh=1;var u=tt&&tt.__decorate||function(l,f,d,g){var x=arguments.length,m=x<3?f:g===null?g=Object.getOwnPropertyDescriptor(f,d):g,y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(l,f,d,g);else for(var _=l.length-1;_>=0;_--)(y=l[_])&&(m=(x<3?y(m):x>3?y(f,d,m):y(f,d))||m);return x>3&&m&&Object.defineProperty(f,d,m),m},i=tt&&tt.__param||function(l,f){return function(d,g){f(d,g,l)}};Object.defineProperty(tt,"__esModule",{value:!0}),tt.DefaultErrorStrategy=void 0;const c=rt(),h=Ie(),p=Ii(),a=wi(),r=Vr(),n=ki(),t=Xe(),s=Ne(),e=Q();let o=class{constructor(){this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.nextTokensState=c.ATNState.INVALID_STATE_NUMBER}reset(f){this.endErrorCondition(f)}beginErrorCondition(f){this.errorRecoveryMode=!0}inErrorRecoveryMode(f){return this.errorRecoveryMode}endErrorCondition(f){this.errorRecoveryMode=!1,this.lastErrorStates=void 0,this.lastErrorIndex=-1}reportMatch(f){this.endErrorCondition(f)}reportError(f,d){this.inErrorRecoveryMode(f)||(this.beginErrorCondition(f),d instanceof n.NoViableAltException?this.reportNoViableAlternative(f,d):d instanceof a.InputMismatchException?this.reportInputMismatch(f,d):d instanceof p.FailedPredicateException?this.reportFailedPredicate(f,d):(console.error(`unknown recognition error type: ${d}`),this.notifyErrorListeners(f,d.toString(),d)))}notifyErrorListeners(f,d,g){let x=g.getOffendingToken(f);x===void 0&&(x=null),f.notifyErrorListeners(d,x,g)}recover(f,d){this.lastErrorIndex===f.inputStream.index&&this.lastErrorStates&&this.lastErrorStates.contains(f.state)&&f.consume(),this.lastErrorIndex=f.inputStream.index,this.lastErrorStates||(this.lastErrorStates=new r.IntervalSet),this.lastErrorStates.add(f.state);let g=this.getErrorRecoverySet(f);this.consumeUntil(f,g)}sync(f){let d=f.interpreter.atn.states[f.state];if(this.inErrorRecoveryMode(f))return;let x=f.inputStream.LA(1),m=f.atn.nextTokens(d);if(m.contains(x)){this.nextTokensContext=void 0,this.nextTokensState=c.ATNState.INVALID_STATE_NUMBER;return}if(m.contains(s.Token.EPSILON)){this.nextTokensContext===void 0&&(this.nextTokensContext=f.context,this.nextTokensState=f.state);return}switch(d.stateType){case h.ATNStateType.BLOCK_START:case h.ATNStateType.STAR_BLOCK_START:case h.ATNStateType.PLUS_BLOCK_START:case h.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(f))return;throw new a.InputMismatchException(f);case h.ATNStateType.PLUS_LOOP_BACK:case h.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(f);let _=f.getExpectedTokens().or(this.getErrorRecoverySet(f));this.consumeUntil(f,_);break}}reportNoViableAlternative(f,d){let g=f.inputStream,x;g?d.startToken.type===s.Token.EOF?x="<EOF>":x=g.getTextFromRange(d.startToken,d.getOffendingToken()):x="<unknown input>";let m="no viable alternative at input "+this.escapeWSAndQuote(x);this.notifyErrorListeners(f,m,d)}reportInputMismatch(f,d){let g=d.expectedTokens,x=g?g.toStringVocabulary(f.vocabulary):"",m="mismatched input "+this.getTokenErrorDisplay(d.getOffendingToken(f))+" expecting "+x;this.notifyErrorListeners(f,m,d)}reportFailedPredicate(f,d){let x="rule "+f.ruleNames[f.context.ruleIndex]+" "+d.message;this.notifyErrorListeners(f,x,d)}reportUnwantedToken(f){if(this.inErrorRecoveryMode(f))return;this.beginErrorCondition(f);let d=f.currentToken,g=this.getTokenErrorDisplay(d),x=this.getExpectedTokens(f),m="extraneous input "+g+" expecting "+x.toStringVocabulary(f.vocabulary);f.notifyErrorListeners(m,d,void 0)}reportMissingToken(f){if(this.inErrorRecoveryMode(f))return;this.beginErrorCondition(f);let d=f.currentToken,x="missing "+this.getExpectedTokens(f).toStringVocabulary(f.vocabulary)+" at "+this.getTokenErrorDisplay(d);f.notifyErrorListeners(x,d,void 0)}recoverInline(f){let d=this.singleTokenDeletion(f);if(d)return f.consume(),d;if(this.singleTokenInsertion(f))return this.getMissingSymbol(f);throw this.nextTokensContext===void 0?new a.InputMismatchException(f):new a.InputMismatchException(f,this.nextTokensState,this.nextTokensContext)}singleTokenInsertion(f){let d=f.inputStream.LA(1),x=f.interpreter.atn.states[f.state].transition(0).target,m=f.interpreter.atn;return m.nextTokens(x,t.PredictionContext.fromRuleContext(m,f.context)).contains(d)?(this.reportMissingToken(f),!0):!1}singleTokenDeletion(f){let d=f.inputStream.LA(2);if(this.getExpectedTokens(f).contains(d)){this.reportUnwantedToken(f),f.consume();let x=f.currentToken;return this.reportMatch(f),x}}getMissingSymbol(f){let d=f.currentToken,g=this.getExpectedTokens(f),x=s.Token.INVALID_TYPE;g.isNil||(x=g.minElement);let m;x===s.Token.EOF?m="<missing EOF>":m="<missing "+f.vocabulary.getDisplayName(x)+">";let y=d,_=f.inputStream.tryLT(-1);return y.type===s.Token.EOF&&_!=null&&(y=_),this.constructToken(f.inputStream.tokenSource,x,m,y)}constructToken(f,d,g,x){let m=f.tokenFactory,y=x.tokenSource,_=y?y.inputStream:void 0;return m.create({source:f,stream:_},d,g,s.Token.DEFAULT_CHANNEL,-1,-1,x.line,x.charPositionInLine)}getExpectedTokens(f){return f.getExpectedTokens()}getTokenErrorDisplay(f){if(!f)return"<no token>";let d=this.getSymbolText(f);return d||(this.getSymbolType(f)===s.Token.EOF?d="<EOF>":d=`<${this.getSymbolType(f)}>`),this.escapeWSAndQuote(d)}getSymbolText(f){return f.text}getSymbolType(f){return f.type}escapeWSAndQuote(f){return f=f.replace(`
|
|
87
|
-
`,"\\n"),f=f.replace("\r","\\r"),f=f.replace(" ","\\t"),"'"+f+"'"}getErrorRecoverySet(f){let d=f.interpreter.atn,g=f.context,x=new r.IntervalSet;for(;g&&g.invokingState>=0;){let y=d.states[g.invokingState].transition(0),_=d.nextTokens(y.followState);x.addAll(_),g=g._parent}return x.remove(s.Token.EPSILON),x}consumeUntil(f,d){let g=f.inputStream.LA(1);for(;g!==s.Token.EOF&&!d.contains(g);)f.consume(),g=f.inputStream.LA(1)}};return u([e.Override],o.prototype,"reset",null),u([i(0,e.NotNull)],o.prototype,"beginErrorCondition",null),u([e.Override],o.prototype,"inErrorRecoveryMode",null),u([i(0,e.NotNull)],o.prototype,"endErrorCondition",null),u([e.Override],o.prototype,"reportMatch",null),u([e.Override],o.prototype,"reportError",null),u([i(0,e.NotNull)],o.prototype,"notifyErrorListeners",null),u([e.Override],o.prototype,"recover",null),u([e.Override],o.prototype,"sync",null),u([i(0,e.NotNull),i(1,e.NotNull)],o.prototype,"reportNoViableAlternative",null),u([i(0,e.NotNull),i(1,e.NotNull)],o.prototype,"reportInputMismatch",null),u([i(0,e.NotNull),i(1,e.NotNull)],o.prototype,"reportFailedPredicate",null),u([i(0,e.NotNull)],o.prototype,"reportUnwantedToken",null),u([i(0,e.NotNull)],o.prototype,"reportMissingToken",null),u([e.Override],o.prototype,"recoverInline",null),u([i(0,e.NotNull)],o.prototype,"singleTokenInsertion",null),u([i(0,e.NotNull)],o.prototype,"singleTokenDeletion",null),u([e.NotNull,i(0,e.NotNull)],o.prototype,"getMissingSymbol",null),u([e.NotNull,i(0,e.NotNull)],o.prototype,"getExpectedTokens",null),u([i(0,e.NotNull)],o.prototype,"getSymbolText",null),u([i(0,e.NotNull)],o.prototype,"getSymbolType",null),u([e.NotNull,i(0,e.NotNull)],o.prototype,"escapeWSAndQuote",null),u([e.NotNull,i(0,e.NotNull)],o.prototype,"getErrorRecoverySet",null),u([i(0,e.NotNull),i(1,e.NotNull)],o.prototype,"consumeUntil",null),tt.DefaultErrorStrategy=o,tt}var xh;function yh(){if(xh)return Ar;xh=1;var u=Ar&&Ar.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o};Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.BailErrorStrategy=void 0;const i=Ks(),c=wi(),h=Q(),p=wf();let a=class extends i.DefaultErrorStrategy{recover(n,t){for(let s=n.context;s;s=s.parent)s.exception=t;throw new p.ParseCancellationException(t)}recoverInline(n){let t=new c.InputMismatchException(n);for(let s=n.context;s;s=s.parent)s.exception=t;throw new p.ParseCancellationException(t)}sync(n){}};return u([h.Override],a.prototype,"recover",null),u([h.Override],a.prototype,"recoverInline",null),u([h.Override],a.prototype,"sync",null),Ar.BailErrorStrategy=a,Ar}var Qs={},_h;function fd(){if(_h)return Qs;_h=1;return Object.defineProperty(Qs,"__esModule",{value:!0}),Qs}var Js={},mh;function hd(){return mh||(mh=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Dependents=void 0,(function(i){i[i.SELF=0]="SELF",i[i.PARENTS=1]="PARENTS",i[i.CHILDREN=2]="CHILDREN",i[i.ANCESTORS=3]="ANCESTORS",i[i.DESCENDANTS=4]="DESCENDANTS",i[i.SIBLINGS=5]="SIBLINGS",i[i.PRECEEDING_SIBLINGS=6]="PRECEEDING_SIBLINGS",i[i.FOLLOWING_SIBLINGS=7]="FOLLOWING_SIBLINGS",i[i.PRECEEDING=8]="PRECEEDING",i[i.FOLLOWING=9]="FOLLOWING"})(u.Dependents||(u.Dependents={}))})(Js)),Js}var nr={},gh;function pd(){if(gh)return nr;gh=1;var u=nr&&nr.__decorate||function(r,n,t,s){var e=arguments.length,o=e<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,n,t,s);else for(var f=r.length-1;f>=0;f--)(l=r[f])&&(o=(e<3?l(o):e>3?l(n,t,o):l(n,t))||o);return e>3&&o&&Object.defineProperty(n,t,o),o},i=nr&&nr.__param||function(r,n){return function(t,s){n(t,s,r)}};Object.defineProperty(nr,"__esModule",{value:!0}),nr.DiagnosticErrorListener=void 0;const c=fr(),h=Q(),p=je();let a=class{constructor(n=!0){this.exactOnly=n,this.exactOnly=n}syntaxError(n,t,s,e,o,l){}reportAmbiguity(n,t,s,e,o,l,f){if(this.exactOnly&&!o)return;let d=this.getDecisionDescription(n,t),g=this.getConflictingAlts(l,f),x=n.inputStream.getText(p.Interval.of(s,e)),m=`reportAmbiguity d=${d}: ambigAlts=${g}, input='${x}'`;n.notifyErrorListeners(m)}reportAttemptingFullContext(n,t,s,e,o,l){let f=this.getDecisionDescription(n,t),d=n.inputStream.getText(p.Interval.of(s,e)),g=`reportAttemptingFullContext d=${f}, input='${d}'`;n.notifyErrorListeners(g)}reportContextSensitivity(n,t,s,e,o,l){let f=this.getDecisionDescription(n,t),d=n.inputStream.getText(p.Interval.of(s,e)),g=`reportContextSensitivity d=${f}, input='${d}'`;n.notifyErrorListeners(g)}getDecisionDescription(n,t){let s=t.decision,e=t.atnStartState.ruleIndex,o=n.ruleNames;if(e<0||e>=o.length)return s.toString();let l=o[e];return l?`${s} (${l})`:s.toString()}getConflictingAlts(n,t){if(n!=null)return n;let s=new c.BitSet;for(let e of t)s.set(e.alt);return s}};return u([h.Override],a.prototype,"syntaxError",null),u([h.Override,i(0,h.NotNull),i(1,h.NotNull),i(6,h.NotNull)],a.prototype,"reportAmbiguity",null),u([h.Override,i(0,h.NotNull),i(1,h.NotNull),i(5,h.NotNull)],a.prototype,"reportAttemptingFullContext",null),u([h.Override,i(0,h.NotNull),i(1,h.NotNull),i(5,h.NotNull)],a.prototype,"reportContextSensitivity",null),u([i(0,h.NotNull),i(1,h.NotNull)],a.prototype,"getDecisionDescription",null),u([h.NotNull,i(1,h.NotNull)],a.prototype,"getConflictingAlts",null),nr.DiagnosticErrorListener=a,nr}var ir={},vh;function dd(){if(vh)return ir;vh=1;var u=ir&&ir.__decorate||function(n,t,s,e){var o=arguments.length,l=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,t,s,e);else for(var d=n.length-1;d>=0;d--)(f=n[d])&&(l=(o<3?f(l):o>3?f(t,s,l):f(t,s))||l);return o>3&&l&&Object.defineProperty(t,s,l),l},i=ir&&ir.__param||function(n,t){return function(s,e){t(s,e,n)}};Object.defineProperty(ir,"__esModule",{value:!0}),ir.LexerInterpreter=void 0;const c=hr(),h=Mi(),p=Q(),a=Q();let r=class extends c.Lexer{constructor(t,s,e,o,l,f,d){if(super(d),f.grammarType!==0)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this._grammarFileName=t,this._atn=f,this._ruleNames=e.slice(0),this._channelNames=o.slice(0),this._modeNames=l.slice(0),this._vocabulary=s,this._interp=new h.LexerATNSimulator(f,this)}get atn(){return this._atn}get grammarFileName(){return this._grammarFileName}get ruleNames(){return this._ruleNames}get channelNames(){return this._channelNames}get modeNames(){return this._modeNames}get vocabulary(){return this._vocabulary}};return u([p.NotNull],r.prototype,"_vocabulary",void 0),u([a.Override],r.prototype,"atn",null),u([a.Override],r.prototype,"grammarFileName",null),u([a.Override],r.prototype,"ruleNames",null),u([a.Override],r.prototype,"channelNames",null),u([a.Override],r.prototype,"modeNames",null),u([a.Override],r.prototype,"vocabulary",null),r=u([i(1,p.NotNull)],r),ir.LexerInterpreter=r,ir}var Zs={},Ah;function xd(){if(Ah)return Zs;Ah=1;return Object.defineProperty(Zs,"__esModule",{value:!0}),Zs}var Nn={},Th;function yd(){if(Th)return Nn;Th=1;var u=Nn&&Nn.__decorate||function(a,r,n,t){var s=arguments.length,e=s<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,n):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,n,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(r,n,e):o(r,n))||e);return s>3&&e&&Object.defineProperty(r,n,e),e};Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.RuleContextWithAltNum=void 0;const i=At(),c=Q(),h=Ke();let p=class extends h.ParserRuleContext{constructor(r,n){n!==void 0?super(r,n):super(),this._altNumber=i.ATN.INVALID_ALT_NUMBER}get altNumber(){return this._altNumber}set altNumber(r){this._altNumber=r}};return u([c.Override],p.prototype,"altNumber",null),Nn.RuleContextWithAltNum=p,Nn}var xi={},Eh;function _d(){if(Eh)return xi;Eh=1;Object.defineProperty(xi,"__esModule",{value:!0}),xi.RuleDependency=void 0;function u(i){return(c,h,p)=>{}}return xi.RuleDependency=u,xi}var yi={},Sh;function md(){if(Sh)return yi;Sh=1;Object.defineProperty(yi,"__esModule",{value:!0}),yi.RuleVersion=void 0;function u(i){return(c,h,p)=>{}}return yi.RuleVersion=u,yi}var Ys={},Nh;function gd(){if(Nh)return Ys;Nh=1;return Object.defineProperty(Ys,"__esModule",{value:!0}),Ys}var eu={},bh;function vd(){if(bh)return eu;bh=1;return Object.defineProperty(eu,"__esModule",{value:!0}),eu}var tu={},Ch;function Ad(){if(Ch)return tu;Ch=1;return Object.defineProperty(tu,"__esModule",{value:!0}),tu}var or={},Oh;function Td(){if(Oh)return or;Oh=1;var u=or&&or.__decorate||function(s,e,o,l){var f=arguments.length,d=f<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,o):l,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(s,e,o,l);else for(var x=s.length-1;x>=0;x--)(g=s[x])&&(d=(f<3?g(d):f>3?g(e,o,d):g(e,o))||d);return f>3&&d&&Object.defineProperty(e,o,d),d};Object.defineProperty(or,"__esModule",{value:!0}),or.RewriteOperation=or.TokenStreamRewriter=void 0;const i=je(),c=Q(),h=Ne();let p=class We{constructor(e){this.tokens=e,this.programs=new Map,this.programs.set(We.DEFAULT_PROGRAM_NAME,[]),this.lastRewriteTokenIndexes=new Map}getTokenStream(){return this.tokens}rollback(e,o=We.DEFAULT_PROGRAM_NAME){let l=this.programs.get(o);l!=null&&this.programs.set(o,l.slice(We.MIN_TOKEN_INDEX,e))}deleteProgram(e=We.DEFAULT_PROGRAM_NAME){this.rollback(We.MIN_TOKEN_INDEX,e)}insertAfter(e,o,l=We.DEFAULT_PROGRAM_NAME){let f;typeof e=="number"?f=e:f=e.tokenIndex;let d=this.getProgram(l),g=new n(this.tokens,f,d.length,o);d.push(g)}insertBefore(e,o,l=We.DEFAULT_PROGRAM_NAME){let f;typeof e=="number"?f=e:f=e.tokenIndex;let d=this.getProgram(l),g=new r(this.tokens,f,d.length,o);d.push(g)}replaceSingle(e,o){typeof e=="number"?this.replace(e,e,o):this.replace(e,e,o)}replace(e,o,l,f=We.DEFAULT_PROGRAM_NAME){if(typeof e!="number"&&(e=e.tokenIndex),typeof o!="number"&&(o=o.tokenIndex),e>o||e<0||o<0||o>=this.tokens.size)throw new RangeError(`replace: range invalid: ${e}..${o}(size=${this.tokens.size})`);let d=this.getProgram(f),g=new t(this.tokens,e,o,d.length,l);d.push(g)}delete(e,o,l=We.DEFAULT_PROGRAM_NAME){o===void 0&&(o=e),typeof e=="number"?this.replace(e,o,"",l):this.replace(e,o,"",l)}getLastRewriteTokenIndex(e=We.DEFAULT_PROGRAM_NAME){let o=this.lastRewriteTokenIndexes.get(e);return o??-1}setLastRewriteTokenIndex(e,o){this.lastRewriteTokenIndexes.set(e,o)}getProgram(e){let o=this.programs.get(e);return o==null&&(o=this.initializeProgram(e)),o}initializeProgram(e){let o=[];return this.programs.set(e,o),o}getText(e,o=We.DEFAULT_PROGRAM_NAME){let l;e instanceof i.Interval?l=e:l=i.Interval.of(0,this.tokens.size-1),typeof e=="string"&&(o=e);let f=this.programs.get(o),d=l.a,g=l.b;if(g>this.tokens.size-1&&(g=this.tokens.size-1),d<0&&(d=0),f==null||f.length===0)return this.tokens.getText(l);let x=[],m=this.reduceToSingleOperationPerIndex(f),y=d;for(;y<=g&&y<this.tokens.size;){let _=m.get(y);m.delete(y);let v=this.tokens.get(y);_==null?(v.type!==h.Token.EOF&&x.push(String(v.text)),y++):y=_.execute(x)}if(g===this.tokens.size-1)for(let _ of m.values())_.index>=this.tokens.size-1&&x.push(_.text.toString());return x.join("")}reduceToSingleOperationPerIndex(e){for(let l=0;l<e.length;l++){let f=e[l];if(f==null||!(f instanceof t))continue;let d=f,g=this.getKindOfOps(e,r,l);for(let m of g)m.index===d.index?(e[m.instructionIndex]=void 0,d.text=m.text.toString()+(d.text!=null?d.text.toString():"")):m.index>d.index&&m.index<=d.lastIndex&&(e[m.instructionIndex]=void 0);let x=this.getKindOfOps(e,t,l);for(let m of x){if(m.index>=d.index&&m.lastIndex<=d.lastIndex){e[m.instructionIndex]=void 0;continue}let y=m.lastIndex<d.index||m.index>d.lastIndex;if(m.text==null&&d.text==null&&!y)e[m.instructionIndex]=void 0,d.index=Math.min(m.index,d.index),d.lastIndex=Math.max(m.lastIndex,d.lastIndex);else if(!y)throw new Error(`replace op boundaries of ${d} overlap with previous ${m}`)}}for(let l=0;l<e.length;l++){let f=e[l];if(f==null||!(f instanceof r))continue;let d=f,g=this.getKindOfOps(e,r,l);for(let m of g)m.index===d.index&&(m instanceof n?(d.text=this.catOpText(m.text,d.text),e[m.instructionIndex]=void 0):m instanceof r&&(d.text=this.catOpText(d.text,m.text),e[m.instructionIndex]=void 0));let x=this.getKindOfOps(e,t,l);for(let m of x){if(d.index===m.index){m.text=this.catOpText(d.text,m.text),e[l]=void 0;continue}if(d.index>=m.index&&d.index<=m.lastIndex)throw new Error(`insert op ${d} within boundaries of previous ${m}`)}}let o=new Map;for(let l of e)if(l!=null){if(o.get(l.index)!=null)throw new Error("should only be one op per index");o.set(l.index,l)}return o}catOpText(e,o){let l="",f="";return e!=null&&(l=e.toString()),o!=null&&(f=o.toString()),l+f}getKindOfOps(e,o,l){let f=[];for(let d=0;d<l&&d<e.length;d++){let g=e[d];g!=null&&g instanceof o&&f.push(g)}return f}};or.TokenStreamRewriter=p,p.DEFAULT_PROGRAM_NAME="default",p.PROGRAM_INIT_SIZE=100,p.MIN_TOKEN_INDEX=0;class a{constructor(e,o,l,f){this.tokens=e,this.instructionIndex=l,this.index=o,this.text=f===void 0?"":f}execute(e){return this.index}toString(){let e=this.constructor.name,o=e.indexOf("$");return e=e.substring(o+1,e.length),"<"+e+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}u([c.Override],a.prototype,"toString",null),or.RewriteOperation=a;class r extends a{constructor(e,o,l,f){super(e,o,l,f)}execute(e){return e.push(this.text.toString()),this.tokens.get(this.index).type!==h.Token.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}}u([c.Override],r.prototype,"execute",null);class n extends r{constructor(e,o,l,f){super(e,o+1,l,f)}}class t extends a{constructor(e,o,l,f,d){super(e,o,f,d),this.lastIndex=l}execute(e){return this.text!=null&&e.push(this.text.toString()),this.lastIndex+1}toString(){return this.text==null?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}}return u([c.Override],t.prototype,"execute",null),u([c.Override],t.prototype,"toString",null),or}var ru={},Rh;function Ed(){if(Rh)return ru;Rh=1;return Object.defineProperty(ru,"__esModule",{value:!0}),ru}var nu={},Ph;function Sd(){if(Ph)return nu;Ph=1;return Object.defineProperty(nu,"__esModule",{value:!0}),nu}var Dh;function Nd(){return Dh||(Dh=1,(function(u){var i=mr&&mr.__createBinding||(Object.create?(function(h,p,a,r){r===void 0&&(r=a),Object.defineProperty(h,r,{enumerable:!0,get:function(){return p[a]}})}):(function(h,p,a,r){r===void 0&&(r=a),h[r]=p[a]})),c=mr&&mr.__exportStar||function(h,p){for(var a in h)a!=="default"&&!Object.prototype.hasOwnProperty.call(p,a)&&i(p,h,a)};Object.defineProperty(u,"__esModule",{value:!0}),c(_p(),u),c(mp(),u),c(h0(),u),c(yh(),u),c(Cf(),u),c(fd(),u),c(Gs(),u),c(Tf(),u),c(Sf(),u),c(Vn(),u),c(Bs(),u),c(Xs(),u),c(Yl(),u),c(Ks(),u),c(hd(),u),c(pd(),u),c(Ii(),u),c(wi(),u),c(Ff(),u),c(ur(),u),c(hr(),u),c(dd(),u),c(ji(),u),c(Pf(),u),c(ki(),u),c(di(),u),c(xd(),u),c(jf(),u),c(Ke(),u),c(Ms(),u),c(gf(),u),c(ar(),u),c(Yn(),u),c(ef(),u),c(yd(),u),c(_d(),u),c(md(),u),c(Ne(),u),c(gd(),u),c(vd(),u),c(Ad(),u),c(Td(),u),c(Ed(),u),c(Mr(),u),c(Sd(),u)})(mr)),mr}var Ui=Nd(),Ih=Hs(),bd=hr(),Cd=Mi(),wh=Mr(),Lh=ut();class Be extends bd.Lexer{static T__0=1;static T__1=2;static T__2=3;static T__3=4;static T__4=5;static T__5=6;static T__6=7;static T__7=8;static T__8=9;static T__9=10;static T__10=11;static T__11=12;static T__12=13;static T__13=14;static T__14=15;static T__15=16;static T__16=17;static T__17=18;static T__18=19;static T__19=20;static T__20=21;static T__21=22;static T__22=23;static T__23=24;static T__24=25;static T__25=26;static T__26=27;static T__27=28;static T__28=29;static T__29=30;static T__30=31;static T__31=32;static QUESTION=33;static Identifier=34;static StringLiteral=35;static NumberLiteral=36;static BooleanLiteral=37;static SingleLineComment=38;static MultiLineComment=39;static WS=40;static channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"];static modeNames=["DEFAULT_MODE"];static ruleNames=["T__0","T__1","T__2","T__3","T__4","T__5","T__6","T__7","T__8","T__9","T__10","T__11","T__12","T__13","T__14","T__15","T__16","T__17","T__18","T__19","T__20","T__21","T__22","T__23","T__24","T__25","T__26","T__27","T__28","T__29","T__30","T__31","QUESTION","Identifier","StringLiteral","NumberLiteral","BooleanLiteral","SingleLineComment","MultiLineComment","WS"];static _LITERAL_NAMES=[void 0,"'type'","'='","';'","'let'","':'","'|'","'&'","'['","']'","'Array'","'string'","'boolean'","'null'","'integer'","'double'","'long'","'bytes'","'date'","'any'","'{'","'}'","'yorkie.Object'","'yorkie.Array'","'yorkie.Counter'","'yorkie.Text'","'yorkie.Tree'","'('","')'","'<'","','","'>'","'extends'","'?'"];static _SYMBOLIC_NAMES=[void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"QUESTION","Identifier","StringLiteral","NumberLiteral","BooleanLiteral","SingleLineComment","MultiLineComment","WS"];static VOCABULARY=new wh.VocabularyImpl(Be._LITERAL_NAMES,Be._SYMBOLIC_NAMES,[]);get vocabulary(){return Be.VOCABULARY}constructor(i){super(i),this._interp=new Cd.LexerATNSimulator(Be._ATN,this)}get grammarFileName(){return"YorkieSchema.g4"}get ruleNames(){return Be.ruleNames}get serializedATN(){return Be._serializedATN}get channelNames(){return Be.channelNames}get modeNames(){return Be.modeNames}static _serializedATN=`줝쪺֍꾺体؇쉁*ʼn\b \x07 \x07\b \b
|
|
86
|
+
\b\r\x07" !!#" #$\b$\f%& &'( ()-\x07)*,\v+*,/-.-+.0/-01\x07)1 -`,a._serializedATN=p.join([a._serializedATNSegment0,a._serializedATNSegment1],""),fi}var xn={},zf;function Q0(){if(zf)return xn;zf=1;var u=xn&&xn.__decorate||function(h,p,a,n){var i=arguments.length,t=i<3?p:n===null?n=Object.getOwnPropertyDescriptor(p,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(h,p,a,n);else for(var e=h.length-1;e>=0;e--)(s=h[e])&&(t=(i<3?s(t):i>3?s(p,a,t):s(p,a))||t);return i>3&&t&&Object.defineProperty(p,a,t),t};Object.defineProperty(xn,"__esModule",{value:!0}),xn.XPathLexerErrorListener=void 0;const r=Q();let c=class{syntaxError(p,a,n,i,t,s){}};return u([r.Override],c.prototype,"syntaxError",null),xn.XPathLexerErrorListener=c,xn}var yn={},_n={},Hf;function Bn(){if(Hf)return _n;Hf=1;var u=_n&&_n.__decorate||function(h,p,a,n){var i=arguments.length,t=i<3?p:n===null?n=Object.getOwnPropertyDescriptor(p,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(h,p,a,n);else for(var e=h.length-1;e>=0;e--)(s=h[e])&&(t=(i<3?s(t):i>3?s(p,a,t):s(p,a))||t);return i>3&&t&&Object.defineProperty(p,a,t),t};Object.defineProperty(_n,"__esModule",{value:!0}),_n.XPathElement=void 0;const r=Q();let c=class{constructor(p){this.nodeName=p,this.invert=!1}toString(){let p=this.invert?"!":"";return Object.constructor.name+"["+p+this.nodeName+"]"}};return u([r.Override],c.prototype,"toString",null),_n.XPathElement=c,_n}var Vf;function J0(){if(Vf)return yn;Vf=1;var u=yn&&yn.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(yn,"__esModule",{value:!0}),yn.XPathRuleAnywhereElement=void 0;const r=Q(),c=dr(),h=Bn();let p=class extends h.XPathElement{constructor(n,i){super(n),this.ruleIndex=i}evaluate(n){return c.Trees.findAllRuleNodes(n,this.ruleIndex)}};return u([r.Override],p.prototype,"evaluate",null),yn.XPathRuleAnywhereElement=p,yn}var mn={},Wf;function Z0(){if(Wf)return mn;Wf=1;var u=mn&&mn.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o};Object.defineProperty(mn,"__esModule",{value:!0}),mn.XPathRuleElement=void 0;const r=Ke(),c=Q(),h=dr(),p=Bn();let a=class extends p.XPathElement{constructor(i,t){super(i),this.ruleIndex=t}evaluate(i){let t=[];for(let s of h.Trees.getChildren(i))s instanceof r.ParserRuleContext&&(s.ruleIndex===this.ruleIndex&&!this.invert||s.ruleIndex!==this.ruleIndex&&this.invert)&&t.push(s);return t}};return u([c.Override],a.prototype,"evaluate",null),mn.XPathRuleElement=a,mn}var gn={},Gf;function Y0(){if(Gf)return gn;Gf=1;var u=gn&&gn.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(gn,"__esModule",{value:!0}),gn.XPathTokenAnywhereElement=void 0;const r=Q(),c=dr(),h=Bn();let p=class extends h.XPathElement{constructor(n,i){super(n),this.tokenType=i}evaluate(n){return c.Trees.findAllTokenNodes(n,this.tokenType)}};return u([r.Override],p.prototype,"evaluate",null),gn.XPathTokenAnywhereElement=p,gn}var vn={},$f;function ed(){if($f)return vn;$f=1;var u=vn&&vn.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o};Object.defineProperty(vn,"__esModule",{value:!0}),vn.XPathTokenElement=void 0;const r=Q(),c=pr(),h=dr(),p=Bn();let a=class extends p.XPathElement{constructor(i,t){super(i),this.tokenType=t}evaluate(i){let t=[];for(let s of h.Trees.getChildren(i))s instanceof c.TerminalNode&&(s.symbol.type===this.tokenType&&!this.invert||s.symbol.type!==this.tokenType&&this.invert)&&t.push(s);return t}};return u([r.Override],a.prototype,"evaluate",null),vn.XPathTokenElement=a,vn}var An={},Xf;function td(){if(Xf)return An;Xf=1;var u=An&&An.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o};Object.defineProperty(An,"__esModule",{value:!0}),An.XPathWildcardAnywhereElement=void 0;const r=Q(),c=dr(),h=Xs(),p=Bn();let a=class extends p.XPathElement{constructor(){super(h.XPath.WILDCARD)}evaluate(i){return this.invert?[]:c.Trees.getDescendants(i)}};return u([r.Override],a.prototype,"evaluate",null),An.XPathWildcardAnywhereElement=a,An}var Tn={},Kf;function rd(){if(Kf)return Tn;Kf=1;var u=Tn&&Tn.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o};Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.XPathWildcardElement=void 0;const r=Q(),c=dr(),h=Xs(),p=Bn();let a=class extends p.XPathElement{constructor(){super(h.XPath.WILDCARD)}evaluate(i){let t=[];if(this.invert)return t;for(let s of c.Trees.getChildren(i))t.push(s);return t}};return u([r.Override],a.prototype,"evaluate",null),Tn.XPathWildcardElement=a,Tn}var Qf;function Xs(){if(Qf)return ci;Qf=1;Object.defineProperty(ci,"__esModule",{value:!0}),ci.XPath=void 0;const u=Gs(),r=$s(),c=ji(),h=Ke(),p=Ce(),a=K0(),n=Q0(),i=J0(),t=Z0(),s=Y0(),e=ed(),o=td(),l=rd();let f=class vp{constructor(g,x){this.parser=g,this.path=x,this.elements=this.split(x)}split(g){let x=new a.XPathLexer(u.CharStreams.fromString(g));x.recover=T=>{throw T},x.removeErrorListeners(),x.addErrorListener(new n.XPathLexerErrorListener);let m=new r.CommonTokenStream(x);try{m.fill()}catch(T){if(T instanceof c.LexerNoViableAltException){let O="Invalid tokens or characters at index "+x.charPositionInLine+" in path '"+g+"' -- "+T.message;throw new RangeError(O)}throw T}let y=m.getTokens(),_=[],v=y.length,N=0;e:for(;N<v;){let T=y[N],b;switch(T.type){case a.XPathLexer.ROOT:case a.XPathLexer.ANYWHERE:let O=T.type===a.XPathLexer.ANYWHERE;N++,b=y[N];let D=b.type===a.XPathLexer.BANG;D&&(N++,b=y[N]);let k=this.getXPathElement(b,O);k.invert=D,_.push(k),N++;break;case a.XPathLexer.TOKEN_REF:case a.XPathLexer.RULE_REF:case a.XPathLexer.WILDCARD:_.push(this.getXPathElement(T,!1)),N++;break;case p.Token.EOF:break e;default:throw new Error("Unknowth path element "+T)}}return _}getXPathElement(g,x){if(g.type===p.Token.EOF)throw new Error("Missing path element at end of path");let m=g.text;if(m==null)throw new Error("Expected wordToken to have text content.");let y=this.parser.getTokenType(m),_=this.parser.getRuleIndex(m);switch(g.type){case a.XPathLexer.WILDCARD:return x?new o.XPathWildcardAnywhereElement:new l.XPathWildcardElement;case a.XPathLexer.TOKEN_REF:case a.XPathLexer.STRING:if(y===p.Token.INVALID_TYPE)throw new Error(m+" at index "+g.startIndex+" isn't a valid token name");return x?new s.XPathTokenAnywhereElement(m,y):new e.XPathTokenElement(m,y);default:if(_===-1)throw new Error(m+" at index "+g.startIndex+" isn't a valid rule name");return x?new i.XPathRuleAnywhereElement(m,_):new t.XPathRuleElement(m,_)}}static findAll(g,x,m){return new vp(m,x).evaluate(g)}evaluate(g){let x=new h.ParserRuleContext;x.addChild(g);let m=new Set([x]),y=0;for(;y<this.elements.length;){let _=new Set;for(let v of m)v.childCount>0&&this.elements[y].evaluate(v).forEach(_.add,_);y++,m=_}return m}};return ci.XPath=f,f.WILDCARD="*",f.NOT="!",ci}var Jf;function nd(){if(Jf)return Gt;Jf=1;var u=Gt&&Gt.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=Gt&&Gt.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.ParseTreePattern=void 0;const c=Q(),h=Xs();let p=class{constructor(n,i,t,s){this._matcher=n,this._patternRuleIndex=t,this._pattern=i,this._patternTree=s}match(n){return this._matcher.match(n,this)}matches(n){return this._matcher.match(n,this).succeeded}findAll(n,i){let t=h.XPath.findAll(n,i,this._matcher.parser),s=[];for(let e of t){let o=this.match(e);o.succeeded&&s.push(o)}return s}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};return u([c.NotNull],p.prototype,"_pattern",void 0),u([c.NotNull],p.prototype,"_patternTree",void 0),u([c.NotNull],p.prototype,"_matcher",void 0),u([c.NotNull,r(0,c.NotNull)],p.prototype,"match",null),u([r(0,c.NotNull)],p.prototype,"matches",null),u([c.NotNull,r(0,c.NotNull),r(1,c.NotNull)],p.prototype,"findAll",null),u([c.NotNull],p.prototype,"matcher",null),u([c.NotNull],p.prototype,"pattern",null),u([c.NotNull],p.prototype,"patternTree",null),p=u([r(0,c.NotNull),r(1,c.NotNull),r(3,c.NotNull)],p),Gt.ParseTreePattern=p,Gt}var $t={},Zf;function id(){if(Zf)return $t;Zf=1;var u=$t&&$t.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=$t&&$t.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty($t,"__esModule",{value:!0}),$t.RuleTagToken=void 0;const c=Q(),h=Ce();let p=class{constructor(n,i,t){if(n==null||n.length===0)throw new Error("ruleName cannot be null or empty.");this._ruleName=n,this.bypassTokenType=i,this._label=t}get ruleName(){return this._ruleName}get label(){return this._label}get channel(){return h.Token.DEFAULT_CHANNEL}get text(){return this._label!=null?"<"+this._label+":"+this._ruleName+">":"<"+this._ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get charPositionInLine(){return-1}get tokenIndex(){return-1}get startIndex(){return-1}get stopIndex(){return-1}get tokenSource(){}get inputStream(){}toString(){return this._ruleName+":"+this.bypassTokenType}};return u([c.NotNull],p.prototype,"ruleName",null),u([c.Override],p.prototype,"channel",null),u([c.Override],p.prototype,"text",null),u([c.Override],p.prototype,"type",null),u([c.Override],p.prototype,"line",null),u([c.Override],p.prototype,"charPositionInLine",null),u([c.Override],p.prototype,"tokenIndex",null),u([c.Override],p.prototype,"startIndex",null),u([c.Override],p.prototype,"stopIndex",null),u([c.Override],p.prototype,"tokenSource",null),u([c.Override],p.prototype,"inputStream",null),u([c.Override],p.prototype,"toString",null),p=u([r(0,c.NotNull)],p),$t.RuleTagToken=p,$t}var En={},hi={},Yf;function eh(){if(Yf)return hi;Yf=1;Object.defineProperty(hi,"__esModule",{value:!0}),hi.Chunk=void 0;let u=class{};return hi.Chunk=u,hi}var th;function od(){if(th)return En;th=1;var u=En&&En.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s};Object.defineProperty(En,"__esModule",{value:!0}),En.TagChunk=void 0;const r=eh(),c=Q();let h=class extends r.Chunk{constructor(a,n){if(super(),a==null||a.length===0)throw new Error("tag cannot be null or empty");this._tag=a,this._label=n}get tag(){return this._tag}get label(){return this._label}toString(){return this._label!=null?this._label+":"+this._tag:this._tag}};return u([c.NotNull],h.prototype,"tag",null),u([c.Override],h.prototype,"toString",null),En.TagChunk=h,En}var Xt={},rh;function sd(){if(rh)return Xt;rh=1;var u=Xt&&Xt.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=Xt&&Xt.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.TextChunk=void 0;const c=eh(),h=Q();let p=class extends c.Chunk{constructor(n){if(super(),n==null)throw new Error("text cannot be null");this._text=n}get text(){return this._text}toString(){return"'"+this._text+"'"}};return u([h.NotNull],p.prototype,"_text",void 0),u([h.NotNull],p.prototype,"text",null),u([h.Override],p.prototype,"toString",null),p=u([r(0,h.NotNull)],p),Xt.TextChunk=p,Xt}var Kt={},nh;function ud(){if(nh)return Kt;nh=1;var u=Kt&&Kt.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=Kt&&Kt.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.TokenTagToken=void 0;const c=Vn(),h=Q();let p=class extends c.CommonToken{constructor(n,i,t){super(i),this._tokenName=n,this._label=t}get tokenName(){return this._tokenName}get label(){return this._label}get text(){return this._label!=null?"<"+this._label+":"+this._tokenName+">":"<"+this._tokenName+">"}toString(){return this._tokenName+":"+this.type}};return u([h.NotNull],p.prototype,"_tokenName",void 0),u([h.NotNull],p.prototype,"tokenName",null),u([h.Override],p.prototype,"text",null),u([h.Override],p.prototype,"toString",null),p=u([r(0,h.NotNull)],p),Kt.TokenTagToken=p,Kt}var ih;function ad(){return ih||(ih=1,(function(u){var r=hn&&hn.__decorate||function(b,O,D,k){var z=arguments.length,U=z<3?O:k===null?k=Object.getOwnPropertyDescriptor(O,D):k,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")U=Reflect.decorate(b,O,D,k);else for(var ie=b.length-1;ie>=0;ie--)(te=b[ie])&&(U=(z<3?te(U):z>3?te(O,D,U):te(O,D))||U);return z>3&&U&&Object.defineProperty(O,D,U),U},c=hn&&hn.__param||function(b,O){return function(D,k){O(D,k,b)}};Object.defineProperty(u,"__esModule",{value:!0}),u.ParseTreePatternMatcher=void 0;const h=mh(),p=Gs(),a=$s(),n=If(),i=$0(),t=Q(),s=Ff(),e=qf(),o=Ke(),l=X0(),f=nd(),d=ar(),g=ii(),x=id(),m=od(),y=pr(),_=sd(),v=Ce(),N=ud();let T=class Ou{constructor(O,D){this.start="<",this.stop=">",this.escape="\\",this.escapeRE=/\\/g,this._lexer=O,this._parser=D}setDelimiters(O,D,k){if(!O)throw new Error("start cannot be null or empty");if(!D)throw new Error("stop cannot be null or empty");this.start=O,this.stop=D,this.escape=k,this.escapeRE=new RegExp(k.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g")}matches(O,D,k=0){if(typeof D=="string"){let z=this.compile(D,k);return this.matches(O,z)}else{let z=new i.MultiMap;return!this.matchImpl(O,D.patternTree,z)}}match(O,D,k=0){if(typeof D=="string"){let z=this.compile(D,k);return this.match(O,z)}else{let z=new i.MultiMap,U=this.matchImpl(O,D.patternTree,z);return new l.ParseTreeMatch(O,D,z,U)}}compile(O,D){let k=this.tokenize(O),z=new n.ListTokenSource(k),U=new a.CommonTokenStream(z);const te=this._parser;let ie=new e.ParserInterpreter(te.grammarFileName,te.vocabulary,te.ruleNames,te.getATNWithBypassAlts(),U),oe;try{ie.errorHandler=new h.BailErrorStrategy,oe=ie.parse(D)}catch(he){throw he instanceof s.ParseCancellationException?he.getCause():he instanceof d.RecognitionException?he:he instanceof Error?new Ou.CannotInvokeStartRule(he):he}if(U.LA(1)!==v.Token.EOF)throw new Ou.StartRuleDoesNotConsumeFullPattern;return new f.ParseTreePattern(this,O,D,oe)}get lexer(){return this._lexer}get parser(){return this._parser}matchImpl(O,D,k){if(!O)throw new TypeError("tree cannot be null");if(!D)throw new TypeError("patternTree cannot be null");if(O instanceof y.TerminalNode&&D instanceof y.TerminalNode){let z;if(O.symbol.type===D.symbol.type)if(D.symbol instanceof N.TokenTagToken){let U=D.symbol;k.map(U.tokenName,O);const te=U.label;te&&k.map(te,O)}else O.text===D.text||z||(z=O);else z||(z=O);return z}if(O instanceof o.ParserRuleContext&&D instanceof o.ParserRuleContext){let z,U=this.getRuleTagToken(D);if(U){if(O.ruleContext.ruleIndex===D.ruleContext.ruleIndex){k.map(U.ruleName,O);const ie=U.label;ie&&k.map(ie,O)}else z||(z=O);return z}if(O.childCount!==D.childCount)return z||(z=O),z;let te=O.childCount;for(let ie=0;ie<te;ie++){let oe=this.matchImpl(O.getChild(ie),D.getChild(ie),k);if(oe)return oe}return z}return O}getRuleTagToken(O){if(O instanceof g.RuleNode&&O.childCount===1&&O.getChild(0)instanceof y.TerminalNode){let D=O.getChild(0);if(D.symbol instanceof x.RuleTagToken)return D.symbol}}tokenize(O){let D=this.split(O),k=[];for(let z of D)if(z instanceof m.TagChunk){let U=z;const te=U.tag.substr(0,1);if(te===te.toUpperCase()){let ie=this._parser.getTokenType(U.tag);if(ie===v.Token.INVALID_TYPE)throw new Error("Unknown token "+U.tag+" in pattern: "+O);let oe=new N.TokenTagToken(U.tag,ie,U.label);k.push(oe)}else if(te===te.toLowerCase()){let ie=this._parser.getRuleIndex(U.tag);if(ie===-1)throw new Error("Unknown rule "+U.tag+" in pattern: "+O);let oe=this._parser.getATNWithBypassAlts().ruleToTokenType[ie];k.push(new x.RuleTagToken(U.tag,oe,U.label))}else throw new Error("invalid tag: "+U.tag+" in pattern: "+O)}else{let U=z;this._lexer.inputStream=p.CharStreams.fromString(U.text);let te=this._lexer.nextToken();for(;te.type!==v.Token.EOF;)k.push(te),te=this._lexer.nextToken()}return k}split(O){let D=0,k=O.length,z=[],U=[],te=[];for(;D<k;)D===O.indexOf(this.escape+this.start,D)?D+=this.escape.length+this.start.length:D===O.indexOf(this.escape+this.stop,D)?D+=this.escape.length+this.stop.length:D===O.indexOf(this.start,D)?(U.push(D),D+=this.start.length):D===O.indexOf(this.stop,D)?(te.push(D),D+=this.stop.length):D++;if(U.length>te.length)throw new Error("unterminated tag in pattern: "+O);if(U.length<te.length)throw new Error("missing start tag in pattern: "+O);let ie=U.length;for(let oe=0;oe<ie;oe++)if(U[oe]>=te[oe])throw new Error("tag delimiters out of order in pattern: "+O);if(ie===0){let oe=O.substring(0,k);z.push(new _.TextChunk(oe))}if(ie>0&&U[0]>0){let oe=O.substring(0,U[0]);z.push(new _.TextChunk(oe))}for(let oe=0;oe<ie;oe++){let he=O.substring(U[oe]+this.start.length,te[oe]),Ee=he,le,Z=he.indexOf(":");if(Z>=0&&(le=he.substring(0,Z),Ee=he.substring(Z+1,he.length)),z.push(new m.TagChunk(Ee,le)),oe+1<ie){let ee=O.substring(te[oe]+this.stop.length,U[oe+1]);z.push(new _.TextChunk(ee))}}if(ie>0){let oe=te[ie-1]+this.stop.length;if(oe<k){let he=O.substring(oe,k);z.push(new _.TextChunk(he))}}for(let oe=0;oe<z.length;oe++){let he=z[oe];if(he instanceof _.TextChunk){let Ee=he.text.replace(this.escapeRE,"");Ee.length<he.text.length&&(z[oe]=new _.TextChunk(Ee))}}return z}};r([t.NotNull,c(1,t.NotNull)],T.prototype,"match",null),r([t.NotNull],T.prototype,"lexer",null),r([t.NotNull],T.prototype,"parser",null),r([c(0,t.NotNull),c(1,t.NotNull),c(2,t.NotNull)],T.prototype,"matchImpl",null),u.ParseTreePatternMatcher=T,(function(b){class O extends Error{constructor(z){super(`CannotInvokeStartRule: ${z}`),this.error=z}}b.CannotInvokeStartRule=O;class D extends Error{constructor(){super("StartRuleDoesNotConsumeFullPattern")}}b.StartRuleDoesNotConsumeFullPattern=D})(T=u.ParseTreePatternMatcher||(u.ParseTreePatternMatcher={}))})(hn)),hn}var Qt={},Jt={},Zt={},oh;function pi(){if(oh)return Zt;oh=1;var u=Zt&&Zt.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s},r=Zt&&Zt.__param||function(p,a){return function(n,i){a(n,i,p)}};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.DecisionEventInfo=void 0;const c=Q();let h=class{constructor(a,n,i,t,s,e){this.decision=a,this.fullCtx=e,this.stopIndex=s,this.input=i,this.startIndex=t,this.state=n}};return u([c.NotNull],h.prototype,"input",void 0),h=u([r(2,c.NotNull)],h),Zt.DecisionEventInfo=h,Zt}var sh;function ld(){if(sh)return Jt;sh=1;var u=Jt&&Jt.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=Jt&&Jt.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.AmbiguityInfo=void 0;const c=pi(),h=Q();let p=class extends c.DecisionEventInfo{constructor(n,i,t,s,e,o){super(n,i,s,e,o,i.useContext),this.ambigAlts=t}get ambiguousAlternatives(){return this.ambigAlts}};return u([h.NotNull],p.prototype,"ambigAlts",void 0),u([h.NotNull],p.prototype,"ambiguousAlternatives",null),p=u([r(1,h.NotNull),r(2,h.NotNull),r(3,h.NotNull)],p),Jt.AmbiguityInfo=p,Jt}var Yt={},uh;function cd(){if(uh)return Yt;uh=1;var u=Yt&&Yt.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=Yt&&Yt.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.ContextSensitivityInfo=void 0;const c=pi(),h=Q();let p=class extends c.DecisionEventInfo{constructor(n,i,t,s,e){super(n,i,t,s,e,!0)}};return p=u([r(1,h.NotNull),r(2,h.NotNull)],p),Yt.ContextSensitivityInfo=p,Yt}var Sn={},ah;function fd(){if(ah)return Sn;ah=1;var u=Sn&&Sn.__decorate||function(h,p,a,n){var i=arguments.length,t=i<3?p:n===null?n=Object.getOwnPropertyDescriptor(p,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(h,p,a,n);else for(var e=h.length-1;e>=0;e--)(s=h[e])&&(t=(i<3?s(t):i>3?s(p,a,t):s(p,a))||t);return i>3&&t&&Object.defineProperty(p,a,t),t};Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.DecisionInfo=void 0;const r=Q();let c=class{constructor(p){this.invocations=0,this.timeInPrediction=0,this.SLL_TotalLook=0,this.SLL_MinLook=0,this.SLL_MaxLook=0,this.LL_TotalLook=0,this.LL_MinLook=0,this.LL_MaxLook=0,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[],this.SLL_ATNTransitions=0,this.SLL_DFATransitions=0,this.LL_Fallback=0,this.LL_ATNTransitions=0,this.LL_DFATransitions=0,this.decision=p}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", SLL_lookahead="+this.SLL_TotalLook+", SLL_ATNTransitions="+this.SLL_ATNTransitions+", SLL_DFATransitions="+this.SLL_DFATransitions+", LL_Fallback="+this.LL_Fallback+", LL_lookahead="+this.LL_TotalLook+", LL_ATNTransitions="+this.LL_ATNTransitions+"}"}};return u([r.Override],c.prototype,"toString",null),Sn.DecisionInfo=c,Sn}var er={},lh;function hd(){if(lh)return er;lh=1;var u=er&&er.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=er&&er.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(er,"__esModule",{value:!0}),er.ErrorInfo=void 0;const c=pi(),h=Q();let p=class extends c.DecisionEventInfo{constructor(n,i,t,s,e){super(n,i,t,s,e,i.useContext)}};return p=u([r(1,h.NotNull),r(2,h.NotNull)],p),er.ErrorInfo=p,er}var tr={},ch;function pd(){if(ch)return tr;ch=1;var u=tr&&tr.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=tr&&tr.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(tr,"__esModule",{value:!0}),tr.LookaheadEventInfo=void 0;const c=pi(),h=Q();let p=class extends c.DecisionEventInfo{constructor(n,i,t,s,e,o,l){super(n,i,s,e,o,l),this.predictedAlt=t}};return p=u([r(3,h.NotNull)],p),tr.LookaheadEventInfo=p,tr}var rr={},fh;function dd(){if(fh)return rr;fh=1;var u=rr&&rr.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e},r=rr&&rr.__param||function(a,n){return function(i,t){n(i,t,a)}};Object.defineProperty(rr,"__esModule",{value:!0}),rr.PredicateEvalInfo=void 0;const c=pi(),h=Q();let p=class extends c.DecisionEventInfo{constructor(n,i,t,s,e,o,l,f){super(i,n,t,s,e,n.useContext),this.semctx=o,this.evalResult=l,this.predictedAlt=f}};return p=u([r(0,h.NotNull),r(2,h.NotNull),r(5,h.NotNull)],p),rr.PredicateEvalInfo=p,rr}var hh;function ph(){if(hh)return Qt;hh=1;var u=Qt&&Qt.__decorate||function(g,x,m,y){var _=arguments.length,v=_<3?x:y===null?y=Object.getOwnPropertyDescriptor(x,m):y,N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(g,x,m,y);else for(var T=g.length-1;T>=0;T--)(N=g[T])&&(v=(_<3?N(v):_>3?N(x,m,v):N(x,m))||v);return _>3&&v&&Object.defineProperty(x,m,v),v},r=Qt&&Qt.__param||function(g,x){return function(m,y){x(m,y,g)}};Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.ProfilingATNSimulator=void 0;const c=ld(),h=Ye(),p=Bi(),a=cd(),n=fd(),i=hd(),t=Q(),s=pd(),e=si(),o=dd(),l=wn(),f=uf();let d=class extends e.ParserATNSimulator{constructor(x){super(x.interpreter.atn,x),this._startIndex=0,this._sllStopIndex=0,this._llStopIndex=0,this.currentDecision=0,this.conflictingAltResolvedBySLL=0,this.optimize_ll1=!1,this.reportAmbiguities=!0,this.numDecisions=this.atn.decisionToState.length,this.decisions=[];for(let m=0;m<this.numDecisions;m++)this.decisions.push(new n.DecisionInfo(m))}adaptivePredict(x,m,y,_){if(_!==void 0)return super.adaptivePredict(x,m,y,_);try{this._input=x,this._startIndex=x.index,this._sllStopIndex=this._startIndex-1,this._llStopIndex=-1,this.currentDecision=m,this.currentState=void 0,this.conflictingAltResolvedBySLL=h.ATN.INVALID_ALT_NUMBER;let v=Oe.hrtime(),N=super.adaptivePredict(x,m,y),T=Oe.hrtime(),b=(T[0]-v[0])*1e9;b===0?b=T[1]-v[1]:b+=1e9-v[1]+T[1],this.decisions[m].timeInPrediction+=b,this.decisions[m].invocations++;let O=this._sllStopIndex-this._startIndex+1;if(this.decisions[m].SLL_TotalLook+=O,this.decisions[m].SLL_MinLook=this.decisions[m].SLL_MinLook===0?O:Math.min(this.decisions[m].SLL_MinLook,O),O>this.decisions[m].SLL_MaxLook&&(this.decisions[m].SLL_MaxLook=O,this.decisions[m].SLL_MaxLookEvent=new s.LookaheadEventInfo(m,void 0,N,x,this._startIndex,this._sllStopIndex,!1)),this._llStopIndex>=0){let D=this._llStopIndex-this._startIndex+1;this.decisions[m].LL_TotalLook+=D,this.decisions[m].LL_MinLook=this.decisions[m].LL_MinLook===0?D:Math.min(this.decisions[m].LL_MinLook,D),D>this.decisions[m].LL_MaxLook&&(this.decisions[m].LL_MaxLook=D,this.decisions[m].LL_MaxLookEvent=new s.LookaheadEventInfo(m,void 0,N,x,this._startIndex,this._llStopIndex,!0))}return N}finally{this._input=void 0,this.currentDecision=-1}}getStartState(x,m,y,_){let v=super.getStartState(x,m,y,_);return this.currentState=v,v}computeStartState(x,m,y){let _=super.computeStartState(x,m,y);return this.currentState=_,_}computeReachSet(x,m,y,_){if(this._input===void 0)throw new Error("Invalid state");let v=super.computeReachSet(x,m,y,_);return v==null&&this.decisions[this.currentDecision].errors.push(new i.ErrorInfo(this.currentDecision,m,this._input,this._startIndex,this._input.index)),this.currentState=v,v}getExistingTargetState(x,m){if(this.currentState===void 0||this._input===void 0)throw new Error("Invalid state");this.currentState.useContext?this._llStopIndex=this._input.index:this._sllStopIndex=this._input.index;let y=super.getExistingTargetState(x,m);if(y!=null&&(this.currentState=new f.SimulatorState(this.currentState.outerContext,y,this.currentState.useContext,this.currentState.remainingOuterContext),this.currentState.useContext?this.decisions[this.currentDecision].LL_DFATransitions++:this.decisions[this.currentDecision].SLL_DFATransitions++,y===p.ATNSimulator.ERROR)){let _=new f.SimulatorState(this.currentState.outerContext,x,this.currentState.useContext,this.currentState.remainingOuterContext);this.decisions[this.currentDecision].errors.push(new i.ErrorInfo(this.currentDecision,_,this._input,this._startIndex,this._input.index))}return y}computeTargetState(x,m,y,_,v,N){let T=super.computeTargetState(x,m,y,_,v,N);return v?this.decisions[this.currentDecision].LL_ATNTransitions++:this.decisions[this.currentDecision].SLL_ATNTransitions++,T}evalSemanticContextImpl(x,m,y){if(this.currentState===void 0||this._input===void 0)throw new Error("Invalid state");let _=super.evalSemanticContextImpl(x,m,y);if(!(x instanceof l.SemanticContext.PrecedencePredicate)){let N=this._llStopIndex>=0?this._llStopIndex:this._sllStopIndex;this.decisions[this.currentDecision].predicateEvals.push(new o.PredicateEvalInfo(this.currentState,this.currentDecision,this._input,this._startIndex,N,x,_,y))}return _}reportContextSensitivity(x,m,y,_,v){if(this._input===void 0)throw new Error("Invalid state");m!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new a.ContextSensitivityInfo(this.currentDecision,y,this._input,_,v)),super.reportContextSensitivity(x,m,y,_,v)}reportAttemptingFullContext(x,m,y,_,v){m!=null?this.conflictingAltResolvedBySLL=m.nextSetBit(0):this.conflictingAltResolvedBySLL=y.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(x,m,y,_,v)}reportAmbiguity(x,m,y,_,v,N,T){if(this.currentState===void 0||this._input===void 0)throw new Error("Invalid state");let b;N!=null?b=N.nextSetBit(0):b=T.getRepresentedAlternatives().nextSetBit(0),this.conflictingAltResolvedBySLL!==h.ATN.INVALID_ALT_NUMBER&&b!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new a.ContextSensitivityInfo(this.currentDecision,this.currentState,this._input,y,_)),this.decisions[this.currentDecision].ambiguities.push(new c.AmbiguityInfo(this.currentDecision,this.currentState,N,this._input,y,_)),super.reportAmbiguity(x,m,y,_,v,N,T)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}};return u([t.Override,r(0,t.NotNull)],d.prototype,"adaptivePredict",null),u([t.Override],d.prototype,"getStartState",null),u([t.Override],d.prototype,"computeStartState",null),u([t.Override],d.prototype,"computeReachSet",null),u([t.Override],d.prototype,"getExistingTargetState",null),u([t.Override],d.prototype,"computeTargetState",null),u([t.Override],d.prototype,"evalSemanticContextImpl",null),u([t.Override],d.prototype,"reportContextSensitivity",null),u([t.Override],d.prototype,"reportAttemptingFullContext",null),u([t.Override,r(0,t.NotNull),r(5,t.NotNull),r(6,t.NotNull)],d.prototype,"reportAmbiguity",null),Qt.ProfilingATNSimulator=d,Qt}var dh;function di(){if(dh)return Xe;dh=1;var u=Xe&&Xe.__decorate||function(_,v,N,T){var b=arguments.length,O=b<3?v:T===null?T=Object.getOwnPropertyDescriptor(v,N):T,D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(_,v,N,T);else for(var k=_.length-1;k>=0;k--)(D=_[k])&&(O=(b<3?D(O):b>3?D(v,N,O):D(v,N))||O);return b>3&&O&&Object.defineProperty(v,N,O),O},r=Xe&&Xe.__param||function(_,v){return function(N,T){v(N,T,_)}},c=Xe&&Xe.__awaiter||function(_,v,N,T){function b(O){return O instanceof N?O:new N(function(D){D(O)})}return new(N||(N=Promise))(function(O,D){function k(te){try{U(T.next(te))}catch(ie){D(ie)}}function z(te){try{U(T.throw(te))}catch(ie){D(ie)}}function U(te){te.done?O(te.value):b(te.value).then(k,z)}U((T=T.apply(_,v||[])).next())})};Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.Parser=void 0;const h=at(),p=Dc(),a=Hs(),n=Ks(),i=ri(),t=zl(),s=hr(),e=Q(),o=W0(),l=si(),f=Af(),d=Yn(),g=pr(),x=Ce();class m{constructor(v,N){this.ruleNames=v,this.tokenStream=N}enterEveryRule(v){console.log("enter "+this.ruleNames[v.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}exitEveryRule(v){console.log("exit "+this.ruleNames[v.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}visitErrorNode(v){}visitTerminal(v){let N=v.parent.ruleContext,T=v.symbol;console.log("consume "+T+" rule "+this.ruleNames[N.ruleIndex])}}u([e.Override],m.prototype,"enterEveryRule",null),u([e.Override],m.prototype,"exitEveryRule",null),u([e.Override],m.prototype,"visitErrorNode",null),u([e.Override],m.prototype,"visitTerminal",null);let y=class Xi extends d.Recognizer{constructor(v){super(),this._errHandler=new n.DefaultErrorStrategy,this._precedenceStack=new t.IntegerStack,this._buildParseTrees=!0,this._parseListeners=[],this._syntaxErrors=0,this.matchedEOF=!1,this._precedenceStack.push(0),this.inputStream=v}reset(v){(v===void 0||v)&&this.inputStream.seek(0),this._errHandler.reset(this),this._ctx=void 0,this._syntaxErrors=0,this.matchedEOF=!1,this.isTrace=!1,this._precedenceStack.clear(),this._precedenceStack.push(0);let N=this.interpreter;N?.reset()}match(v){let N=this.currentToken;return N.type===v?(v===x.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):(N=this._errHandler.recoverInline(this),this._buildParseTrees&&N.tokenIndex===-1&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,N))),N}matchWildcard(){let v=this.currentToken;return v.type>0?(this._errHandler.reportMatch(this),this.consume()):(v=this._errHandler.recoverInline(this),this._buildParseTrees&&v.tokenIndex===-1&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,v))),v}set buildParseTree(v){this._buildParseTrees=v}get buildParseTree(){return this._buildParseTrees}getParseListeners(){return this._parseListeners}addParseListener(v){if(v==null)throw new TypeError("listener cannot be null");this._parseListeners.push(v)}removeParseListener(v){let N=this._parseListeners.findIndex(T=>T===v);N!==-1&&this._parseListeners.splice(N,1)}removeParseListeners(){this._parseListeners.length=0}triggerEnterRuleEvent(){for(let v of this._parseListeners)v.enterEveryRule&&v.enterEveryRule(this._ctx),this._ctx.enterRule(v)}triggerExitRuleEvent(){for(let v=this._parseListeners.length-1;v>=0;v--){let N=this._parseListeners[v];this._ctx.exitRule(N),N.exitEveryRule&&N.exitEveryRule(this._ctx)}}get numberOfSyntaxErrors(){return this._syntaxErrors}get tokenFactory(){return this._input.tokenSource.tokenFactory}getATNWithBypassAlts(){let v=this.serializedATN;if(v==null)throw new Error("The current parser does not support an ATN with bypass alternatives.");let N=Xi.bypassAltsAtnCache.get(v);if(N==null){let T=new p.ATNDeserializationOptions;T.isGenerateRuleBypassTransitions=!0,N=new a.ATNDeserializer(T).deserialize(h.toCharArray(v)),Xi.bypassAltsAtnCache.set(v,N)}return N}compileParseTreePattern(v,N,T){return c(this,void 0,void 0,function*(){if(!T){if(this.inputStream){let k=this.inputStream.tokenSource;k instanceof s.Lexer&&(T=k)}if(!T)throw new Error("Parser can't discover a lexer to use")}let b=T,O=yield Promise.resolve().then(()=>ad());return new O.ParseTreePatternMatcher(b,this).compile(v,N)})}get errorHandler(){return this._errHandler}set errorHandler(v){this._errHandler=v}get inputStream(){return this._input}set inputStream(v){this.reset(!1),this._input=v}get currentToken(){return this._input.LT(1)}notifyErrorListeners(v,N,T){N===void 0?N=this.currentToken:N===null&&(N=void 0),this._syntaxErrors++;let b=-1,O=-1;N!=null&&(b=N.line,O=N.charPositionInLine);let D=this.getErrorListenerDispatch();D.syntaxError&&D.syntaxError(this,N,b,O,v,T)}consume(){let v=this.currentToken;v.type!==Xi.EOF&&this.inputStream.consume();let N=this._parseListeners.length!==0;if(this._buildParseTrees||N)if(this._errHandler.inErrorRecoveryMode(this)){let T=this._ctx.addErrorNode(this.createErrorNode(this._ctx,v));if(N)for(let b of this._parseListeners)b.visitErrorNode&&b.visitErrorNode(T)}else{let T=this.createTerminalNode(this._ctx,v);if(this._ctx.addChild(T),N)for(let b of this._parseListeners)b.visitTerminal&&b.visitTerminal(T)}return v}createTerminalNode(v,N){return new g.TerminalNode(N)}createErrorNode(v,N){return new i.ErrorNode(N)}addContextToParseTree(){let v=this._ctx._parent;v?.addChild(this._ctx)}enterRule(v,N,T){this.state=N,this._ctx=v,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}enterLeftFactoredRule(v,N,T){if(this.state=N,this._buildParseTrees){let b=this._ctx.getChild(this._ctx.childCount-1);this._ctx.removeLastChild(),b._parent=v,v.addChild(b)}this._ctx=v,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this._ctx._stop=this._input.LT(1):this._ctx._stop=this._input.tryLT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx._parent}enterOuterAlt(v,N){if(v.altNumber=N,this._buildParseTrees&&this._ctx!==v){let T=this._ctx._parent;T!=null&&(T.removeLastChild(),T.addChild(v))}this._ctx=v}get precedence(){return this._precedenceStack.isEmpty?-1:this._precedenceStack.peek()}enterRecursionRule(v,N,T,b){this.state=N,this._precedenceStack.push(b),this._ctx=v,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(v,N,T){let b=this._ctx;b._parent=v,b.invokingState=N,b._stop=this._input.tryLT(-1),this._ctx=v,this._ctx._start=b._start,this._buildParseTrees&&this._ctx.addChild(b),this.triggerEnterRuleEvent()}unrollRecursionContexts(v){this._precedenceStack.pop(),this._ctx._stop=this._input.tryLT(-1);let N=this._ctx;if(this._parseListeners.length>0)for(;this._ctx!==v;)this.triggerExitRuleEvent(),this._ctx=this._ctx._parent;else this._ctx=v;N._parent=v,this._buildParseTrees&&v!=null&&v.addChild(N)}getInvokingContext(v){let N=this._ctx;for(;N&&N.ruleIndex!==v;)N=N._parent;return N}get context(){return this._ctx}set context(v){this._ctx=v}precpred(v,N){return N>=this._precedenceStack.peek()}getErrorListenerDispatch(){return new f.ProxyParserErrorListener(this.getErrorListeners())}inContext(v){return!1}isExpectedToken(v){let N=this.interpreter.atn,T=this._ctx,b=N.states[this.state],O=N.nextTokens(b);if(O.contains(v))return!0;if(!O.contains(x.Token.EPSILON))return!1;for(;T!=null&&T.invokingState>=0&&O.contains(x.Token.EPSILON);){let k=N.states[T.invokingState].transition(0);if(O=N.nextTokens(k.followState),O.contains(v))return!0;T=T._parent}return!!(O.contains(x.Token.EPSILON)&&v===x.Token.EOF)}get isMatchedEOF(){return this.matchedEOF}getExpectedTokens(){return this.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let v=this.interpreter.atn,N=v.states[this.state];return v.nextTokens(N)}getRuleIndex(v){let N=this.getRuleIndexMap().get(v);return N??-1}get ruleContext(){return this._ctx}getRuleInvocationStack(v=this._ctx){let N=v,T=this.ruleNames,b=[];for(;N!=null;){let O=N.ruleIndex;O<0?b.push("n/a"):b.push(T[O]),N=N._parent}return b}getDFAStrings(){let v=[];for(let N of this._interp.atn.decisionToDFA)v.push(N.toString(this.vocabulary,this.ruleNames));return v}dumpDFA(){let v=!1;for(let N of this._interp.atn.decisionToDFA)N.isEmpty||(v&&console.log(),console.log("Decision "+N.decision+":"),Oe.stdout.write(N.toString(this.vocabulary,this.ruleNames)),v=!0)}get sourceName(){return this._input.sourceName}get parseInfo(){return Promise.resolve().then(()=>ph()).then(v=>{let N=this.interpreter;if(N instanceof v.ProfilingATNSimulator)return new o.ParseInfo(N)})}setProfile(v){return c(this,void 0,void 0,function*(){let N=yield Promise.resolve().then(()=>ph()),T=this.interpreter;v?T instanceof N.ProfilingATNSimulator||(this.interpreter=new N.ProfilingATNSimulator(this)):T instanceof N.ProfilingATNSimulator&&(this.interpreter=new l.ParserATNSimulator(this.atn,this)),this.interpreter.setPredictionMode(T.getPredictionMode())})}set isTrace(v){v?(this._tracer?this.removeParseListener(this._tracer):this._tracer=new m(this.ruleNames,this._input),this.addParseListener(this._tracer)):this._tracer&&(this.removeParseListener(this._tracer),this._tracer=void 0)}get isTrace(){return this._tracer!=null}};return y.bypassAltsAtnCache=new Map,u([e.NotNull],y.prototype,"_errHandler",void 0),u([e.NotNull],y.prototype,"match",null),u([e.NotNull],y.prototype,"matchWildcard",null),u([e.NotNull],y.prototype,"getParseListeners",null),u([r(0,e.NotNull)],y.prototype,"addParseListener",null),u([e.NotNull],y.prototype,"getATNWithBypassAlts",null),u([e.NotNull,r(0,e.NotNull)],y.prototype,"errorHandler",null),u([e.Override],y.prototype,"inputStream",null),u([e.NotNull],y.prototype,"currentToken",null),u([r(0,e.NotNull)],y.prototype,"enterRule",null),u([e.Override,r(0,e.Nullable)],y.prototype,"precpred",null),u([e.Override],y.prototype,"getErrorListenerDispatch",null),u([e.NotNull],y.prototype,"getExpectedTokens",null),u([e.NotNull],y.prototype,"getExpectedTokensWithinCurrentRule",null),u([e.Override],y.prototype,"parseInfo",null),Xe.Parser=y,Xe}var xh;function ki(){if(xh)return Wr;xh=1;var u=Wr&&Wr.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.NoViableAltException=void 0;const r=di(),c=ar(),h=Q();let p=class extends c.RecognitionException{constructor(n,i,t,s,e,o){n instanceof r.Parser&&(i===void 0&&(i=n.inputStream),t===void 0&&(t=n.currentToken),s===void 0&&(s=n.currentToken),o===void 0&&(o=n.context)),super(n,i,o),this._deadEndConfigs=e,this._startToken=t,this.setOffendingToken(n,s)}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}};return u([h.NotNull],p.prototype,"_startToken",void 0),Wr.NoViableAltException=p,Wr}var yh;function Ks(){if(yh)return rt;yh=1;var u=rt&&rt.__decorate||function(l,f,d,g){var x=arguments.length,m=x<3?f:g===null?g=Object.getOwnPropertyDescriptor(f,d):g,y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(l,f,d,g);else for(var _=l.length-1;_>=0;_--)(y=l[_])&&(m=(x<3?y(m):x>3?y(f,d,m):y(f,d))||m);return x>3&&m&&Object.defineProperty(f,d,m),m},r=rt&&rt.__param||function(l,f){return function(d,g){f(d,g,l)}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.DefaultErrorStrategy=void 0;const c=nt(),h=Ie(),p=Ii(),a=Li(),n=Vr(),i=ki(),t=$e(),s=Ce(),e=Q();let o=class{constructor(){this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.nextTokensState=c.ATNState.INVALID_STATE_NUMBER}reset(f){this.endErrorCondition(f)}beginErrorCondition(f){this.errorRecoveryMode=!0}inErrorRecoveryMode(f){return this.errorRecoveryMode}endErrorCondition(f){this.errorRecoveryMode=!1,this.lastErrorStates=void 0,this.lastErrorIndex=-1}reportMatch(f){this.endErrorCondition(f)}reportError(f,d){this.inErrorRecoveryMode(f)||(this.beginErrorCondition(f),d instanceof i.NoViableAltException?this.reportNoViableAlternative(f,d):d instanceof a.InputMismatchException?this.reportInputMismatch(f,d):d instanceof p.FailedPredicateException?this.reportFailedPredicate(f,d):(console.error(`unknown recognition error type: ${d}`),this.notifyErrorListeners(f,d.toString(),d)))}notifyErrorListeners(f,d,g){let x=g.getOffendingToken(f);x===void 0&&(x=null),f.notifyErrorListeners(d,x,g)}recover(f,d){this.lastErrorIndex===f.inputStream.index&&this.lastErrorStates&&this.lastErrorStates.contains(f.state)&&f.consume(),this.lastErrorIndex=f.inputStream.index,this.lastErrorStates||(this.lastErrorStates=new n.IntervalSet),this.lastErrorStates.add(f.state);let g=this.getErrorRecoverySet(f);this.consumeUntil(f,g)}sync(f){let d=f.interpreter.atn.states[f.state];if(this.inErrorRecoveryMode(f))return;let x=f.inputStream.LA(1),m=f.atn.nextTokens(d);if(m.contains(x)){this.nextTokensContext=void 0,this.nextTokensState=c.ATNState.INVALID_STATE_NUMBER;return}if(m.contains(s.Token.EPSILON)){this.nextTokensContext===void 0&&(this.nextTokensContext=f.context,this.nextTokensState=f.state);return}switch(d.stateType){case h.ATNStateType.BLOCK_START:case h.ATNStateType.STAR_BLOCK_START:case h.ATNStateType.PLUS_BLOCK_START:case h.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(f))return;throw new a.InputMismatchException(f);case h.ATNStateType.PLUS_LOOP_BACK:case h.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(f);let _=f.getExpectedTokens().or(this.getErrorRecoverySet(f));this.consumeUntil(f,_);break}}reportNoViableAlternative(f,d){let g=f.inputStream,x;g?d.startToken.type===s.Token.EOF?x="<EOF>":x=g.getTextFromRange(d.startToken,d.getOffendingToken()):x="<unknown input>";let m="no viable alternative at input "+this.escapeWSAndQuote(x);this.notifyErrorListeners(f,m,d)}reportInputMismatch(f,d){let g=d.expectedTokens,x=g?g.toStringVocabulary(f.vocabulary):"",m="mismatched input "+this.getTokenErrorDisplay(d.getOffendingToken(f))+" expecting "+x;this.notifyErrorListeners(f,m,d)}reportFailedPredicate(f,d){let x="rule "+f.ruleNames[f.context.ruleIndex]+" "+d.message;this.notifyErrorListeners(f,x,d)}reportUnwantedToken(f){if(this.inErrorRecoveryMode(f))return;this.beginErrorCondition(f);let d=f.currentToken,g=this.getTokenErrorDisplay(d),x=this.getExpectedTokens(f),m="extraneous input "+g+" expecting "+x.toStringVocabulary(f.vocabulary);f.notifyErrorListeners(m,d,void 0)}reportMissingToken(f){if(this.inErrorRecoveryMode(f))return;this.beginErrorCondition(f);let d=f.currentToken,x="missing "+this.getExpectedTokens(f).toStringVocabulary(f.vocabulary)+" at "+this.getTokenErrorDisplay(d);f.notifyErrorListeners(x,d,void 0)}recoverInline(f){let d=this.singleTokenDeletion(f);if(d)return f.consume(),d;if(this.singleTokenInsertion(f))return this.getMissingSymbol(f);throw this.nextTokensContext===void 0?new a.InputMismatchException(f):new a.InputMismatchException(f,this.nextTokensState,this.nextTokensContext)}singleTokenInsertion(f){let d=f.inputStream.LA(1),x=f.interpreter.atn.states[f.state].transition(0).target,m=f.interpreter.atn;return m.nextTokens(x,t.PredictionContext.fromRuleContext(m,f.context)).contains(d)?(this.reportMissingToken(f),!0):!1}singleTokenDeletion(f){let d=f.inputStream.LA(2);if(this.getExpectedTokens(f).contains(d)){this.reportUnwantedToken(f),f.consume();let x=f.currentToken;return this.reportMatch(f),x}}getMissingSymbol(f){let d=f.currentToken,g=this.getExpectedTokens(f),x=s.Token.INVALID_TYPE;g.isNil||(x=g.minElement);let m;x===s.Token.EOF?m="<missing EOF>":m="<missing "+f.vocabulary.getDisplayName(x)+">";let y=d,_=f.inputStream.tryLT(-1);return y.type===s.Token.EOF&&_!=null&&(y=_),this.constructToken(f.inputStream.tokenSource,x,m,y)}constructToken(f,d,g,x){let m=f.tokenFactory,y=x.tokenSource,_=y?y.inputStream:void 0;return m.create({source:f,stream:_},d,g,s.Token.DEFAULT_CHANNEL,-1,-1,x.line,x.charPositionInLine)}getExpectedTokens(f){return f.getExpectedTokens()}getTokenErrorDisplay(f){if(!f)return"<no token>";let d=this.getSymbolText(f);return d||(this.getSymbolType(f)===s.Token.EOF?d="<EOF>":d=`<${this.getSymbolType(f)}>`),this.escapeWSAndQuote(d)}getSymbolText(f){return f.text}getSymbolType(f){return f.type}escapeWSAndQuote(f){return f=f.replace(`
|
|
87
|
+
`,"\\n"),f=f.replace("\r","\\r"),f=f.replace(" ","\\t"),"'"+f+"'"}getErrorRecoverySet(f){let d=f.interpreter.atn,g=f.context,x=new n.IntervalSet;for(;g&&g.invokingState>=0;){let y=d.states[g.invokingState].transition(0),_=d.nextTokens(y.followState);x.addAll(_),g=g._parent}return x.remove(s.Token.EPSILON),x}consumeUntil(f,d){let g=f.inputStream.LA(1);for(;g!==s.Token.EOF&&!d.contains(g);)f.consume(),g=f.inputStream.LA(1)}};return u([e.Override],o.prototype,"reset",null),u([r(0,e.NotNull)],o.prototype,"beginErrorCondition",null),u([e.Override],o.prototype,"inErrorRecoveryMode",null),u([r(0,e.NotNull)],o.prototype,"endErrorCondition",null),u([e.Override],o.prototype,"reportMatch",null),u([e.Override],o.prototype,"reportError",null),u([r(0,e.NotNull)],o.prototype,"notifyErrorListeners",null),u([e.Override],o.prototype,"recover",null),u([e.Override],o.prototype,"sync",null),u([r(0,e.NotNull),r(1,e.NotNull)],o.prototype,"reportNoViableAlternative",null),u([r(0,e.NotNull),r(1,e.NotNull)],o.prototype,"reportInputMismatch",null),u([r(0,e.NotNull),r(1,e.NotNull)],o.prototype,"reportFailedPredicate",null),u([r(0,e.NotNull)],o.prototype,"reportUnwantedToken",null),u([r(0,e.NotNull)],o.prototype,"reportMissingToken",null),u([e.Override],o.prototype,"recoverInline",null),u([r(0,e.NotNull)],o.prototype,"singleTokenInsertion",null),u([r(0,e.NotNull)],o.prototype,"singleTokenDeletion",null),u([e.NotNull,r(0,e.NotNull)],o.prototype,"getMissingSymbol",null),u([e.NotNull,r(0,e.NotNull)],o.prototype,"getExpectedTokens",null),u([r(0,e.NotNull)],o.prototype,"getSymbolText",null),u([r(0,e.NotNull)],o.prototype,"getSymbolType",null),u([e.NotNull,r(0,e.NotNull)],o.prototype,"escapeWSAndQuote",null),u([e.NotNull,r(0,e.NotNull)],o.prototype,"getErrorRecoverySet",null),u([r(0,e.NotNull),r(1,e.NotNull)],o.prototype,"consumeUntil",null),rt.DefaultErrorStrategy=o,rt}var _h;function mh(){if(_h)return Ar;_h=1;var u=Ar&&Ar.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o};Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.BailErrorStrategy=void 0;const r=Ks(),c=Li(),h=Q(),p=Ff();let a=class extends r.DefaultErrorStrategy{recover(i,t){for(let s=i.context;s;s=s.parent)s.exception=t;throw new p.ParseCancellationException(t)}recoverInline(i){let t=new c.InputMismatchException(i);for(let s=i.context;s;s=s.parent)s.exception=t;throw new p.ParseCancellationException(t)}sync(i){}};return u([h.Override],a.prototype,"recover",null),u([h.Override],a.prototype,"recoverInline",null),u([h.Override],a.prototype,"sync",null),Ar.BailErrorStrategy=a,Ar}var Qs={},gh;function xd(){if(gh)return Qs;gh=1;return Object.defineProperty(Qs,"__esModule",{value:!0}),Qs}var Js={},vh;function yd(){return vh||(vh=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Dependents=void 0,(function(r){r[r.SELF=0]="SELF",r[r.PARENTS=1]="PARENTS",r[r.CHILDREN=2]="CHILDREN",r[r.ANCESTORS=3]="ANCESTORS",r[r.DESCENDANTS=4]="DESCENDANTS",r[r.SIBLINGS=5]="SIBLINGS",r[r.PRECEEDING_SIBLINGS=6]="PRECEEDING_SIBLINGS",r[r.FOLLOWING_SIBLINGS=7]="FOLLOWING_SIBLINGS",r[r.PRECEEDING=8]="PRECEEDING",r[r.FOLLOWING=9]="FOLLOWING"})(u.Dependents||(u.Dependents={}))})(Js)),Js}var nr={},Ah;function _d(){if(Ah)return nr;Ah=1;var u=nr&&nr.__decorate||function(n,i,t,s){var e=arguments.length,o=e<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,i,t,s);else for(var f=n.length-1;f>=0;f--)(l=n[f])&&(o=(e<3?l(o):e>3?l(i,t,o):l(i,t))||o);return e>3&&o&&Object.defineProperty(i,t,o),o},r=nr&&nr.__param||function(n,i){return function(t,s){i(t,s,n)}};Object.defineProperty(nr,"__esModule",{value:!0}),nr.DiagnosticErrorListener=void 0;const c=fr(),h=Q(),p=je();let a=class{constructor(i=!0){this.exactOnly=i,this.exactOnly=i}syntaxError(i,t,s,e,o,l){}reportAmbiguity(i,t,s,e,o,l,f){if(this.exactOnly&&!o)return;let d=this.getDecisionDescription(i,t),g=this.getConflictingAlts(l,f),x=i.inputStream.getText(p.Interval.of(s,e)),m=`reportAmbiguity d=${d}: ambigAlts=${g}, input='${x}'`;i.notifyErrorListeners(m)}reportAttemptingFullContext(i,t,s,e,o,l){let f=this.getDecisionDescription(i,t),d=i.inputStream.getText(p.Interval.of(s,e)),g=`reportAttemptingFullContext d=${f}, input='${d}'`;i.notifyErrorListeners(g)}reportContextSensitivity(i,t,s,e,o,l){let f=this.getDecisionDescription(i,t),d=i.inputStream.getText(p.Interval.of(s,e)),g=`reportContextSensitivity d=${f}, input='${d}'`;i.notifyErrorListeners(g)}getDecisionDescription(i,t){let s=t.decision,e=t.atnStartState.ruleIndex,o=i.ruleNames;if(e<0||e>=o.length)return s.toString();let l=o[e];return l?`${s} (${l})`:s.toString()}getConflictingAlts(i,t){if(i!=null)return i;let s=new c.BitSet;for(let e of t)s.set(e.alt);return s}};return u([h.Override],a.prototype,"syntaxError",null),u([h.Override,r(0,h.NotNull),r(1,h.NotNull),r(6,h.NotNull)],a.prototype,"reportAmbiguity",null),u([h.Override,r(0,h.NotNull),r(1,h.NotNull),r(5,h.NotNull)],a.prototype,"reportAttemptingFullContext",null),u([h.Override,r(0,h.NotNull),r(1,h.NotNull),r(5,h.NotNull)],a.prototype,"reportContextSensitivity",null),u([r(0,h.NotNull),r(1,h.NotNull)],a.prototype,"getDecisionDescription",null),u([h.NotNull,r(1,h.NotNull)],a.prototype,"getConflictingAlts",null),nr.DiagnosticErrorListener=a,nr}var ir={},Th;function md(){if(Th)return ir;Th=1;var u=ir&&ir.__decorate||function(i,t,s,e){var o=arguments.length,l=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(i,t,s,e);else for(var d=i.length-1;d>=0;d--)(f=i[d])&&(l=(o<3?f(l):o>3?f(t,s,l):f(t,s))||l);return o>3&&l&&Object.defineProperty(t,s,l),l},r=ir&&ir.__param||function(i,t){return function(s,e){t(s,e,i)}};Object.defineProperty(ir,"__esModule",{value:!0}),ir.LexerInterpreter=void 0;const c=hr(),h=Mi(),p=Q(),a=Q();let n=class extends c.Lexer{constructor(t,s,e,o,l,f,d){if(super(d),f.grammarType!==0)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this._grammarFileName=t,this._atn=f,this._ruleNames=e.slice(0),this._channelNames=o.slice(0),this._modeNames=l.slice(0),this._vocabulary=s,this._interp=new h.LexerATNSimulator(f,this)}get atn(){return this._atn}get grammarFileName(){return this._grammarFileName}get ruleNames(){return this._ruleNames}get channelNames(){return this._channelNames}get modeNames(){return this._modeNames}get vocabulary(){return this._vocabulary}};return u([p.NotNull],n.prototype,"_vocabulary",void 0),u([a.Override],n.prototype,"atn",null),u([a.Override],n.prototype,"grammarFileName",null),u([a.Override],n.prototype,"ruleNames",null),u([a.Override],n.prototype,"channelNames",null),u([a.Override],n.prototype,"modeNames",null),u([a.Override],n.prototype,"vocabulary",null),n=u([r(1,p.NotNull)],n),ir.LexerInterpreter=n,ir}var Zs={},Eh;function gd(){if(Eh)return Zs;Eh=1;return Object.defineProperty(Zs,"__esModule",{value:!0}),Zs}var Nn={},Sh;function vd(){if(Sh)return Nn;Sh=1;var u=Nn&&Nn.__decorate||function(a,n,i,t){var s=arguments.length,e=s<3?n:t===null?t=Object.getOwnPropertyDescriptor(n,i):t,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,n,i,t);else for(var l=a.length-1;l>=0;l--)(o=a[l])&&(e=(s<3?o(e):s>3?o(n,i,e):o(n,i))||e);return s>3&&e&&Object.defineProperty(n,i,e),e};Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.RuleContextWithAltNum=void 0;const r=Ye(),c=Q(),h=Ke();let p=class extends h.ParserRuleContext{constructor(n,i){i!==void 0?super(n,i):super(),this._altNumber=r.ATN.INVALID_ALT_NUMBER}get altNumber(){return this._altNumber}set altNumber(n){this._altNumber=n}};return u([c.Override],p.prototype,"altNumber",null),Nn.RuleContextWithAltNum=p,Nn}var xi={},Nh;function Ad(){if(Nh)return xi;Nh=1;Object.defineProperty(xi,"__esModule",{value:!0}),xi.RuleDependency=void 0;function u(r){return(c,h,p)=>{}}return xi.RuleDependency=u,xi}var yi={},bh;function Td(){if(bh)return yi;bh=1;Object.defineProperty(yi,"__esModule",{value:!0}),yi.RuleVersion=void 0;function u(r){return(c,h,p)=>{}}return yi.RuleVersion=u,yi}var Ys={},Ch;function Ed(){if(Ch)return Ys;Ch=1;return Object.defineProperty(Ys,"__esModule",{value:!0}),Ys}var eu={},Oh;function Sd(){if(Oh)return eu;Oh=1;return Object.defineProperty(eu,"__esModule",{value:!0}),eu}var tu={},Rh;function Nd(){if(Rh)return tu;Rh=1;return Object.defineProperty(tu,"__esModule",{value:!0}),tu}var or={},Ph;function bd(){if(Ph)return or;Ph=1;var u=or&&or.__decorate||function(s,e,o,l){var f=arguments.length,d=f<3?e:l===null?l=Object.getOwnPropertyDescriptor(e,o):l,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(s,e,o,l);else for(var x=s.length-1;x>=0;x--)(g=s[x])&&(d=(f<3?g(d):f>3?g(e,o,d):g(e,o))||d);return f>3&&d&&Object.defineProperty(e,o,d),d};Object.defineProperty(or,"__esModule",{value:!0}),or.RewriteOperation=or.TokenStreamRewriter=void 0;const r=je(),c=Q(),h=Ce();let p=class We{constructor(e){this.tokens=e,this.programs=new Map,this.programs.set(We.DEFAULT_PROGRAM_NAME,[]),this.lastRewriteTokenIndexes=new Map}getTokenStream(){return this.tokens}rollback(e,o=We.DEFAULT_PROGRAM_NAME){let l=this.programs.get(o);l!=null&&this.programs.set(o,l.slice(We.MIN_TOKEN_INDEX,e))}deleteProgram(e=We.DEFAULT_PROGRAM_NAME){this.rollback(We.MIN_TOKEN_INDEX,e)}insertAfter(e,o,l=We.DEFAULT_PROGRAM_NAME){let f;typeof e=="number"?f=e:f=e.tokenIndex;let d=this.getProgram(l),g=new i(this.tokens,f,d.length,o);d.push(g)}insertBefore(e,o,l=We.DEFAULT_PROGRAM_NAME){let f;typeof e=="number"?f=e:f=e.tokenIndex;let d=this.getProgram(l),g=new n(this.tokens,f,d.length,o);d.push(g)}replaceSingle(e,o){typeof e=="number"?this.replace(e,e,o):this.replace(e,e,o)}replace(e,o,l,f=We.DEFAULT_PROGRAM_NAME){if(typeof e!="number"&&(e=e.tokenIndex),typeof o!="number"&&(o=o.tokenIndex),e>o||e<0||o<0||o>=this.tokens.size)throw new RangeError(`replace: range invalid: ${e}..${o}(size=${this.tokens.size})`);let d=this.getProgram(f),g=new t(this.tokens,e,o,d.length,l);d.push(g)}delete(e,o,l=We.DEFAULT_PROGRAM_NAME){o===void 0&&(o=e),typeof e=="number"?this.replace(e,o,"",l):this.replace(e,o,"",l)}getLastRewriteTokenIndex(e=We.DEFAULT_PROGRAM_NAME){let o=this.lastRewriteTokenIndexes.get(e);return o??-1}setLastRewriteTokenIndex(e,o){this.lastRewriteTokenIndexes.set(e,o)}getProgram(e){let o=this.programs.get(e);return o==null&&(o=this.initializeProgram(e)),o}initializeProgram(e){let o=[];return this.programs.set(e,o),o}getText(e,o=We.DEFAULT_PROGRAM_NAME){let l;e instanceof r.Interval?l=e:l=r.Interval.of(0,this.tokens.size-1),typeof e=="string"&&(o=e);let f=this.programs.get(o),d=l.a,g=l.b;if(g>this.tokens.size-1&&(g=this.tokens.size-1),d<0&&(d=0),f==null||f.length===0)return this.tokens.getText(l);let x=[],m=this.reduceToSingleOperationPerIndex(f),y=d;for(;y<=g&&y<this.tokens.size;){let _=m.get(y);m.delete(y);let v=this.tokens.get(y);_==null?(v.type!==h.Token.EOF&&x.push(String(v.text)),y++):y=_.execute(x)}if(g===this.tokens.size-1)for(let _ of m.values())_.index>=this.tokens.size-1&&x.push(_.text.toString());return x.join("")}reduceToSingleOperationPerIndex(e){for(let l=0;l<e.length;l++){let f=e[l];if(f==null||!(f instanceof t))continue;let d=f,g=this.getKindOfOps(e,n,l);for(let m of g)m.index===d.index?(e[m.instructionIndex]=void 0,d.text=m.text.toString()+(d.text!=null?d.text.toString():"")):m.index>d.index&&m.index<=d.lastIndex&&(e[m.instructionIndex]=void 0);let x=this.getKindOfOps(e,t,l);for(let m of x){if(m.index>=d.index&&m.lastIndex<=d.lastIndex){e[m.instructionIndex]=void 0;continue}let y=m.lastIndex<d.index||m.index>d.lastIndex;if(m.text==null&&d.text==null&&!y)e[m.instructionIndex]=void 0,d.index=Math.min(m.index,d.index),d.lastIndex=Math.max(m.lastIndex,d.lastIndex);else if(!y)throw new Error(`replace op boundaries of ${d} overlap with previous ${m}`)}}for(let l=0;l<e.length;l++){let f=e[l];if(f==null||!(f instanceof n))continue;let d=f,g=this.getKindOfOps(e,n,l);for(let m of g)m.index===d.index&&(m instanceof i?(d.text=this.catOpText(m.text,d.text),e[m.instructionIndex]=void 0):m instanceof n&&(d.text=this.catOpText(d.text,m.text),e[m.instructionIndex]=void 0));let x=this.getKindOfOps(e,t,l);for(let m of x){if(d.index===m.index){m.text=this.catOpText(d.text,m.text),e[l]=void 0;continue}if(d.index>=m.index&&d.index<=m.lastIndex)throw new Error(`insert op ${d} within boundaries of previous ${m}`)}}let o=new Map;for(let l of e)if(l!=null){if(o.get(l.index)!=null)throw new Error("should only be one op per index");o.set(l.index,l)}return o}catOpText(e,o){let l="",f="";return e!=null&&(l=e.toString()),o!=null&&(f=o.toString()),l+f}getKindOfOps(e,o,l){let f=[];for(let d=0;d<l&&d<e.length;d++){let g=e[d];g!=null&&g instanceof o&&f.push(g)}return f}};or.TokenStreamRewriter=p,p.DEFAULT_PROGRAM_NAME="default",p.PROGRAM_INIT_SIZE=100,p.MIN_TOKEN_INDEX=0;class a{constructor(e,o,l,f){this.tokens=e,this.instructionIndex=l,this.index=o,this.text=f===void 0?"":f}execute(e){return this.index}toString(){let e=this.constructor.name,o=e.indexOf("$");return e=e.substring(o+1,e.length),"<"+e+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}u([c.Override],a.prototype,"toString",null),or.RewriteOperation=a;class n extends a{constructor(e,o,l,f){super(e,o,l,f)}execute(e){return e.push(this.text.toString()),this.tokens.get(this.index).type!==h.Token.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}}u([c.Override],n.prototype,"execute",null);class i extends n{constructor(e,o,l,f){super(e,o+1,l,f)}}class t extends a{constructor(e,o,l,f,d){super(e,o,f,d),this.lastIndex=l}execute(e){return this.text!=null&&e.push(this.text.toString()),this.lastIndex+1}toString(){return this.text==null?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}}return u([c.Override],t.prototype,"execute",null),u([c.Override],t.prototype,"toString",null),or}var ru={},Dh;function Cd(){if(Dh)return ru;Dh=1;return Object.defineProperty(ru,"__esModule",{value:!0}),ru}var nu={},Ih;function Od(){if(Ih)return nu;Ih=1;return Object.defineProperty(nu,"__esModule",{value:!0}),nu}var Lh;function Rd(){return Lh||(Lh=1,(function(u){var r=mr&&mr.__createBinding||(Object.create?(function(h,p,a,n){n===void 0&&(n=a),Object.defineProperty(h,n,{enumerable:!0,get:function(){return p[a]}})}):(function(h,p,a,n){n===void 0&&(n=a),h[n]=p[a]})),c=mr&&mr.__exportStar||function(h,p){for(var a in h)a!=="default"&&!Object.prototype.hasOwnProperty.call(p,a)&&r(p,h,a)};Object.defineProperty(u,"__esModule",{value:!0}),c(Ap(),u),c(Tp(),u),c(y0(),u),c(mh(),u),c(Rf(),u),c(xd(),u),c(Gs(),u),c(Sf(),u),c(bf(),u),c(Vn(),u),c(Bs(),u),c($s(),u),c(tc(),u),c(Ks(),u),c(yd(),u),c(_d(),u),c(Ii(),u),c(Li(),u),c(jf(),u),c(ur(),u),c(hr(),u),c(md(),u),c(ji(),u),c(If(),u),c(ki(),u),c(di(),u),c(gd(),u),c(qf(),u),c(Ke(),u),c(Ms(),u),c(Af(),u),c(ar(),u),c(Yn(),u),c(rf(),u),c(vd(),u),c(Ad(),u),c(Td(),u),c(Ce(),u),c(Ed(),u),c(Sd(),u),c(Nd(),u),c(bd(),u),c(Cd(),u),c(Mr(),u),c(Od(),u)})(mr)),mr}var Ui=Rd(),wh=Hs(),Pd=hr(),Dd=Mi(),Fh=Mr(),Bh=at();class Be extends Pd.Lexer{static T__0=1;static T__1=2;static T__2=3;static T__3=4;static T__4=5;static T__5=6;static T__6=7;static T__7=8;static T__8=9;static T__9=10;static T__10=11;static T__11=12;static T__12=13;static T__13=14;static T__14=15;static T__15=16;static T__16=17;static T__17=18;static T__18=19;static T__19=20;static T__20=21;static T__21=22;static T__22=23;static T__23=24;static T__24=25;static T__25=26;static T__26=27;static T__27=28;static T__28=29;static T__29=30;static T__30=31;static T__31=32;static QUESTION=33;static Identifier=34;static StringLiteral=35;static NumberLiteral=36;static BooleanLiteral=37;static SingleLineComment=38;static MultiLineComment=39;static WS=40;static channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"];static modeNames=["DEFAULT_MODE"];static ruleNames=["T__0","T__1","T__2","T__3","T__4","T__5","T__6","T__7","T__8","T__9","T__10","T__11","T__12","T__13","T__14","T__15","T__16","T__17","T__18","T__19","T__20","T__21","T__22","T__23","T__24","T__25","T__26","T__27","T__28","T__29","T__30","T__31","QUESTION","Identifier","StringLiteral","NumberLiteral","BooleanLiteral","SingleLineComment","MultiLineComment","WS"];static _LITERAL_NAMES=[void 0,"'type'","'='","';'","'let'","':'","'|'","'&'","'['","']'","'Array'","'string'","'boolean'","'null'","'integer'","'double'","'long'","'bytes'","'date'","'any'","'{'","'}'","'yorkie.Object'","'yorkie.Array'","'yorkie.Counter'","'yorkie.Text'","'yorkie.Tree'","'<'","'>'","'('","')'","','","'extends'","'?'"];static _SYMBOLIC_NAMES=[void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"QUESTION","Identifier","StringLiteral","NumberLiteral","BooleanLiteral","SingleLineComment","MultiLineComment","WS"];static VOCABULARY=new Fh.VocabularyImpl(Be._LITERAL_NAMES,Be._SYMBOLIC_NAMES,[]);get vocabulary(){return Be.VOCABULARY}constructor(r){super(r),this._interp=new Dd.LexerATNSimulator(Be._ATN,this)}get grammarFileName(){return"YorkieSchema.g4"}get ruleNames(){return Be.ruleNames}get serializedATN(){return Be._serializedATN}get channelNames(){return Be.channelNames}get modeNames(){return Be.modeNames}static _serializedATN=`줝쪺֍꾺体؇쉁*ʼn\b \x07 \x07\b \b
|
|
88
88
|
|
|
89
89
|
\v \v\f \f\r \r \x1B \x1B ! !" "# #$ $% %& &' '( () )\x07\x07\b\b
|
|
90
90
|
|
|
@@ -99,48 +99,52 @@ $\f$$Ď\v$$$%%ē
|
|
|
99
99
|
(\f((ļ\v(((((())ń
|
|
100
100
|
)\r))Ņ))ĺ*\x07 \v\x07\r\b
|
|
101
101
|
\v\f\r\x1B!#%')+-/13\x1B579;= ?!A"C#E$G%I&K'M(O)Q*\bC\\aac|2;C\\aac|\f\f$$2;\f\f\v\f""ő\x07 \v\r\x1B!#%')+-/13579;=?ACEGIKMOQSX\x07Z \\\v\`\rbdfhjpw\x1B!#%'£)§+©-«/¹1Æ3Õ5á7í9ï;ñ=ó?õA÷CÿEāGĈIĒKħMĩOĴQŃST\x07vTU\x07{UV\x07rVW\x07gWXY\x07?YZ[\x07=[\b\\]\x07n]^\x07g^_\x07v_
|
|
102
|
-
\`a\x07<a\fbc\x07~cde\x07(efg\x07]ghi\x07_ijk\x07Ckl\x07tlm\x07tmn\x07cno\x07{opq\x07uqr\x07vrs\x07tst\x07ktu\x07puv\x07ivwx\x07dxy\x07qyz\x07qz{\x07n{|\x07g|}\x07c}~\x07p~\x07p\x07w\x07n\x07n
\x07k
\x07p\x07v\x07g\x07i\x07g\x07t\x07f\x07q\x07w\x07d\x07n\x07g \x07n\x07q\x07p\x07i"\x07d\x07{\x07v\x07g\x07u$\x07f \x07c ¡\x07v¡¢\x07g¢&£¤\x07c¤¥\x07p¥¦\x07{¦(§¨\x07}¨*©ª\x07ª,«¬\x07{¬\x07q®\x07t®¯\x07m¯°\x07k°±\x07g±²\x070²³\x07Q³´\x07d´µ\x07lµ¶\x07g¶·\x07e·¸\x07v¸.¹º\x07{º»\x07q»¼\x07t¼½\x07m½¾\x07k¾¿\x07g¿À\x070ÀÁ\x07CÁÂ\x07tÂÃ\x07tÃÄ\x07cÄÅ\x07{Å0ÆÇ\x07{ÇÈ\x07qÈÉ\x07tÉÊ\x07mÊË\x07kËÌ\x07gÌÍ\x070ÍÎ\x07EÎÏ\x07qÏÐ\x07wÐÑ\x07pÑÒ\x07vÒÓ\x07gÓÔ\x07tÔ2ÕÖ\x07{Ö×\x07qר\x07tØÙ\x07mÙÚ\x07kÚÛ\x07gÛÜ\x070ÜÝ\x07VÝÞ\x07gÞß\x07zßà\x07và4áâ\x07{âã\x07qãä\x07täå\x07måæ\x07kæç\x07gçè\x070èé\x07Véê\x07têë\x07gëì\x07gì6íî\x07
|
|
102
|
+
\`a\x07<a\fbc\x07~cde\x07(efg\x07]ghi\x07_ijk\x07Ckl\x07tlm\x07tmn\x07cno\x07{opq\x07uqr\x07vrs\x07tst\x07ktu\x07puv\x07ivwx\x07dxy\x07qyz\x07qz{\x07n{|\x07g|}\x07c}~\x07p~\x07p\x07w\x07n\x07n
\x07k
\x07p\x07v\x07g\x07i\x07g\x07t\x07f\x07q\x07w\x07d\x07n\x07g \x07n\x07q\x07p\x07i"\x07d\x07{\x07v\x07g\x07u$\x07f \x07c ¡\x07v¡¢\x07g¢&£¤\x07c¤¥\x07p¥¦\x07{¦(§¨\x07}¨*©ª\x07ª,«¬\x07{¬\x07q®\x07t®¯\x07m¯°\x07k°±\x07g±²\x070²³\x07Q³´\x07d´µ\x07lµ¶\x07g¶·\x07e·¸\x07v¸.¹º\x07{º»\x07q»¼\x07t¼½\x07m½¾\x07k¾¿\x07g¿À\x070ÀÁ\x07CÁÂ\x07tÂÃ\x07tÃÄ\x07cÄÅ\x07{Å0ÆÇ\x07{ÇÈ\x07qÈÉ\x07tÉÊ\x07mÊË\x07kËÌ\x07gÌÍ\x070ÍÎ\x07EÎÏ\x07qÏÐ\x07wÐÑ\x07pÑÒ\x07vÒÓ\x07gÓÔ\x07tÔ2ÕÖ\x07{Ö×\x07qר\x07tØÙ\x07mÙÚ\x07kÚÛ\x07gÛÜ\x070ÜÝ\x07VÝÞ\x07gÞß\x07zßà\x07và4áâ\x07{âã\x07qãä\x07täå\x07måæ\x07kæç\x07gçè\x070èé\x07Véê\x07têë\x07gëì\x07gì6íî\x07>î8ïð\x07@ð:ñò\x07*ò<óô\x07+ô>õö\x07.ö@÷ø\x07gøù\x07zùú\x07vúû\x07gûü\x07püý\x07fýþ\x07uþBÿĀ\x07AĀDāą ĂĄ ăĂĄćąăąĆĆFćąĈČ\x07$ĉċ
|
|
103
103
|
ĊĉċĎČĊČččďĎČďĐ\x07$ĐHđē ĒđēĔĔĒĔĕĕĜĖĘ\x070ėę ĘėęĚĚĘĚěěĝĜĖĜĝĝJĞğ\x07vğĠ\x07tĠġ\x07wġĨ\x07gĢģ\x07hģĤ\x07cĤĥ\x07nĥĦ\x07uĦĨ\x07għĞħĢĨLĩĪ\x071Īī\x071īįĬĮ
|
|
104
|
-
ĭĬĮıįĭįİİIJıįIJij\b'ijNĴĵ\x071ĵĶ\x07,ĶĺķĹ\vĸķĹļĺĻĺĸĻĽļ弾\x07,ľĿ\x071ĿŀŀŁ\b(ŁPłń \x07ŃłńŅŅŃŅņņŇŇň\b)ňR\fąČĔĚĜħįĺŅ\b`;static __ATN;static get _ATN(){return Be.__ATN||(Be.__ATN=new Ih.ATNDeserializer().deserialize(Lh.toCharArray(Be._serializedATN))),Be.__ATN}}var Od=Ii(),_i=ki(),Rd=di(),Ce=Ke(),Pd=si(),Oe=ar(),iu=Ne();class j extends Rd.Parser{static T__0=1;static T__1=2;static T__2=3;static T__3=4;static T__4=5;static T__5=6;static T__6=7;static T__7=8;static T__8=9;static T__9=10;static T__10=11;static T__11=12;static T__12=13;static T__13=14;static T__14=15;static T__15=16;static T__16=17;static T__17=18;static T__18=19;static T__19=20;static T__20=21;static T__21=22;static T__22=23;static T__23=24;static T__24=25;static T__25=26;static T__26=27;static T__27=28;static T__28=29;static T__29=30;static T__30=31;static T__31=32;static QUESTION=33;static Identifier=34;static StringLiteral=35;static NumberLiteral=36;static BooleanLiteral=37;static SingleLineComment=38;static MultiLineComment=39;static WS=40;static RULE_document=0;static RULE_declaration=1;static RULE_typeAliasDeclaration=2;static RULE_variableDeclaration=3;static RULE_typeAnnotation=4;static RULE_type=5;static RULE_unionType=6;static RULE_intersectionType=7;static RULE_arrayType=8;static RULE_primaryType=9;static RULE_primitiveType=10;static RULE_objectType=11;static RULE_propertySignature=12;static RULE_propertyName=13;static RULE_yorkieType=14;static RULE_typeReference=15;static RULE_parenthesizedType=16;static RULE_typeParameters=17;static RULE_typeParameter=18;static RULE_typeArguments=19;static RULE_expression=20;static RULE_literal=21;static ruleNames=["document","declaration","typeAliasDeclaration","variableDeclaration","typeAnnotation","type","unionType","intersectionType","arrayType","primaryType","primitiveType","objectType","propertySignature","propertyName","yorkieType","typeReference","parenthesizedType","typeParameters","typeParameter","typeArguments","expression","literal"];static _LITERAL_NAMES=[void 0,"'type'","'='","';'","'let'","':'","'|'","'&'","'['","']'","'Array'","'string'","'boolean'","'null'","'integer'","'double'","'long'","'bytes'","'date'","'any'","'{'","'}'","'yorkie.Object'","'yorkie.Array'","'yorkie.Counter'","'yorkie.Text'","'yorkie.Tree'","'('","')'","'<'","','","'>'","'extends'","'?'"];static _SYMBOLIC_NAMES=[void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"QUESTION","Identifier","StringLiteral","NumberLiteral","BooleanLiteral","SingleLineComment","MultiLineComment","WS"];static VOCABULARY=new wh.VocabularyImpl(j._LITERAL_NAMES,j._SYMBOLIC_NAMES,[]);get vocabulary(){return j.VOCABULARY}get grammarFileName(){return"YorkieSchema.g4"}get ruleNames(){return j.ruleNames}get serializedATN(){return j._serializedATN}createFailedPredicateException(i,c){return new Od.FailedPredicateException(this,i,c)}constructor(i){super(i),this._interp=new Pd.ParserATNSimulator(j._ATN,this)}document(){let i=new Dd(this._ctx,this.state);this.enterRule(i,0,j.RULE_document);let c;try{this.enterOuterAlt(i,1);{for(this.state=47,this._errHandler.sync(this),c=this._input.LA(1);c===j.T__0||c===j.T__3;)this.state=44,this.declaration(),this.state=49,this._errHandler.sync(this),c=this._input.LA(1);this.state=50,this.match(j.EOF)}}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}declaration(){let i=new ou(this._ctx,this.state);this.enterRule(i,2,j.RULE_declaration);try{switch(this.state=54,this._errHandler.sync(this),this._input.LA(1)){case j.T__0:this.enterOuterAlt(i,1),this.state=52,this.typeAliasDeclaration();break;case j.T__3:this.enterOuterAlt(i,2),this.state=53,this.variableDeclaration();break;default:throw new _i.NoViableAltException(this)}}catch(c){if(c instanceof Oe.RecognitionException)i.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.exitRule()}return i}typeAliasDeclaration(){let i=new Fh(this._ctx,this.state);this.enterRule(i,4,j.RULE_typeAliasDeclaration);let c;try{this.enterOuterAlt(i,1),this.state=56,this.match(j.T__0),this.state=57,this.match(j.Identifier),this.state=59,this._errHandler.sync(this),c=this._input.LA(1),c===j.T__28&&(this.state=58,this.typeParameters()),this.state=61,this.match(j.T__1),this.state=62,this.type(),this.state=63,this.match(j.T__2)}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}variableDeclaration(){let i=new Bh(this._ctx,this.state);this.enterRule(i,6,j.RULE_variableDeclaration);let c;try{this.enterOuterAlt(i,1),this.state=65,this.match(j.T__3),this.state=66,this.match(j.Identifier),this.state=68,this._errHandler.sync(this),c=this._input.LA(1),c===j.T__4&&(this.state=67,this.typeAnnotation()),this.state=72,this._errHandler.sync(this),c=this._input.LA(1),c===j.T__1&&(this.state=70,this.match(j.T__1),this.state=71,this.expression()),this.state=74,this.match(j.T__2)}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}typeAnnotation(){let i=new su(this._ctx,this.state);this.enterRule(i,8,j.RULE_typeAnnotation);try{this.enterOuterAlt(i,1),this.state=76,this.match(j.T__4),this.state=77,this.type()}catch(c){if(c instanceof Oe.RecognitionException)i.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.exitRule()}return i}type(){let i=new bn(this._ctx,this.state);this.enterRule(i,10,j.RULE_type);try{this.enterOuterAlt(i,1),this.state=79,this.unionType()}catch(c){if(c instanceof Oe.RecognitionException)i.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.exitRule()}return i}unionType(){let i=new jh(this._ctx,this.state);this.enterRule(i,12,j.RULE_unionType);let c;try{for(this.enterOuterAlt(i,1),this.state=81,this.intersectionType(),this.state=86,this._errHandler.sync(this),c=this._input.LA(1);c===j.T__5;)this.state=82,this.match(j.T__5),this.state=83,this.intersectionType(),this.state=88,this._errHandler.sync(this),c=this._input.LA(1)}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}intersectionType(){let i=new uu(this._ctx,this.state);this.enterRule(i,14,j.RULE_intersectionType);let c;try{for(this.enterOuterAlt(i,1),this.state=89,this.arrayType(),this.state=94,this._errHandler.sync(this),c=this._input.LA(1);c===j.T__6;)this.state=90,this.match(j.T__6),this.state=91,this.arrayType(),this.state=96,this._errHandler.sync(this),c=this._input.LA(1)}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}arrayType(){let i=new au(this._ctx,this.state);this.enterRule(i,16,j.RULE_arrayType);let c;try{switch(this.state=107,this._errHandler.sync(this),this._input.LA(1)){case j.T__10:case j.T__11:case j.T__12:case j.T__13:case j.T__14:case j.T__15:case j.T__16:case j.T__17:case j.T__18:case j.T__19:case j.T__21:case j.T__22:case j.T__23:case j.T__24:case j.T__25:case j.T__26:case j.Identifier:case j.StringLiteral:case j.NumberLiteral:case j.BooleanLiteral:for(this.enterOuterAlt(i,1),this.state=97,this.primaryType(),this.state=102,this._errHandler.sync(this),c=this._input.LA(1);c===j.T__7;)this.state=98,this.match(j.T__7),this.state=99,this.match(j.T__8),this.state=104,this._errHandler.sync(this),c=this._input.LA(1);break;case j.T__9:this.enterOuterAlt(i,2),this.state=105,this.match(j.T__9),this.state=106,this.typeArguments();break;default:throw new _i.NoViableAltException(this)}}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}primaryType(){let i=new Mh(this._ctx,this.state);this.enterRule(i,18,j.RULE_primaryType);try{switch(this.state=115,this._errHandler.sync(this),this._input.LA(1)){case j.T__26:this.enterOuterAlt(i,1),this.state=109,this.parenthesizedType();break;case j.T__10:case j.T__11:case j.T__12:case j.T__13:case j.T__14:case j.T__15:case j.T__16:case j.T__17:case j.T__18:this.enterOuterAlt(i,2),this.state=110,this.primitiveType();break;case j.T__19:this.enterOuterAlt(i,3),this.state=111,this.objectType();break;case j.T__21:case j.T__22:case j.T__23:case j.T__24:case j.T__25:this.enterOuterAlt(i,4),this.state=112,this.yorkieType();break;case j.Identifier:this.enterOuterAlt(i,5),this.state=113,this.typeReference();break;case j.StringLiteral:case j.NumberLiteral:case j.BooleanLiteral:this.enterOuterAlt(i,6),this.state=114,this.literal();break;default:throw new _i.NoViableAltException(this)}}catch(c){if(c instanceof Oe.RecognitionException)i.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.exitRule()}return i}primitiveType(){let i=new qh(this._ctx,this.state);this.enterRule(i,20,j.RULE_primitiveType);let c;try{this.enterOuterAlt(i,1),this.state=117,c=this._input.LA(1),(c&-32)===0&&(1<<c&(1<<j.T__10|1<<j.T__11|1<<j.T__12|1<<j.T__13|1<<j.T__14|1<<j.T__15|1<<j.T__16|1<<j.T__17|1<<j.T__18))!==0?(this._input.LA(1)===iu.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}objectType(){let i=new kh(this._ctx,this.state);this.enterRule(i,22,j.RULE_objectType);let c;try{this.enterOuterAlt(i,1);{for(this.state=119,this.match(j.T__19),this.state=123,this._errHandler.sync(this),c=this._input.LA(1);c===j.Identifier||c===j.StringLiteral;)this.state=120,this.propertySignature(),this.state=125,this._errHandler.sync(this),c=this._input.LA(1);this.state=126,this.match(j.T__20)}}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}propertySignature(){let i=new lu(this._ctx,this.state);this.enterRule(i,24,j.RULE_propertySignature);let c;try{this.enterOuterAlt(i,1),this.state=128,this.propertyName(),this.state=130,this._errHandler.sync(this),c=this._input.LA(1),c===j.QUESTION&&(this.state=129,this.match(j.QUESTION)),this.state=132,this.typeAnnotation(),this.state=133,this.match(j.T__2)}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}propertyName(){let i=new Uh(this._ctx,this.state);this.enterRule(i,26,j.RULE_propertyName);let c;try{this.enterOuterAlt(i,1),this.state=135,c=this._input.LA(1),c===j.Identifier||c===j.StringLiteral?(this._input.LA(1)===iu.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}yorkieType(){let i=new zh(this._ctx,this.state);this.enterRule(i,28,j.RULE_yorkieType);let c;try{switch(this.state=153,this._errHandler.sync(this),this._input.LA(1)){case j.T__21:this.enterOuterAlt(i,1),this.state=137,this.match(j.T__21),this.state=138,this.typeArguments();break;case j.T__22:this.enterOuterAlt(i,2),this.state=139,this.match(j.T__22),this.state=140,this.typeArguments();break;case j.T__23:this.enterOuterAlt(i,3),this.state=141,this.match(j.T__23),this.state=143,this._errHandler.sync(this),c=this._input.LA(1),c===j.T__28&&(this.state=142,this.typeArguments());break;case j.T__24:this.enterOuterAlt(i,4),this.state=145,this.match(j.T__24),this.state=147,this._errHandler.sync(this),c=this._input.LA(1),c===j.T__28&&(this.state=146,this.typeArguments());break;case j.T__25:this.enterOuterAlt(i,5),this.state=149,this.match(j.T__25),this.state=151,this._errHandler.sync(this),c=this._input.LA(1),c===j.T__28&&(this.state=150,this.typeArguments());break;default:throw new _i.NoViableAltException(this)}}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}typeReference(){let i=new Hh(this._ctx,this.state);this.enterRule(i,30,j.RULE_typeReference);let c;try{this.enterOuterAlt(i,1),this.state=155,this.match(j.Identifier),this.state=157,this._errHandler.sync(this),c=this._input.LA(1),c===j.T__28&&(this.state=156,this.typeArguments())}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}parenthesizedType(){let i=new Vh(this._ctx,this.state);this.enterRule(i,32,j.RULE_parenthesizedType);try{this.enterOuterAlt(i,1),this.state=159,this.match(j.T__26),this.state=160,this.type(),this.state=161,this.match(j.T__27)}catch(c){if(c instanceof Oe.RecognitionException)i.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.exitRule()}return i}typeParameters(){let i=new Wh(this._ctx,this.state);this.enterRule(i,34,j.RULE_typeParameters);let c;try{this.enterOuterAlt(i,1);{for(this.state=163,this.match(j.T__28),this.state=164,this.typeParameter(),this.state=169,this._errHandler.sync(this),c=this._input.LA(1);c===j.T__29;)this.state=165,this.match(j.T__29),this.state=166,this.typeParameter(),this.state=171,this._errHandler.sync(this),c=this._input.LA(1);this.state=172,this.match(j.T__30)}}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}typeParameter(){let i=new cu(this._ctx,this.state);this.enterRule(i,36,j.RULE_typeParameter);let c;try{this.enterOuterAlt(i,1),this.state=174,this.match(j.Identifier),this.state=177,this._errHandler.sync(this),c=this._input.LA(1),c===j.T__31&&(this.state=175,this.match(j.T__31),this.state=176,this.type())}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}typeArguments(){let i=new zi(this._ctx,this.state);this.enterRule(i,38,j.RULE_typeArguments);let c;try{this.enterOuterAlt(i,1);{for(this.state=179,this.match(j.T__28),this.state=180,this.type(),this.state=185,this._errHandler.sync(this),c=this._input.LA(1);c===j.T__29;)this.state=181,this.match(j.T__29),this.state=182,this.type(),this.state=187,this._errHandler.sync(this),c=this._input.LA(1);this.state=188,this.match(j.T__30)}}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}expression(){let i=new Gh(this._ctx,this.state);this.enterRule(i,40,j.RULE_expression);try{switch(this.state=192,this._errHandler.sync(this),this._input.LA(1)){case j.Identifier:this.enterOuterAlt(i,1),this.state=190,this.match(j.Identifier);break;case j.StringLiteral:case j.NumberLiteral:case j.BooleanLiteral:this.enterOuterAlt(i,2),this.state=191,this.literal();break;default:throw new _i.NoViableAltException(this)}}catch(c){if(c instanceof Oe.RecognitionException)i.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.exitRule()}return i}literal(){let i=new fu(this._ctx,this.state);this.enterRule(i,42,j.RULE_literal);let c;try{this.enterOuterAlt(i,1),this.state=194,c=this._input.LA(1),(c-35&-32)===0&&(1<<c-35&(1<<j.StringLiteral-35|1<<j.NumberLiteral-35|1<<j.BooleanLiteral-35))!==0?(this._input.LA(1)===iu.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(h){if(h instanceof Oe.RecognitionException)i.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return i}static _serializedATN=`줝쪺֍꾺体؇쉁*Ç \x07 \x07\b \b
|
|
104
|
+
ĭĬĮıįĭįİİIJıįIJij\b'ijNĴĵ\x071ĵĶ\x07,ĶĺķĹ\vĸķĹļĺĻĺĸĻĽļ弾\x07,ľĿ\x071ĿŀŀŁ\b(ŁPłń \x07ŃłńŅŅŃŅņņŇŇň\b)ňR\fąČĔĚĜħįĺŅ\b`;static __ATN;static get _ATN(){return Be.__ATN||(Be.__ATN=new wh.ATNDeserializer().deserialize(Bh.toCharArray(Be._serializedATN))),Be.__ATN}}var Id=Ye(),Ld=Ii(),_i=ki(),wd=di(),Ne=Ke(),Fd=si(),be=ar(),iu=Ce();class B extends wd.Parser{static T__0=1;static T__1=2;static T__2=3;static T__3=4;static T__4=5;static T__5=6;static T__6=7;static T__7=8;static T__8=9;static T__9=10;static T__10=11;static T__11=12;static T__12=13;static T__13=14;static T__14=15;static T__15=16;static T__16=17;static T__17=18;static T__18=19;static T__19=20;static T__20=21;static T__21=22;static T__22=23;static T__23=24;static T__24=25;static T__25=26;static T__26=27;static T__27=28;static T__28=29;static T__29=30;static T__30=31;static T__31=32;static QUESTION=33;static Identifier=34;static StringLiteral=35;static NumberLiteral=36;static BooleanLiteral=37;static SingleLineComment=38;static MultiLineComment=39;static WS=40;static RULE_document=0;static RULE_declaration=1;static RULE_typeAliasDeclaration=2;static RULE_variableDeclaration=3;static RULE_typeAnnotation=4;static RULE_type=5;static RULE_unionType=6;static RULE_intersectionType=7;static RULE_arrayType=8;static RULE_primaryType=9;static RULE_primitiveType=10;static RULE_objectType=11;static RULE_propertySignature=12;static RULE_propertyName=13;static RULE_yorkieType=14;static RULE_treeSchemaBody=15;static RULE_treeNodeDef=16;static RULE_treeNodeProps=17;static RULE_treeNodeProp=18;static RULE_typeReference=19;static RULE_parenthesizedType=20;static RULE_typeParameters=21;static RULE_typeParameter=22;static RULE_typeArguments=23;static RULE_expression=24;static RULE_literal=25;static ruleNames=["document","declaration","typeAliasDeclaration","variableDeclaration","typeAnnotation","type","unionType","intersectionType","arrayType","primaryType","primitiveType","objectType","propertySignature","propertyName","yorkieType","treeSchemaBody","treeNodeDef","treeNodeProps","treeNodeProp","typeReference","parenthesizedType","typeParameters","typeParameter","typeArguments","expression","literal"];static _LITERAL_NAMES=[void 0,"'type'","'='","';'","'let'","':'","'|'","'&'","'['","']'","'Array'","'string'","'boolean'","'null'","'integer'","'double'","'long'","'bytes'","'date'","'any'","'{'","'}'","'yorkie.Object'","'yorkie.Array'","'yorkie.Counter'","'yorkie.Text'","'yorkie.Tree'","'<'","'>'","'('","')'","','","'extends'","'?'"];static _SYMBOLIC_NAMES=[void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"QUESTION","Identifier","StringLiteral","NumberLiteral","BooleanLiteral","SingleLineComment","MultiLineComment","WS"];static VOCABULARY=new Fh.VocabularyImpl(B._LITERAL_NAMES,B._SYMBOLIC_NAMES,[]);get vocabulary(){return B.VOCABULARY}get grammarFileName(){return"YorkieSchema.g4"}get ruleNames(){return B.ruleNames}get serializedATN(){return B._serializedATN}createFailedPredicateException(r,c){return new Ld.FailedPredicateException(this,r,c)}constructor(r){super(r),this._interp=new Fd.ParserATNSimulator(B._ATN,this)}document(){let r=new Bd(this._ctx,this.state);this.enterRule(r,0,B.RULE_document);let c;try{this.enterOuterAlt(r,1);{for(this.state=55,this._errHandler.sync(this),c=this._input.LA(1);c===B.T__0||c===B.T__3;)this.state=52,this.declaration(),this.state=57,this._errHandler.sync(this),c=this._input.LA(1);this.state=58,this.match(B.EOF)}}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}declaration(){let r=new ou(this._ctx,this.state);this.enterRule(r,2,B.RULE_declaration);try{switch(this.state=62,this._errHandler.sync(this),this._input.LA(1)){case B.T__0:this.enterOuterAlt(r,1),this.state=60,this.typeAliasDeclaration();break;case B.T__3:this.enterOuterAlt(r,2),this.state=61,this.variableDeclaration();break;default:throw new _i.NoViableAltException(this)}}catch(c){if(c instanceof be.RecognitionException)r.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.exitRule()}return r}typeAliasDeclaration(){let r=new jh(this._ctx,this.state);this.enterRule(r,4,B.RULE_typeAliasDeclaration);let c;try{this.enterOuterAlt(r,1),this.state=64,this.match(B.T__0),this.state=65,this.match(B.Identifier),this.state=67,this._errHandler.sync(this),c=this._input.LA(1),c===B.T__26&&(this.state=66,this.typeParameters()),this.state=69,this.match(B.T__1),this.state=70,this.type(),this.state=71,this.match(B.T__2)}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}variableDeclaration(){let r=new Mh(this._ctx,this.state);this.enterRule(r,6,B.RULE_variableDeclaration);let c;try{this.enterOuterAlt(r,1),this.state=73,this.match(B.T__3),this.state=74,this.match(B.Identifier),this.state=76,this._errHandler.sync(this),c=this._input.LA(1),c===B.T__4&&(this.state=75,this.typeAnnotation()),this.state=80,this._errHandler.sync(this),c=this._input.LA(1),c===B.T__1&&(this.state=78,this.match(B.T__1),this.state=79,this.expression()),this.state=82,this.match(B.T__2)}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}typeAnnotation(){let r=new su(this._ctx,this.state);this.enterRule(r,8,B.RULE_typeAnnotation);try{this.enterOuterAlt(r,1),this.state=84,this.match(B.T__4),this.state=85,this.type()}catch(c){if(c instanceof be.RecognitionException)r.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.exitRule()}return r}type(){let r=new bn(this._ctx,this.state);this.enterRule(r,10,B.RULE_type);try{this.enterOuterAlt(r,1),this.state=87,this.unionType()}catch(c){if(c instanceof be.RecognitionException)r.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.exitRule()}return r}unionType(){let r=new qh(this._ctx,this.state);this.enterRule(r,12,B.RULE_unionType);let c;try{for(this.enterOuterAlt(r,1),this.state=89,this.intersectionType(),this.state=94,this._errHandler.sync(this),c=this._input.LA(1);c===B.T__5;)this.state=90,this.match(B.T__5),this.state=91,this.intersectionType(),this.state=96,this._errHandler.sync(this),c=this._input.LA(1)}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}intersectionType(){let r=new uu(this._ctx,this.state);this.enterRule(r,14,B.RULE_intersectionType);let c;try{for(this.enterOuterAlt(r,1),this.state=97,this.arrayType(),this.state=102,this._errHandler.sync(this),c=this._input.LA(1);c===B.T__6;)this.state=98,this.match(B.T__6),this.state=99,this.arrayType(),this.state=104,this._errHandler.sync(this),c=this._input.LA(1)}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}arrayType(){let r=new au(this._ctx,this.state);this.enterRule(r,16,B.RULE_arrayType);let c;try{switch(this.state=115,this._errHandler.sync(this),this._input.LA(1)){case B.T__10:case B.T__11:case B.T__12:case B.T__13:case B.T__14:case B.T__15:case B.T__16:case B.T__17:case B.T__18:case B.T__19:case B.T__21:case B.T__22:case B.T__23:case B.T__24:case B.T__25:case B.T__28:case B.Identifier:case B.StringLiteral:case B.NumberLiteral:case B.BooleanLiteral:for(this.enterOuterAlt(r,1),this.state=105,this.primaryType(),this.state=110,this._errHandler.sync(this),c=this._input.LA(1);c===B.T__7;)this.state=106,this.match(B.T__7),this.state=107,this.match(B.T__8),this.state=112,this._errHandler.sync(this),c=this._input.LA(1);break;case B.T__9:this.enterOuterAlt(r,2),this.state=113,this.match(B.T__9),this.state=114,this.typeArguments();break;default:throw new _i.NoViableAltException(this)}}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}primaryType(){let r=new kh(this._ctx,this.state);this.enterRule(r,18,B.RULE_primaryType);try{switch(this.state=123,this._errHandler.sync(this),this._input.LA(1)){case B.T__28:this.enterOuterAlt(r,1),this.state=117,this.parenthesizedType();break;case B.T__10:case B.T__11:case B.T__12:case B.T__13:case B.T__14:case B.T__15:case B.T__16:case B.T__17:case B.T__18:this.enterOuterAlt(r,2),this.state=118,this.primitiveType();break;case B.T__19:this.enterOuterAlt(r,3),this.state=119,this.objectType();break;case B.T__21:case B.T__22:case B.T__23:case B.T__24:case B.T__25:this.enterOuterAlt(r,4),this.state=120,this.yorkieType();break;case B.Identifier:this.enterOuterAlt(r,5),this.state=121,this.typeReference();break;case B.StringLiteral:case B.NumberLiteral:case B.BooleanLiteral:this.enterOuterAlt(r,6),this.state=122,this.literal();break;default:throw new _i.NoViableAltException(this)}}catch(c){if(c instanceof be.RecognitionException)r.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.exitRule()}return r}primitiveType(){let r=new Uh(this._ctx,this.state);this.enterRule(r,20,B.RULE_primitiveType);let c;try{this.enterOuterAlt(r,1),this.state=125,c=this._input.LA(1),(c&-32)===0&&(1<<c&(1<<B.T__10|1<<B.T__11|1<<B.T__12|1<<B.T__13|1<<B.T__14|1<<B.T__15|1<<B.T__16|1<<B.T__17|1<<B.T__18))!==0?(this._input.LA(1)===iu.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}objectType(){let r=new zh(this._ctx,this.state);this.enterRule(r,22,B.RULE_objectType);let c;try{this.enterOuterAlt(r,1);{for(this.state=127,this.match(B.T__19),this.state=131,this._errHandler.sync(this),c=this._input.LA(1);c===B.Identifier||c===B.StringLiteral;)this.state=128,this.propertySignature(),this.state=133,this._errHandler.sync(this),c=this._input.LA(1);this.state=134,this.match(B.T__20)}}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}propertySignature(){let r=new lu(this._ctx,this.state);this.enterRule(r,24,B.RULE_propertySignature);let c;try{this.enterOuterAlt(r,1),this.state=136,this.propertyName(),this.state=138,this._errHandler.sync(this),c=this._input.LA(1),c===B.QUESTION&&(this.state=137,this.match(B.QUESTION)),this.state=140,this.typeAnnotation(),this.state=141,this.match(B.T__2)}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}propertyName(){let r=new Hh(this._ctx,this.state);this.enterRule(r,26,B.RULE_propertyName);let c;try{this.enterOuterAlt(r,1),this.state=143,c=this._input.LA(1),c===B.Identifier||c===B.StringLiteral?(this._input.LA(1)===iu.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}yorkieType(){let r=new Vh(this._ctx,this.state);this.enterRule(r,28,B.RULE_yorkieType);let c;try{switch(this.state=164,this._errHandler.sync(this),this._input.LA(1)){case B.T__21:this.enterOuterAlt(r,1),this.state=145,this.match(B.T__21),this.state=146,this.typeArguments();break;case B.T__22:this.enterOuterAlt(r,2),this.state=147,this.match(B.T__22),this.state=148,this.typeArguments();break;case B.T__23:this.enterOuterAlt(r,3),this.state=149,this.match(B.T__23),this.state=151,this._errHandler.sync(this),c=this._input.LA(1),c===B.T__26&&(this.state=150,this.typeArguments());break;case B.T__24:this.enterOuterAlt(r,4),this.state=153,this.match(B.T__24),this.state=155,this._errHandler.sync(this),c=this._input.LA(1),c===B.T__26&&(this.state=154,this.typeArguments());break;case B.T__25:this.enterOuterAlt(r,5),this.state=157,this.match(B.T__25),this.state=162,this._errHandler.sync(this),c=this._input.LA(1),c===B.T__26&&(this.state=158,this.match(B.T__26),this.state=159,this.treeSchemaBody(),this.state=160,this.match(B.T__27));break;default:throw new _i.NoViableAltException(this)}}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}treeSchemaBody(){let r=new Wh(this._ctx,this.state);this.enterRule(r,30,B.RULE_treeSchemaBody);let c;try{this.enterOuterAlt(r,1);{for(this.state=166,this.match(B.T__19),this.state=172,this._errHandler.sync(this),c=this._input.LA(1);c===B.Identifier;)this.state=167,this.treeNodeDef(),this.state=168,this.match(B.T__2),this.state=174,this._errHandler.sync(this),c=this._input.LA(1);this.state=175,this.match(B.T__20)}}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}treeNodeDef(){let r=new cu(this._ctx,this.state);this.enterRule(r,32,B.RULE_treeNodeDef);let c;try{this.enterOuterAlt(r,1),this.state=177,this.match(B.Identifier),this.state=178,this.match(B.T__4),this.state=179,this.match(B.T__19),this.state=181,this._errHandler.sync(this),c=this._input.LA(1),c===B.Identifier&&(this.state=180,this.treeNodeProps()),this.state=183,this.match(B.T__20)}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}treeNodeProps(){let r=new Gh(this._ctx,this.state);this.enterRule(r,34,B.RULE_treeNodeProps);let c;try{let h;this.enterOuterAlt(r,1);{for(this.state=185,this.treeNodeProp(),this.state=190,this._errHandler.sync(this),h=this.interpreter.adaptivePredict(this._input,18,this._ctx);h!==2&&h!==Id.ATN.INVALID_ALT_NUMBER;)h===1&&(this.state=186,this.match(B.T__2),this.state=187,this.treeNodeProp()),this.state=192,this._errHandler.sync(this),h=this.interpreter.adaptivePredict(this._input,18,this._ctx);this.state=194,this._errHandler.sync(this),c=this._input.LA(1),c===B.T__2&&(this.state=193,this.match(B.T__2))}}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}treeNodeProp(){let r=new fu(this._ctx,this.state);this.enterRule(r,36,B.RULE_treeNodeProp);try{this.enterOuterAlt(r,1),this.state=196,this.match(B.Identifier),this.state=197,this.match(B.T__4),this.state=198,this.match(B.StringLiteral)}catch(c){if(c instanceof be.RecognitionException)r.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.exitRule()}return r}typeReference(){let r=new $h(this._ctx,this.state);this.enterRule(r,38,B.RULE_typeReference);let c;try{this.enterOuterAlt(r,1),this.state=200,this.match(B.Identifier),this.state=202,this._errHandler.sync(this),c=this._input.LA(1),c===B.T__26&&(this.state=201,this.typeArguments())}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}parenthesizedType(){let r=new Xh(this._ctx,this.state);this.enterRule(r,40,B.RULE_parenthesizedType);try{this.enterOuterAlt(r,1),this.state=204,this.match(B.T__28),this.state=205,this.type(),this.state=206,this.match(B.T__29)}catch(c){if(c instanceof be.RecognitionException)r.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.exitRule()}return r}typeParameters(){let r=new Kh(this._ctx,this.state);this.enterRule(r,42,B.RULE_typeParameters);let c;try{this.enterOuterAlt(r,1);{for(this.state=208,this.match(B.T__26),this.state=209,this.typeParameter(),this.state=214,this._errHandler.sync(this),c=this._input.LA(1);c===B.T__30;)this.state=210,this.match(B.T__30),this.state=211,this.typeParameter(),this.state=216,this._errHandler.sync(this),c=this._input.LA(1);this.state=217,this.match(B.T__27)}}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}typeParameter(){let r=new hu(this._ctx,this.state);this.enterRule(r,44,B.RULE_typeParameter);let c;try{this.enterOuterAlt(r,1),this.state=219,this.match(B.Identifier),this.state=222,this._errHandler.sync(this),c=this._input.LA(1),c===B.T__31&&(this.state=220,this.match(B.T__31),this.state=221,this.type())}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}typeArguments(){let r=new zi(this._ctx,this.state);this.enterRule(r,46,B.RULE_typeArguments);let c;try{this.enterOuterAlt(r,1);{for(this.state=224,this.match(B.T__26),this.state=225,this.type(),this.state=230,this._errHandler.sync(this),c=this._input.LA(1);c===B.T__30;)this.state=226,this.match(B.T__30),this.state=227,this.type(),this.state=232,this._errHandler.sync(this),c=this._input.LA(1);this.state=233,this.match(B.T__27)}}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}expression(){let r=new Qh(this._ctx,this.state);this.enterRule(r,48,B.RULE_expression);try{switch(this.state=237,this._errHandler.sync(this),this._input.LA(1)){case B.Identifier:this.enterOuterAlt(r,1),this.state=235,this.match(B.Identifier);break;case B.StringLiteral:case B.NumberLiteral:case B.BooleanLiteral:this.enterOuterAlt(r,2),this.state=236,this.literal();break;default:throw new _i.NoViableAltException(this)}}catch(c){if(c instanceof be.RecognitionException)r.exception=c,this._errHandler.reportError(this,c),this._errHandler.recover(this,c);else throw c}finally{this.exitRule()}return r}literal(){let r=new pu(this._ctx,this.state);this.enterRule(r,50,B.RULE_literal);let c;try{this.enterOuterAlt(r,1),this.state=239,c=this._input.LA(1),(c-35&-32)===0&&(1<<c-35&(1<<B.StringLiteral-35|1<<B.NumberLiteral-35|1<<B.BooleanLiteral-35))!==0?(this._input.LA(1)===iu.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(h){if(h instanceof be.RecognitionException)r.exception=h,this._errHandler.reportError(this,h),this._errHandler.recover(this,h);else throw h}finally{this.exitRule()}return r}static _serializedATN=`줝쪺֍꾺体؇쉁*ô \x07 \x07\b \b
|
|
105
105
|
|
|
106
|
-
\v \v\f \f\r \r
|
|
107
|
-
\f
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
\x07\x07\b\b\b\x07\
|
|
112
|
-
\b\f\b\
|
|
113
|
-
\f
|
|
106
|
+
\v \v\f \f\r \r \x1B \x1B\x078
|
|
107
|
+
\f;\vA
|
|
108
|
+
F
|
|
109
|
+
O
|
|
110
|
+
S
|
|
111
|
+
\x07\x07\b\b\b\x07\b_
|
|
112
|
+
\b\f\b\bb\v\b \x07 g
|
|
113
|
+
\f j\v
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
\x07
|
|
117
|
-
|
|
117
|
+
o
|
|
118
118
|
|
|
119
119
|
\f
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
r\v
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
v
|
|
126
126
|
|
|
127
|
-
\v\v\v\v\v\v\
|
|
128
|
-
\v\f\f\r\r\x07\r
|
|
129
|
-
\r\f\r\r
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
\x07\x1B \x07(\x07(\x07(\x07\x1B(\x07(\x07$ ( !¡¢\x07¢£\f\x07£¤\x07¤#¥¦\x07¦«&§¨\x07 ¨ª&©§ª«©«¬¬®«®¯\x07!¯%°³\x07$±²\x07"²´\f\x07³±³´´'µ¶\x07¶»\f\x07·¸\x07 ¸º\f\x07¹·º½»¹»¼¼¾½»¾¿\x07!¿)ÀÃ\x07$ÁÃ,ÂÀÂÁÃ+ÄÅ Å-18=FJX\`hmu}«³»Â`;static __ATN;static get _ATN(){return j.__ATN||(j.__ATN=new Ih.ATNDeserializer().deserialize(Lh.toCharArray(j._serializedATN))),j.__ATN}}class Dd extends Ce.ParserRuleContext{EOF(){return this.getToken(j.EOF,0)}declaration(i){return i===void 0?this.getRuleContexts(ou):this.getRuleContext(i,ou)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_document}enterRule(i){i.enterDocument&&i.enterDocument(this)}exitRule(i){i.exitDocument&&i.exitDocument(this)}accept(i){return i.visitDocument?i.visitDocument(this):i.visitChildren(this)}}class ou extends Ce.ParserRuleContext{typeAliasDeclaration(){return this.tryGetRuleContext(0,Fh)}variableDeclaration(){return this.tryGetRuleContext(0,Bh)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_declaration}enterRule(i){i.enterDeclaration&&i.enterDeclaration(this)}exitRule(i){i.exitDeclaration&&i.exitDeclaration(this)}accept(i){return i.visitDeclaration?i.visitDeclaration(this):i.visitChildren(this)}}class Fh extends Ce.ParserRuleContext{Identifier(){return this.getToken(j.Identifier,0)}type(){return this.getRuleContext(0,bn)}typeParameters(){return this.tryGetRuleContext(0,Wh)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_typeAliasDeclaration}enterRule(i){i.enterTypeAliasDeclaration&&i.enterTypeAliasDeclaration(this)}exitRule(i){i.exitTypeAliasDeclaration&&i.exitTypeAliasDeclaration(this)}accept(i){return i.visitTypeAliasDeclaration?i.visitTypeAliasDeclaration(this):i.visitChildren(this)}}class Bh extends Ce.ParserRuleContext{Identifier(){return this.getToken(j.Identifier,0)}typeAnnotation(){return this.tryGetRuleContext(0,su)}expression(){return this.tryGetRuleContext(0,Gh)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_variableDeclaration}enterRule(i){i.enterVariableDeclaration&&i.enterVariableDeclaration(this)}exitRule(i){i.exitVariableDeclaration&&i.exitVariableDeclaration(this)}accept(i){return i.visitVariableDeclaration?i.visitVariableDeclaration(this):i.visitChildren(this)}}class su extends Ce.ParserRuleContext{type(){return this.getRuleContext(0,bn)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_typeAnnotation}enterRule(i){i.enterTypeAnnotation&&i.enterTypeAnnotation(this)}exitRule(i){i.exitTypeAnnotation&&i.exitTypeAnnotation(this)}accept(i){return i.visitTypeAnnotation?i.visitTypeAnnotation(this):i.visitChildren(this)}}class bn extends Ce.ParserRuleContext{unionType(){return this.getRuleContext(0,jh)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_type}enterRule(i){i.enterType&&i.enterType(this)}exitRule(i){i.exitType&&i.exitType(this)}accept(i){return i.visitType?i.visitType(this):i.visitChildren(this)}}class jh extends Ce.ParserRuleContext{intersectionType(i){return i===void 0?this.getRuleContexts(uu):this.getRuleContext(i,uu)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_unionType}enterRule(i){i.enterUnionType&&i.enterUnionType(this)}exitRule(i){i.exitUnionType&&i.exitUnionType(this)}accept(i){return i.visitUnionType?i.visitUnionType(this):i.visitChildren(this)}}class uu extends Ce.ParserRuleContext{arrayType(i){return i===void 0?this.getRuleContexts(au):this.getRuleContext(i,au)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_intersectionType}enterRule(i){i.enterIntersectionType&&i.enterIntersectionType(this)}exitRule(i){i.exitIntersectionType&&i.exitIntersectionType(this)}accept(i){return i.visitIntersectionType?i.visitIntersectionType(this):i.visitChildren(this)}}class au extends Ce.ParserRuleContext{primaryType(){return this.tryGetRuleContext(0,Mh)}typeArguments(){return this.tryGetRuleContext(0,zi)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_arrayType}enterRule(i){i.enterArrayType&&i.enterArrayType(this)}exitRule(i){i.exitArrayType&&i.exitArrayType(this)}accept(i){return i.visitArrayType?i.visitArrayType(this):i.visitChildren(this)}}class Mh extends Ce.ParserRuleContext{parenthesizedType(){return this.tryGetRuleContext(0,Vh)}primitiveType(){return this.tryGetRuleContext(0,qh)}objectType(){return this.tryGetRuleContext(0,kh)}yorkieType(){return this.tryGetRuleContext(0,zh)}typeReference(){return this.tryGetRuleContext(0,Hh)}literal(){return this.tryGetRuleContext(0,fu)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_primaryType}enterRule(i){i.enterPrimaryType&&i.enterPrimaryType(this)}exitRule(i){i.exitPrimaryType&&i.exitPrimaryType(this)}accept(i){return i.visitPrimaryType?i.visitPrimaryType(this):i.visitChildren(this)}}class qh extends Ce.ParserRuleContext{constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_primitiveType}enterRule(i){i.enterPrimitiveType&&i.enterPrimitiveType(this)}exitRule(i){i.exitPrimitiveType&&i.exitPrimitiveType(this)}accept(i){return i.visitPrimitiveType?i.visitPrimitiveType(this):i.visitChildren(this)}}class kh extends Ce.ParserRuleContext{propertySignature(i){return i===void 0?this.getRuleContexts(lu):this.getRuleContext(i,lu)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_objectType}enterRule(i){i.enterObjectType&&i.enterObjectType(this)}exitRule(i){i.exitObjectType&&i.exitObjectType(this)}accept(i){return i.visitObjectType?i.visitObjectType(this):i.visitChildren(this)}}class lu extends Ce.ParserRuleContext{propertyName(){return this.getRuleContext(0,Uh)}typeAnnotation(){return this.getRuleContext(0,su)}QUESTION(){return this.tryGetToken(j.QUESTION,0)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_propertySignature}enterRule(i){i.enterPropertySignature&&i.enterPropertySignature(this)}exitRule(i){i.exitPropertySignature&&i.exitPropertySignature(this)}accept(i){return i.visitPropertySignature?i.visitPropertySignature(this):i.visitChildren(this)}}class Uh extends Ce.ParserRuleContext{Identifier(){return this.tryGetToken(j.Identifier,0)}StringLiteral(){return this.tryGetToken(j.StringLiteral,0)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_propertyName}enterRule(i){i.enterPropertyName&&i.enterPropertyName(this)}exitRule(i){i.exitPropertyName&&i.exitPropertyName(this)}accept(i){return i.visitPropertyName?i.visitPropertyName(this):i.visitChildren(this)}}class zh extends Ce.ParserRuleContext{typeArguments(){return this.tryGetRuleContext(0,zi)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_yorkieType}enterRule(i){i.enterYorkieType&&i.enterYorkieType(this)}exitRule(i){i.exitYorkieType&&i.exitYorkieType(this)}accept(i){return i.visitYorkieType?i.visitYorkieType(this):i.visitChildren(this)}}class Hh extends Ce.ParserRuleContext{Identifier(){return this.getToken(j.Identifier,0)}typeArguments(){return this.tryGetRuleContext(0,zi)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_typeReference}enterRule(i){i.enterTypeReference&&i.enterTypeReference(this)}exitRule(i){i.exitTypeReference&&i.exitTypeReference(this)}accept(i){return i.visitTypeReference?i.visitTypeReference(this):i.visitChildren(this)}}class Vh extends Ce.ParserRuleContext{type(){return this.getRuleContext(0,bn)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_parenthesizedType}enterRule(i){i.enterParenthesizedType&&i.enterParenthesizedType(this)}exitRule(i){i.exitParenthesizedType&&i.exitParenthesizedType(this)}accept(i){return i.visitParenthesizedType?i.visitParenthesizedType(this):i.visitChildren(this)}}class Wh extends Ce.ParserRuleContext{typeParameter(i){return i===void 0?this.getRuleContexts(cu):this.getRuleContext(i,cu)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_typeParameters}enterRule(i){i.enterTypeParameters&&i.enterTypeParameters(this)}exitRule(i){i.exitTypeParameters&&i.exitTypeParameters(this)}accept(i){return i.visitTypeParameters?i.visitTypeParameters(this):i.visitChildren(this)}}class cu extends Ce.ParserRuleContext{Identifier(){return this.getToken(j.Identifier,0)}type(){return this.tryGetRuleContext(0,bn)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_typeParameter}enterRule(i){i.enterTypeParameter&&i.enterTypeParameter(this)}exitRule(i){i.exitTypeParameter&&i.exitTypeParameter(this)}accept(i){return i.visitTypeParameter?i.visitTypeParameter(this):i.visitChildren(this)}}class zi extends Ce.ParserRuleContext{type(i){return i===void 0?this.getRuleContexts(bn):this.getRuleContext(i,bn)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_typeArguments}enterRule(i){i.enterTypeArguments&&i.enterTypeArguments(this)}exitRule(i){i.exitTypeArguments&&i.exitTypeArguments(this)}accept(i){return i.visitTypeArguments?i.visitTypeArguments(this):i.visitChildren(this)}}class Gh extends Ce.ParserRuleContext{Identifier(){return this.tryGetToken(j.Identifier,0)}literal(){return this.tryGetRuleContext(0,fu)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_expression}enterRule(i){i.enterExpression&&i.enterExpression(this)}exitRule(i){i.exitExpression&&i.exitExpression(this)}accept(i){return i.visitExpression?i.visitExpression(this):i.visitChildren(this)}}class fu extends Ce.ParserRuleContext{StringLiteral(){return this.tryGetToken(j.StringLiteral,0)}NumberLiteral(){return this.tryGetToken(j.NumberLiteral,0)}BooleanLiteral(){return this.tryGetToken(j.BooleanLiteral,0)}constructor(i,c){super(i,c)}get ruleIndex(){return j.RULE_literal}enterRule(i){i.enterLiteral&&i.enterLiteral(this)}exitRule(i){i.exitLiteral&&i.exitLiteral(this)}accept(i){return i.visitLiteral?i.visitLiteral(this):i.visitChildren(this)}}var Cn={},sr={},Xh;function Id(){if(Xh)return sr;Xh=1;var u=sr&&sr.__decorate||function(p,a,r,n){var t=arguments.length,s=t<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,r):n,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,r,n);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,r,s):e(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s},i=sr&&sr.__param||function(p,a){return function(r,n){a(r,n,p)}};Object.defineProperty(sr,"__esModule",{value:!0}),sr.AbstractParseTreeVisitor=void 0;const c=Q();let h=class{visit(a){return a.accept(this)}visitChildren(a){let r=this.defaultResult(),n=a.childCount;for(let t=0;t<n&&this.shouldVisitNextChild(a,r);t++){let e=a.getChild(t).accept(this);r=this.aggregateResult(r,e)}return r}visitTerminal(a){return this.defaultResult()}visitErrorNode(a){return this.defaultResult()}aggregateResult(a,r){return r}shouldVisitNextChild(a,r){return!0}};return u([c.Override,i(0,c.NotNull)],h.prototype,"visit",null),u([c.Override,i(0,c.NotNull)],h.prototype,"visitChildren",null),u([c.Override,i(0,c.NotNull)],h.prototype,"visitTerminal",null),u([c.Override,i(0,c.NotNull)],h.prototype,"visitErrorNode",null),u([i(0,c.NotNull)],h.prototype,"shouldVisitNextChild",null),sr.AbstractParseTreeVisitor=h,sr}var hu={},$h;function wd(){if($h)return hu;$h=1;return Object.defineProperty(hu,"__esModule",{value:!0}),hu}var pu={},Kh;function Ld(){if(Kh)return pu;Kh=1;return Object.defineProperty(pu,"__esModule",{value:!0}),pu}var mi={},Qh;function Fd(){if(Qh)return mi;Qh=1;Object.defineProperty(mi,"__esModule",{value:!0}),mi.ParseTreeProperty=void 0;let u=class{constructor(c="ParseTreeProperty"){this._symbol=Symbol(c)}get(c){return c[this._symbol]}set(c,h){c[this._symbol]=h}removeFrom(c){let h=c[this._symbol];return delete c[this._symbol],h}};return mi.ParseTreeProperty=u,mi}var du={},Jh;function Bd(){if(Jh)return du;Jh=1;return Object.defineProperty(du,"__esModule",{value:!0}),du}var xu={},Zh;function jd(){return Zh||(Zh=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ParseTreeWalker=void 0;const i=ri(),c=pr(),h=ii();class p{walk(r,n){let t=[],s=[],e=n,o=0;for(;e;){if(e instanceof i.ErrorNode?r.visitErrorNode&&r.visitErrorNode(e):e instanceof c.TerminalNode?r.visitTerminal&&r.visitTerminal(e):this.enterRule(r,e),e.childCount>0){t.push(e),s.push(o),o=0,e=e.getChild(0);continue}do{if(e instanceof h.RuleNode&&this.exitRule(r,e),t.length===0){e=void 0,o=0;break}let l=t[t.length-1];if(o++,e=o<l.childCount?l.getChild(o):void 0,e)break;e=t.pop(),o=s.pop()}while(e)}}enterRule(r,n){let t=n.ruleContext;r.enterEveryRule&&r.enterEveryRule(t),t.enterRule(r)}exitRule(r,n){let t=n.ruleContext;t.exitRule(r),r.exitEveryRule&&r.exitEveryRule(t)}}u.ParseTreeWalker=p,(function(a){a.DEFAULT=new a})(p=u.ParseTreeWalker||(u.ParseTreeWalker={}))})(xu)),xu}var yu={},Yh;function Md(){if(Yh)return yu;Yh=1;return Object.defineProperty(yu,"__esModule",{value:!0}),yu}var _u={},ep;function qd(){if(ep)return _u;ep=1;return Object.defineProperty(_u,"__esModule",{value:!0}),_u}var tp;function kd(){return tp||(tp=1,(function(u){var i=Cn&&Cn.__createBinding||(Object.create?(function(h,p,a,r){r===void 0&&(r=a),Object.defineProperty(h,r,{enumerable:!0,get:function(){return p[a]}})}):(function(h,p,a,r){r===void 0&&(r=a),h[r]=p[a]})),c=Cn&&Cn.__exportStar||function(h,p){for(var a in h)a!=="default"&&!Object.prototype.hasOwnProperty.call(p,a)&&i(p,h,a)};Object.defineProperty(u,"__esModule",{value:!0}),c(Id(),u),c(ri(),u),c(wd(),u),c(Ld(),u),c(Fd(),u),c(Bd(),u),c(jd(),u),c(ii(),u),c(Md(),u),c(pr(),u),c(qd(),u),c(dr(),u)})(Cn)),Cn}var rp=kd();class Ud{symbol=void 0;properties=void 0;symbolMap=new Map;referenceMap=new Map;errors=[];enterTypeAliasDeclaration(i){const c=i.Identifier().text,{line:h,charPositionInLine:p}=i.Identifier().symbol;this.symbolMap.has(c)&&this.errors.push({message:`Duplicate type declaration: ${c}`,line:h,column:p}),this.symbolMap.set(c,{name:c,line:h,column:p}),this.symbol=c}enterObjectType(){this.properties=new Set}exitObjectType(){this.properties=void 0}enterPropertyName(i){const c=i.Identifier().text,{line:h,charPositionInLine:p}=i.Identifier().symbol;this.properties?.has(c)&&this.errors.push({message:`Duplicate property name: ${c}`,line:h,column:p}),this.properties?.add(c)}enterTypeReference(i){const c=i.Identifier().text,{line:h,charPositionInLine:p}=i.Identifier().symbol;this.referenceMap.set(c,{name:c,parent:this.symbol,line:h,column:p})}}class zd{constructor(i){this.errorList=i}syntaxError(i,c,h,p,a){const r={severity:"error",message:a,range:{start:{column:p,line:h},end:{column:p+1,line:h}}};this.errorList.push(r)}}class Hd{constructor(i){this.errorList=i}syntaxError(i,c,h,p,a){let r=1;c&&c.stopIndex>=c.startIndex&&(r=c.stopIndex-c.startIndex+1);const n={severity:"error",message:a,range:{start:{column:p,line:h},end:{column:p+r,line:h}}};this.errorList.push(n)}}function Vd(u){const i=[],c=Ui.CharStreams.fromString(u),h=new Be(c);h.removeErrorListeners(),h.addErrorListener(new zd(i));const p=new Ui.CommonTokenStream(h),a=new j(p);a.removeErrorListeners(),a.addErrorListener(new Hd(i));const r=a.document(),n=new Ud;rp.ParseTreeWalker.DEFAULT.walk(n,r);for(const[,e]of n.referenceMap)n.symbolMap.has(e.name)||n.errors.push({message:`Type '${e.name}' is not defined.`,line:e.line,column:e.column});for(const[,e]of n.symbolMap){const o=new Set;let l=e.name;for(;l;){if(o.has(l)){n.errors.push({message:`Circular reference detected: ${l} -> ${e.name}`,line:e.line,column:e.column});break}o.add(l),l=n.referenceMap.get(l)?.parent}o.has("Document")||n.errors.push({message:`Type '${e.name}' is not in the document.`,line:e.line,column:e.column})}const t=n.errors.map(e=>({severity:"error",message:e.message,range:{start:{column:e.column,line:e.line},end:{column:e.column+1,line:e.line}}}));return{errors:[...i,...t]}}class Wd{typeDefinitions=new Map;currentTypeName=void 0;currentProperty=void 0;typeStack=[];propertyStack=[];currentProperties=[];unionContext=void 0;enterTypeAliasDeclaration(i){this.currentTypeName=i.Identifier().text,this.currentProperties=[],this.unionContext=void 0}exitArrayType(i){const c=i.children?.some(p=>p.text==="["||p.text==="]"),h=i.children?.some(p=>p.text==="Array");if((c||h)&&this.typeStack.length>0){const p=this.typeStack.pop();this.typeStack.push({kind:"array",itemType:p})}}exitTypeAliasDeclaration(){if(this.currentTypeName&&this.typeStack.length>0){const i=this.typeStack.pop();this.typeDefinitions.set(this.currentTypeName,i)}this.currentTypeName=void 0}enterPrimitiveType(i){const c=i.text;this.typeStack.push({kind:"primitive",primitiveType:c})}enterYorkieType(i){const c=i.text;this.typeStack.push({kind:"yorkie",yorkieType:c})}enterTypeReference(i){const c=i.Identifier().text;this.typeStack.push({kind:"reference",typeName:c})}enterObjectType(){this.propertyStack.push(this.currentProperties),this.currentProperties=[]}exitObjectType(){const i=this.currentProperties;this.currentProperties=this.propertyStack.pop()||[],this.typeStack.push({kind:"object",properties:i})}enterPropertySignature(i){const c=i.propertyName().text,h=!!i.QUESTION();this.currentProperty={name:c,type:{kind:"primitive",primitiveType:"string"},optional:h}}exitPropertySignature(){this.currentProperty&&this.typeStack.length>0&&(this.currentProperty.type=this.typeStack.pop(),this.currentProperties.push(this.currentProperty)),this.currentProperty=void 0}enterUnionType(){this.unionContext={values:[]}}exitUnionType(){this.unionContext&&this.unionContext.values.length>0&&this.typeStack.push({kind:"union",values:this.unionContext.values}),this.unionContext=void 0}enterLiteral(i){const c=i.text;let h;if(c.startsWith('"')&&c.endsWith('"'))h=c.slice(1,-1);else if(!isNaN(Number(c)))h=Number(c);else if(c==="true"||c==="false")h=c==="true";else return;this.unionContext?this.unionContext.values.push(h):this.typeStack.push({kind:"union",values:[h]})}build(){const i=this.typeDefinitions.get("Document");if(!i)return[];const c=[],h=new Set;return this.expandType(i,"$",c,"Document",h),c}expandType(i,c,h,p,a=new Set){const r=`${c},${p}`;if(!a.has(r))switch(a.add(r),i.kind){case"primitive":h.push({path:c,type:i.primitiveType});break;case"yorkie":h.push({path:c,type:i.yorkieType});break;case"array":{const n={path:c,type:"array"};if(i.itemType.kind==="reference"){const s=this.typeDefinitions.get(i.itemType.typeName);s&&s.kind==="object"&&(n.items={type:"object",properties:s.properties.map(e=>e.name)})}else i.itemType.kind==="object"&&(n.items={type:"object",properties:i.itemType.properties.map(s=>s.name)});h.push(n);const t=`${c}[*]`;if(i.itemType.kind==="reference"){if(p===i.itemType.typeName&&c.includes("[*]"))return;const s=this.typeDefinitions.get(i.itemType.typeName);if(s&&s.kind==="object")for(const e of s.properties){const o=`${t}.${e.name}`;this.expandType(e.type,o,h,i.itemType.typeName,a)}}else if(i.itemType.kind==="object")for(const s of i.itemType.properties){const e=`${t}.${s.name}`;this.expandType(s.type,e,h,p,a)}else this.expandType(i.itemType,t,h,p,a);break}case"union":h.push({path:c,type:"enum",values:i.values});break;case"object":{const n={path:c,type:"object",properties:i.properties.map(s=>s.name)},t=i.properties.filter(s=>s.optional).map(s=>s.name);t.length>0&&(n.optional=t),h.push(n);for(const s of i.properties){const e=`${c}.${s.name}`;this.expandType(s.type,e,h,p,a)}break}case"reference":{const n=this.typeDefinitions.get(i.typeName);if(!n)return;if(p===i.typeName){if(c.includes("[*]")){if(n.kind==="object"){const t={path:c,type:"object",properties:n.properties.map(s=>s.name)};h.push(t)}return}if(n.kind==="object"){const t={path:c,type:"object",properties:n.properties.map(s=>s.name)};h.push(t);for(const s of n.properties){const e=`${c}[*].${s.name}`;this.expandType(s.type,e,h,i.typeName,a)}}return}this.expandType(n,c,h,i.typeName,a);break}}}}function Gd(u){const i=Ui.CharStreams.fromString(u),c=new Be(i),h=new Ui.CommonTokenStream(c),a=new j(h).document(),r=new Wd;return rp.ParseTreeWalker.DEFAULT.walk(r,a),r.build()}_r.buildRuleset=Gd,_r.validate=Vd,Object.defineProperty(_r,Symbol.toStringTag,{value:"Module"})}));
|
|
127
|
+
\v\v\v\v\v\v\v~
|
|
128
|
+
\v\f\f\r\r\x07\r
|
|
129
|
+
\r\f\r\r\v\r\r\r
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
¥
|
|
133
|
+
§
|
|
134
|
+
\x07
|
|
135
|
+
\f°\v¸
|
|
136
|
+
\x07¿
|
|
137
|
+
\fÂ\vÅ
|
|
138
|
+
Í
|
|
139
|
+
\x07×
|
|
140
|
+
\fÚ\vá
|
|
141
|
+
\x07ç
|
|
142
|
+
\fê\vð
|
|
143
|
+
\x1B\x1B\x1B\b
|
|
144
|
+
\f "$&(*,.024\r$%%'ù9@B\bK
|
|
145
|
+
V\fY[cu}¦ ¨"³$»&Æ(Ê*Î,Ò.Ý0â2ï4ñ68768;979::<;9<=\x07=>A?A\b@>@?ABC\x07CE\x07$DF,EDEFFGGH\x07HI\f\x07IJ\x07J\x07KL\x07LN\x07$MO
|
|
146
|
+
NMNOORPQ\x07QS2RPRSSTTU\x07U VW\x07\x07WX\f\x07X\vYZ\bZ\r[\` \\]\x07\b]_ ^\\_b\`^\`aab\`ch
|
|
147
|
+
de\x07 eg
|
|
148
|
+
fdgjhfhiijhkp\vlm\x07
|
|
149
|
+
mo\x07\vnlorpnpqqvrpst\x07\ftv0ukusvw~*x~\fy~\rz~{~(|~4\x1B}w}x}y}z}{}|~
\x07
\x07\x07#
|
|
150
|
+
\x07\x1B \x07§0\x07§0\x070§\x07\x1B0§¤\x07 ¡\x07¡¢ ¢£\x07£¥¤ ¤¥¥§¦¦¦¦¦§¨®\x07©ª"ª«\x07«¬©°®¬®¯¯±°®±²\x07²!³´\x07$´µ\x07\x07µ·\x07¶¸$·¶·¸¸¹¹º\x07º#»À&¼½\x07½¿&¾¼¿ÂÀ¾ÀÁÁÄÂÀÃÅ\x07ÄÃÄÅÅ%ÆÇ\x07$ÇÈ\x07\x07ÈÉ\x07%É'ÊÌ\x07$ËÍ0ÌËÌÍÍ)ÎÏ\x07ÏÐ\f\x07ÐÑ\x07 Ñ+ÒÓ\x07ÓØ.ÔÕ\x07!Õ×.ÖÔ×ÚØÖØÙÙÛÚØÛÜ\x07Ü-Ýà\x07$Þß\x07"ßá\f\x07àÞàáá/âã\x07ãè\f\x07äå\x07!åç\f\x07æäçêèæèééëêèëì\x07ì1íð\x07$îð4\x1Bïíïîð3ñò ò5\x1B9@ENR\`hpu}
¤¦®·ÀÄÌØàèï`;static __ATN;static get _ATN(){return B.__ATN||(B.__ATN=new wh.ATNDeserializer().deserialize(Bh.toCharArray(B._serializedATN))),B.__ATN}}class Bd extends Ne.ParserRuleContext{EOF(){return this.getToken(B.EOF,0)}declaration(r){return r===void 0?this.getRuleContexts(ou):this.getRuleContext(r,ou)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_document}enterRule(r){r.enterDocument&&r.enterDocument(this)}exitRule(r){r.exitDocument&&r.exitDocument(this)}accept(r){return r.visitDocument?r.visitDocument(this):r.visitChildren(this)}}class ou extends Ne.ParserRuleContext{typeAliasDeclaration(){return this.tryGetRuleContext(0,jh)}variableDeclaration(){return this.tryGetRuleContext(0,Mh)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_declaration}enterRule(r){r.enterDeclaration&&r.enterDeclaration(this)}exitRule(r){r.exitDeclaration&&r.exitDeclaration(this)}accept(r){return r.visitDeclaration?r.visitDeclaration(this):r.visitChildren(this)}}class jh extends Ne.ParserRuleContext{Identifier(){return this.getToken(B.Identifier,0)}type(){return this.getRuleContext(0,bn)}typeParameters(){return this.tryGetRuleContext(0,Kh)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_typeAliasDeclaration}enterRule(r){r.enterTypeAliasDeclaration&&r.enterTypeAliasDeclaration(this)}exitRule(r){r.exitTypeAliasDeclaration&&r.exitTypeAliasDeclaration(this)}accept(r){return r.visitTypeAliasDeclaration?r.visitTypeAliasDeclaration(this):r.visitChildren(this)}}class Mh extends Ne.ParserRuleContext{Identifier(){return this.getToken(B.Identifier,0)}typeAnnotation(){return this.tryGetRuleContext(0,su)}expression(){return this.tryGetRuleContext(0,Qh)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_variableDeclaration}enterRule(r){r.enterVariableDeclaration&&r.enterVariableDeclaration(this)}exitRule(r){r.exitVariableDeclaration&&r.exitVariableDeclaration(this)}accept(r){return r.visitVariableDeclaration?r.visitVariableDeclaration(this):r.visitChildren(this)}}class su extends Ne.ParserRuleContext{type(){return this.getRuleContext(0,bn)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_typeAnnotation}enterRule(r){r.enterTypeAnnotation&&r.enterTypeAnnotation(this)}exitRule(r){r.exitTypeAnnotation&&r.exitTypeAnnotation(this)}accept(r){return r.visitTypeAnnotation?r.visitTypeAnnotation(this):r.visitChildren(this)}}class bn extends Ne.ParserRuleContext{unionType(){return this.getRuleContext(0,qh)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_type}enterRule(r){r.enterType&&r.enterType(this)}exitRule(r){r.exitType&&r.exitType(this)}accept(r){return r.visitType?r.visitType(this):r.visitChildren(this)}}class qh extends Ne.ParserRuleContext{intersectionType(r){return r===void 0?this.getRuleContexts(uu):this.getRuleContext(r,uu)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_unionType}enterRule(r){r.enterUnionType&&r.enterUnionType(this)}exitRule(r){r.exitUnionType&&r.exitUnionType(this)}accept(r){return r.visitUnionType?r.visitUnionType(this):r.visitChildren(this)}}class uu extends Ne.ParserRuleContext{arrayType(r){return r===void 0?this.getRuleContexts(au):this.getRuleContext(r,au)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_intersectionType}enterRule(r){r.enterIntersectionType&&r.enterIntersectionType(this)}exitRule(r){r.exitIntersectionType&&r.exitIntersectionType(this)}accept(r){return r.visitIntersectionType?r.visitIntersectionType(this):r.visitChildren(this)}}class au extends Ne.ParserRuleContext{primaryType(){return this.tryGetRuleContext(0,kh)}typeArguments(){return this.tryGetRuleContext(0,zi)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_arrayType}enterRule(r){r.enterArrayType&&r.enterArrayType(this)}exitRule(r){r.exitArrayType&&r.exitArrayType(this)}accept(r){return r.visitArrayType?r.visitArrayType(this):r.visitChildren(this)}}class kh extends Ne.ParserRuleContext{parenthesizedType(){return this.tryGetRuleContext(0,Xh)}primitiveType(){return this.tryGetRuleContext(0,Uh)}objectType(){return this.tryGetRuleContext(0,zh)}yorkieType(){return this.tryGetRuleContext(0,Vh)}typeReference(){return this.tryGetRuleContext(0,$h)}literal(){return this.tryGetRuleContext(0,pu)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_primaryType}enterRule(r){r.enterPrimaryType&&r.enterPrimaryType(this)}exitRule(r){r.exitPrimaryType&&r.exitPrimaryType(this)}accept(r){return r.visitPrimaryType?r.visitPrimaryType(this):r.visitChildren(this)}}class Uh extends Ne.ParserRuleContext{constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_primitiveType}enterRule(r){r.enterPrimitiveType&&r.enterPrimitiveType(this)}exitRule(r){r.exitPrimitiveType&&r.exitPrimitiveType(this)}accept(r){return r.visitPrimitiveType?r.visitPrimitiveType(this):r.visitChildren(this)}}class zh extends Ne.ParserRuleContext{propertySignature(r){return r===void 0?this.getRuleContexts(lu):this.getRuleContext(r,lu)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_objectType}enterRule(r){r.enterObjectType&&r.enterObjectType(this)}exitRule(r){r.exitObjectType&&r.exitObjectType(this)}accept(r){return r.visitObjectType?r.visitObjectType(this):r.visitChildren(this)}}class lu extends Ne.ParserRuleContext{propertyName(){return this.getRuleContext(0,Hh)}typeAnnotation(){return this.getRuleContext(0,su)}QUESTION(){return this.tryGetToken(B.QUESTION,0)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_propertySignature}enterRule(r){r.enterPropertySignature&&r.enterPropertySignature(this)}exitRule(r){r.exitPropertySignature&&r.exitPropertySignature(this)}accept(r){return r.visitPropertySignature?r.visitPropertySignature(this):r.visitChildren(this)}}class Hh extends Ne.ParserRuleContext{Identifier(){return this.tryGetToken(B.Identifier,0)}StringLiteral(){return this.tryGetToken(B.StringLiteral,0)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_propertyName}enterRule(r){r.enterPropertyName&&r.enterPropertyName(this)}exitRule(r){r.exitPropertyName&&r.exitPropertyName(this)}accept(r){return r.visitPropertyName?r.visitPropertyName(this):r.visitChildren(this)}}class Vh extends Ne.ParserRuleContext{typeArguments(){return this.tryGetRuleContext(0,zi)}treeSchemaBody(){return this.tryGetRuleContext(0,Wh)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_yorkieType}enterRule(r){r.enterYorkieType&&r.enterYorkieType(this)}exitRule(r){r.exitYorkieType&&r.exitYorkieType(this)}accept(r){return r.visitYorkieType?r.visitYorkieType(this):r.visitChildren(this)}}class Wh extends Ne.ParserRuleContext{treeNodeDef(r){return r===void 0?this.getRuleContexts(cu):this.getRuleContext(r,cu)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_treeSchemaBody}enterRule(r){r.enterTreeSchemaBody&&r.enterTreeSchemaBody(this)}exitRule(r){r.exitTreeSchemaBody&&r.exitTreeSchemaBody(this)}accept(r){return r.visitTreeSchemaBody?r.visitTreeSchemaBody(this):r.visitChildren(this)}}class cu extends Ne.ParserRuleContext{Identifier(){return this.getToken(B.Identifier,0)}treeNodeProps(){return this.tryGetRuleContext(0,Gh)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_treeNodeDef}enterRule(r){r.enterTreeNodeDef&&r.enterTreeNodeDef(this)}exitRule(r){r.exitTreeNodeDef&&r.exitTreeNodeDef(this)}accept(r){return r.visitTreeNodeDef?r.visitTreeNodeDef(this):r.visitChildren(this)}}class Gh extends Ne.ParserRuleContext{treeNodeProp(r){return r===void 0?this.getRuleContexts(fu):this.getRuleContext(r,fu)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_treeNodeProps}enterRule(r){r.enterTreeNodeProps&&r.enterTreeNodeProps(this)}exitRule(r){r.exitTreeNodeProps&&r.exitTreeNodeProps(this)}accept(r){return r.visitTreeNodeProps?r.visitTreeNodeProps(this):r.visitChildren(this)}}class fu extends Ne.ParserRuleContext{Identifier(){return this.getToken(B.Identifier,0)}StringLiteral(){return this.getToken(B.StringLiteral,0)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_treeNodeProp}enterRule(r){r.enterTreeNodeProp&&r.enterTreeNodeProp(this)}exitRule(r){r.exitTreeNodeProp&&r.exitTreeNodeProp(this)}accept(r){return r.visitTreeNodeProp?r.visitTreeNodeProp(this):r.visitChildren(this)}}class $h extends Ne.ParserRuleContext{Identifier(){return this.getToken(B.Identifier,0)}typeArguments(){return this.tryGetRuleContext(0,zi)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_typeReference}enterRule(r){r.enterTypeReference&&r.enterTypeReference(this)}exitRule(r){r.exitTypeReference&&r.exitTypeReference(this)}accept(r){return r.visitTypeReference?r.visitTypeReference(this):r.visitChildren(this)}}class Xh extends Ne.ParserRuleContext{type(){return this.getRuleContext(0,bn)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_parenthesizedType}enterRule(r){r.enterParenthesizedType&&r.enterParenthesizedType(this)}exitRule(r){r.exitParenthesizedType&&r.exitParenthesizedType(this)}accept(r){return r.visitParenthesizedType?r.visitParenthesizedType(this):r.visitChildren(this)}}class Kh extends Ne.ParserRuleContext{typeParameter(r){return r===void 0?this.getRuleContexts(hu):this.getRuleContext(r,hu)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_typeParameters}enterRule(r){r.enterTypeParameters&&r.enterTypeParameters(this)}exitRule(r){r.exitTypeParameters&&r.exitTypeParameters(this)}accept(r){return r.visitTypeParameters?r.visitTypeParameters(this):r.visitChildren(this)}}class hu extends Ne.ParserRuleContext{Identifier(){return this.getToken(B.Identifier,0)}type(){return this.tryGetRuleContext(0,bn)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_typeParameter}enterRule(r){r.enterTypeParameter&&r.enterTypeParameter(this)}exitRule(r){r.exitTypeParameter&&r.exitTypeParameter(this)}accept(r){return r.visitTypeParameter?r.visitTypeParameter(this):r.visitChildren(this)}}class zi extends Ne.ParserRuleContext{type(r){return r===void 0?this.getRuleContexts(bn):this.getRuleContext(r,bn)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_typeArguments}enterRule(r){r.enterTypeArguments&&r.enterTypeArguments(this)}exitRule(r){r.exitTypeArguments&&r.exitTypeArguments(this)}accept(r){return r.visitTypeArguments?r.visitTypeArguments(this):r.visitChildren(this)}}class Qh extends Ne.ParserRuleContext{Identifier(){return this.tryGetToken(B.Identifier,0)}literal(){return this.tryGetRuleContext(0,pu)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_expression}enterRule(r){r.enterExpression&&r.enterExpression(this)}exitRule(r){r.exitExpression&&r.exitExpression(this)}accept(r){return r.visitExpression?r.visitExpression(this):r.visitChildren(this)}}class pu extends Ne.ParserRuleContext{StringLiteral(){return this.tryGetToken(B.StringLiteral,0)}NumberLiteral(){return this.tryGetToken(B.NumberLiteral,0)}BooleanLiteral(){return this.tryGetToken(B.BooleanLiteral,0)}constructor(r,c){super(r,c)}get ruleIndex(){return B.RULE_literal}enterRule(r){r.enterLiteral&&r.enterLiteral(this)}exitRule(r){r.exitLiteral&&r.exitLiteral(this)}accept(r){return r.visitLiteral?r.visitLiteral(this):r.visitChildren(this)}}var Cn={},sr={},Jh;function jd(){if(Jh)return sr;Jh=1;var u=sr&&sr.__decorate||function(p,a,n,i){var t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,n):i,e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(p,a,n,i);else for(var o=p.length-1;o>=0;o--)(e=p[o])&&(s=(t<3?e(s):t>3?e(a,n,s):e(a,n))||s);return t>3&&s&&Object.defineProperty(a,n,s),s},r=sr&&sr.__param||function(p,a){return function(n,i){a(n,i,p)}};Object.defineProperty(sr,"__esModule",{value:!0}),sr.AbstractParseTreeVisitor=void 0;const c=Q();let h=class{visit(a){return a.accept(this)}visitChildren(a){let n=this.defaultResult(),i=a.childCount;for(let t=0;t<i&&this.shouldVisitNextChild(a,n);t++){let e=a.getChild(t).accept(this);n=this.aggregateResult(n,e)}return n}visitTerminal(a){return this.defaultResult()}visitErrorNode(a){return this.defaultResult()}aggregateResult(a,n){return n}shouldVisitNextChild(a,n){return!0}};return u([c.Override,r(0,c.NotNull)],h.prototype,"visit",null),u([c.Override,r(0,c.NotNull)],h.prototype,"visitChildren",null),u([c.Override,r(0,c.NotNull)],h.prototype,"visitTerminal",null),u([c.Override,r(0,c.NotNull)],h.prototype,"visitErrorNode",null),u([r(0,c.NotNull)],h.prototype,"shouldVisitNextChild",null),sr.AbstractParseTreeVisitor=h,sr}var du={},Zh;function Md(){if(Zh)return du;Zh=1;return Object.defineProperty(du,"__esModule",{value:!0}),du}var xu={},Yh;function qd(){if(Yh)return xu;Yh=1;return Object.defineProperty(xu,"__esModule",{value:!0}),xu}var mi={},ep;function kd(){if(ep)return mi;ep=1;Object.defineProperty(mi,"__esModule",{value:!0}),mi.ParseTreeProperty=void 0;let u=class{constructor(c="ParseTreeProperty"){this._symbol=Symbol(c)}get(c){return c[this._symbol]}set(c,h){c[this._symbol]=h}removeFrom(c){let h=c[this._symbol];return delete c[this._symbol],h}};return mi.ParseTreeProperty=u,mi}var yu={},tp;function Ud(){if(tp)return yu;tp=1;return Object.defineProperty(yu,"__esModule",{value:!0}),yu}var _u={},rp;function zd(){return rp||(rp=1,(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.ParseTreeWalker=void 0;const r=ri(),c=pr(),h=ii();class p{walk(n,i){let t=[],s=[],e=i,o=0;for(;e;){if(e instanceof r.ErrorNode?n.visitErrorNode&&n.visitErrorNode(e):e instanceof c.TerminalNode?n.visitTerminal&&n.visitTerminal(e):this.enterRule(n,e),e.childCount>0){t.push(e),s.push(o),o=0,e=e.getChild(0);continue}do{if(e instanceof h.RuleNode&&this.exitRule(n,e),t.length===0){e=void 0,o=0;break}let l=t[t.length-1];if(o++,e=o<l.childCount?l.getChild(o):void 0,e)break;e=t.pop(),o=s.pop()}while(e)}}enterRule(n,i){let t=i.ruleContext;n.enterEveryRule&&n.enterEveryRule(t),t.enterRule(n)}exitRule(n,i){let t=i.ruleContext;t.exitRule(n),n.exitEveryRule&&n.exitEveryRule(t)}}u.ParseTreeWalker=p,(function(a){a.DEFAULT=new a})(p=u.ParseTreeWalker||(u.ParseTreeWalker={}))})(_u)),_u}var mu={},np;function Hd(){if(np)return mu;np=1;return Object.defineProperty(mu,"__esModule",{value:!0}),mu}var gu={},ip;function Vd(){if(ip)return gu;ip=1;return Object.defineProperty(gu,"__esModule",{value:!0}),gu}var op;function Wd(){return op||(op=1,(function(u){var r=Cn&&Cn.__createBinding||(Object.create?(function(h,p,a,n){n===void 0&&(n=a),Object.defineProperty(h,n,{enumerable:!0,get:function(){return p[a]}})}):(function(h,p,a,n){n===void 0&&(n=a),h[n]=p[a]})),c=Cn&&Cn.__exportStar||function(h,p){for(var a in h)a!=="default"&&!Object.prototype.hasOwnProperty.call(p,a)&&r(p,h,a)};Object.defineProperty(u,"__esModule",{value:!0}),c(jd(),u),c(ri(),u),c(Md(),u),c(qd(),u),c(kd(),u),c(Ud(),u),c(zd(),u),c(ii(),u),c(Hd(),u),c(pr(),u),c(Vd(),u),c(dr(),u)})(Cn)),Cn}var sp=Wd();class Gd{symbol=void 0;properties=void 0;treeNodeNames=void 0;symbolMap=new Map;referenceMap=new Map;errors=[];enterTypeAliasDeclaration(r){const c=r.Identifier().text,{line:h,charPositionInLine:p}=r.Identifier().symbol;this.symbolMap.has(c)&&this.errors.push({message:`Duplicate type declaration: ${c}`,line:h,column:p}),this.symbolMap.set(c,{name:c,line:h,column:p}),this.symbol=c}enterObjectType(){this.properties=new Set}exitObjectType(){this.properties=void 0}enterPropertyName(r){const c=r.Identifier().text,{line:h,charPositionInLine:p}=r.Identifier().symbol;this.properties?.has(c)&&this.errors.push({message:`Duplicate property name: ${c}`,line:h,column:p}),this.properties?.add(c)}enterTreeSchemaBody(){this.treeNodeNames=new Set}exitTreeSchemaBody(){this.treeNodeNames=void 0}enterTreeNodeDef(r){const c=r.Identifier().text,{line:h,charPositionInLine:p}=r.Identifier().symbol;this.treeNodeNames?.has(c)&&this.errors.push({message:`Duplicate tree node type definition: ${c}`,line:h,column:p}),this.treeNodeNames?.add(c)}enterTypeReference(r){const c=r.Identifier().text,{line:h,charPositionInLine:p}=r.Identifier().symbol;this.referenceMap.set(c,{name:c,parent:this.symbol,line:h,column:p})}}class $d{constructor(r){this.errorList=r}syntaxError(r,c,h,p,a){const n={severity:"error",message:a,range:{start:{column:p,line:h},end:{column:p+1,line:h}}};this.errorList.push(n)}}class Xd{constructor(r){this.errorList=r}syntaxError(r,c,h,p,a){let n=1;c&&c.stopIndex>=c.startIndex&&(n=c.stopIndex-c.startIndex+1);const i={severity:"error",message:a,range:{start:{column:p,line:h},end:{column:p+n,line:h}}};this.errorList.push(i)}}function Kd(u){const r=[],c=Ui.CharStreams.fromString(u),h=new Be(c);h.removeErrorListeners(),h.addErrorListener(new $d(r));const p=new Ui.CommonTokenStream(h),a=new B(p);a.removeErrorListeners(),a.addErrorListener(new Xd(r));const n=a.document(),i=new Gd;sp.ParseTreeWalker.DEFAULT.walk(i,n);for(const[,e]of i.referenceMap)i.symbolMap.has(e.name)||i.errors.push({message:`Type '${e.name}' is not defined.`,line:e.line,column:e.column});for(const[,e]of i.symbolMap){const o=new Set;let l=e.name;for(;l;){if(o.has(l)){i.errors.push({message:`Circular reference detected: ${l} -> ${e.name}`,line:e.line,column:e.column});break}o.add(l),l=i.referenceMap.get(l)?.parent}o.has("Document")||i.errors.push({message:`Type '${e.name}' is not in the document.`,line:e.line,column:e.column})}const t=i.errors.map(e=>({severity:"error",message:e.message,range:{start:{column:e.column,line:e.line},end:{column:e.column+1,line:e.line}}}));return{errors:[...r,...t]}}class Qd{typeDefinitions=new Map;currentTypeName=void 0;currentProperty=void 0;typeStack=[];propertyStack=[];currentProperties=[];unionContext=void 0;treeNodes=[];currentTreeNodeProps=void 0;enterTypeAliasDeclaration(r){this.currentTypeName=r.Identifier().text,this.currentProperties=[],this.unionContext=void 0}exitArrayType(r){const c=r.children?.some(p=>p.text==="["||p.text==="]"),h=r.children?.some(p=>p.text==="Array");if((c||h)&&this.typeStack.length>0){const p=this.typeStack.pop();this.typeStack.push({kind:"array",itemType:p})}}exitTypeAliasDeclaration(){if(this.currentTypeName&&this.typeStack.length>0){const r=this.typeStack.pop();this.typeDefinitions.set(this.currentTypeName,r)}this.currentTypeName=void 0}enterPrimitiveType(r){const c=r.text;this.typeStack.push({kind:"primitive",primitiveType:c})}enterYorkieType(r){let c=r.text;const h=c.indexOf("<");h!==-1&&(c=c.substring(0,h));const p=c;r.treeSchemaBody()&&(this.treeNodes=[]),this.typeStack.push({kind:"yorkie",yorkieType:p,treeNodes:r.treeSchemaBody()?[]:void 0})}exitYorkieType(){if(this.typeStack.length>0){const r=this.typeStack[this.typeStack.length-1];r.kind==="yorkie"&&r.yorkieType==="yorkie.Tree"&&r.treeNodes!==void 0&&(r.treeNodes=[...this.treeNodes]),this.treeNodes=[]}}enterTreeNodeDef(r){const c=r.Identifier().text;if(this.treeNodes.some(h=>h.nodeType===c))throw new Error(`Duplicate tree node definition: "${c}"`);this.currentTreeNodeProps={nodeType:c}}exitTreeNodeDef(){this.treeNodes.push(this.currentTreeNodeProps),this.currentTreeNodeProps=void 0}enterTreeNodeProp(r){const c=r.Identifier().text,h=r.StringLiteral().text.slice(1,-1);if(c==="content")this.currentTreeNodeProps.content=h;else if(c==="marks")this.currentTreeNodeProps.marks=h;else if(c==="group")this.currentTreeNodeProps.group=h;else throw new Error(`Unsupported tree node property: "${c}"`)}enterTypeReference(r){const c=r.Identifier().text;this.typeStack.push({kind:"reference",typeName:c})}enterObjectType(){this.propertyStack.push(this.currentProperties),this.currentProperties=[]}exitObjectType(){const r=this.currentProperties;this.currentProperties=this.propertyStack.pop()||[],this.typeStack.push({kind:"object",properties:r})}enterPropertySignature(r){const c=r.propertyName().text,h=!!r.QUESTION();this.currentProperty={name:c,type:{kind:"primitive",primitiveType:"string"},optional:h}}exitPropertySignature(){this.currentProperty&&this.typeStack.length>0&&(this.currentProperty.type=this.typeStack.pop(),this.currentProperties.push(this.currentProperty)),this.currentProperty=void 0}enterUnionType(){this.unionContext={values:[]}}exitUnionType(){this.unionContext&&this.unionContext.values.length>0&&this.typeStack.push({kind:"union",values:this.unionContext.values}),this.unionContext=void 0}enterLiteral(r){const c=r.text;let h;if(c.startsWith('"')&&c.endsWith('"'))h=c.slice(1,-1);else if(!isNaN(Number(c)))h=Number(c);else if(c==="true"||c==="false")h=c==="true";else return;this.unionContext?this.unionContext.values.push(h):this.typeStack.push({kind:"union",values:[h]})}build(){const r=this.typeDefinitions.get("Document");if(!r)return[];const c=[],h=new Set;return this.expandType(r,"$",c,"Document",h),c}expandType(r,c,h,p,a=new Set){const n=`${c},${p}`;if(!a.has(n))switch(a.add(n),r.kind){case"primitive":h.push({path:c,type:r.primitiveType});break;case"yorkie":{const i={path:c,type:r.yorkieType};r.yorkieType==="yorkie.Tree"&&r.treeNodes!==void 0&&(i.treeNodes=[...r.treeNodes]),h.push(i);break}case"array":{const i={path:c,type:"array"};if(r.itemType.kind==="reference"){const s=this.typeDefinitions.get(r.itemType.typeName);s&&s.kind==="object"&&(i.items={type:"object",properties:s.properties.map(e=>e.name)})}else r.itemType.kind==="object"&&(i.items={type:"object",properties:r.itemType.properties.map(s=>s.name)});h.push(i);const t=`${c}[*]`;if(r.itemType.kind==="reference"){if(p===r.itemType.typeName&&c.includes("[*]"))return;const s=this.typeDefinitions.get(r.itemType.typeName);if(s&&s.kind==="object")for(const e of s.properties){const o=`${t}.${e.name}`;this.expandType(e.type,o,h,r.itemType.typeName,a)}}else if(r.itemType.kind==="object")for(const s of r.itemType.properties){const e=`${t}.${s.name}`;this.expandType(s.type,e,h,p,a)}else this.expandType(r.itemType,t,h,p,a);break}case"union":h.push({path:c,type:"enum",values:r.values});break;case"object":{const i={path:c,type:"object",properties:r.properties.map(s=>s.name)},t=r.properties.filter(s=>s.optional).map(s=>s.name);t.length>0&&(i.optional=t),h.push(i);for(const s of r.properties){const e=`${c}.${s.name}`;this.expandType(s.type,e,h,p,a)}break}case"reference":{const i=this.typeDefinitions.get(r.typeName);if(!i)return;if(p===r.typeName){if(c.includes("[*]")){if(i.kind==="object"){const t={path:c,type:"object",properties:i.properties.map(s=>s.name)};h.push(t)}return}if(i.kind==="object"){const t={path:c,type:"object",properties:i.properties.map(s=>s.name)};h.push(t);for(const s of i.properties){const e=`${c}[*].${s.name}`;this.expandType(s.type,e,h,r.typeName,a)}}return}this.expandType(i,c,h,r.typeName,a);break}}}}function Jd(u){const r=Ui.CharStreams.fromString(u),c=new Be(r),h=new Ui.CommonTokenStream(c),a=new B(h).document(),n=new Qd;return sp.ParseTreeWalker.DEFAULT.walk(n,a),n.build()}_r.buildRuleset=Jd,_r.validate=Kd,Object.defineProperty(_r,Symbol.toStringTag,{value:"Module"})}));
|