spytial-core 2.10.0 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/evaluator.js CHANGED
@@ -1,2 +1,283 @@
1
- 'use strict';var simpleGraphQuery=require('simple-graph-query'),graphlib=require('graphlib');var g=class u{constructor(e,n={}){this.atoms=[];this.relations=[];this.types=[];this.errors=[];this.eventListeners=new Map;try{let s=typeof e=="string"?JSON.parse(e):e;if(!s||typeof s!="object")throw new Error("Invalid data: expected object with atoms and relations");if(!Array.isArray(s.atoms))throw new Error("Invalid data: atoms must be an array");if(!Array.isArray(s.relations))throw new Error("Invalid data: relations must be an array");let t=I.normalize(s,n);this.atoms=t.atoms,this.relations=t.relations,this.types=t.types,this.errors=t.errors;}catch(s){throw new Error(`Failed to create JSONDataInstance: ${s instanceof Error?s.message:String(s)}`)}}addEventListener(e,n){this.eventListeners.has(e)||this.eventListeners.set(e,new Set),this.eventListeners.get(e).add(n);}removeEventListener(e,n){let s=this.eventListeners.get(e);s&&s.delete(n);}emitEvent(e){let n=this.eventListeners.get(e.type);n&&n.forEach(s=>{try{s(e);}catch(t){console.error("Error in data instance event listener:",t);}});}isAtomBuiltin(e){return false}getAtomType(e){let n=this.atoms.find(t=>t.id===e);if(!n)throw new Error(`Atom with ID '${e}' not found`);let s=this.types.find(t=>t.id===n.type);if(!s)throw new Error(`Type '${n.type}' not found for atom '${e}'`);return s}getTypes(){return this.types}getAtoms(){return this.atoms}getRelations(){return this.relations}getTopLevelTypeId(e){let n=this.types.find(s=>s.id===e);return n&&n.types.length>0?n.types[n.types.length-1]:e}typeIsOfType(e,n){let s=this.types.find(t=>t.id===e);return s?s.types.includes(n):e===n}applyProjections(e){if(e.length===0)return this.clone();let n={};for(let l of e){let c=this.atoms.find(f=>f.id===l);if(!c)throw new Error(`Cannot project over atom '${l}': atom not found`);let p=this.getTopLevelTypeId(c.type);if(n[p])throw new Error(`Cannot project over '${l}' and '${n[p]}'. Both are of type '${p}'`);n[p]=l;}let s=Object.keys(n),t=Object.values(n),r=new Set(t),o=this.types.map(l=>{let c=s.some(p=>this.typeIsOfType(l.id,p));return {...l,atoms:c?[]:l.atoms.filter(p=>!r.has(p.id))}}),i=this.relations.map(l=>{if(!l.types.some(h=>s.some(d=>this.typeIsOfType(h,d))))return l;let p=[];l.types.forEach((h,d)=>{s.some(m=>this.typeIsOfType(h,m))&&p.push(d);});let f=l.tuples.filter(h=>p.every(d=>{let m=h.atoms[d],w=l.types[d],T=s.find(S=>this.typeIsOfType(w,S));if(!T)return true;let A=n[T];return m===A})).map(h=>({atoms:h.atoms.filter((d,m)=>!p.includes(m)),types:h.types.filter((d,m)=>!p.includes(m))})).filter(h=>h.atoms.length>0),y=l.types.filter((h,d)=>!p.includes(d));return {...l,types:y,tuples:f}}).filter(l=>l.tuples.length>0||l.types.length>0),a=this.atoms.filter(l=>{let c=this.getTopLevelTypeId(l.type);return !s.includes(c)});return new u({atoms:a,relations:i,types:o})}generateGraph(e=false,n=false){let s=new graphlib.Graph({directed:true,multigraph:true});if(this.atoms.forEach(t=>{s.setNode(t.id,{id:t.id,label:t.label,type:t.type,isBuiltin:this.isAtomBuiltin(t)});}),this.relations.forEach(t=>{t.tuples.forEach((r,o)=>{if(r.atoms.length>=2){let i=r.atoms[0],a=r.atoms[r.atoms.length-1],l=r.atoms.slice(1,-1),c=t.name;if(l.length>0){let f=l.map(y=>{let h=this.atoms.find(d=>d.id===y);return h?h.label:y});c=`${t.name}[${f.join(", ")}]`;}let p=`${t.id}_${o}`;s.setEdge(i,a,c,p);}else if(r.atoms.length===1){let i=r.atoms[0],a=`${t.id}_${o}`;s.setEdge(i,i,t.name,a);}});}),e||n){let t=[];s.nodes().forEach(r=>{let o=s.inEdges(r)||[],i=s.outEdges(r)||[];if(o.length===0&&i.length===0){let c=s.node(r)?.isBuiltin||false;(e||c&&n)&&t.push(r);}}),t.forEach(r=>{s.removeNode(r);});}return s}addAtom(e){if(this.atoms.some(s=>s.id===e.id))throw new Error(`Atom with ID '${e.id}' already exists`);this.atoms.push(e);let n=this.types.find(s=>s.id===e.type);n||(n={id:e.type,types:[e.type],atoms:[],isBuiltin:false},this.types.push(n)),n.atoms.push(e),this.emitEvent({type:"atomAdded",data:{atom:e}});}addRelationTuple(e,n){for(let t of n.atoms)if(!this.atoms.some(r=>r.id===t))throw new Error(`Cannot add tuple: referenced atom '${t}' does not exist`);let s=this.relations.find(t=>t.id===e||t.name===e);if(!s)s={id:e,name:e,types:[...n.types],tuples:[]},this.relations.push(s);else {let t=new Set(s.types);for(let r of n.types)t.has(r)||s.types.push(r);}s.tuples.push(n),this.emitEvent({type:"relationTupleAdded",data:{relationId:e,tuple:n}});}removeAtom(e){let n=this.atoms.findIndex(r=>r.id===e);if(n===-1)throw new Error(`Cannot remove atom: atom with ID '${e}' not found`);let s=this.atoms[n];this.atoms.splice(n,1);let t=this.types.find(r=>r.id===s.type);t&&(t.atoms=t.atoms.filter(r=>r.id!==e));for(let r of this.relations)r.tuples=r.tuples.filter(o=>!o.atoms.includes(e));this.emitEvent({type:"atomRemoved",data:{atomId:e}});}removeRelationTuple(e,n){let s=this.relations.find(o=>o.id===e||o.name===e);if(!s)throw new Error(`Cannot remove tuple: relation '${e}' not found`);let t=(o,i)=>o.atoms.length!==i.atoms.length?false:o.atoms.every((a,l)=>a===i.atoms[l]),r=s.tuples.length;if(s.tuples=s.tuples.filter(o=>!t(o,n)),s.tuples.length===r)throw new Error(`Tuple not found in relation '${e}'`);this.emitEvent({type:"relationTupleRemoved",data:{relationId:e,tuple:n}});}reify(){return {atoms:[...this.atoms],relations:this.relations.map(e=>({...e,tuples:[...e.tuples]})),types:this.types.map(e=>({...e,atoms:[...e.atoms]}))}}addFromDataInstance(e,n){if(!e)return false;let s=new Map;return e.getAtoms().forEach(t=>{let r=this.isAtomBuiltin(t);if(n&&r){let a=this.atoms.find(l=>l.type===t.type&&l.label===t.label);if(a){s.set(t.id,a.id);return}}let o=`atom_${this.atoms.length+1}`;s.set(t.id,o);let i={...t,id:o};this.addAtom(i);}),e.getRelations().forEach(t=>{let r=t.tuples.map(i=>({atoms:i.atoms.map(a=>s.get(a)||a),types:i.types})),o=this.relations.find(i=>i.id===t.id||i.name===t.name);if(o){let i=new Set(o.tuples.map(a=>JSON.stringify(a)));r.forEach(a=>{let l=JSON.stringify(a);i.has(l)||(o.tuples.push(a),i.add(l));});}else this.relations.push({...t,tuples:r});}),e.getTypes().forEach(t=>{let r=this.types.find(o=>o.id===t.id);if(!r)this.types.push({...t,atoms:t.atoms.map(o=>({...o,id:s.get(o.id)||o.id}))});else {let o=new Set(r.atoms.map(i=>i.id));t.atoms.forEach(i=>{let a=s.get(i.id)||i.id;o.has(a)||(r.atoms.push({...i,id:a}),o.add(a));});}}),true}getErrors(){return [...this.errors]}isValid(){return this.errors.length===0}getStatistics(){return {atomCount:this.atoms.length,relationCount:this.relations.length,typeCount:this.types.length,tupleCount:this.relations.reduce((e,n)=>e+n.tuples.length,0),errorCount:this.errors.length,hasBuiltinTypes:this.types.some(e=>e.isBuiltin)}}clone(){return new u(this.reify())}},I=class u{static mergeRelations(e){let n=new Map;for(let s of e){let t=n.get(s.name);if(t){let r=new Set(t.tuples.map(i=>JSON.stringify(i)));for(let i of s.tuples){let a=JSON.stringify(i);r.has(a)||(t.tuples.push(i),r.add(a));}let o=new Set(t.types);for(let i of s.types)o.has(i)||(t.types.push(i),o.add(i));}else n.set(s.name,{id:s.id||s.name,name:s.name,types:[...s.types],tuples:[...s.tuples]});}return Array.from(n.values())}static inferTypes(e){let n=new Map;for(let s of e)n.has(s.type)||n.set(s.type,{id:s.type,types:[s.type],atoms:[],isBuiltin:u.isBuiltinType(s.type)}),n.get(s.type).atoms.push(s);return Array.from(n.values())}static isBuiltinType(e){return new Set(["String","Int","Bool","seq/Int","univ","none","Entity","Object","Node","Edge","Atom"]).has(e)}static deduplicateAtoms(e){let n=new Map,s=new Set;for(let t of e)n.has(t.id)?s.add(t.id):n.set(t.id,t);return s.size>0&&console.warn(`Found duplicate atoms with IDs: ${Array.from(s).join(", ")}`),Array.from(n.values())}static validateReferences(e,n){let s=new Set(e.map(r=>r.id)),t=[];for(let r of n)for(let o=0;o<r.tuples.length;o++){let i=r.tuples[o];for(let a=0;a<i.atoms.length;a++){let l=i.atoms[a];s.has(l)||t.push(`Relation "${r.name}" tuple ${o} position ${a}: references unknown atom "${l}"`);}}return {isValid:t.length===0,errors:t}}static normalize(e,n={}){let s={mergeRelations:true,inferTypes:true,validateReferences:true,deduplicateAtoms:true,...n},t=e.atoms||[],r=e.relations||[],o=e.types||[],i=[];if(s.deduplicateAtoms&&t.length>0){let a=t.length;t=this.deduplicateAtoms(t),t.length<a&&i.push(`Removed ${a-t.length} duplicate atoms`);}if(s.mergeRelations&&r.length>0){let a=r.length;r=this.mergeRelations(r),r.length<a&&i.push(`Merged ${a-r.length} duplicate relations`);}if(s.inferTypes&&o.length===0&&t.length>0&&(o=this.inferTypes(t),i.push(`Inferred ${o.length} types from atoms`)),s.validateReferences){let a=this.validateReferences(t,r);i.push(...a.errors);}return {atoms:t,relations:r,types:o,errors:i}}};function C(u){return u.getAtoms!==void 0&&u.getRelations!==void 0&&u.getTypes!==void 0&&u.applyProjections!==void 0&&u.generateGraph!==void 0}function D(u){return u.error!==void 0}function $(u){return typeof u=="string"||typeof u=="number"||typeof u=="boolean"}function v(u){if(typeof u=="string")return u;if(typeof u=="number")return u.toString();if(typeof u=="boolean")return u?"true":"false";throw new Error("Invalid SingleValue type")}var E=class{constructor(e,n){this.isErrorResult=false;this.isSingletonResult=false;this.result=e,this.expr=n,this.isErrorResult=D(e),this.isSingletonResult=$(e);}isError(){return this.isErrorResult}isSingleton(){return this.isSingletonResult}getExpression(){return this.expr}noResult(){return !this.isErrorResult&&Array.isArray(this.result)&&this.result.length===0}getRawResult(){return this.isErrorResult?{error:{message:this.result.error.message,code:"FORGE_ERROR"}}:this.isSingletonResult?this.result:this.result}prettyPrint(){if(typeof this.result=="string")return this.result;if(typeof this.result=="number")return this.result.toString();if(typeof this.result=="boolean")return this.result?"true":"false";if(this.isErrorResult)return `Error: ${this.result.error.message}`;{let e=[],n=this.result;for(let t=0;t<n.length;t++){let o=n[t].join("->");e.push(o);}return e.join(" , ")}}singleResult(){if(!this.isSingletonResult){let e=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to a single value. Instead:${e}`)}return this.result}selectedAtoms(){if(this.isSingletonResult||this.isErrorResult){let r=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 1. Instead: ${r}`)}let n=this.result.filter(r=>r.length>0);if(n.length===0)return [];n=n.filter(r=>r.length===1);let s=n.flat().map(r=>v(r));return Array.from(new Set(s))}selectedTwoples(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2. Instead:${t}`)}let n=this.result.filter(t=>t.length>1);return n.length===0?[]:n.map(t=>[t[0],t[t.length-1]]).map(t=>t.map(r=>v(r)))}maxArity(){if(this.isSingletonResult||this.isErrorResult)return 0;let e=this.result;return e.length===0?0:Math.max(...e.map(n=>n.length))}selectedTuplesAll(){if(this.isSingletonResult||this.isErrorResult){let t=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2. Instead:${t}`)}let n=this.result.filter(t=>t.length>1);return n.length===0?[]:n.map(t=>t.map(r=>v(r)))}},R=class{constructor(){this.evaluatorCache=new Map;this.MAX_CACHE_SIZE=1e3;this.ready=false;}initialize(e){if(this.context=e,!e.sourceData||!C(e.sourceData))throw new Error("Invalid context.sourceData: Expected an instance of IDataInstance");let n=e.sourceData;this.eval=new simpleGraphQuery.SimpleGraphQueryEvaluator(n),this.ready=true,this.evaluatorCache.clear();}isReady(){return this.ready}evaluate(e,n){if(!this.isReady())throw new Error("Evaluator not initialized");let s=n?.instanceIndex??0,t=JSON.stringify({expression:e,instanceIndex:s});if(this.evaluatorCache.has(t)){let i=this.evaluatorCache.get(t);return this.evaluatorCache.delete(t),this.evaluatorCache.set(t,i),i}let r=this.eval.evaluateExpression(e),o=new E(r,e);if(this.evaluatorCache.size>=this.MAX_CACHE_SIZE){let i=this.evaluatorCache.keys().next().value;i!==void 0&&this.evaluatorCache.delete(i);}return this.evaluatorCache.set(t,o),o}dispose(){this.evaluatorCache.clear();}getMemoryStats(){return {cacheSize:this.evaluatorCache.size,maxCacheSize:this.MAX_CACHE_SIZE,hasDataInstance:false}}};exports.JSONDataInstance=g;exports.SGQEvaluatorResult=E;exports.SGraphQueryEvaluator=R;//# sourceMappingURL=evaluator.js.map
1
+ 'use strict';var HO=Object.create;var I0=Object.defineProperty;var GO=Object.getOwnPropertyDescriptor;var VO=Object.getOwnPropertyNames;var zO=Object.getPrototypeOf,WO=Object.prototype.hasOwnProperty;var w0=(E=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(E,{get:(C,B)=>(typeof require<"u"?require:C)[B]}):E)(function(E){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+E+'" is not supported')});var at=(E,C)=>()=>(C||E((C={exports:{}}).exports,C),C.exports);var qO=(E,C,B,H)=>{if(C&&typeof C=="object"||typeof C=="function")for(let D of VO(C))!WO.call(E,D)&&D!==B&&I0(E,D,{get:()=>C[D],enumerable:!(H=GO(C,D))||H.enumerable});return E};var B0=(E,C,B)=>(B=E!=null?HO(zO(E)):{},qO(!E||!E.__esModule?I0(B,"default",{value:E,enumerable:true}):B,E));var P0=at((di,oo)=>{(function(C,B){typeof di=="object"&&typeof oo=="object"?oo.exports=B():typeof define=="function"&&define.amd?define([],B):typeof di=="object"?di.SimpleGraphQuery=B():C.SimpleGraphQuery=B();})(di,()=>(()=>{var E={"./node_modules/antlr4ts/ANTLRErrorListener.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true});}),"./node_modules/antlr4ts/ANTLRErrorStrategy.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true});}),"./node_modules/antlr4ts/ANTLRInputStream.js":(function(D,l,f){var d=this&&this.__decorate||function(o,r,x,n){var c=arguments.length,a=c<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,x):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,r,x,n);else for(var t=o.length-1;t>=0;t--)(p=o[t])&&(a=(c<3?p(a):c>3?p(r,x,a):p(r,x))||a);return c>3&&a&&Object.defineProperty(r,x,a),a};Object.defineProperty(l,"__esModule",{value:true}),l.ANTLRInputStream=void 0;let m=f("./node_modules/assert/build/assert.js"),g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/IntStream.js");class s{constructor(r){this.p=0,this.data=r,this.n=r.length;}reset(){this.p=0;}consume(){if(this.p>=this.n)throw m(this.LA(1)===O.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?O.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 x=r.a,n=r.b;n>=this.n&&(n=this.n-1);let c=n-x+1;return x>=this.n?"":this.data.substr(x,c)}get sourceName(){return this.name?this.name:O.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}}d([g.Override],s.prototype,"consume",null),d([g.Override],s.prototype,"LA",null),d([g.Override],s.prototype,"index",null),d([g.Override],s.prototype,"size",null),d([g.Override],s.prototype,"mark",null),d([g.Override],s.prototype,"release",null),d([g.Override],s.prototype,"seek",null),d([g.Override],s.prototype,"getText",null),d([g.Override],s.prototype,"sourceName",null),d([g.Override],s.prototype,"toString",null),l.ANTLRInputStream=s;}),"./node_modules/antlr4ts/BailErrorStrategy.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c};Object.defineProperty(l,"__esModule",{value:true}),l.BailErrorStrategy=void 0;let m=f("./node_modules/antlr4ts/DefaultErrorStrategy.js"),g=f("./node_modules/antlr4ts/InputMismatchException.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/misc/ParseCancellationException.js");class h extends m.DefaultErrorStrategy{recover(o,r){for(let x=o.context;x;x=x.parent)x.exception=r;throw new T.ParseCancellationException(r)}recoverInline(o){let r=new g.InputMismatchException(o);for(let x=o.context;x;x=x.parent)x.exception=r;throw new T.ParseCancellationException(r)}sync(o){}}d([O.Override],h.prototype,"recover",null),d([O.Override],h.prototype,"recoverInline",null),d([O.Override],h.prototype,"sync",null),l.BailErrorStrategy=h;}),"./node_modules/antlr4ts/BufferedTokenStream.js":(function(D,l,f){var d=this&&this.__decorate||function(x,n,c,a){var p=arguments.length,t=p<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,c):a,y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(x,n,c,a);else for(var v=x.length-1;v>=0;v--)(y=x[v])&&(t=(p<3?y(t):p>3?y(n,c,t):y(n,c))||t);return p>3&&t&&Object.defineProperty(n,c,t),t},m=this&&this.__param||function(x,n){return function(c,a){n(c,a,x);}};Object.defineProperty(l,"__esModule",{value:true}),l.BufferedTokenStream=void 0;let g=f("./node_modules/assert/build/assert.js"),O=f("./node_modules/antlr4ts/CommonToken.js"),T=f("./node_modules/antlr4ts/misc/Interval.js"),h=f("./node_modules/antlr4ts/Lexer.js"),s=f("./node_modules/antlr4ts/Decorators.js"),o=f("./node_modules/antlr4ts/Token.js"),r=class{constructor(n){if(this.tokens=[],this.p=-1,this.fetchedEOF=false,n==null)throw new Error("tokenSource cannot be null");this._tokenSource=n;}get tokenSource(){return this._tokenSource}set tokenSource(n){this._tokenSource=n,this.tokens.length=0,this.p=-1,this.fetchedEOF=false;}get index(){return this.p}mark(){return 0}release(n){}seek(n){this.lazyInit(),this.p=this.adjustSeekIndex(n);}get size(){return this.tokens.length}consume(){let n;if(this.p>=0?this.fetchedEOF?n=this.p<this.tokens.length-1:n=this.p<this.tokens.length:n=false,!n&&this.LA(1)===o.Token.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1));}sync(n){g(n>=0);let c=n-this.tokens.length+1;return c>0?this.fetch(c)>=c:true}fetch(n){if(this.fetchedEOF)return 0;for(let c=0;c<n;c++){let a=this.tokenSource.nextToken();if(this.isWritableToken(a)&&(a.tokenIndex=this.tokens.length),this.tokens.push(a),a.type===o.Token.EOF)return this.fetchedEOF=true,c+1}return n}get(n){if(n<0||n>=this.tokens.length)throw new RangeError("token index "+n+" out of range 0.."+(this.tokens.length-1));return this.tokens[n]}getRange(n,c){if(n<0||c<0)return [];this.lazyInit();let a=new Array;c>=this.tokens.length&&(c=this.tokens.length-1);for(let p=n;p<=c;p++){let t=this.tokens[p];if(t.type===o.Token.EOF)break;a.push(t);}return a}LA(n){let c=this.LT(n);return c?c.type:o.Token.INVALID_TYPE}tryLB(n){if(!(this.p-n<0))return this.tokens[this.p-n]}LT(n){let c=this.tryLT(n);if(c===void 0)throw new RangeError("requested lookback index out of range");return c}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 c=this.p+n-1;return this.sync(c),c>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[c]}adjustSeekIndex(n){return n}lazyInit(){this.p===-1&&this.setup();}setup(){this.sync(0),this.p=this.adjustSeekIndex(0);}getTokens(n,c,a){if(this.lazyInit(),n===void 0)return g(c===void 0&&a===void 0),this.tokens;if(c===void 0&&(c=this.tokens.length-1),n<0||c>=this.tokens.length||c<0||n>=this.tokens.length)throw new RangeError("start "+n+" or stop "+c+" not in 0.."+(this.tokens.length-1));if(n>c)return [];if(a===void 0)return this.tokens.slice(n,c+1);typeof a=="number"&&(a=new Set().add(a));let p=a,t=this.tokens.slice(n,c+1);return t=t.filter(y=>p.has(y.type)),t}nextTokenOnChannel(n,c){if(this.sync(n),n>=this.size)return this.size-1;let a=this.tokens[n];for(;a.channel!==c;){if(a.type===o.Token.EOF)return n;n++,this.sync(n),a=this.tokens[n];}return n}previousTokenOnChannel(n,c){if(this.sync(n),n>=this.size)return this.size-1;for(;n>=0;){let a=this.tokens[n];if(a.type===o.Token.EOF||a.channel===c)return n;n--;}return n}getHiddenTokensToRight(n,c=-1){if(this.lazyInit(),n<0||n>=this.tokens.length)throw new RangeError(n+" not in 0.."+(this.tokens.length-1));let a=this.nextTokenOnChannel(n+1,h.Lexer.DEFAULT_TOKEN_CHANNEL),p,t=n+1;return a===-1?p=this.size-1:p=a,this.filterForChannel(t,p,c)}getHiddenTokensToLeft(n,c=-1){if(this.lazyInit(),n<0||n>=this.tokens.length)throw new RangeError(n+" not in 0.."+(this.tokens.length-1));if(n===0)return [];let a=this.previousTokenOnChannel(n-1,h.Lexer.DEFAULT_TOKEN_CHANNEL);if(a===n-1)return [];let p=a+1,t=n-1;return this.filterForChannel(p,t,c)}filterForChannel(n,c,a){let p=new Array;for(let t=n;t<=c;t++){let y=this.tokens[t];a===-1?y.channel!==h.Lexer.DEFAULT_TOKEN_CHANNEL&&p.push(y):y.channel===a&&p.push(y);}return p}get sourceName(){return this.tokenSource.sourceName}getText(n){n===void 0?n=T.Interval.of(0,this.size-1):n instanceof T.Interval||(n=n.sourceInterval);let c=n.a,a=n.b;if(c<0||a<0)return "";this.fill(),a>=this.tokens.length&&(a=this.tokens.length-1);let p="";for(let t=c;t<=a;t++){let y=this.tokens[t];if(y.type===o.Token.EOF)break;p+=y.text;}return p.toString()}getTextFromRange(n,c){return this.isToken(n)&&this.isToken(c)?this.getText(T.Interval.of(n.tokenIndex,c.tokenIndex)):""}fill(){this.lazyInit();let n=1e3;for(;;)if(this.fetch(n)<n)return}isWritableToken(n){return n instanceof O.CommonToken}isToken(n){return n instanceof O.CommonToken}};d([s.NotNull],r.prototype,"_tokenSource",void 0),d([s.Override],r.prototype,"tokenSource",null),d([s.Override],r.prototype,"index",null),d([s.Override],r.prototype,"mark",null),d([s.Override],r.prototype,"release",null),d([s.Override],r.prototype,"seek",null),d([s.Override],r.prototype,"size",null),d([s.Override],r.prototype,"consume",null),d([s.Override],r.prototype,"get",null),d([s.Override],r.prototype,"LA",null),d([s.NotNull,s.Override],r.prototype,"LT",null),d([s.Override],r.prototype,"sourceName",null),d([s.NotNull,s.Override],r.prototype,"getText",null),d([s.NotNull,s.Override],r.prototype,"getTextFromRange",null),r=d([m(0,s.NotNull)],r),l.BufferedTokenStream=r;}),"./node_modules/antlr4ts/CharStream.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true});}),"./node_modules/antlr4ts/CharStreams.js":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.CharStreams=void 0;let d=f("./node_modules/antlr4ts/CodePointBuffer.js"),m=f("./node_modules/antlr4ts/CodePointCharStream.js"),g=f("./node_modules/antlr4ts/IntStream.js");(function(T){function h(s,o){(o===void 0||o.length===0)&&(o=g.IntStream.UNKNOWN_SOURCE_NAME);let r=d.CodePointBuffer.builder(s.length),x=new Uint16Array(s.length);for(let n=0;n<s.length;n++)x[n]=s.charCodeAt(n);return r.append(x),m.CodePointCharStream.fromBuffer(r.build(),o)}T.fromString=h;})(l.CharStreams||(l.CharStreams={}));}),"./node_modules/antlr4ts/CodePointBuffer.js":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.CodePointBuffer=void 0;let d=f("./node_modules/assert/build/assert.js"),m=f("./node_modules/antlr4ts/misc/Character.js");class g{constructor(T,h){this.buffer=T,this._position=0,this._size=h;}static withArray(T){return new g(T,T.length)}get position(){return this._position}set position(T){if(T<0||T>this._size)throw new RangeError;this._position=T;}get remaining(){return this._size-this.position}get(T){return this.buffer[T]}array(){return this.buffer.slice(0,this._size)}static builder(T){return new g.Builder(T)}}l.CodePointBuffer=g,(function(O){let T;(function(s){s[s.BYTE=0]="BYTE",s[s.CHAR=1]="CHAR",s[s.INT=2]="INT";})(T||(T={}));class h{constructor(o){this.type=0,this.buffer=new Uint8Array(o),this.prevHighSurrogate=-1,this.position=0;}build(){return new O(this.buffer,this.position)}static roundUpToNextPowerOfTwo(o){let r=32-Math.clz32(o-1);return Math.pow(2,r)}ensureRemaining(o){switch(this.type){case 0:if(this.buffer.length-this.position<o){let r=h.roundUpToNextPowerOfTwo(this.buffer.length+o),x=new Uint8Array(r);x.set(this.buffer.subarray(0,this.position),0),this.buffer=x;}break;case 1:if(this.buffer.length-this.position<o){let r=h.roundUpToNextPowerOfTwo(this.buffer.length+o),x=new Uint16Array(r);x.set(this.buffer.subarray(0,this.position),0),this.buffer=x;}break;case 2:if(this.buffer.length-this.position<o){let r=h.roundUpToNextPowerOfTwo(this.buffer.length+o),x=new Int32Array(r);x.set(this.buffer.subarray(0,this.position),0),this.buffer=x;}break}}append(o){this.ensureRemaining(o.length),this.appendArray(o);}appendArray(o){switch(this.type){case 0:this.appendArrayByte(o);break;case 1:this.appendArrayChar(o);break;case 2:this.appendArrayInt(o);break}}appendArrayByte(o){d(this.prevHighSurrogate===-1);let r=o,x=0,n=o.length,c=this.buffer,a=this.position;for(;x<n;){let p=r[x];if(p<=255)c[a]=p;else if(o=o.subarray(x,n),this.position=a,m.isHighSurrogate(p)){this.byteToIntBuffer(o.length),this.appendArrayInt(o);return}else {this.byteToCharBuffer(o.length),this.appendArrayChar(o);return}x++,a++;}this.position=a;}appendArrayChar(o){d(this.prevHighSurrogate===-1);let r=o,x=0,n=o.length,c=this.buffer,a=this.position;for(;x<n;){let p=r[x];if(!m.isHighSurrogate(p))c[a]=p;else {o=o.subarray(x,n),this.position=a,this.charToIntBuffer(o.length),this.appendArrayInt(o);return}x++,a++;}this.position=a;}appendArrayInt(o){let r=o,x=0,n=o.length,c=this.buffer,a=this.position;for(;x<n;){let p=r[x];x++,this.prevHighSurrogate!==-1?m.isLowSurrogate(p)?(c[a]=String.fromCharCode(this.prevHighSurrogate,p).codePointAt(0),a++,this.prevHighSurrogate=-1):(c[a]=this.prevHighSurrogate,a++,m.isHighSurrogate(p)?this.prevHighSurrogate=p:(c[a]=p,a++,this.prevHighSurrogate=-1)):m.isHighSurrogate(p)?this.prevHighSurrogate=p:(c[a]=p,a++);}this.prevHighSurrogate!==-1&&(c[a]=this.prevHighSurrogate,a++),this.position=a;}byteToCharBuffer(o){let r=new Uint16Array(Math.max(this.position+o,this.buffer.length>>1));r.set(this.buffer.subarray(0,this.position),0),this.type=1,this.buffer=r;}byteToIntBuffer(o){let r=new Int32Array(Math.max(this.position+o,this.buffer.length>>2));r.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=r;}charToIntBuffer(o){let r=new Int32Array(Math.max(this.position+o,this.buffer.length>>1));r.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=r;}}O.Builder=h;})(g=l.CodePointBuffer||(l.CodePointBuffer={}));}),"./node_modules/antlr4ts/CodePointCharStream.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c};Object.defineProperty(l,"__esModule",{value:true}),l.CodePointCharStream=void 0;let m=f("./node_modules/assert/build/assert.js"),g=f("./node_modules/antlr4ts/IntStream.js"),O=f("./node_modules/antlr4ts/misc/Interval.js"),T=f("./node_modules/antlr4ts/Decorators.js");class h{constructor(o,r,x,n){m(r===0),this._array=o,this._size=x,this._name=n,this._position=0;}get internalStorage(){return this._array}static fromBuffer(o,r){return (r===void 0||r.length===0)&&(r=g.IntStream.UNKNOWN_SOURCE_NAME),new h(o.array(),o.position,o.remaining,r)}consume(){if(this._size-this._position===0)throw m(this.LA(1)===g.IntStream.EOF),new RangeError("cannot consume EOF");this._position++;}get index(){return this._position}get size(){return this._size}mark(){return -1}release(o){}seek(o){this._position=o;}get sourceName(){return this._name}toString(){return this.getText(O.Interval.of(0,this.size-1))}LA(o){let r;switch(Math.sign(o)){case -1:return r=this.index+o,r<0?g.IntStream.EOF:this._array[r];case 0:return 0;case 1:return r=this.index+o-1,r>=this.size?g.IntStream.EOF:this._array[r]}throw new RangeError("Not reached")}getText(o){let r=Math.min(o.a,this.size),x=Math.min(o.b-o.a+1,this.size-r);return this._array instanceof Int32Array?String.fromCodePoint(...Array.from(this._array.subarray(r,r+x))):String.fromCharCode(...Array.from(this._array.subarray(r,r+x)))}}d([T.Override],h.prototype,"consume",null),d([T.Override],h.prototype,"index",null),d([T.Override],h.prototype,"size",null),d([T.Override],h.prototype,"mark",null),d([T.Override],h.prototype,"release",null),d([T.Override],h.prototype,"seek",null),d([T.Override],h.prototype,"sourceName",null),d([T.Override],h.prototype,"toString",null),d([T.Override],h.prototype,"LA",null),d([T.Override],h.prototype,"getText",null),l.CodePointCharStream=h;}),"./node_modules/antlr4ts/CommonToken.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c},m=this&&this.__param||function(s,o){return function(r,x){o(r,x,s);}};Object.defineProperty(l,"__esModule",{value:true}),l.CommonToken=void 0;let g=f("./node_modules/antlr4ts/misc/Interval.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/Token.js"),h=class xi{constructor(o,r,x=xi.EMPTY_SOURCE,n=T.Token.DEFAULT_CHANNEL,c=0,a=0){this._line=0,this._charPositionInLine=-1,this._channel=T.Token.DEFAULT_CHANNEL,this.index=-1,this._text=r,this._type=o,this.source=x,this._channel=n,this.start=c,this.stop=a,x.source!=null&&(this._line=x.source.line,this._charPositionInLine=x.source.charPositionInLine);}static fromToken(o){let r=new xi(o.type,void 0,xi.EMPTY_SOURCE,o.channel,o.startIndex,o.stopIndex);return r._line=o.line,r.index=o.tokenIndex,r._charPositionInLine=o.charPositionInLine,o instanceof xi?(r._text=o._text,r.source=o.source):(r._text=o.text,r.source={source:o.tokenSource,stream:o.inputStream}),r}get type(){return this._type}set type(o){this._type=o;}get line(){return this._line}set line(o){this._line=o;}get text(){if(this._text!=null)return this._text;let o=this.inputStream;if(o==null)return;let r=o.size;return this.start<r&&this.stop<r?o.getText(g.Interval.of(this.start,this.stop)):"<EOF>"}set text(o){this._text=o;}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(o){this._charPositionInLine=o;}get channel(){return this._channel}set channel(o){this._channel=o;}get startIndex(){return this.start}set startIndex(o){this.start=o;}get stopIndex(){return this.stop}set stopIndex(o){this.stop=o;}get tokenIndex(){return this.index}set tokenIndex(o){this.index=o;}get tokenSource(){return this.source.source}get inputStream(){return this.source.stream}toString(o){let r="";this._channel>0&&(r=",channel="+this._channel);let x=this.text;x!=null?(x=x.replace(/\n/g,"\\n"),x=x.replace(/\r/g,"\\r"),x=x.replace(/\t/g,"\\t")):x="<no text>";let n=String(this._type);return o&&(n=o.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+x+"',<"+n+">"+r+","+this._line+":"+this.charPositionInLine+"]"}};h.EMPTY_SOURCE={source:void 0,stream:void 0},d([O.NotNull],h.prototype,"source",void 0),d([O.Override],h.prototype,"type",null),d([O.Override],h.prototype,"line",null),d([O.Override],h.prototype,"text",null),d([O.Override],h.prototype,"charPositionInLine",null),d([O.Override],h.prototype,"channel",null),d([O.Override],h.prototype,"startIndex",null),d([O.Override],h.prototype,"stopIndex",null),d([O.Override],h.prototype,"tokenIndex",null),d([O.Override],h.prototype,"tokenSource",null),d([O.Override],h.prototype,"inputStream",null),d([O.Override],h.prototype,"toString",null),d([m(0,O.NotNull)],h,"fromToken",null),h=d([m(2,O.NotNull)],h),l.CommonToken=h;}),"./node_modules/antlr4ts/CommonTokenFactory.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.CommonTokenFactory=void 0;let m=f("./node_modules/antlr4ts/CommonToken.js"),g=f("./node_modules/antlr4ts/misc/Interval.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T{constructor(s=false){this.copyText=s;}create(s,o,r,x,n,c,a,p){let t=new m.CommonToken(o,r,s,x,n,c);return t.line=a,t.charPositionInLine=p,r==null&&this.copyText&&s.stream!=null&&(t.text=s.stream.getText(g.Interval.of(n,c))),t}createSimple(s,o){return new m.CommonToken(s,o)}}d([O.Override],T.prototype,"create",null),d([O.Override],T.prototype,"createSimple",null),l.CommonTokenFactory=T,(function(h){h.DEFAULT=new h;})(T=l.CommonTokenFactory||(l.CommonTokenFactory={}));}),"./node_modules/antlr4ts/CommonTokenStream.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c},m=this&&this.__param||function(s,o){return function(r,x){o(r,x,s);}};Object.defineProperty(l,"__esModule",{value:true}),l.CommonTokenStream=void 0;let g=f("./node_modules/antlr4ts/BufferedTokenStream.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/Token.js"),h=class extends g.BufferedTokenStream{constructor(o,r=T.Token.DEFAULT_CHANNEL){super(o),this.channel=r;}adjustSeekIndex(o){return this.nextTokenOnChannel(o,this.channel)}tryLB(o){if(this.p-o<0)return;let r=this.p,x=1;for(;x<=o&&r>0;)r=this.previousTokenOnChannel(r-1,this.channel),x++;if(!(r<0))return this.tokens[r]}tryLT(o){if(this.lazyInit(),o===0)throw new RangeError("0 is not a valid lookahead index");if(o<0)return this.tryLB(-o);let r=this.p,x=1;for(;x<o;)this.sync(r+1)&&(r=this.nextTokenOnChannel(r+1,this.channel)),x++;return this.tokens[r]}getNumberOfOnChannelTokens(){let o=0;this.fill();for(let r of this.tokens)if(r.channel===this.channel&&o++,r.type===T.Token.EOF)break;return o}};d([O.Override],h.prototype,"adjustSeekIndex",null),d([O.Override],h.prototype,"tryLB",null),d([O.Override],h.prototype,"tryLT",null),h=d([m(0,O.NotNull)],h),l.CommonTokenStream=h;}),"./node_modules/antlr4ts/ConsoleErrorListener.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.ConsoleErrorListener=void 0;class f{syntaxError(m,g,O,T,h,s){console.error(`line ${O}:${T} ${h}`);}}l.ConsoleErrorListener=f,f.INSTANCE=new f;}),"./node_modules/antlr4ts/Decorators.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.SuppressWarnings=l.Override=l.Nullable=l.NotNull=void 0;function f(O,T,h){}l.NotNull=f;function d(O,T,h){}l.Nullable=d;function m(O,T,h){}l.Override=m;function g(O){return (T,h,s)=>{}}l.SuppressWarnings=g;}),"./node_modules/antlr4ts/DefaultErrorStrategy.js":(function(D,l,f){var d=this&&this.__decorate||function(a,p,t,y){var v=arguments.length,S=v<3?p:y===null?y=Object.getOwnPropertyDescriptor(p,t):y,N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(a,p,t,y);else for(var b=a.length-1;b>=0;b--)(N=a[b])&&(S=(v<3?N(S):v>3?N(p,t,S):N(p,t))||S);return v>3&&S&&Object.defineProperty(p,t,S),S},m=this&&this.__param||function(a,p){return function(t,y){p(t,y,a);}};Object.defineProperty(l,"__esModule",{value:true}),l.DefaultErrorStrategy=void 0;let g=f("./node_modules/antlr4ts/atn/ATNState.js"),O=f("./node_modules/antlr4ts/atn/ATNStateType.js"),T=f("./node_modules/antlr4ts/FailedPredicateException.js"),h=f("./node_modules/antlr4ts/InputMismatchException.js"),s=f("./node_modules/antlr4ts/misc/IntervalSet.js"),o=f("./node_modules/antlr4ts/NoViableAltException.js"),r=f("./node_modules/antlr4ts/atn/PredictionContext.js"),x=f("./node_modules/antlr4ts/Token.js"),n=f("./node_modules/antlr4ts/Decorators.js");class c{constructor(){this.errorRecoveryMode=false,this.lastErrorIndex=-1,this.nextTokensState=g.ATNState.INVALID_STATE_NUMBER;}reset(p){this.endErrorCondition(p);}beginErrorCondition(p){this.errorRecoveryMode=true;}inErrorRecoveryMode(p){return this.errorRecoveryMode}endErrorCondition(p){this.errorRecoveryMode=false,this.lastErrorStates=void 0,this.lastErrorIndex=-1;}reportMatch(p){this.endErrorCondition(p);}reportError(p,t){this.inErrorRecoveryMode(p)||(this.beginErrorCondition(p),t instanceof o.NoViableAltException?this.reportNoViableAlternative(p,t):t instanceof h.InputMismatchException?this.reportInputMismatch(p,t):t instanceof T.FailedPredicateException?this.reportFailedPredicate(p,t):(console.error(`unknown recognition error type: ${t}`),this.notifyErrorListeners(p,t.toString(),t)));}notifyErrorListeners(p,t,y){let v=y.getOffendingToken(p);v===void 0&&(v=null),p.notifyErrorListeners(t,v,y);}recover(p,t){this.lastErrorIndex===p.inputStream.index&&this.lastErrorStates&&this.lastErrorStates.contains(p.state)&&p.consume(),this.lastErrorIndex=p.inputStream.index,this.lastErrorStates||(this.lastErrorStates=new s.IntervalSet),this.lastErrorStates.add(p.state);let y=this.getErrorRecoverySet(p);this.consumeUntil(p,y);}sync(p){let t=p.interpreter.atn.states[p.state];if(this.inErrorRecoveryMode(p))return;let v=p.inputStream.LA(1),S=p.atn.nextTokens(t);if(S.contains(v)){this.nextTokensContext=void 0,this.nextTokensState=g.ATNState.INVALID_STATE_NUMBER;return}if(S.contains(x.Token.EPSILON)){this.nextTokensContext===void 0&&(this.nextTokensContext=p.context,this.nextTokensState=p.state);return}switch(t.stateType){case O.ATNStateType.BLOCK_START:case O.ATNStateType.STAR_BLOCK_START:case O.ATNStateType.PLUS_BLOCK_START:case O.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(p))return;throw new h.InputMismatchException(p);case O.ATNStateType.PLUS_LOOP_BACK:case O.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(p);let b=p.getExpectedTokens().or(this.getErrorRecoverySet(p));this.consumeUntil(p,b);break;}}reportNoViableAlternative(p,t){let y=p.inputStream,v;y?t.startToken.type===x.Token.EOF?v="<EOF>":v=y.getTextFromRange(t.startToken,t.getOffendingToken()):v="<unknown input>";let S="no viable alternative at input "+this.escapeWSAndQuote(v);this.notifyErrorListeners(p,S,t);}reportInputMismatch(p,t){let y=t.expectedTokens,v=y?y.toStringVocabulary(p.vocabulary):"",S="mismatched input "+this.getTokenErrorDisplay(t.getOffendingToken(p))+" expecting "+v;this.notifyErrorListeners(p,S,t);}reportFailedPredicate(p,t){let v="rule "+p.ruleNames[p.context.ruleIndex]+" "+t.message;this.notifyErrorListeners(p,v,t);}reportUnwantedToken(p){if(this.inErrorRecoveryMode(p))return;this.beginErrorCondition(p);let t=p.currentToken,y=this.getTokenErrorDisplay(t),v=this.getExpectedTokens(p),S="extraneous input "+y+" expecting "+v.toStringVocabulary(p.vocabulary);p.notifyErrorListeners(S,t,void 0);}reportMissingToken(p){if(this.inErrorRecoveryMode(p))return;this.beginErrorCondition(p);let t=p.currentToken,v="missing "+this.getExpectedTokens(p).toStringVocabulary(p.vocabulary)+" at "+this.getTokenErrorDisplay(t);p.notifyErrorListeners(v,t,void 0);}recoverInline(p){let t=this.singleTokenDeletion(p);if(t)return p.consume(),t;if(this.singleTokenInsertion(p))return this.getMissingSymbol(p);throw this.nextTokensContext===void 0?new h.InputMismatchException(p):new h.InputMismatchException(p,this.nextTokensState,this.nextTokensContext)}singleTokenInsertion(p){let t=p.inputStream.LA(1),v=p.interpreter.atn.states[p.state].transition(0).target,S=p.interpreter.atn;return S.nextTokens(v,r.PredictionContext.fromRuleContext(S,p.context)).contains(t)?(this.reportMissingToken(p),true):false}singleTokenDeletion(p){let t=p.inputStream.LA(2);if(this.getExpectedTokens(p).contains(t)){this.reportUnwantedToken(p),p.consume();let v=p.currentToken;return this.reportMatch(p),v}}getMissingSymbol(p){let t=p.currentToken,y=this.getExpectedTokens(p),v=x.Token.INVALID_TYPE;y.isNil||(v=y.minElement);let S;v===x.Token.EOF?S="<missing EOF>":S="<missing "+p.vocabulary.getDisplayName(v)+">";let N=t,b=p.inputStream.tryLT(-1);return N.type===x.Token.EOF&&b!=null&&(N=b),this.constructToken(p.inputStream.tokenSource,v,S,N)}constructToken(p,t,y,v){let S=p.tokenFactory,N=v.tokenSource,b=N?N.inputStream:void 0;return S.create({source:p,stream:b},t,y,x.Token.DEFAULT_CHANNEL,-1,-1,v.line,v.charPositionInLine)}getExpectedTokens(p){return p.getExpectedTokens()}getTokenErrorDisplay(p){if(!p)return "<no token>";let t=this.getSymbolText(p);return t||(this.getSymbolType(p)===x.Token.EOF?t="<EOF>":t=`<${this.getSymbolType(p)}>`),this.escapeWSAndQuote(t)}getSymbolText(p){return p.text}getSymbolType(p){return p.type}escapeWSAndQuote(p){return p=p.replace(`
2
+ `,"\\n"),p=p.replace("\r","\\r"),p=p.replace(" ","\\t"),"'"+p+"'"}getErrorRecoverySet(p){let t=p.interpreter.atn,y=p.context,v=new s.IntervalSet;for(;y&&y.invokingState>=0;){let N=t.states[y.invokingState].transition(0),b=t.nextTokens(N.followState);v.addAll(b),y=y._parent;}return v.remove(x.Token.EPSILON),v}consumeUntil(p,t){let y=p.inputStream.LA(1);for(;y!==x.Token.EOF&&!t.contains(y);)p.consume(),y=p.inputStream.LA(1);}}d([n.Override],c.prototype,"reset",null),d([m(0,n.NotNull)],c.prototype,"beginErrorCondition",null),d([n.Override],c.prototype,"inErrorRecoveryMode",null),d([m(0,n.NotNull)],c.prototype,"endErrorCondition",null),d([n.Override],c.prototype,"reportMatch",null),d([n.Override],c.prototype,"reportError",null),d([m(0,n.NotNull)],c.prototype,"notifyErrorListeners",null),d([n.Override],c.prototype,"recover",null),d([n.Override],c.prototype,"sync",null),d([m(0,n.NotNull),m(1,n.NotNull)],c.prototype,"reportNoViableAlternative",null),d([m(0,n.NotNull),m(1,n.NotNull)],c.prototype,"reportInputMismatch",null),d([m(0,n.NotNull),m(1,n.NotNull)],c.prototype,"reportFailedPredicate",null),d([m(0,n.NotNull)],c.prototype,"reportUnwantedToken",null),d([m(0,n.NotNull)],c.prototype,"reportMissingToken",null),d([n.Override],c.prototype,"recoverInline",null),d([m(0,n.NotNull)],c.prototype,"singleTokenInsertion",null),d([m(0,n.NotNull)],c.prototype,"singleTokenDeletion",null),d([n.NotNull,m(0,n.NotNull)],c.prototype,"getMissingSymbol",null),d([n.NotNull,m(0,n.NotNull)],c.prototype,"getExpectedTokens",null),d([m(0,n.NotNull)],c.prototype,"getSymbolText",null),d([m(0,n.NotNull)],c.prototype,"getSymbolType",null),d([n.NotNull,m(0,n.NotNull)],c.prototype,"escapeWSAndQuote",null),d([n.NotNull,m(0,n.NotNull)],c.prototype,"getErrorRecoverySet",null),d([m(0,n.NotNull),m(1,n.NotNull)],c.prototype,"consumeUntil",null),l.DefaultErrorStrategy=c;}),"./node_modules/antlr4ts/Dependents.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.Dependents=void 0;(function(d){d[d.SELF=0]="SELF",d[d.PARENTS=1]="PARENTS",d[d.CHILDREN=2]="CHILDREN",d[d.ANCESTORS=3]="ANCESTORS",d[d.DESCENDANTS=4]="DESCENDANTS",d[d.SIBLINGS=5]="SIBLINGS",d[d.PRECEEDING_SIBLINGS=6]="PRECEEDING_SIBLINGS",d[d.FOLLOWING_SIBLINGS=7]="FOLLOWING_SIBLINGS",d[d.PRECEEDING=8]="PRECEEDING",d[d.FOLLOWING=9]="FOLLOWING";})(l.Dependents||(l.Dependents={}));}),"./node_modules/antlr4ts/DiagnosticErrorListener.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c},m=this&&this.__param||function(s,o){return function(r,x){o(r,x,s);}};Object.defineProperty(l,"__esModule",{value:true}),l.DiagnosticErrorListener=void 0;let g=f("./node_modules/antlr4ts/misc/BitSet.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/misc/Interval.js");class h{constructor(o=true){this.exactOnly=o,this.exactOnly=o;}syntaxError(o,r,x,n,c,a){}reportAmbiguity(o,r,x,n,c,a,p){if(this.exactOnly&&!c)return;let t=this.getDecisionDescription(o,r),y=this.getConflictingAlts(a,p),v=o.inputStream.getText(T.Interval.of(x,n)),S=`reportAmbiguity d=${t}: ambigAlts=${y}, input='${v}'`;o.notifyErrorListeners(S);}reportAttemptingFullContext(o,r,x,n,c,a){let t=this.getDecisionDescription(o,r),y=o.inputStream.getText(T.Interval.of(x,n)),v=`reportAttemptingFullContext d=${t}, input='${y}'`;o.notifyErrorListeners(v);}reportContextSensitivity(o,r,x,n,c,a){let t=this.getDecisionDescription(o,r),y=o.inputStream.getText(T.Interval.of(x,n)),v=`reportContextSensitivity d=${t}, input='${y}'`;o.notifyErrorListeners(v);}getDecisionDescription(o,r){let x=r.decision,n=r.atnStartState.ruleIndex,c=o.ruleNames;if(n<0||n>=c.length)return x.toString();let a=c[n];return a?`${x} (${a})`:x.toString()}getConflictingAlts(o,r){if(o!=null)return o;let x=new g.BitSet;for(let n of r)x.set(n.alt);return x}}d([O.Override],h.prototype,"syntaxError",null),d([O.Override,m(0,O.NotNull),m(1,O.NotNull),m(6,O.NotNull)],h.prototype,"reportAmbiguity",null),d([O.Override,m(0,O.NotNull),m(1,O.NotNull),m(5,O.NotNull)],h.prototype,"reportAttemptingFullContext",null),d([O.Override,m(0,O.NotNull),m(1,O.NotNull),m(5,O.NotNull)],h.prototype,"reportContextSensitivity",null),d([m(0,O.NotNull),m(1,O.NotNull)],h.prototype,"getDecisionDescription",null),d([O.NotNull,m(1,O.NotNull)],h.prototype,"getConflictingAlts",null),l.DiagnosticErrorListener=h;}),"./node_modules/antlr4ts/FailedPredicateException.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c},m=this&&this.__param||function(s,o){return function(r,x){o(r,x,s);}};Object.defineProperty(l,"__esModule",{value:true}),l.FailedPredicateException=void 0;let g=f("./node_modules/antlr4ts/RecognitionException.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/atn/PredicateTransition.js"),h=class F0 extends g.RecognitionException{constructor(o,r,x){super(o,o.inputStream,o.context,F0.formatMessage(r,x));let c=o.interpreter.atn.states[o.state].transition(0);c instanceof T.PredicateTransition?(this._ruleIndex=c.ruleIndex,this._predicateIndex=c.predIndex):(this._ruleIndex=0,this._predicateIndex=0),this._predicate=r,super.setOffendingToken(o,o.currentToken);}get ruleIndex(){return this._ruleIndex}get predicateIndex(){return this._predicateIndex}get predicate(){return this._predicate}static formatMessage(o,r){return r||`failed predicate: {${o}}?`}};d([O.NotNull],h,"formatMessage",null),h=d([m(0,O.NotNull)],h),l.FailedPredicateException=h;}),"./node_modules/antlr4ts/InputMismatchException.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.InputMismatchException=void 0;let g=f("./node_modules/antlr4ts/RecognitionException.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=class extends g.RecognitionException{constructor(s,o,r){r===void 0&&(r=s.context),super(s,s.inputStream,r),o!==void 0&&this.setOffendingState(o),this.setOffendingToken(s,s.currentToken);}};T=d([m(0,O.NotNull)],T),l.InputMismatchException=T;}),"./node_modules/antlr4ts/IntStream.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.IntStream=void 0;(function(d){d.EOF=-1,d.UNKNOWN_SOURCE_NAME="<unknown>";})(l.IntStream||(l.IntStream={}));}),"./node_modules/antlr4ts/InterpreterRuleContext.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x};Object.defineProperty(l,"__esModule",{value:true}),l.InterpreterRuleContext=void 0;let m=f("./node_modules/antlr4ts/Decorators.js"),g=f("./node_modules/antlr4ts/ParserRuleContext.js");class O extends g.ParserRuleContext{constructor(h,s,o){o!==void 0?super(s,o):super(),this._ruleIndex=h;}get ruleIndex(){return this._ruleIndex}}d([m.Override],O.prototype,"ruleIndex",null),l.InterpreterRuleContext=O;}),"./node_modules/antlr4ts/Lexer.js":(function(D,l,f){var d=this&&this.__decorate||function(c,a,p,t){var y=arguments.length,v=y<3?a:t===null?t=Object.getOwnPropertyDescriptor(a,p):t,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(c,a,p,t);else for(var N=c.length-1;N>=0;N--)(S=c[N])&&(v=(y<3?S(v):y>3?S(a,p,v):S(a,p))||v);return y>3&&v&&Object.defineProperty(a,p,v),v};Object.defineProperty(l,"__esModule",{value:true}),l.Lexer=void 0;let m=f("./node_modules/antlr4ts/CommonTokenFactory.js"),g=f("./node_modules/antlr4ts/misc/IntegerStack.js"),O=f("./node_modules/antlr4ts/misc/Interval.js"),T=f("./node_modules/antlr4ts/IntStream.js"),h=f("./node_modules/antlr4ts/atn/LexerATNSimulator.js"),s=f("./node_modules/antlr4ts/LexerNoViableAltException.js"),o=f("./node_modules/antlr4ts/Decorators.js"),r=f("./node_modules/antlr4ts/Recognizer.js"),x=f("./node_modules/antlr4ts/Token.js");class n extends r.Recognizer{constructor(a){super(),this._factory=m.CommonTokenFactory.DEFAULT,this._tokenStartCharIndex=-1,this._tokenStartLine=0,this._tokenStartCharPositionInLine=0,this._hitEOF=false,this._channel=0,this._type=0,this._modeStack=new g.IntegerStack,this._mode=n.DEFAULT_MODE,this._input=a,this._tokenFactorySourcePair={source:this,stream:a};}static get DEFAULT_TOKEN_CHANNEL(){return x.Token.DEFAULT_CHANNEL}static get HIDDEN(){return x.Token.HIDDEN_CHANNEL}reset(a){(a===void 0||a)&&this._input.seek(0),this._token=void 0,this._type=x.Token.INVALID_TYPE,this._channel=x.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartCharPositionInLine=-1,this._tokenStartLine=-1,this._text=void 0,this._hitEOF=false,this._mode=n.DEFAULT_MODE,this._modeStack.clear(),this.interpreter.reset();}nextToken(){if(this._input==null)throw new Error("nextToken requires a non-null input stream.");let a=this._input.mark();try{t:for(;;){if(this._hitEOF)return this.emitEOF();this._token=void 0,this._channel=x.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=x.Token.INVALID_TYPE;let p;try{p=this.interpreter.match(this._input,this._mode);}catch(t){if(t instanceof s.LexerNoViableAltException)this.notifyListeners(t),this.recover(t),p=n.SKIP;else throw t}if(this._input.LA(1)===T.IntStream.EOF&&(this._hitEOF=!0),this._type===x.Token.INVALID_TYPE&&(this._type=p),this._type===n.SKIP)continue t}while(this._type===n.MORE);return this._token==null?this.emit():this._token}}finally{this._input.release(a);}}skip(){this._type=n.SKIP;}more(){this._type=n.MORE;}mode(a){this._mode=a;}pushMode(a){h.LexerATNSimulator.debug&&console.log("pushMode "+a),this._modeStack.push(this._mode),this.mode(a);}popMode(){if(this._modeStack.isEmpty)throw new Error("EmptyStackException");return h.LexerATNSimulator.debug&&console.log("popMode back to "+this._modeStack.peek()),this.mode(this._modeStack.pop()),this._mode}get tokenFactory(){return this._factory}set tokenFactory(a){this._factory=a;}get inputStream(){return this._input}set inputStream(a){this.reset(false),this._input=a,this._tokenFactorySourcePair={source:this,stream:this._input};}get sourceName(){return this._input.sourceName}emit(a){return a||(a=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.charIndex-1,this._tokenStartLine,this._tokenStartCharPositionInLine)),this._token=a,a}emitEOF(){let a=this.charPositionInLine,p=this.line,t=this._factory.create(this._tokenFactorySourcePair,x.Token.EOF,void 0,x.Token.DEFAULT_CHANNEL,this._input.index,this._input.index-1,p,a);return this.emit(t),t}get line(){return this.interpreter.line}set line(a){this.interpreter.line=a;}get charPositionInLine(){return this.interpreter.charPositionInLine}set charPositionInLine(a){this.interpreter.charPositionInLine=a;}get charIndex(){return this._input.index}get text(){return this._text!=null?this._text:this.interpreter.getText(this._input)}set text(a){this._text=a;}get token(){return this._token}set token(a){this._token=a;}set type(a){this._type=a;}get type(){return this._type}set channel(a){this._channel=a;}get channel(){return this._channel}getAllTokens(){let a=[],p=this.nextToken();for(;p.type!==x.Token.EOF;)a.push(p),p=this.nextToken();return a}notifyListeners(a){let p=this._input.getText(O.Interval.of(this._tokenStartCharIndex,this._input.index)),t="token recognition error at: '"+this.getErrorDisplay(p)+"'",y=this.getErrorListenerDispatch();y.syntaxError&&y.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,t,a);}getErrorDisplay(a){if(typeof a=="number"){switch(a){case x.Token.EOF:return "<EOF>";case 10:return "\\n";case 9:return "\\t";case 13:return "\\r"}return String.fromCharCode(a)}return a.replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}getCharErrorDisplay(a){return "'"+this.getErrorDisplay(a)+"'"}recover(a){a instanceof s.LexerNoViableAltException?this._input.LA(1)!==T.IntStream.EOF&&this.interpreter.consume(this._input):this._input.consume();}}n.DEFAULT_MODE=0,n.MORE=-2,n.SKIP=-3,n.MIN_CHAR_VALUE=0,n.MAX_CHAR_VALUE=1114111,d([o.Override],n.prototype,"nextToken",null),d([o.Override],n.prototype,"tokenFactory",null),d([o.Override],n.prototype,"inputStream",null),d([o.Override],n.prototype,"sourceName",null),d([o.Override],n.prototype,"line",null),d([o.Override],n.prototype,"charPositionInLine",null),l.Lexer=n;}),"./node_modules/antlr4ts/LexerInterpreter.js":(function(D,l,f){var d=this&&this.__decorate||function(o,r,x,n){var c=arguments.length,a=c<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,x):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,r,x,n);else for(var t=o.length-1;t>=0;t--)(p=o[t])&&(a=(c<3?p(a):c>3?p(r,x,a):p(r,x))||a);return c>3&&a&&Object.defineProperty(r,x,a),a},m=this&&this.__param||function(o,r){return function(x,n){r(x,n,o);}};Object.defineProperty(l,"__esModule",{value:true}),l.LexerInterpreter=void 0;let g=f("./node_modules/antlr4ts/Lexer.js"),O=f("./node_modules/antlr4ts/atn/LexerATNSimulator.js"),T=f("./node_modules/antlr4ts/Decorators.js"),h=f("./node_modules/antlr4ts/Decorators.js"),s=class extends g.Lexer{constructor(r,x,n,c,a,p,t){if(super(t),p.grammarType!==0)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this._grammarFileName=r,this._atn=p,this._ruleNames=n.slice(0),this._channelNames=c.slice(0),this._modeNames=a.slice(0),this._vocabulary=x,this._interp=new O.LexerATNSimulator(p,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}};d([T.NotNull],s.prototype,"_vocabulary",void 0),d([h.Override],s.prototype,"atn",null),d([h.Override],s.prototype,"grammarFileName",null),d([h.Override],s.prototype,"ruleNames",null),d([h.Override],s.prototype,"channelNames",null),d([h.Override],s.prototype,"modeNames",null),d([h.Override],s.prototype,"vocabulary",null),s=d([m(1,T.NotNull)],s),l.LexerInterpreter=s;}),"./node_modules/antlr4ts/LexerNoViableAltException.js":(function(D,l,f){var d=this&&this.__decorate||function(o,r,x,n){var c=arguments.length,a=c<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,x):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,r,x,n);else for(var t=o.length-1;t>=0;t--)(p=o[t])&&(a=(c<3?p(a):c>3?p(r,x,a):p(r,x))||a);return c>3&&a&&Object.defineProperty(r,x,a),a},m=this&&this.__param||function(o,r){return function(x,n){r(x,n,o);}};Object.defineProperty(l,"__esModule",{value:true}),l.LexerNoViableAltException=void 0;let g=f("./node_modules/antlr4ts/RecognitionException.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/misc/Interval.js"),h=f("./node_modules/antlr4ts/misc/Utils.js"),s=class extends g.RecognitionException{constructor(r,x,n,c){super(r,x),this._startIndex=n,this._deadEndConfigs=c;}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let r="";return this._startIndex>=0&&this._startIndex<this.inputStream.size&&(r=this.inputStream.getText(T.Interval.of(this._startIndex,this._startIndex)),r=h.escapeWhitespace(r,false)),`LexerNoViableAltException('${r}')`}};d([O.Override],s.prototype,"inputStream",null),d([O.Override],s.prototype,"toString",null),s=d([m(1,O.NotNull)],s),l.LexerNoViableAltException=s;}),"./node_modules/antlr4ts/ListTokenSource.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c},m=this&&this.__param||function(s,o){return function(r,x){o(r,x,s);}};Object.defineProperty(l,"__esModule",{value:true}),l.ListTokenSource=void 0;let g=f("./node_modules/antlr4ts/CommonTokenFactory.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/Token.js"),h=class{constructor(o,r){if(this.i=0,this._factory=g.CommonTokenFactory.DEFAULT,o==null)throw new Error("tokens cannot be null");this.tokens=o,this._sourceName=r;}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 o=this.tokens[this.tokens.length-1],r=o.text;if(r!=null){let x=r.lastIndexOf(`
3
+ `);if(x>=0)return r.length-x-1}return o.charPositionInLine+o.stopIndex-o.startIndex+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(this.eofToken==null){let r=-1;if(this.tokens.length>0){let n=this.tokens[this.tokens.length-1].stopIndex;n!==-1&&(r=n+1);}let x=Math.max(-1,r-1);this.eofToken=this._factory.create({source:this,stream:this.inputStream},T.Token.EOF,"EOF",T.Token.DEFAULT_CHANNEL,r,x,this.line,this.charPositionInLine);}return this.eofToken}let o=this.tokens[this.i];return this.i===this.tokens.length-1&&o.type===T.Token.EOF&&(this.eofToken=o),this.i++,o}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 o=this.tokens[this.tokens.length-1],r=o.line,x=o.text;if(x!=null)for(let n=0;n<x.length;n++)x.charAt(n)===`
4
+ `&&r++;return r}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 o=this.inputStream;return o!=null?o.sourceName:"List"}set tokenFactory(o){this._factory=o;}get tokenFactory(){return this._factory}};d([O.Override],h.prototype,"charPositionInLine",null),d([O.Override],h.prototype,"nextToken",null),d([O.Override],h.prototype,"line",null),d([O.Override],h.prototype,"inputStream",null),d([O.Override],h.prototype,"sourceName",null),d([O.Override,O.NotNull,m(0,O.NotNull)],h.prototype,"tokenFactory",null),h=d([m(0,O.NotNull)],h),l.ListTokenSource=h;}),"./node_modules/antlr4ts/NoViableAltException.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.NoViableAltException=void 0;let m=f("./node_modules/antlr4ts/Parser.js"),g=f("./node_modules/antlr4ts/RecognitionException.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T extends g.RecognitionException{constructor(s,o,r,x,n,c){s instanceof m.Parser&&(o===void 0&&(o=s.inputStream),r===void 0&&(r=s.currentToken),x===void 0&&(x=s.currentToken),c===void 0&&(c=s.context)),super(s,o,c),this._deadEndConfigs=n,this._startToken=r,this.setOffendingToken(s,x);}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}}d([O.NotNull],T.prototype,"_startToken",void 0),l.NoViableAltException=T;}),"./node_modules/antlr4ts/Parser.js":(function(D,l,f){var d=f("./node_modules/process/browser.js");var m=this&&this.__decorate||function(U,A,w,F){var M=arguments.length,W=M<3?A:F===null?F=Object.getOwnPropertyDescriptor(A,w):F,L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")W=Reflect.decorate(U,A,w,F);else for(var j=U.length-1;j>=0;j--)(L=U[j])&&(W=(M<3?L(W):M>3?L(A,w,W):L(A,w))||W);return M>3&&W&&Object.defineProperty(A,w,W),W},g=this&&this.__param||function(U,A){return function(w,F){A(w,F,U);}},O=this&&this.__awaiter||function(U,A,w,F){function M(W){return W instanceof w?W:new w(function(L){L(W);})}return new(w||(w=Promise))(function(W,L){function j(ut){try{J(F.next(ut));}catch(ft){L(ft);}}function k(ut){try{J(F.throw(ut));}catch(ft){L(ft);}}function J(ut){ut.done?W(ut.value):M(ut.value).then(j,k);}J((F=F.apply(U,A||[])).next());})};Object.defineProperty(l,"__esModule",{value:true}),l.Parser=void 0;let T=f("./node_modules/antlr4ts/misc/Utils.js"),h=f("./node_modules/antlr4ts/atn/ATNDeserializationOptions.js"),s=f("./node_modules/antlr4ts/atn/ATNDeserializer.js"),o=f("./node_modules/antlr4ts/DefaultErrorStrategy.js"),r=f("./node_modules/antlr4ts/tree/ErrorNode.js"),x=f("./node_modules/antlr4ts/misc/IntegerStack.js"),n=f("./node_modules/antlr4ts/Lexer.js"),c=f("./node_modules/antlr4ts/Decorators.js"),a=f("./node_modules/antlr4ts/atn/ParseInfo.js"),p=f("./node_modules/antlr4ts/atn/ParserATNSimulator.js"),t=f("./node_modules/antlr4ts/ProxyParserErrorListener.js"),y=f("./node_modules/antlr4ts/Recognizer.js"),v=f("./node_modules/antlr4ts/tree/TerminalNode.js"),S=f("./node_modules/antlr4ts/Token.js");class N{constructor(A,w){this.ruleNames=A,this.tokenStream=w;}enterEveryRule(A){console.log("enter "+this.ruleNames[A.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text);}exitEveryRule(A){console.log("exit "+this.ruleNames[A.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text);}visitErrorNode(A){}visitTerminal(A){let w=A.parent.ruleContext,F=A.symbol;console.log("consume "+F+" rule "+this.ruleNames[w.ruleIndex]);}}m([c.Override],N.prototype,"enterEveryRule",null),m([c.Override],N.prototype,"exitEveryRule",null),m([c.Override],N.prototype,"visitErrorNode",null),m([c.Override],N.prototype,"visitTerminal",null);class b extends y.Recognizer{constructor(A){super(),this._errHandler=new o.DefaultErrorStrategy,this._precedenceStack=new x.IntegerStack,this._buildParseTrees=true,this._parseListeners=[],this._syntaxErrors=0,this.matchedEOF=false,this._precedenceStack.push(0),this.inputStream=A;}reset(A){(A===void 0||A)&&this.inputStream.seek(0),this._errHandler.reset(this),this._ctx=void 0,this._syntaxErrors=0,this.matchedEOF=false,this.isTrace=false,this._precedenceStack.clear(),this._precedenceStack.push(0);let w=this.interpreter;w?.reset();}match(A){let w=this.currentToken;return w.type===A?(A===S.Token.EOF&&(this.matchedEOF=true),this._errHandler.reportMatch(this),this.consume()):(w=this._errHandler.recoverInline(this),this._buildParseTrees&&w.tokenIndex===-1&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,w))),w}matchWildcard(){let A=this.currentToken;return A.type>0?(this._errHandler.reportMatch(this),this.consume()):(A=this._errHandler.recoverInline(this),this._buildParseTrees&&A.tokenIndex===-1&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,A))),A}set buildParseTree(A){this._buildParseTrees=A;}get buildParseTree(){return this._buildParseTrees}getParseListeners(){return this._parseListeners}addParseListener(A){if(A==null)throw new TypeError("listener cannot be null");this._parseListeners.push(A);}removeParseListener(A){let w=this._parseListeners.findIndex(F=>F===A);w!==-1&&this._parseListeners.splice(w,1);}removeParseListeners(){this._parseListeners.length=0;}triggerEnterRuleEvent(){for(let A of this._parseListeners)A.enterEveryRule&&A.enterEveryRule(this._ctx),this._ctx.enterRule(A);}triggerExitRuleEvent(){for(let A=this._parseListeners.length-1;A>=0;A--){let w=this._parseListeners[A];this._ctx.exitRule(w),w.exitEveryRule&&w.exitEveryRule(this._ctx);}}get numberOfSyntaxErrors(){return this._syntaxErrors}get tokenFactory(){return this._input.tokenSource.tokenFactory}getATNWithBypassAlts(){let A=this.serializedATN;if(A==null)throw new Error("The current parser does not support an ATN with bypass alternatives.");let w=b.bypassAltsAtnCache.get(A);if(w==null){let F=new h.ATNDeserializationOptions;F.isGenerateRuleBypassTransitions=true,w=new s.ATNDeserializer(F).deserialize(T.toCharArray(A)),b.bypassAltsAtnCache.set(A,w);}return w}compileParseTreePattern(A,w,F){return O(this,void 0,void 0,function*(){if(!F){if(this.inputStream){let j=this.inputStream.tokenSource;j instanceof n.Lexer&&(F=j);}if(!F)throw new Error("Parser can't discover a lexer to use")}let M=F,W=yield Promise.resolve().then(()=>f("./node_modules/antlr4ts/tree/pattern/ParseTreePatternMatcher.js"));return new W.ParseTreePatternMatcher(M,this).compile(A,w)})}get errorHandler(){return this._errHandler}set errorHandler(A){this._errHandler=A;}get inputStream(){return this._input}set inputStream(A){this.reset(false),this._input=A;}get currentToken(){return this._input.LT(1)}notifyErrorListeners(A,w,F){w===void 0?w=this.currentToken:w===null&&(w=void 0),this._syntaxErrors++;let M=-1,W=-1;w!=null&&(M=w.line,W=w.charPositionInLine);let L=this.getErrorListenerDispatch();L.syntaxError&&L.syntaxError(this,w,M,W,A,F);}consume(){let A=this.currentToken;A.type!==b.EOF&&this.inputStream.consume();let w=this._parseListeners.length!==0;if(this._buildParseTrees||w)if(this._errHandler.inErrorRecoveryMode(this)){let F=this._ctx.addErrorNode(this.createErrorNode(this._ctx,A));if(w)for(let M of this._parseListeners)M.visitErrorNode&&M.visitErrorNode(F);}else {let F=this.createTerminalNode(this._ctx,A);if(this._ctx.addChild(F),w)for(let M of this._parseListeners)M.visitTerminal&&M.visitTerminal(F);}return A}createTerminalNode(A,w){return new v.TerminalNode(w)}createErrorNode(A,w){return new r.ErrorNode(w)}addContextToParseTree(){let A=this._ctx._parent;A?.addChild(this._ctx);}enterRule(A,w,F){this.state=w,this._ctx=A,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent();}enterLeftFactoredRule(A,w,F){if(this.state=w,this._buildParseTrees){let M=this._ctx.getChild(this._ctx.childCount-1);this._ctx.removeLastChild(),M._parent=A,A.addChild(M);}this._ctx=A,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(A,w){if(A.altNumber=w,this._buildParseTrees&&this._ctx!==A){let F=this._ctx._parent;F!=null&&(F.removeLastChild(),F.addChild(A));}this._ctx=A;}get precedence(){return this._precedenceStack.isEmpty?-1:this._precedenceStack.peek()}enterRecursionRule(A,w,F,M){this.state=w,this._precedenceStack.push(M),this._ctx=A,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent();}pushNewRecursionContext(A,w,F){let M=this._ctx;M._parent=A,M.invokingState=w,M._stop=this._input.tryLT(-1),this._ctx=A,this._ctx._start=M._start,this._buildParseTrees&&this._ctx.addChild(M),this.triggerEnterRuleEvent();}unrollRecursionContexts(A){this._precedenceStack.pop(),this._ctx._stop=this._input.tryLT(-1);let w=this._ctx;if(this._parseListeners.length>0)for(;this._ctx!==A;)this.triggerExitRuleEvent(),this._ctx=this._ctx._parent;else this._ctx=A;w._parent=A,this._buildParseTrees&&A!=null&&A.addChild(w);}getInvokingContext(A){let w=this._ctx;for(;w&&w.ruleIndex!==A;)w=w._parent;return w}get context(){return this._ctx}set context(A){this._ctx=A;}precpred(A,w){return w>=this._precedenceStack.peek()}getErrorListenerDispatch(){return new t.ProxyParserErrorListener(this.getErrorListeners())}inContext(A){return false}isExpectedToken(A){let w=this.interpreter.atn,F=this._ctx,M=w.states[this.state],W=w.nextTokens(M);if(W.contains(A))return true;if(!W.contains(S.Token.EPSILON))return false;for(;F!=null&&F.invokingState>=0&&W.contains(S.Token.EPSILON);){let j=w.states[F.invokingState].transition(0);if(W=w.nextTokens(j.followState),W.contains(A))return true;F=F._parent;}return !!(W.contains(S.Token.EPSILON)&&A===S.Token.EOF)}get isMatchedEOF(){return this.matchedEOF}getExpectedTokens(){return this.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let A=this.interpreter.atn,w=A.states[this.state];return A.nextTokens(w)}getRuleIndex(A){let w=this.getRuleIndexMap().get(A);return w??-1}get ruleContext(){return this._ctx}getRuleInvocationStack(A=this._ctx){let w=A,F=this.ruleNames,M=[];for(;w!=null;){let W=w.ruleIndex;W<0?M.push("n/a"):M.push(F[W]),w=w._parent;}return M}getDFAStrings(){let A=[];for(let w of this._interp.atn.decisionToDFA)A.push(w.toString(this.vocabulary,this.ruleNames));return A}dumpDFA(){let A=false;for(let w of this._interp.atn.decisionToDFA)w.isEmpty||(A&&console.log(),console.log("Decision "+w.decision+":"),d.stdout.write(w.toString(this.vocabulary,this.ruleNames)),A=true);}get sourceName(){return this._input.sourceName}get parseInfo(){return Promise.resolve().then(()=>f("./node_modules/antlr4ts/atn/ProfilingATNSimulator.js")).then(A=>{let w=this.interpreter;if(w instanceof A.ProfilingATNSimulator)return new a.ParseInfo(w)})}setProfile(A){return O(this,void 0,void 0,function*(){let w=yield Promise.resolve().then(()=>f("./node_modules/antlr4ts/atn/ProfilingATNSimulator.js")),F=this.interpreter;A?F instanceof w.ProfilingATNSimulator||(this.interpreter=new w.ProfilingATNSimulator(this)):F instanceof w.ProfilingATNSimulator&&(this.interpreter=new p.ParserATNSimulator(this.atn,this)),this.interpreter.setPredictionMode(F.getPredictionMode());})}set isTrace(A){A?(this._tracer?this.removeParseListener(this._tracer):this._tracer=new N(this.ruleNames,this._input),this.addParseListener(this._tracer)):this._tracer&&(this.removeParseListener(this._tracer),this._tracer=void 0);}get isTrace(){return this._tracer!=null}}b.bypassAltsAtnCache=new Map,m([c.NotNull],b.prototype,"_errHandler",void 0),m([c.NotNull],b.prototype,"match",null),m([c.NotNull],b.prototype,"matchWildcard",null),m([c.NotNull],b.prototype,"getParseListeners",null),m([g(0,c.NotNull)],b.prototype,"addParseListener",null),m([c.NotNull],b.prototype,"getATNWithBypassAlts",null),m([c.NotNull,g(0,c.NotNull)],b.prototype,"errorHandler",null),m([c.Override],b.prototype,"inputStream",null),m([c.NotNull],b.prototype,"currentToken",null),m([g(0,c.NotNull)],b.prototype,"enterRule",null),m([c.Override,g(0,c.Nullable)],b.prototype,"precpred",null),m([c.Override],b.prototype,"getErrorListenerDispatch",null),m([c.NotNull],b.prototype,"getExpectedTokens",null),m([c.NotNull],b.prototype,"getExpectedTokensWithinCurrentRule",null),m([c.Override],b.prototype,"parseInfo",null),l.Parser=b;}),"./node_modules/antlr4ts/ParserErrorListener.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true});}),"./node_modules/antlr4ts/ParserInterpreter.js":(function(D,l,f){var d=this&&this.__decorate||function(S,N,b,U){var A=arguments.length,w=A<3?N:U===null?U=Object.getOwnPropertyDescriptor(N,b):U,F;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(S,N,b,U);else for(var M=S.length-1;M>=0;M--)(F=S[M])&&(w=(A<3?F(w):A>3?F(N,b,w):F(N,b))||w);return A>3&&w&&Object.defineProperty(N,b,w),w},m=this&&this.__param||function(S,N){return function(b,U){N(b,U,S);}};Object.defineProperty(l,"__esModule",{value:true}),l.ParserInterpreter=void 0;let g=f("./node_modules/antlr4ts/atn/ATNState.js"),O=f("./node_modules/antlr4ts/atn/ATNStateType.js"),T=f("./node_modules/antlr4ts/misc/BitSet.js"),h=f("./node_modules/antlr4ts/FailedPredicateException.js"),s=f("./node_modules/antlr4ts/InputMismatchException.js"),o=f("./node_modules/antlr4ts/InterpreterRuleContext.js"),r=f("./node_modules/antlr4ts/atn/LoopEndState.js"),x=f("./node_modules/antlr4ts/Decorators.js"),n=f("./node_modules/antlr4ts/Decorators.js"),c=f("./node_modules/antlr4ts/Parser.js"),a=f("./node_modules/antlr4ts/atn/ParserATNSimulator.js"),p=f("./node_modules/antlr4ts/RecognitionException.js"),t=f("./node_modules/antlr4ts/atn/StarLoopEntryState.js"),y=f("./node_modules/antlr4ts/Token.js"),v=class so extends c.Parser{constructor(N,b,U,A,w){if(super(N instanceof so?N.inputStream:w),this._parentContextStack=[],this.overrideDecision=-1,this.overrideDecisionInputIndex=-1,this.overrideDecisionAlt=-1,this.overrideDecisionReached=false,this._overrideDecisionRoot=void 0,N instanceof so){let F=N;this._grammarFileName=F._grammarFileName,this._atn=F._atn,this.pushRecursionContextStates=F.pushRecursionContextStates,this._ruleNames=F._ruleNames,this._vocabulary=F._vocabulary,this.interpreter=new a.ParserATNSimulator(this._atn,this);}else {b=b,U=U,A=A,this._grammarFileName=N,this._atn=A,this._ruleNames=U.slice(0),this._vocabulary=b,this.pushRecursionContextStates=new T.BitSet(A.states.length);for(let F of A.states)F instanceof t.StarLoopEntryState&&F.precedenceRuleDecision&&this.pushRecursionContextStates.set(F.stateNumber);this.interpreter=new a.ParserATNSimulator(A,this);}}reset(N){N===void 0?super.reset():super.reset(N),this.overrideDecisionReached=false,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(N){let b=this._atn.ruleToStartState[N];for(this._rootContext=this.createInterpreterRuleContext(void 0,g.ATNState.INVALID_STATE_NUMBER,N),b.isPrecedenceRule?this.enterRecursionRule(this._rootContext,b.stateNumber,N,0):this.enterRule(this._rootContext,b.stateNumber,N);;){let U=this.atnState;switch(U.stateType){case O.ATNStateType.RULE_STOP:if(this._ctx.isEmpty)if(b.isPrecedenceRule){let A=this._ctx,w=this._parentContextStack.pop();return this.unrollRecursionContexts(w[0]),A}else return this.exitRule(),this._rootContext;this.visitRuleStopState(U);break;default:try{this.visitState(U);}catch(A){if(A instanceof p.RecognitionException)this.state=this._atn.ruleToStopState[U.ruleIndex].stateNumber,this.context.exception=A,this.errorHandler.reportError(this,A),this.recover(A);else throw A}break}}}enterRecursionRule(N,b,U,A){this._parentContextStack.push([this._ctx,N.invokingState]),super.enterRecursionRule(N,b,U,A);}get atnState(){return this._atn.states[this.state]}visitState(N){let b=1;N.numberOfTransitions>1&&(b=this.visitDecisionState(N));let U=N.transition(b-1);switch(U.serializationType){case 1:if(this.pushRecursionContextStates.get(N.stateNumber)&&!(U.target instanceof r.LoopEndState)){let L=this._parentContextStack[this._parentContextStack.length-1],j=this.createInterpreterRuleContext(L[0],L[1],this._ctx.ruleIndex);this.pushNewRecursionContext(j,this._atn.ruleToStartState[N.ruleIndex].stateNumber,this._ctx.ruleIndex);}break;case 5:this.match(U._label);break;case 2:case 7:case 8:U.matches(this._input.LA(1),y.Token.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case 9:this.matchWildcard();break;case 3:let A=U.target,w=A.ruleIndex,F=this.createInterpreterRuleContext(this._ctx,N.stateNumber,w);A.isPrecedenceRule?this.enterRecursionRule(F,A.stateNumber,w,U.precedence):this.enterRule(F,U.target.stateNumber,w);break;case 4:let M=U;if(!this.sempred(this._ctx,M.ruleIndex,M.predIndex))throw new h.FailedPredicateException(this);break;case 6:let W=U;this.action(this._ctx,W.ruleIndex,W.actionIndex);break;case 10:if(!this.precpred(this._ctx,U.precedence)){let L=U.precedence;throw new h.FailedPredicateException(this,`precpred(_ctx, ${L})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=U.target.stateNumber;}visitDecisionState(N){let b;this.errorHandler.sync(this);let U=N.decision;return U===this.overrideDecision&&this._input.index===this.overrideDecisionInputIndex&&!this.overrideDecisionReached?(b=this.overrideDecisionAlt,this.overrideDecisionReached=true):b=this.interpreter.adaptivePredict(this._input,U,this._ctx),b}createInterpreterRuleContext(N,b,U){return new o.InterpreterRuleContext(U,N,b)}visitRuleStopState(N){if(this._atn.ruleToStartState[N.ruleIndex].isPrecedenceRule){let A=this._parentContextStack.pop();this.unrollRecursionContexts(A[0]),this.state=A[1];}else this.exitRule();let U=this._atn.states[this.state].transition(0);this.state=U.followState.stateNumber;}addDecisionOverride(N,b,U){this.overrideDecision=N,this.overrideDecisionInputIndex=b,this.overrideDecisionAlt=U;}get overrideDecisionRoot(){return this._overrideDecisionRoot}recover(N){let b=this._input.index;if(this.errorHandler.recover(this,N),this._input.index===b){let U=N.getOffendingToken();if(!U)throw new Error("Expected exception to have an offending token");let A=U.tokenSource,w=A!==void 0?A.inputStream:void 0,F={source:A,stream:w};if(N instanceof s.InputMismatchException){let M=N.expectedTokens;if(M===void 0)throw new Error("Expected the exception to provide expected tokens");let W=y.Token.INVALID_TYPE;M.isNil||(W=M.minElement);let L=this.tokenFactory.create(F,W,U.text,y.Token.DEFAULT_CHANNEL,-1,-1,U.line,U.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,L));}else {U.tokenSource;let W=this.tokenFactory.create(F,y.Token.INVALID_TYPE,U.text,y.Token.DEFAULT_CHANNEL,-1,-1,U.line,U.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,W));}}}recoverInline(){return this._errHandler.recoverInline(this)}get rootContext(){return this._rootContext}};d([x.NotNull],v.prototype,"_vocabulary",void 0),d([n.Override],v.prototype,"reset",null),d([n.Override],v.prototype,"atn",null),d([n.Override],v.prototype,"vocabulary",null),d([n.Override],v.prototype,"ruleNames",null),d([n.Override],v.prototype,"grammarFileName",null),d([n.Override],v.prototype,"enterRecursionRule",null),v=d([m(1,x.NotNull)],v),l.ParserInterpreter=v;}),"./node_modules/antlr4ts/ParserRuleContext.js":(function(D,l,f){var d=this&&this.__decorate||function(o,r,x,n){var c=arguments.length,a=c<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,x):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,r,x,n);else for(var t=o.length-1;t>=0;t--)(p=o[t])&&(a=(c<3?p(a):c>3?p(r,x,a):p(r,x))||a);return c>3&&a&&Object.defineProperty(r,x,a),a};Object.defineProperty(l,"__esModule",{value:true}),l.ParserRuleContext=void 0;let m=f("./node_modules/antlr4ts/tree/ErrorNode.js"),g=f("./node_modules/antlr4ts/misc/Interval.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/RuleContext.js"),h=f("./node_modules/antlr4ts/tree/TerminalNode.js");class s extends T.RuleContext{constructor(r,x){x==null?super():super(r,x);}static emptyContext(){return s.EMPTY}copyFrom(r){if(this._parent=r._parent,this.invokingState=r.invokingState,this._start=r._start,this._stop=r._stop,r.children){this.children=[];for(let x of r.children)x instanceof m.ErrorNode&&this.addChild(x);}}enterRule(r){}exitRule(r){}addAnyChild(r){return this.children?this.children.push(r):this.children=[r],r}addChild(r){if(r instanceof h.TerminalNode){r.setParent(this),this.addAnyChild(r);return}else if(r instanceof T.RuleContext){this.addAnyChild(r);return}else return r=new h.TerminalNode(r),this.addAnyChild(r),r.setParent(this),r}addErrorNode(r){if(r instanceof m.ErrorNode){let x=r;return x.setParent(this),this.addAnyChild(x)}else {let x=r,n=new m.ErrorNode(x);return this.addAnyChild(n),n.setParent(this),n}}removeLastChild(){this.children&&this.children.pop();}get parent(){let r=super.parent;if(r===void 0||r instanceof s)return r;throw new TypeError("Invalid parent type for ParserRuleContext")}getChild(r,x){if(!this.children||r<0||r>=this.children.length)throw new RangeError("index parameter must be between >= 0 and <= number of children.");if(x==null)return this.children[r];let n=this.tryGetChild(r,x);if(n===void 0)throw new Error("The specified node does not exist");return n}tryGetChild(r,x){if(!this.children||r<0||r>=this.children.length)return;let n=-1;for(let c of this.children)if(c instanceof x&&(n++,n===r))return c}getToken(r,x){let n=this.tryGetToken(r,x);if(n===void 0)throw new Error("The specified token does not exist");return n}tryGetToken(r,x){if(!this.children||x<0||x>=this.children.length)return;let n=-1;for(let c of this.children)if(c instanceof h.TerminalNode&&c.symbol.type===r&&(n++,n===x))return c}getTokens(r){let x=[];if(!this.children)return x;for(let n of this.children)n instanceof h.TerminalNode&&n.symbol.type===r&&x.push(n);return x}get ruleContext(){return this}getRuleContext(r,x){return this.getChild(r,x)}tryGetRuleContext(r,x){return this.tryGetChild(r,x)}getRuleContexts(r){let x=[];if(!this.children)return x;for(let n of this.children)n instanceof r&&x.push(n);return x}get childCount(){return this.children?this.children.length:0}get sourceInterval(){return this._start?!this._stop||this._stop.tokenIndex<this._start.tokenIndex?g.Interval.of(this._start.tokenIndex,this._start.tokenIndex-1):g.Interval.of(this._start.tokenIndex,this._stop.tokenIndex):g.Interval.INVALID}get start(){return this._start}get stop(){return this._stop}toInfoString(r){return "ParserRuleContext"+r.getRuleInvocationStack(this).reverse()+"{start="+this._start+", stop="+this._stop+"}"}}s.EMPTY=new s,d([O.Override],s.prototype,"parent",null),d([O.Override],s.prototype,"childCount",null),d([O.Override],s.prototype,"sourceInterval",null),l.ParserRuleContext=s;}),"./node_modules/antlr4ts/ProxyErrorListener.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x},m=this&&this.__param||function(T,h){return function(s,o){h(s,o,T);}};Object.defineProperty(l,"__esModule",{value:true}),l.ProxyErrorListener=void 0;let g=f("./node_modules/antlr4ts/Decorators.js");class O{constructor(h){if(this.delegates=h,!h)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(h,s,o,r,x,n){this.delegates.forEach(c=>{c.syntaxError&&c.syntaxError(h,s,o,r,x,n);});}}d([g.Override,m(0,g.NotNull),m(4,g.NotNull)],O.prototype,"syntaxError",null),l.ProxyErrorListener=O;}),"./node_modules/antlr4ts/ProxyParserErrorListener.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x};Object.defineProperty(l,"__esModule",{value:true}),l.ProxyParserErrorListener=void 0;let m=f("./node_modules/antlr4ts/ProxyErrorListener.js"),g=f("./node_modules/antlr4ts/Decorators.js");class O extends m.ProxyErrorListener{constructor(h){super(h);}reportAmbiguity(h,s,o,r,x,n,c){this.getDelegates().forEach(a=>{a.reportAmbiguity&&a.reportAmbiguity(h,s,o,r,x,n,c);});}reportAttemptingFullContext(h,s,o,r,x,n){this.getDelegates().forEach(c=>{c.reportAttemptingFullContext&&c.reportAttemptingFullContext(h,s,o,r,x,n);});}reportContextSensitivity(h,s,o,r,x,n){this.getDelegates().forEach(c=>{c.reportContextSensitivity&&c.reportContextSensitivity(h,s,o,r,x,n);});}}d([g.Override],O.prototype,"reportAmbiguity",null),d([g.Override],O.prototype,"reportAttemptingFullContext",null),d([g.Override],O.prototype,"reportContextSensitivity",null),l.ProxyParserErrorListener=O;}),"./node_modules/antlr4ts/RecognitionException.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.RecognitionException=void 0;class f extends Error{constructor(m,g,O,T){super(T),this._offendingState=-1,this._recognizer=m,this.input=g,this.ctx=O,m&&(this._offendingState=m.state);}get offendingState(){return this._offendingState}setOffendingState(m){this._offendingState=m;}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(m){if(!(m&&m!==this._recognizer))return this.offendingToken}setOffendingToken(m,g){m===this._recognizer&&(this.offendingToken=g);}get recognizer(){return this._recognizer}}l.RecognitionException=f;}),"./node_modules/antlr4ts/Recognizer.js":(function(D,l,f){var d=this&&this.__decorate||function(r,x,n,c){var a=arguments.length,p=a<3?x:c===null?c=Object.getOwnPropertyDescriptor(x,n):c,t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(r,x,n,c);else for(var y=r.length-1;y>=0;y--)(t=r[y])&&(p=(a<3?t(p):a>3?t(x,n,p):t(x,n))||p);return a>3&&p&&Object.defineProperty(x,n,p),p},m=this&&this.__param||function(r,x){return function(n,c){x(n,c,r);}};Object.defineProperty(l,"__esModule",{value:true}),l.Recognizer=void 0;let g=f("./node_modules/antlr4ts/ConsoleErrorListener.js"),O=f("./node_modules/antlr4ts/ProxyErrorListener.js"),T=f("./node_modules/antlr4ts/Decorators.js"),h=f("./node_modules/antlr4ts/Token.js"),s=f("./node_modules/antlr4ts/misc/Utils.js");class o{constructor(){this._listeners=[g.ConsoleErrorListener.INSTANCE],this._stateNumber=-1;}getTokenTypeMap(){let x=this.vocabulary,n=o.tokenTypeMapCache.get(x);if(n==null){let c=new Map;for(let a=0;a<=this.atn.maxTokenType;a++){let p=x.getLiteralName(a);p!=null&&c.set(p,a);let t=x.getSymbolicName(a);t!=null&&c.set(t,a);}c.set("EOF",h.Token.EOF),n=c,o.tokenTypeMapCache.set(x,n);}return n}getRuleIndexMap(){let x=this.ruleNames;if(x==null)throw new Error("The current recognizer does not provide a list of rule names.");let n=o.ruleIndexMapCache.get(x);return n==null&&(n=s.toMap(x),o.ruleIndexMapCache.set(x,n)),n}getTokenType(x){let n=this.getTokenTypeMap().get(x);return n??h.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(x){this._interp=x;}get parseInfo(){return Promise.resolve(void 0)}getErrorHeader(x){let n=x.getOffendingToken();if(!n)return "";let c=n.line,a=n.charPositionInLine;return "line "+c+":"+a}addErrorListener(x){if(!x)throw new TypeError("listener must not be null");this._listeners.push(x);}removeErrorListener(x){let n=this._listeners.indexOf(x);n!==-1&&this._listeners.splice(n,1);}removeErrorListeners(){this._listeners.length=0;}getErrorListeners(){return this._listeners.slice(0)}getErrorListenerDispatch(){return new O.ProxyErrorListener(this.getErrorListeners())}sempred(x,n,c){return true}precpred(x,n){return true}action(x,n,c){}get state(){return this._stateNumber}set state(x){this._stateNumber=x;}}o.EOF=-1,o.tokenTypeMapCache=new WeakMap,o.ruleIndexMapCache=new WeakMap,d([T.SuppressWarnings("serial"),T.NotNull],o.prototype,"_listeners",void 0),d([T.NotNull],o.prototype,"getTokenTypeMap",null),d([T.NotNull],o.prototype,"getRuleIndexMap",null),d([T.NotNull],o.prototype,"serializedATN",null),d([T.NotNull],o.prototype,"atn",null),d([T.NotNull,m(0,T.NotNull)],o.prototype,"interpreter",null),d([T.NotNull,m(0,T.NotNull)],o.prototype,"getErrorHeader",null),d([m(0,T.NotNull)],o.prototype,"addErrorListener",null),d([m(0,T.NotNull)],o.prototype,"removeErrorListener",null),d([T.NotNull],o.prototype,"getErrorListeners",null),l.Recognizer=o;}),"./node_modules/antlr4ts/RuleContext.js":(function(D,l,f){var d=this&&this.__decorate||function(x,n,c,a){var p=arguments.length,t=p<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,c):a,y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(x,n,c,a);else for(var v=x.length-1;v>=0;v--)(y=x[v])&&(t=(p<3?y(t):p>3?y(n,c,t):y(n,c))||t);return p>3&&t&&Object.defineProperty(n,c,t),t};Object.defineProperty(l,"__esModule",{value:true}),l.RuleContext=void 0;let m=f("./node_modules/antlr4ts/atn/ATN.js"),g=f("./node_modules/antlr4ts/Recognizer.js"),O=f("./node_modules/antlr4ts/tree/RuleNode.js"),T=f("./node_modules/antlr4ts/misc/Interval.js"),h=f("./node_modules/antlr4ts/Decorators.js"),s=f("./node_modules/antlr4ts/tree/Trees.js"),o=f("./node_modules/antlr4ts/ParserRuleContext.js");class r extends O.RuleNode{constructor(n,c){super(),this._parent=n,this.invokingState=c??-1;}static getChildContext(n,c){return new r(n,c)}depth(){let n=0,c=this;for(;c;)c=c._parent,n++;return n}get isEmpty(){return this.invokingState===-1}get sourceInterval(){return T.Interval.INVALID}get ruleContext(){return this}get parent(){return this._parent}setParent(n){this._parent=n;}get payload(){return this}get text(){if(this.childCount===0)return "";let n="";for(let c=0;c<this.childCount;c++)n+=this.getChild(c).text;return n.toString()}get ruleIndex(){return -1}get altNumber(){return m.ATN.INVALID_ALT_NUMBER}set altNumber(n){}getChild(n){throw new RangeError("i must be greater than or equal to 0 and less than childCount")}get childCount(){return 0}accept(n){return n.visitChildren(this)}toStringTree(n){return s.Trees.toStringTree(this,n)}toString(n,c){let a=n instanceof g.Recognizer?n.ruleNames:n;c=c||o.ParserRuleContext.emptyContext();let p="",t=this;for(p+="[";t&&t!==c;){if(!a)t.isEmpty||(p+=t.invokingState);else {let y=t.ruleIndex,v=y>=0&&y<a.length?a[y]:y.toString();p+=v;}t._parent&&(a||!t._parent.isEmpty)&&(p+=" "),t=t._parent;}return p+="]",p.toString()}}d([h.Override],r.prototype,"sourceInterval",null),d([h.Override],r.prototype,"ruleContext",null),d([h.Override],r.prototype,"parent",null),d([h.Override],r.prototype,"setParent",null),d([h.Override],r.prototype,"payload",null),d([h.Override],r.prototype,"text",null),d([h.Override],r.prototype,"getChild",null),d([h.Override],r.prototype,"childCount",null),d([h.Override],r.prototype,"accept",null),d([h.Override],r.prototype,"toStringTree",null),l.RuleContext=r;}),"./node_modules/antlr4ts/RuleContextWithAltNum.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.RuleContextWithAltNum=void 0;let m=f("./node_modules/antlr4ts/atn/ATN.js"),g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/ParserRuleContext.js");class T extends O.ParserRuleContext{constructor(s,o){o!==void 0?super(s,o):super(),this._altNumber=m.ATN.INVALID_ALT_NUMBER;}get altNumber(){return this._altNumber}set altNumber(s){this._altNumber=s;}}d([g.Override],T.prototype,"altNumber",null),l.RuleContextWithAltNum=T;}),"./node_modules/antlr4ts/RuleDependency.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.RuleDependency=void 0;function f(d){return (m,g,O)=>{}}l.RuleDependency=f;}),"./node_modules/antlr4ts/RuleVersion.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.RuleVersion=void 0;function f(d){return (m,g,O)=>{}}l.RuleVersion=f;}),"./node_modules/antlr4ts/Token.js":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.Token=void 0;let d=f("./node_modules/antlr4ts/IntStream.js");(function(g){g.INVALID_TYPE=0,g.EPSILON=-2,g.MIN_USER_TOKEN_TYPE=1,g.EOF=d.IntStream.EOF,g.DEFAULT_CHANNEL=0,g.HIDDEN_CHANNEL=1,g.MIN_USER_CHANNEL_VALUE=2;})(l.Token||(l.Token={}));}),"./node_modules/antlr4ts/TokenFactory.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true});}),"./node_modules/antlr4ts/TokenSource.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true});}),"./node_modules/antlr4ts/TokenStream.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true});}),"./node_modules/antlr4ts/TokenStreamRewriter.js":(function(D,l,f){var d=this&&this.__decorate||function(x,n,c,a){var p=arguments.length,t=p<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,c):a,y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(x,n,c,a);else for(var v=x.length-1;v>=0;v--)(y=x[v])&&(t=(p<3?y(t):p>3?y(n,c,t):y(n,c))||t);return p>3&&t&&Object.defineProperty(n,c,t),t};Object.defineProperty(l,"__esModule",{value:true}),l.RewriteOperation=l.TokenStreamRewriter=void 0;let m=f("./node_modules/antlr4ts/misc/Interval.js"),g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/Token.js");class T{constructor(n){this.tokens=n,this.programs=new Map,this.programs.set(T.DEFAULT_PROGRAM_NAME,[]),this.lastRewriteTokenIndexes=new Map;}getTokenStream(){return this.tokens}rollback(n,c=T.DEFAULT_PROGRAM_NAME){let a=this.programs.get(c);a!=null&&this.programs.set(c,a.slice(T.MIN_TOKEN_INDEX,n));}deleteProgram(n=T.DEFAULT_PROGRAM_NAME){this.rollback(T.MIN_TOKEN_INDEX,n);}insertAfter(n,c,a=T.DEFAULT_PROGRAM_NAME){let p;typeof n=="number"?p=n:p=n.tokenIndex;let t=this.getProgram(a),y=new o(this.tokens,p,t.length,c);t.push(y);}insertBefore(n,c,a=T.DEFAULT_PROGRAM_NAME){let p;typeof n=="number"?p=n:p=n.tokenIndex;let t=this.getProgram(a),y=new s(this.tokens,p,t.length,c);t.push(y);}replaceSingle(n,c){typeof n=="number"?this.replace(n,n,c):this.replace(n,n,c);}replace(n,c,a,p=T.DEFAULT_PROGRAM_NAME){if(typeof n!="number"&&(n=n.tokenIndex),typeof c!="number"&&(c=c.tokenIndex),n>c||n<0||c<0||c>=this.tokens.size)throw new RangeError(`replace: range invalid: ${n}..${c}(size=${this.tokens.size})`);let t=this.getProgram(p),y=new r(this.tokens,n,c,t.length,a);t.push(y);}delete(n,c,a=T.DEFAULT_PROGRAM_NAME){c===void 0&&(c=n),typeof n=="number"?this.replace(n,c,"",a):this.replace(n,c,"",a);}getLastRewriteTokenIndex(n=T.DEFAULT_PROGRAM_NAME){let c=this.lastRewriteTokenIndexes.get(n);return c??-1}setLastRewriteTokenIndex(n,c){this.lastRewriteTokenIndexes.set(n,c);}getProgram(n){let c=this.programs.get(n);return c==null&&(c=this.initializeProgram(n)),c}initializeProgram(n){let c=[];return this.programs.set(n,c),c}getText(n,c=T.DEFAULT_PROGRAM_NAME){let a;n instanceof m.Interval?a=n:a=m.Interval.of(0,this.tokens.size-1),typeof n=="string"&&(c=n);let p=this.programs.get(c),t=a.a,y=a.b;if(y>this.tokens.size-1&&(y=this.tokens.size-1),t<0&&(t=0),p==null||p.length===0)return this.tokens.getText(a);let v=[],S=this.reduceToSingleOperationPerIndex(p),N=t;for(;N<=y&&N<this.tokens.size;){let b=S.get(N);S.delete(N);let U=this.tokens.get(N);b==null?(U.type!==O.Token.EOF&&v.push(String(U.text)),N++):N=b.execute(v);}if(y===this.tokens.size-1)for(let b of S.values())b.index>=this.tokens.size-1&&v.push(b.text.toString());return v.join("")}reduceToSingleOperationPerIndex(n){for(let a=0;a<n.length;a++){let p=n[a];if(p==null||!(p instanceof r))continue;let t=p,y=this.getKindOfOps(n,s,a);for(let S of y)S.index===t.index?(n[S.instructionIndex]=void 0,t.text=S.text.toString()+(t.text!=null?t.text.toString():"")):S.index>t.index&&S.index<=t.lastIndex&&(n[S.instructionIndex]=void 0);let v=this.getKindOfOps(n,r,a);for(let S of v){if(S.index>=t.index&&S.lastIndex<=t.lastIndex){n[S.instructionIndex]=void 0;continue}let N=S.lastIndex<t.index||S.index>t.lastIndex;if(S.text==null&&t.text==null&&!N)n[S.instructionIndex]=void 0,t.index=Math.min(S.index,t.index),t.lastIndex=Math.max(S.lastIndex,t.lastIndex);else if(!N)throw new Error(`replace op boundaries of ${t} overlap with previous ${S}`)}}for(let a=0;a<n.length;a++){let p=n[a];if(p==null||!(p instanceof s))continue;let t=p,y=this.getKindOfOps(n,s,a);for(let S of y)S.index===t.index&&(S instanceof o?(t.text=this.catOpText(S.text,t.text),n[S.instructionIndex]=void 0):S instanceof s&&(t.text=this.catOpText(t.text,S.text),n[S.instructionIndex]=void 0));let v=this.getKindOfOps(n,r,a);for(let S of v){if(t.index===S.index){S.text=this.catOpText(t.text,S.text),n[a]=void 0;continue}if(t.index>=S.index&&t.index<=S.lastIndex)throw new Error(`insert op ${t} within boundaries of previous ${S}`)}}let c=new Map;for(let a of n)if(a!=null){if(c.get(a.index)!=null)throw new Error("should only be one op per index");c.set(a.index,a);}return c}catOpText(n,c){let a="",p="";return n!=null&&(a=n.toString()),c!=null&&(p=c.toString()),a+p}getKindOfOps(n,c,a){let p=[];for(let t=0;t<a&&t<n.length;t++){let y=n[t];y!=null&&y instanceof c&&p.push(y);}return p}}l.TokenStreamRewriter=T,T.DEFAULT_PROGRAM_NAME="default",T.PROGRAM_INIT_SIZE=100,T.MIN_TOKEN_INDEX=0;class h{constructor(n,c,a,p){this.tokens=n,this.instructionIndex=a,this.index=c,this.text=p===void 0?"":p;}execute(n){return this.index}toString(){let n=this.constructor.name,c=n.indexOf("$");return n=n.substring(c+1,n.length),"<"+n+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}d([g.Override],h.prototype,"toString",null),l.RewriteOperation=h;class s extends h{constructor(n,c,a,p){super(n,c,a,p);}execute(n){return n.push(this.text.toString()),this.tokens.get(this.index).type!==O.Token.EOF&&n.push(String(this.tokens.get(this.index).text)),this.index+1}}d([g.Override],s.prototype,"execute",null);class o extends s{constructor(n,c,a,p){super(n,c+1,a,p);}}class r extends h{constructor(n,c,a,p,t){super(n,c,p,t),this.lastIndex=a;}execute(n){return this.text!=null&&n.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+'">'}}d([g.Override],r.prototype,"execute",null),d([g.Override],r.prototype,"toString",null);}),"./node_modules/antlr4ts/Vocabulary.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true});}),"./node_modules/antlr4ts/VocabularyImpl.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x};Object.defineProperty(l,"__esModule",{value:true}),l.VocabularyImpl=void 0;let m=f("./node_modules/antlr4ts/Decorators.js"),g=f("./node_modules/antlr4ts/Token.js");class O{constructor(h,s,o){this.literalNames=h,this.symbolicNames=s,this.displayNames=o,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1;}get maxTokenType(){return this._maxTokenType}getLiteralName(h){if(h>=0&&h<this.literalNames.length)return this.literalNames[h]}getSymbolicName(h){if(h>=0&&h<this.symbolicNames.length)return this.symbolicNames[h];if(h===g.Token.EOF)return "EOF"}getDisplayName(h){if(h>=0&&h<this.displayNames.length){let r=this.displayNames[h];if(r)return r}let s=this.getLiteralName(h);if(s)return s;let o=this.getSymbolicName(h);return o||String(h)}}O.EMPTY_VOCABULARY=new O([],[],[]),d([m.NotNull],O.prototype,"literalNames",void 0),d([m.NotNull],O.prototype,"symbolicNames",void 0),d([m.NotNull],O.prototype,"displayNames",void 0),d([m.Override],O.prototype,"maxTokenType",null),d([m.Override],O.prototype,"getLiteralName",null),d([m.Override],O.prototype,"getSymbolicName",null),d([m.Override,m.NotNull],O.prototype,"getDisplayName",null),d([m.NotNull],O,"EMPTY_VOCABULARY",void 0),l.VocabularyImpl=O;}),"./node_modules/antlr4ts/WritableToken.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true});}),"./node_modules/antlr4ts/atn/ATN.js":(function(D,l,f){var d=this&&this.__decorate||function(p,t,y,v){var S=arguments.length,N=S<3?t:v===null?v=Object.getOwnPropertyDescriptor(t,y):v,b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(p,t,y,v);else for(var U=p.length-1;U>=0;U--)(b=p[U])&&(N=(S<3?b(N):S>3?b(t,y,N):b(t,y))||N);return S>3&&N&&Object.defineProperty(t,y,N),N},m=this&&this.__param||function(p,t){return function(y,v){t(y,v,p);}};Object.defineProperty(l,"__esModule",{value:true}),l.ATN=void 0;let g=f("./node_modules/antlr4ts/misc/Array2DHashMap.js"),O=f("./node_modules/antlr4ts/dfa/DFA.js"),T=f("./node_modules/antlr4ts/misc/IntervalSet.js"),h=f("./node_modules/antlr4ts/atn/InvalidState.js"),s=f("./node_modules/antlr4ts/atn/LL1Analyzer.js"),o=f("./node_modules/antlr4ts/Decorators.js"),r=f("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),x=f("./node_modules/antlr4ts/atn/PredictionContext.js"),n=f("./node_modules/antlr4ts/Token.js"),c=f("./node_modules/assert/build/assert.js"),a=class{constructor(t,y){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new g.Array2DHashMap(r.ObjectEqualityComparator.INSTANCE),this.decisionToDFA=[],this.modeToDFA=[],this.LL1Table=new Map,this.grammarType=t,this.maxTokenType=y;}clearDFA(){this.decisionToDFA=new Array(this.decisionToState.length);for(let t=0;t<this.decisionToDFA.length;t++)this.decisionToDFA[t]=new O.DFA(this.decisionToState[t],t);this.modeToDFA=new Array(this.modeToStartState.length);for(let t=0;t<this.modeToDFA.length;t++)this.modeToDFA[t]=new O.DFA(this.modeToStartState[t]);this.contextCache.clear(),this.LL1Table.clear();}get contextCacheSize(){return this.contextCache.size}getCachedContext(t){return x.PredictionContext.getCachedContext(t,this.contextCache,new x.PredictionContext.IdentityHashMap)}getDecisionToDFA(){return c(this.decisionToDFA!=null&&this.decisionToDFA.length===this.decisionToState.length),this.decisionToDFA}nextTokens(t,y){return y?new s.LL1Analyzer(this).LOOK(t,y):(t.nextTokenWithinRule||(t.nextTokenWithinRule=this.nextTokens(t,x.PredictionContext.EMPTY_LOCAL),t.nextTokenWithinRule.setReadonly(true)),t.nextTokenWithinRule)}addState(t){t.atn=this,t.stateNumber=this.states.length,this.states.push(t);}removeState(t){let y=new h.InvalidState;y.atn=this,y.stateNumber=t.stateNumber,this.states[t.stateNumber]=y;}defineMode(t,y){this.modeNameToStartState.set(t,y),this.modeToStartState.push(y),this.modeToDFA.push(new O.DFA(y)),this.defineDecisionState(y);}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,this.decisionToDFA.push(new O.DFA(t,t.decision)),t.decision}getDecisionState(t){if(this.decisionToState.length>0)return this.decisionToState[t]}get numberOfDecisions(){return this.decisionToState.length}getExpectedTokens(t,y){if(t<0||t>=this.states.length)throw new RangeError("Invalid state number.");let v=y,S=this.states[t],N=this.nextTokens(S);if(!N.contains(n.Token.EPSILON))return N;let b=new T.IntervalSet;for(b.addAll(N),b.remove(n.Token.EPSILON);v!=null&&v.invokingState>=0&&N.contains(n.Token.EPSILON);){let A=this.states[v.invokingState].transition(0);N=this.nextTokens(A.followState),b.addAll(N),b.remove(n.Token.EPSILON),v=v._parent;}return N.contains(n.Token.EPSILON)&&b.add(n.Token.EOF),b}};d([o.NotNull],a.prototype,"states",void 0),d([o.NotNull],a.prototype,"decisionToState",void 0),d([o.NotNull],a.prototype,"modeNameToStartState",void 0),d([o.NotNull],a.prototype,"modeToStartState",void 0),d([o.NotNull],a.prototype,"decisionToDFA",void 0),d([o.NotNull],a.prototype,"modeToDFA",void 0),d([o.NotNull],a.prototype,"nextTokens",null),d([m(0,o.NotNull)],a.prototype,"removeState",null),d([m(0,o.NotNull),m(1,o.NotNull)],a.prototype,"defineMode",null),d([m(0,o.NotNull)],a.prototype,"defineDecisionState",null),d([o.NotNull],a.prototype,"getExpectedTokens",null),a=d([m(0,o.NotNull)],a),l.ATN=a,(function(p){p.INVALID_ALT_NUMBER=0;})(a=l.ATN||(l.ATN={})),l.ATN=a;}),"./node_modules/antlr4ts/atn/ATNConfig.js":(function(D,l,f){var d=this&&this.__decorate||function(y,v,S,N){var b=arguments.length,U=b<3?v:N===null?N=Object.getOwnPropertyDescriptor(v,S):N,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")U=Reflect.decorate(y,v,S,N);else for(var w=y.length-1;w>=0;w--)(A=y[w])&&(U=(b<3?A(U):b>3?A(v,S,U):A(v,S))||U);return b>3&&U&&Object.defineProperty(v,S,U),U},m=this&&this.__param||function(y,v){return function(S,N){v(S,N,y);}};Object.defineProperty(l,"__esModule",{value:true}),l.ATNConfig=void 0;let g=f("./node_modules/antlr4ts/misc/Array2DHashMap.js"),O=f("./node_modules/antlr4ts/atn/DecisionState.js"),T=f("./node_modules/antlr4ts/misc/MurmurHash.js"),h=f("./node_modules/antlr4ts/Decorators.js"),s=f("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),o=f("./node_modules/antlr4ts/atn/PredictionContext.js"),r=f("./node_modules/antlr4ts/atn/SemanticContext.js"),x=f("./node_modules/assert/build/assert.js"),n=2147483648,c=class ci{constructor(v,S,N){typeof S=="number"?(x((S&16777215)===S),this._state=v,this.altAndOuterContextDepth=S,this._context=N):(this._state=v,this.altAndOuterContextDepth=S.altAndOuterContextDepth,this._context=N);}static create(v,S,N,b=r.SemanticContext.NONE,U){return b!==r.SemanticContext.NONE?U!=null?new t(U,b,v,S,N,false):new a(b,v,S,N):U!=null?new p(U,v,S,N,false):new ci(v,S,N)}get state(){return this._state}get alt(){return this.altAndOuterContextDepth&16777215}get context(){return this._context}set context(v){this._context=v;}get reachesIntoOuterContext(){return this.outerContextDepth!==0}get outerContextDepth(){return this.altAndOuterContextDepth>>>24&127}set outerContextDepth(v){x(v>=0),v=Math.min(v,127),this.altAndOuterContextDepth=v<<24|(this.altAndOuterContextDepth&-2130706433)>>>0;}get lexerActionExecutor(){}get semanticContext(){return r.SemanticContext.NONE}get hasPassedThroughNonGreedyDecision(){return false}clone(){return this.transform(this.state,false)}transform(v,S,N){return N==null?this.transformImpl(v,this._context,this.semanticContext,S,this.lexerActionExecutor):N instanceof o.PredictionContext?this.transformImpl(v,N,this.semanticContext,S,this.lexerActionExecutor):N instanceof r.SemanticContext?this.transformImpl(v,this._context,N,S,this.lexerActionExecutor):this.transformImpl(v,this._context,this.semanticContext,S,N)}transformImpl(v,S,N,b,U){let A=b&&ci.checkNonGreedyDecision(this,v);return N!==r.SemanticContext.NONE?U!=null||A?new t(U,N,v,this,S,A):new a(N,v,this,S):U!=null||A?new p(U,v,this,S,A):new ci(v,this,S)}static checkNonGreedyDecision(v,S){return v.hasPassedThroughNonGreedyDecision||S instanceof O.DecisionState&&S.nonGreedy}appendContext(v,S){if(typeof v=="number"){let N=this.context.appendSingleContext(v,S);return this.transform(this.state,false,N)}else {let N=this.context.appendContext(v,S);return this.transform(this.state,false,N)}}contains(v){if(this.state.stateNumber!==v.state.stateNumber||this.alt!==v.alt||!this.semanticContext.equals(v.semanticContext))return false;let S=[],N=[];for(S.push(this.context),N.push(v.context);;){let b=S.pop(),U=N.pop();if(!b||!U)break;if(b===U)return true;if(b.size<U.size)return false;if(U.isEmpty)return b.hasEmpty;for(let A=0;A<U.size;A++){let w=b.findReturnState(U.getReturnState(A));if(w<0)return false;S.push(b.getParent(w)),N.push(U.getParent(A));}}return false}get isPrecedenceFilterSuppressed(){return (this.altAndOuterContextDepth&n)!==0}set isPrecedenceFilterSuppressed(v){v?this.altAndOuterContextDepth|=n:this.altAndOuterContextDepth&=~n;}equals(v){return this===v?true:v instanceof ci?this.state.stateNumber===v.state.stateNumber&&this.alt===v.alt&&this.reachesIntoOuterContext===v.reachesIntoOuterContext&&this.context.equals(v.context)&&this.semanticContext.equals(v.semanticContext)&&this.isPrecedenceFilterSuppressed===v.isPrecedenceFilterSuppressed&&this.hasPassedThroughNonGreedyDecision===v.hasPassedThroughNonGreedyDecision&&s.ObjectEqualityComparator.INSTANCE.equals(this.lexerActionExecutor,v.lexerActionExecutor):false}hashCode(){let v=T.MurmurHash.initialize(7);return v=T.MurmurHash.update(v,this.state.stateNumber),v=T.MurmurHash.update(v,this.alt),v=T.MurmurHash.update(v,this.reachesIntoOuterContext?1:0),v=T.MurmurHash.update(v,this.context),v=T.MurmurHash.update(v,this.semanticContext),v=T.MurmurHash.update(v,this.hasPassedThroughNonGreedyDecision?1:0),v=T.MurmurHash.update(v,this.lexerActionExecutor),v=T.MurmurHash.finish(v,7),v}toDotString(){let v="";v+=`digraph G {
5
+ `,v+=`rankdir=LR;
6
+ `;let S=new g.Array2DHashMap(o.PredictionContext.IdentityEqualityComparator.INSTANCE),N=[];function b(U){let A=S.size,w=S.putIfAbsent(U,A);return w??(N.push(U),A)}for(N.push(this.context),S.put(this.context,0);;){let U=N.pop();if(!U)break;for(let A=0;A<U.size;A++)v+=" s"+b(U),v+="->",v+="s"+b(U.getParent(A)),v+='[label="'+U.getReturnState(A)+`"];
7
+ `;}return v+=`}
8
+ `,v.toString()}toString(v,S,N){N==null&&(N=S!=null),S==null&&(S=true);let b="",U;N?U=this.context.toStrings(v,this.state.stateNumber):U=["?"];let A=true;for(let w of U)A?A=false:b+=", ",b+="(",b+=this.state,S&&(b+=",",b+=this.alt),this.context&&(b+=",",b+=w),this.semanticContext!==r.SemanticContext.NONE&&(b+=",",b+=this.semanticContext),this.reachesIntoOuterContext&&(b+=",up="+this.outerContextDepth),b+=")";return b.toString()}};d([h.NotNull],c.prototype,"_state",void 0),d([h.NotNull],c.prototype,"_context",void 0),d([h.NotNull],c.prototype,"state",null),d([h.NotNull,m(0,h.NotNull)],c.prototype,"context",null),d([h.NotNull],c.prototype,"semanticContext",null),d([h.Override],c.prototype,"clone",null),d([m(0,h.NotNull),m(2,h.NotNull)],c.prototype,"transformImpl",null),d([h.Override],c.prototype,"equals",null),d([h.Override],c.prototype,"hashCode",null),d([m(0,h.NotNull),m(3,h.NotNull)],c,"create",null),c=d([m(0,h.NotNull),m(2,h.NotNull)],c),l.ATNConfig=c;let a=class extends c{constructor(v,S,N,b){typeof N=="number"?super(S,N,b):super(S,N,b),this._semanticContext=v;}get semanticContext(){return this._semanticContext}};d([h.NotNull],a.prototype,"_semanticContext",void 0),d([h.Override],a.prototype,"semanticContext",null),a=d([m(1,h.NotNull),m(2,h.NotNull)],a);let p=class extends c{constructor(v,S,N,b,U){if(typeof N=="number")super(S,N,b);else if(super(S,N,b),N.semanticContext!==r.SemanticContext.NONE)throw new Error("Not supported");this._lexerActionExecutor=v,this.passedThroughNonGreedyDecision=U;}get lexerActionExecutor(){return this._lexerActionExecutor}get hasPassedThroughNonGreedyDecision(){return this.passedThroughNonGreedyDecision}};d([h.Override],p.prototype,"lexerActionExecutor",null),d([h.Override],p.prototype,"hasPassedThroughNonGreedyDecision",null),p=d([m(1,h.NotNull),m(2,h.NotNull)],p);let t=class extends a{constructor(v,S,N,b,U,A){typeof b=="number"?super(S,N,b,U):super(S,N,b,U),this._lexerActionExecutor=v,this.passedThroughNonGreedyDecision=A;}get lexerActionExecutor(){return this._lexerActionExecutor}get hasPassedThroughNonGreedyDecision(){return this.passedThroughNonGreedyDecision}};d([h.Override],t.prototype,"lexerActionExecutor",null),d([h.Override],t.prototype,"hasPassedThroughNonGreedyDecision",null),t=d([m(1,h.NotNull),m(2,h.NotNull)],t);}),"./node_modules/antlr4ts/atn/ATNConfigSet.js":(function(D,l,f){var d=this&&this.__decorate||function(S,N,b,U){var A=arguments.length,w=A<3?N:U===null?U=Object.getOwnPropertyDescriptor(N,b):U,F;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(S,N,b,U);else for(var M=S.length-1;M>=0;M--)(F=S[M])&&(w=(A<3?F(w):A>3?F(N,b,w):F(N,b))||w);return A>3&&w&&Object.defineProperty(N,b,w),w};Object.defineProperty(l,"__esModule",{value:true}),l.ATNConfigSet=void 0;let m=f("./node_modules/antlr4ts/misc/Array2DHashMap.js"),g=f("./node_modules/antlr4ts/misc/Array2DHashSet.js"),O=f("./node_modules/antlr4ts/misc/ArrayEqualityComparator.js"),T=f("./node_modules/antlr4ts/atn/ATN.js"),h=f("./node_modules/antlr4ts/atn/ATNConfig.js"),s=f("./node_modules/antlr4ts/misc/BitSet.js"),o=f("./node_modules/antlr4ts/Decorators.js"),r=f("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),x=f("./node_modules/antlr4ts/atn/PredictionContext.js"),n=f("./node_modules/antlr4ts/atn/PredictionContextCache.js"),c=f("./node_modules/antlr4ts/atn/SemanticContext.js"),a=f("./node_modules/assert/build/assert.js"),p=f("./node_modules/antlr4ts/misc/Utils.js");class t{hashCode(N){return N.state^N.alt}equals(N,b){return N.state===b.state&&N.alt===b.alt}}t.INSTANCE=new t;function y(S){return S?new m.Array2DHashMap(S):new m.Array2DHashMap(t.INSTANCE)}class v{constructor(N,b){this._uniqueAlt=0,this._hasSemanticContext=false,this._dipsIntoOuterContext=false,this.outermostConfigSet=false,this.cachedHashCode=-1,N?(b?(this.mergedConfigs=void 0,this.unmerged=void 0):N.isReadOnly?(this.mergedConfigs=y(),this.unmerged=[]):(this.mergedConfigs=y(N.mergedConfigs),this.unmerged=N.unmerged.slice(0)),this.configs=N.configs.slice(0),this._dipsIntoOuterContext=N._dipsIntoOuterContext,this._hasSemanticContext=N._hasSemanticContext,this.outermostConfigSet=N.outermostConfigSet,(b||!N.isReadOnly)&&(this._uniqueAlt=N._uniqueAlt,this._conflictInfo=N._conflictInfo)):(this.mergedConfigs=y(),this.unmerged=[],this.configs=[],this._uniqueAlt=T.ATN.INVALID_ALT_NUMBER);}getRepresentedAlternatives(){if(this._conflictInfo!=null)return this._conflictInfo.conflictedAlts.clone();let N=new s.BitSet;for(let b of this)N.set(b.alt);return N}get isReadOnly(){return this.mergedConfigs==null}get isOutermostConfigSet(){return this.outermostConfigSet}set isOutermostConfigSet(N){if(this.outermostConfigSet&&!N)throw new Error("IllegalStateException");a(!N||!this._dipsIntoOuterContext),this.outermostConfigSet=N;}getStates(){let N=new g.Array2DHashSet(r.ObjectEqualityComparator.INSTANCE);for(let b of this.configs)N.add(b.state);return N}optimizeConfigs(N){if(this.configs.length!==0)for(let b of this.configs)b.context=N.atn.getCachedContext(b.context);}clone(N){let b=new v(this,N);return !N&&this.isReadOnly&&b.addAll(this.configs),b}get size(){return this.configs.length}get isEmpty(){return this.configs.length===0}contains(N){if(!(N instanceof h.ATNConfig))return false;if(this.mergedConfigs&&this.unmerged){let b=N,U=this.getKey(b),A=this.mergedConfigs.get(U);if(A!=null&&this.canMerge(b,U,A))return A.contains(b);for(let w of this.unmerged)if(w.contains(N))return true}else for(let b of this.configs)if(b.contains(N))return true;return false}*[Symbol.iterator](){yield*this.configs;}toArray(){return this.configs}add(N,b){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");a(!this.outermostConfigSet||!N.reachesIntoOuterContext),b==null&&(b=n.PredictionContextCache.UNCACHED);let U,A=this.getKey(N),w=this.mergedConfigs.get(A);if(U=w==null,w!=null&&this.canMerge(N,A,w)){w.outerContextDepth=Math.max(w.outerContextDepth,N.outerContextDepth),N.isPrecedenceFilterSuppressed&&(w.isPrecedenceFilterSuppressed=true);let F=x.PredictionContext.join(w.context,N.context,b);return this.updatePropertiesForMergedConfig(N),w.context===F?false:(w.context=F,true)}for(let F=0;F<this.unmerged.length;F++){let M=this.unmerged[F];if(this.canMerge(N,A,M)){M.outerContextDepth=Math.max(M.outerContextDepth,N.outerContextDepth),N.isPrecedenceFilterSuppressed&&(M.isPrecedenceFilterSuppressed=true);let W=x.PredictionContext.join(M.context,N.context,b);return this.updatePropertiesForMergedConfig(N),M.context===W?false:(M.context=W,U&&(this.mergedConfigs.put(A,M),this.unmerged.splice(F,1)),true)}}return this.configs.push(N),U?this.mergedConfigs.put(A,N):this.unmerged.push(N),this.updatePropertiesForAddedConfig(N),true}updatePropertiesForMergedConfig(N){this._dipsIntoOuterContext=this._dipsIntoOuterContext||N.reachesIntoOuterContext,a(!this.outermostConfigSet||!this._dipsIntoOuterContext);}updatePropertiesForAddedConfig(N){this.configs.length===1?this._uniqueAlt=N.alt:this._uniqueAlt!==N.alt&&(this._uniqueAlt=T.ATN.INVALID_ALT_NUMBER),this._hasSemanticContext=this._hasSemanticContext||!c.SemanticContext.NONE.equals(N.semanticContext),this._dipsIntoOuterContext=this._dipsIntoOuterContext||N.reachesIntoOuterContext,a(!this.outermostConfigSet||!this._dipsIntoOuterContext);}canMerge(N,b,U){return N.state.stateNumber!==U.state.stateNumber||b.alt!==U.alt?false:N.semanticContext.equals(U.semanticContext)}getKey(N){return {state:N.state.stateNumber,alt:N.alt}}containsAll(N){for(let b of N)if(!(b instanceof h.ATNConfig)||!this.contains(b))return false;return true}addAll(N,b){this.ensureWritable();let U=false;for(let A of N)this.add(A,b)&&(U=true);return U}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=false,this._hasSemanticContext=false,this._uniqueAlt=T.ATN.INVALID_ALT_NUMBER,this._conflictInfo=void 0;}equals(N){return this===N?true:N instanceof v?this.outermostConfigSet===N.outermostConfigSet&&p.equals(this._conflictInfo,N._conflictInfo)&&O.ArrayEqualityComparator.INSTANCE.equals(this.configs,N.configs):false}hashCode(){if(this.isReadOnly&&this.cachedHashCode!==-1)return this.cachedHashCode;let N=1;return N=5*N^(this.outermostConfigSet?1:0),N=5*N^O.ArrayEqualityComparator.INSTANCE.hashCode(this.configs),this.isReadOnly&&(this.cachedHashCode=N),N}toString(N){N==null&&(N=false);let b="",U=this.configs.slice(0);U.sort((A,w)=>A.alt!==w.alt?A.alt-w.alt:A.state.stateNumber!==w.state.stateNumber?A.state.stateNumber-w.state.stateNumber:A.semanticContext.toString().localeCompare(w.semanticContext.toString())),b+="[";for(let A=0;A<U.length;A++)A>0&&(b+=", "),b+=U[A].toString(void 0,true,N);return b+="]",this._hasSemanticContext&&(b+=",hasSemanticContext="+this._hasSemanticContext),this._uniqueAlt!==T.ATN.INVALID_ALT_NUMBER&&(b+=",uniqueAlt="+this._uniqueAlt),this._conflictInfo!=null&&(b+=",conflictingAlts="+this._conflictInfo.conflictedAlts,this._conflictInfo.isExact||(b+="*")),this._dipsIntoOuterContext&&(b+=",dipsIntoOuterContext"),b.toString()}get uniqueAlt(){return this._uniqueAlt}get hasSemanticContext(){return this._hasSemanticContext}set hasSemanticContext(N){this.ensureWritable(),this._hasSemanticContext=N;}get conflictInfo(){return this._conflictInfo}set conflictInfo(N){this.ensureWritable(),this._conflictInfo=N;}get conflictingAlts(){if(this._conflictInfo!=null)return this._conflictInfo.conflictedAlts}get isExactConflict(){return this._conflictInfo==null?false:this._conflictInfo.isExact}get dipsIntoOuterContext(){return this._dipsIntoOuterContext}get(N){return this.configs[N]}ensureWritable(){if(this.isReadOnly)throw new Error("This ATNConfigSet is read only.")}}d([o.NotNull],v.prototype,"getRepresentedAlternatives",null),d([o.Override],v.prototype,"size",null),d([o.Override],v.prototype,"isEmpty",null),d([o.Override],v.prototype,"contains",null),d([o.Override],v.prototype,Symbol.iterator,null),d([o.Override],v.prototype,"toArray",null),d([o.Override],v.prototype,"containsAll",null),d([o.Override],v.prototype,"clear",null),d([o.Override],v.prototype,"equals",null),d([o.Override],v.prototype,"hashCode",null),l.ATNConfigSet=v;}),"./node_modules/antlr4ts/atn/ATNDeserializationOptions.js":(function(D,l,f){var d=this&&this.__decorate||function(O,T,h,s){var o=arguments.length,r=o<3?T:s===null?s=Object.getOwnPropertyDescriptor(T,h):s,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(O,T,h,s);else for(var n=O.length-1;n>=0;n--)(x=O[n])&&(r=(o<3?x(r):o>3?x(T,h,r):x(T,h))||r);return o>3&&r&&Object.defineProperty(T,h,r),r};Object.defineProperty(l,"__esModule",{value:true}),l.ATNDeserializationOptions=void 0;let m=f("./node_modules/antlr4ts/Decorators.js");class g{constructor(T){this.readOnly=false,T?(this.verifyATN=T.verifyATN,this.generateRuleBypassTransitions=T.generateRuleBypassTransitions,this.optimize=T.optimize):(this.verifyATN=true,this.generateRuleBypassTransitions=false,this.optimize=true);}static get defaultOptions(){return g._defaultOptions==null&&(g._defaultOptions=new g,g._defaultOptions.makeReadOnly()),g._defaultOptions}get isReadOnly(){return this.readOnly}makeReadOnly(){this.readOnly=true;}get isVerifyATN(){return this.verifyATN}set isVerifyATN(T){this.throwIfReadOnly(),this.verifyATN=T;}get isGenerateRuleBypassTransitions(){return this.generateRuleBypassTransitions}set isGenerateRuleBypassTransitions(T){this.throwIfReadOnly(),this.generateRuleBypassTransitions=T;}get isOptimize(){return this.optimize}set isOptimize(T){this.throwIfReadOnly(),this.optimize=T;}throwIfReadOnly(){if(this.isReadOnly)throw new Error("The object is read only.")}}d([m.NotNull],g,"defaultOptions",null),l.ATNDeserializationOptions=g;}),"./node_modules/antlr4ts/atn/ATNDeserializer.js":(function(D,l,f){var d=this&&this.__decorate||function(vt,Z,tt,q){var Y=arguments.length,et=Y<3?Z:q===null?q=Object.getOwnPropertyDescriptor(Z,tt):q,X;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")et=Reflect.decorate(vt,Z,tt,q);else for(var Ct=vt.length-1;Ct>=0;Ct--)(X=vt[Ct])&&(et=(Y<3?X(et):Y>3?X(Z,tt,et):X(Z,tt))||et);return Y>3&&et&&Object.defineProperty(Z,tt,et),et},m=this&&this.__param||function(vt,Z){return function(tt,q){Z(tt,q,vt);}};Object.defineProperty(l,"__esModule",{value:true}),l.ATNDeserializer=void 0;let g=f("./node_modules/antlr4ts/atn/ActionTransition.js"),O=f("./node_modules/antlr4ts/misc/Array2DHashSet.js"),T=f("./node_modules/antlr4ts/atn/ATN.js"),h=f("./node_modules/antlr4ts/atn/ATNDeserializationOptions.js"),s=f("./node_modules/antlr4ts/atn/ATNStateType.js"),o=f("./node_modules/antlr4ts/atn/AtomTransition.js"),r=f("./node_modules/antlr4ts/atn/BasicBlockStartState.js"),x=f("./node_modules/antlr4ts/atn/BasicState.js"),n=f("./node_modules/antlr4ts/misc/BitSet.js"),c=f("./node_modules/antlr4ts/atn/BlockEndState.js"),a=f("./node_modules/antlr4ts/atn/BlockStartState.js"),p=f("./node_modules/antlr4ts/atn/DecisionState.js"),t=f("./node_modules/antlr4ts/dfa/DFA.js"),y=f("./node_modules/antlr4ts/atn/EpsilonTransition.js"),v=f("./node_modules/antlr4ts/misc/IntervalSet.js"),S=f("./node_modules/antlr4ts/atn/InvalidState.js"),N=f("./node_modules/antlr4ts/atn/LexerChannelAction.js"),b=f("./node_modules/antlr4ts/atn/LexerCustomAction.js"),U=f("./node_modules/antlr4ts/atn/LexerModeAction.js"),A=f("./node_modules/antlr4ts/atn/LexerMoreAction.js"),w=f("./node_modules/antlr4ts/atn/LexerPopModeAction.js"),F=f("./node_modules/antlr4ts/atn/LexerPushModeAction.js"),M=f("./node_modules/antlr4ts/atn/LexerSkipAction.js"),W=f("./node_modules/antlr4ts/atn/LexerTypeAction.js"),L=f("./node_modules/antlr4ts/atn/LoopEndState.js"),j=f("./node_modules/antlr4ts/Decorators.js"),k=f("./node_modules/antlr4ts/atn/NotSetTransition.js"),J=f("./node_modules/antlr4ts/atn/ParserATNSimulator.js"),ut=f("./node_modules/antlr4ts/atn/PlusBlockStartState.js"),ft=f("./node_modules/antlr4ts/atn/PlusLoopbackState.js"),At=f("./node_modules/antlr4ts/atn/PrecedencePredicateTransition.js"),Dt=f("./node_modules/antlr4ts/atn/PredicateTransition.js"),dt=f("./node_modules/antlr4ts/atn/RangeTransition.js"),jt=f("./node_modules/antlr4ts/atn/RuleStartState.js"),_t=f("./node_modules/antlr4ts/atn/RuleStopState.js"),yt=f("./node_modules/antlr4ts/atn/RuleTransition.js"),rt=f("./node_modules/antlr4ts/atn/SetTransition.js"),K=f("./node_modules/antlr4ts/atn/StarBlockStartState.js"),G=f("./node_modules/antlr4ts/atn/StarLoopbackState.js"),Q=f("./node_modules/antlr4ts/atn/StarLoopEntryState.js"),ot=f("./node_modules/antlr4ts/Token.js"),lt=f("./node_modules/antlr4ts/atn/TokensStartState.js"),st=f("./node_modules/antlr4ts/misc/UUID.js"),ht=f("./node_modules/antlr4ts/atn/WildcardTransition.js");var xt;(function(vt){vt[vt.UNICODE_BMP=0]="UNICODE_BMP",vt[vt.UNICODE_SMP=1]="UNICODE_SMP";})(xt||(xt={}));class it{constructor(Z){Z===void 0&&(Z=h.ATNDeserializationOptions.defaultOptions),this.deserializationOptions=Z;}static get SERIALIZED_VERSION(){return 3}static isFeatureSupported(Z,tt){let q=it.SUPPORTED_UUIDS.findIndex(Y=>Y.equals(Z));return q<0?false:it.SUPPORTED_UUIDS.findIndex(Y=>Y.equals(tt))>=q}static getUnicodeDeserializer(Z){return Z===0?{readUnicode:(tt,q)=>it.toInt(tt[q]),size:1}:{readUnicode:(tt,q)=>it.toInt32(tt,q),size:2}}deserialize(Z){Z=Z.slice(0);for(let Rt=1;Rt<Z.length;Rt++)Z[Rt]=Z[Rt]-2&65535;let tt=0,q=it.toInt(Z[tt++]);if(q!==it.SERIALIZED_VERSION){let Rt=`Could not deserialize ATN with version ${q} (expected ${it.SERIALIZED_VERSION}).`;throw new Error(Rt)}let Y=it.toUUID(Z,tt);if(tt+=8,it.SUPPORTED_UUIDS.findIndex(Rt=>Rt.equals(Y))<0){let Rt=`Could not deserialize ATN with UUID ${Y} (expected ${it.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(Rt)}let et=it.isFeatureSupported(it.ADDED_LEXER_ACTIONS,Y),X=it.toInt(Z[tt++]),Ct=it.toInt(Z[tt++]),pt=new T.ATN(X,Ct),Bt=[],Ht=[],$t=it.toInt(Z[tt++]);for(let Rt=0;Rt<$t;Rt++){let Kt=it.toInt(Z[tt++]);if(Kt===s.ATNStateType.INVALID_TYPE){pt.addState(new S.InvalidState);continue}let zt=it.toInt(Z[tt++]);zt===65535&&(zt=-1);let Yt=this.stateFactory(Kt,zt);if(Kt===s.ATNStateType.LOOP_END){let ae=it.toInt(Z[tt++]);Bt.push([Yt,ae]);}else if(Yt instanceof a.BlockStartState){let ae=it.toInt(Z[tt++]);Ht.push([Yt,ae]);}pt.addState(Yt);}for(let Rt of Bt)Rt[0].loopBackState=pt.states[Rt[1]];for(let Rt of Ht)Rt[0].endState=pt.states[Rt[1]];let Wt=it.toInt(Z[tt++]);for(let Rt=0;Rt<Wt;Rt++){let Kt=it.toInt(Z[tt++]);pt.states[Kt].nonGreedy=true;}let mt=it.toInt(Z[tt++]);for(let Rt=0;Rt<mt;Rt++){let Kt=it.toInt(Z[tt++]);pt.states[Kt].sll=true;}let Tt=it.toInt(Z[tt++]);for(let Rt=0;Rt<Tt;Rt++){let Kt=it.toInt(Z[tt++]);pt.states[Kt].isPrecedenceRule=true;}let Ft=it.toInt(Z[tt++]);pt.grammarType===0&&(pt.ruleToTokenType=new Int32Array(Ft)),pt.ruleToStartState=new Array(Ft);for(let Rt=0;Rt<Ft;Rt++){let Kt=it.toInt(Z[tt++]),zt=pt.states[Kt];if(zt.leftFactored=it.toInt(Z[tt++])!==0,pt.ruleToStartState[Rt]=zt,pt.grammarType===0){let Yt=it.toInt(Z[tt++]);if(Yt===65535&&(Yt=ot.Token.EOF),pt.ruleToTokenType[Rt]=Yt,!it.isFeatureSupported(it.ADDED_LEXER_ACTIONS,Y)){it.toInt(Z[tt++]);}}}pt.ruleToStopState=new Array(Ft);for(let Rt of pt.states)Rt instanceof _t.RuleStopState&&(pt.ruleToStopState[Rt.ruleIndex]=Rt,pt.ruleToStartState[Rt.ruleIndex].stopState=Rt);let Mt=it.toInt(Z[tt++]);for(let Rt=0;Rt<Mt;Rt++){let Kt=it.toInt(Z[tt++]);pt.modeToStartState.push(pt.states[Kt]);}pt.modeToDFA=new Array(Mt);for(let Rt=0;Rt<Mt;Rt++)pt.modeToDFA[Rt]=new t.DFA(pt.modeToStartState[Rt]);let Ut=[];tt=this.deserializeSets(Z,tt,Ut,it.getUnicodeDeserializer(0)),it.isFeatureSupported(it.ADDED_UNICODE_SMP,Y)&&(tt=this.deserializeSets(Z,tt,Ut,it.getUnicodeDeserializer(1)));let Xt=it.toInt(Z[tt++]);for(let Rt=0;Rt<Xt;Rt++){let Kt=it.toInt(Z[tt]),zt=it.toInt(Z[tt+1]),Yt=it.toInt(Z[tt+2]),ae=it.toInt(Z[tt+3]),Oe=it.toInt(Z[tt+4]),me=it.toInt(Z[tt+5]),De=this.edgeFactory(pt,Yt,Kt,zt,ae,Oe,me,Ut);pt.states[Kt].addTransition(De),tt+=6;}let qt=new O.Array2DHashSet({hashCode:Rt=>Rt.stopState^Rt.returnState^Rt.outermostPrecedenceReturn,equals:(Rt,Kt)=>Rt.stopState===Kt.stopState&&Rt.returnState===Kt.returnState&&Rt.outermostPrecedenceReturn===Kt.outermostPrecedenceReturn}),se=[];for(let Rt of pt.states){let Kt=Rt.ruleIndex>=0&&pt.ruleToStartState[Rt.ruleIndex].leftFactored;for(let zt=0;zt<Rt.numberOfTransitions;zt++){let Yt=Rt.transition(zt);if(!(Yt instanceof yt.RuleTransition))continue;let ae=Yt;if(!pt.ruleToStartState[ae.target.ruleIndex].leftFactored&&Kt)continue;let me=-1;pt.ruleToStartState[ae.target.ruleIndex].isPrecedenceRule&&ae.precedence===0&&(me=ae.target.ruleIndex);let De={stopState:ae.target.ruleIndex,returnState:ae.followState.stateNumber,outermostPrecedenceReturn:me};qt.add(De)&&se.push(De);}}for(let Rt of se){let Kt=new y.EpsilonTransition(pt.states[Rt.returnState],Rt.outermostPrecedenceReturn);pt.ruleToStopState[Rt.stopState].addTransition(Kt);}for(let Rt of pt.states){if(Rt instanceof a.BlockStartState){if(Rt.endState===void 0)throw new Error("IllegalStateException");if(Rt.endState.startState!==void 0)throw new Error("IllegalStateException");Rt.endState.startState=Rt;}if(Rt instanceof ft.PlusLoopbackState){let Kt=Rt;for(let zt=0;zt<Kt.numberOfTransitions;zt++){let Yt=Kt.transition(zt).target;Yt instanceof ut.PlusBlockStartState&&(Yt.loopBackState=Kt);}}else if(Rt instanceof G.StarLoopbackState){let Kt=Rt;for(let zt=0;zt<Kt.numberOfTransitions;zt++){let Yt=Kt.transition(zt).target;Yt instanceof Q.StarLoopEntryState&&(Yt.loopBackState=Kt);}}}let ee=it.toInt(Z[tt++]);for(let Rt=1;Rt<=ee;Rt++){let Kt=it.toInt(Z[tt++]),zt=pt.states[Kt];pt.decisionToState.push(zt),zt.decision=Rt-1;}if(pt.grammarType===0)if(et){pt.lexerActions=new Array(it.toInt(Z[tt++]));for(let Rt=0;Rt<pt.lexerActions.length;Rt++){let Kt=it.toInt(Z[tt++]),zt=it.toInt(Z[tt++]);zt===65535&&(zt=-1);let Yt=it.toInt(Z[tt++]);Yt===65535&&(Yt=-1);let ae=this.lexerActionFactory(Kt,zt,Yt);pt.lexerActions[Rt]=ae;}}else {let Rt=[];for(let Kt of pt.states)for(let zt=0;zt<Kt.numberOfTransitions;zt++){let Yt=Kt.transition(zt);if(!(Yt instanceof g.ActionTransition))continue;let ae=Yt.ruleIndex,Oe=Yt.actionIndex,me=new b.LexerCustomAction(ae,Oe);Kt.setTransition(zt,new g.ActionTransition(Yt.target,ae,Rt.length,false)),Rt.push(me);}pt.lexerActions=Rt;}this.markPrecedenceDecisions(pt),pt.decisionToDFA=new Array(ee);for(let Rt=0;Rt<ee;Rt++)pt.decisionToDFA[Rt]=new t.DFA(pt.decisionToState[Rt],Rt);if(this.deserializationOptions.isVerifyATN&&this.verifyATN(pt),this.deserializationOptions.isGenerateRuleBypassTransitions&&pt.grammarType===1){pt.ruleToTokenType=new Int32Array(pt.ruleToStartState.length);for(let Rt=0;Rt<pt.ruleToStartState.length;Rt++)pt.ruleToTokenType[Rt]=pt.maxTokenType+Rt+1;for(let Rt=0;Rt<pt.ruleToStartState.length;Rt++){let Kt=new r.BasicBlockStartState;Kt.ruleIndex=Rt,pt.addState(Kt);let zt=new c.BlockEndState;zt.ruleIndex=Rt,pt.addState(zt),Kt.endState=zt,pt.defineDecisionState(Kt),zt.startState=Kt;let Yt,ae;if(pt.ruleToStartState[Rt].isPrecedenceRule){Yt=void 0;for(let me of pt.states){if(me.ruleIndex!==Rt||!(me instanceof Q.StarLoopEntryState))continue;let De=me.transition(me.numberOfTransitions-1).target;if(De instanceof L.LoopEndState&&De.epsilonOnlyTransitions&&De.transition(0).target instanceof _t.RuleStopState){Yt=me;break}}if(!Yt)throw new Error("Couldn't identify final state of the precedence rule prefix section.");ae=Yt.loopBackState.transition(0);}else Yt=pt.ruleToStopState[Rt];for(let me of pt.states)for(let De=0;De<me.numberOfTransitions;De++){let $e=me.transition(De);$e!==ae&&$e.target===Yt&&($e.target=zt);}for(;pt.ruleToStartState[Rt].numberOfTransitions>0;){let me=pt.ruleToStartState[Rt].removeTransition(pt.ruleToStartState[Rt].numberOfTransitions-1);Kt.addTransition(me);}pt.ruleToStartState[Rt].addTransition(new y.EpsilonTransition(Kt)),zt.addTransition(new y.EpsilonTransition(Yt));let Oe=new x.BasicState;pt.addState(Oe),Oe.addTransition(new o.AtomTransition(zt,pt.ruleToTokenType[Rt])),Kt.addTransition(new y.EpsilonTransition(Oe));}this.deserializationOptions.isVerifyATN&&this.verifyATN(pt);}if(this.deserializationOptions.isOptimize){for(;;){let Rt=0;Rt+=it.inlineSetRules(pt),Rt+=it.combineChainedEpsilons(pt);let Kt=pt.grammarType===0;if(Rt+=it.optimizeSets(pt,Kt),Rt===0)break}this.deserializationOptions.isVerifyATN&&this.verifyATN(pt);}return it.identifyTailCalls(pt),pt}deserializeSets(Z,tt,q,Y){let et=it.toInt(Z[tt++]);for(let X=0;X<et;X++){let Ct=it.toInt(Z[tt]);tt++;let pt=new v.IntervalSet;q.push(pt),it.toInt(Z[tt++])!==0&&pt.add(-1);for(let Ht=0;Ht<Ct;Ht++){let $t=Y.readUnicode(Z,tt);tt+=Y.size;let Wt=Y.readUnicode(Z,tt);tt+=Y.size,pt.add($t,Wt);}}return tt}markPrecedenceDecisions(Z){let tt=new Map;for(let q of Z.states)if(q instanceof Q.StarLoopEntryState&&Z.ruleToStartState[q.ruleIndex].isPrecedenceRule){let Y=q.transition(q.numberOfTransitions-1).target;Y instanceof L.LoopEndState&&Y.epsilonOnlyTransitions&&Y.transition(0).target instanceof _t.RuleStopState&&(tt.set(q.ruleIndex,q),q.precedenceRuleDecision=true,q.precedenceLoopbackStates=new n.BitSet(Z.states.length));}for(let q of tt)for(let Y of Z.ruleToStopState[q[0]].getTransitions())Y.serializationType!==1||Y.outermostPrecedenceReturn!==-1||q[1].precedenceLoopbackStates.set(Y.target.stateNumber);}verifyATN(Z){for(let tt of Z.states)if(this.checkCondition(tt!==void 0,"ATN states should not be undefined."),tt.stateType!==s.ATNStateType.INVALID_TYPE){if(this.checkCondition(tt.onlyHasEpsilonTransitions||tt.numberOfTransitions<=1),tt instanceof ut.PlusBlockStartState&&this.checkCondition(tt.loopBackState!==void 0),tt instanceof Q.StarLoopEntryState){let q=tt;if(this.checkCondition(q.loopBackState!==void 0),this.checkCondition(q.numberOfTransitions===2),q.transition(0).target instanceof K.StarBlockStartState)this.checkCondition(q.transition(1).target instanceof L.LoopEndState),this.checkCondition(!q.nonGreedy);else if(q.transition(0).target instanceof L.LoopEndState)this.checkCondition(q.transition(1).target instanceof K.StarBlockStartState),this.checkCondition(q.nonGreedy);else throw new Error("IllegalStateException")}if(tt instanceof G.StarLoopbackState&&(this.checkCondition(tt.numberOfTransitions===1),this.checkCondition(tt.transition(0).target instanceof Q.StarLoopEntryState)),tt instanceof L.LoopEndState&&this.checkCondition(tt.loopBackState!==void 0),tt instanceof jt.RuleStartState&&this.checkCondition(tt.stopState!==void 0),tt instanceof a.BlockStartState&&this.checkCondition(tt.endState!==void 0),tt instanceof c.BlockEndState&&this.checkCondition(tt.startState!==void 0),tt instanceof p.DecisionState){let q=tt;this.checkCondition(q.numberOfTransitions<=1||q.decision>=0);}else this.checkCondition(tt.numberOfTransitions<=1||tt instanceof _t.RuleStopState);}}checkCondition(Z,tt){if(!Z)throw new Error("IllegalStateException: "+tt)}static inlineSetRules(Z){let tt=0,q=new Array(Z.ruleToStartState.length);for(let Y=0;Y<Z.ruleToStartState.length;Y++){let X=Z.ruleToStartState[Y];for(;X.onlyHasEpsilonTransitions&&X.numberOfOptimizedTransitions===1&&X.getOptimizedTransition(0).serializationType===1;)X=X.getOptimizedTransition(0).target;if(X.numberOfOptimizedTransitions!==1)continue;let Ct=X.getOptimizedTransition(0),pt=Ct.target;if(!(Ct.isEpsilon||!pt.onlyHasEpsilonTransitions||pt.numberOfOptimizedTransitions!==1||!(pt.getOptimizedTransition(0).target instanceof _t.RuleStopState)))switch(Ct.serializationType){case 5:case 2:case 7:q[Y]=Ct;break;case 8:case 9:continue;default:continue}}for(let Y of Z.states){if(Y.ruleIndex<0)continue;let et;for(let X=0;X<Y.numberOfOptimizedTransitions;X++){let Ct=Y.getOptimizedTransition(X);if(!(Ct instanceof yt.RuleTransition)){et!==void 0&&et.push(Ct);continue}let pt=Ct,Bt=q[pt.target.ruleIndex];if(Bt===void 0){et!==void 0&&et.push(Ct);continue}if(et===void 0){et=[];for(let Wt=0;Wt<X;Wt++)et.push(Y.getOptimizedTransition(X));}tt++;let Ht=pt.followState,$t=new x.BasicState;switch($t.setRuleIndex(Ht.ruleIndex),Z.addState($t),et.push(new y.EpsilonTransition($t)),Bt.serializationType){case 5:$t.addTransition(new o.AtomTransition(Ht,Bt._label));break;case 2:$t.addTransition(new dt.RangeTransition(Ht,Bt.from,Bt.to));break;case 7:$t.addTransition(new rt.SetTransition(Ht,Bt.label));break;default:throw new Error("UnsupportedOperationException")}}if(et!==void 0){if(Y.isOptimized)for(;Y.numberOfOptimizedTransitions>0;)Y.removeOptimizedTransition(Y.numberOfOptimizedTransitions-1);for(let X of et)Y.addOptimizedTransition(X);}}return J.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+tt+" rule invocations by inlining sets."),tt}static combineChainedEpsilons(Z){let tt=0;for(let q of Z.states){if(!q.onlyHasEpsilonTransitions||q instanceof _t.RuleStopState)continue;let Y;t:for(let et=0;et<q.numberOfOptimizedTransitions;et++){let X=q.getOptimizedTransition(et),Ct=X.target;if(X.serializationType!==1||X.outermostPrecedenceReturn!==-1||Ct.stateType!==s.ATNStateType.BASIC||!Ct.onlyHasEpsilonTransitions){Y!==void 0&&Y.push(X);continue t}for(let pt=0;pt<Ct.numberOfOptimizedTransitions;pt++)if(Ct.getOptimizedTransition(pt).serializationType!==1||Ct.getOptimizedTransition(pt).outermostPrecedenceReturn!==-1){Y!==void 0&&Y.push(X);continue t}if(tt++,Y===void 0){Y=[];for(let pt=0;pt<et;pt++)Y.push(q.getOptimizedTransition(pt));}for(let pt=0;pt<Ct.numberOfOptimizedTransitions;pt++){let Bt=Ct.getOptimizedTransition(pt).target;Y.push(new y.EpsilonTransition(Bt));}}if(Y!==void 0){if(q.isOptimized)for(;q.numberOfOptimizedTransitions>0;)q.removeOptimizedTransition(q.numberOfOptimizedTransitions-1);for(let et of Y)q.addOptimizedTransition(et);}}return J.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+tt+" transitions by combining chained epsilon transitions."),tt}static optimizeSets(Z,tt){if(tt)return 0;let q=0,Y=Z.decisionToState;for(let et of Y){let X=new v.IntervalSet;for(let Wt=0;Wt<et.numberOfOptimizedTransitions;Wt++){let mt=et.getOptimizedTransition(Wt);if(!(mt instanceof y.EpsilonTransition)||mt.target.numberOfOptimizedTransitions!==1)continue;let Tt=mt.target.getOptimizedTransition(0);Tt.target instanceof c.BlockEndState&&(Tt instanceof k.NotSetTransition||(Tt instanceof o.AtomTransition||Tt instanceof dt.RangeTransition||Tt instanceof rt.SetTransition)&&X.add(Wt));}if(X.size<=1)continue;let Ct=[];for(let Wt=0;Wt<et.numberOfOptimizedTransitions;Wt++)X.contains(Wt)||Ct.push(et.getOptimizedTransition(Wt));let pt=et.getOptimizedTransition(X.minElement).target.getOptimizedTransition(0).target,Bt=new v.IntervalSet;for(let Wt of X.intervals)for(let mt=Wt.a;mt<=Wt.b;mt++){let Tt=et.getOptimizedTransition(mt).target.getOptimizedTransition(0);if(Tt instanceof k.NotSetTransition)throw new Error("Not yet implemented.");Bt.addAll(Tt.label);}let Ht;if(Bt.intervals.length===1)if(Bt.size===1)Ht=new o.AtomTransition(pt,Bt.minElement);else {let Wt=Bt.intervals[0];Ht=new dt.RangeTransition(pt,Wt.a,Wt.b);}else Ht=new rt.SetTransition(pt,Bt);let $t=new x.BasicState;if($t.setRuleIndex(et.ruleIndex),Z.addState($t),$t.addTransition(Ht),Ct.push(new y.EpsilonTransition($t)),q+=et.numberOfOptimizedTransitions-Ct.length,et.isOptimized)for(;et.numberOfOptimizedTransitions>0;)et.removeOptimizedTransition(et.numberOfOptimizedTransitions-1);for(let Wt of Ct)et.addOptimizedTransition(Wt);}return J.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+q+" paths by collapsing sets."),q}static identifyTailCalls(Z){for(let tt of Z.states){for(let q=0;q<tt.numberOfTransitions;q++){let Y=tt.transition(q);Y instanceof yt.RuleTransition&&(Y.tailCall=this.testTailCall(Z,Y,false),Y.optimizedTailCall=this.testTailCall(Z,Y,true));}if(tt.isOptimized)for(let q=0;q<tt.numberOfOptimizedTransitions;q++){let Y=tt.getOptimizedTransition(q);Y instanceof yt.RuleTransition&&(Y.tailCall=this.testTailCall(Z,Y,false),Y.optimizedTailCall=this.testTailCall(Z,Y,true));}}}static testTailCall(Z,tt,q){if(!q&&tt.tailCall||q&&tt.optimizedTailCall)return true;let Y=new n.BitSet(Z.states.length),et=[];for(et.push(tt.followState);;){let X=et.pop();if(!X)break;if(Y.get(X.stateNumber)||X instanceof _t.RuleStopState)continue;if(!X.onlyHasEpsilonTransitions)return false;let Ct=q?X.numberOfOptimizedTransitions:X.numberOfTransitions;for(let pt=0;pt<Ct;pt++){let Bt=q?X.getOptimizedTransition(pt):X.transition(pt);if(Bt.serializationType!==1)return false;et.push(Bt.target);}}return true}static toInt(Z){return Z}static toInt32(Z,tt){return (Z[tt]|Z[tt+1]<<16)>>>0}static toUUID(Z,tt){let q=it.toInt32(Z,tt),Y=it.toInt32(Z,tt+2),et=it.toInt32(Z,tt+4),X=it.toInt32(Z,tt+6);return new st.UUID(X,et,Y,q)}edgeFactory(Z,tt,q,Y,et,X,Ct,pt){let Bt=Z.states[Y];switch(tt){case 1:return new y.EpsilonTransition(Bt);case 2:return Ct!==0?new dt.RangeTransition(Bt,ot.Token.EOF,X):new dt.RangeTransition(Bt,et,X);case 3:return new yt.RuleTransition(Z.states[et],X,Ct,Bt);case 4:return new Dt.PredicateTransition(Bt,et,X,Ct!==0);case 10:return new At.PrecedencePredicateTransition(Bt,et);case 5:return Ct!==0?new o.AtomTransition(Bt,ot.Token.EOF):new o.AtomTransition(Bt,et);case 6:return new g.ActionTransition(Bt,et,X,Ct!==0);case 7:return new rt.SetTransition(Bt,pt[et]);case 8:return new k.NotSetTransition(Bt,pt[et]);case 9:return new ht.WildcardTransition(Bt)}throw new Error("The specified transition type is not valid.")}stateFactory(Z,tt){let q;switch(Z){case s.ATNStateType.INVALID_TYPE:return new S.InvalidState;case s.ATNStateType.BASIC:q=new x.BasicState;break;case s.ATNStateType.RULE_START:q=new jt.RuleStartState;break;case s.ATNStateType.BLOCK_START:q=new r.BasicBlockStartState;break;case s.ATNStateType.PLUS_BLOCK_START:q=new ut.PlusBlockStartState;break;case s.ATNStateType.STAR_BLOCK_START:q=new K.StarBlockStartState;break;case s.ATNStateType.TOKEN_START:q=new lt.TokensStartState;break;case s.ATNStateType.RULE_STOP:q=new _t.RuleStopState;break;case s.ATNStateType.BLOCK_END:q=new c.BlockEndState;break;case s.ATNStateType.STAR_LOOP_BACK:q=new G.StarLoopbackState;break;case s.ATNStateType.STAR_LOOP_ENTRY:q=new Q.StarLoopEntryState;break;case s.ATNStateType.PLUS_LOOP_BACK:q=new ft.PlusLoopbackState;break;case s.ATNStateType.LOOP_END:q=new L.LoopEndState;break;default:let Y=`The specified state type ${Z} is not valid.`;throw new Error(Y)}return q.ruleIndex=tt,q}lexerActionFactory(Z,tt,q){switch(Z){case 0:return new N.LexerChannelAction(tt);case 1:return new b.LexerCustomAction(tt,q);case 2:return new U.LexerModeAction(tt);case 3:return A.LexerMoreAction.INSTANCE;case 4:return w.LexerPopModeAction.INSTANCE;case 5:return new F.LexerPushModeAction(tt);case 6:return M.LexerSkipAction.INSTANCE;case 7:return new W.LexerTypeAction(tt);default:let Y=`The specified lexer action type ${Z} is not valid.`;throw new Error(Y)}}}it.BASE_SERIALIZED_UUID=st.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"),it.ADDED_LEXER_ACTIONS=st.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"),it.ADDED_UNICODE_SMP=st.UUID.fromString("C23FEA89-0605-4f51-AFB8-058BCAB8C91B"),it.SUPPORTED_UUIDS=[it.BASE_SERIALIZED_UUID,it.ADDED_LEXER_ACTIONS,it.ADDED_UNICODE_SMP],it.SERIALIZED_UUID=it.ADDED_UNICODE_SMP,d([j.NotNull],it.prototype,"deserializationOptions",void 0),d([m(0,j.NotNull)],it.prototype,"deserialize",null),d([m(0,j.NotNull)],it.prototype,"markPrecedenceDecisions",null),d([j.NotNull,m(0,j.NotNull)],it.prototype,"edgeFactory",null),l.ATNDeserializer=it;}),"./node_modules/antlr4ts/atn/ATNSimulator.js":(function(D,l,f){var d=this&&this.__decorate||function(o,r,x,n){var c=arguments.length,a=c<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,x):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,r,x,n);else for(var t=o.length-1;t>=0;t--)(p=o[t])&&(a=(c<3?p(a):c>3?p(r,x,a):p(r,x))||a);return c>3&&a&&Object.defineProperty(r,x,a),a},m=this&&this.__param||function(o,r){return function(x,n){r(x,n,o);}};Object.defineProperty(l,"__esModule",{value:true}),l.ATNSimulator=void 0;let g=f("./node_modules/antlr4ts/atn/ATNConfigSet.js"),O=f("./node_modules/antlr4ts/dfa/DFAState.js"),T=f("./node_modules/antlr4ts/Decorators.js"),h=f("./node_modules/antlr4ts/atn/PredictionContext.js"),s=class hi{constructor(r){this.atn=r;}static get ERROR(){return hi._ERROR||(hi._ERROR=new O.DFAState(new g.ATNConfigSet),hi._ERROR.stateNumber=h.PredictionContext.EMPTY_FULL_STATE_KEY),hi._ERROR}clearDFA(){this.atn.clearDFA();}};d([T.NotNull],s.prototype,"atn",void 0),d([T.NotNull],s,"ERROR",null),s=d([m(0,T.NotNull)],s),l.ATNSimulator=s,s=l.ATNSimulator||(l.ATNSimulator={}),l.ATNSimulator=s;}),"./node_modules/antlr4ts/atn/ATNState.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x};Object.defineProperty(l,"__esModule",{value:true}),l.ATNState=void 0;let m=f("./node_modules/antlr4ts/Decorators.js");class O{constructor(){this.stateNumber=O.INVALID_STATE_NUMBER,this.ruleIndex=0,this.epsilonOnlyTransitions=false,this.transitions=[],this.optimizedTransitions=this.transitions;}getStateNumber(){return this.stateNumber}get nonStopStateNumber(){return this.getStateNumber()}hashCode(){return this.stateNumber}equals(h){return h instanceof O?this.stateNumber===h.stateNumber:false}get isNonGreedyExitState(){return false}toString(){return String(this.stateNumber)}getTransitions(){return this.transitions.slice(0)}get numberOfTransitions(){return this.transitions.length}addTransition(h,s){if(this.transitions.length===0)this.epsilonOnlyTransitions=h.isEpsilon;else if(this.epsilonOnlyTransitions!==h.isEpsilon)throw this.epsilonOnlyTransitions=false,new Error("ATN state "+this.stateNumber+" has both epsilon and non-epsilon transitions.");this.transitions.splice(s!==void 0?s:this.transitions.length,0,h);}transition(h){return this.transitions[h]}setTransition(h,s){this.transitions[h]=s;}removeTransition(h){return this.transitions.splice(h,1)[0]}get onlyHasEpsilonTransitions(){return this.epsilonOnlyTransitions}setRuleIndex(h){this.ruleIndex=h;}get isOptimized(){return this.optimizedTransitions!==this.transitions}get numberOfOptimizedTransitions(){return this.optimizedTransitions.length}getOptimizedTransition(h){return this.optimizedTransitions[h]}addOptimizedTransition(h){this.isOptimized||(this.optimizedTransitions=new Array),this.optimizedTransitions.push(h);}setOptimizedTransition(h,s){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions[h]=s;}removeOptimizedTransition(h){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions.splice(h,1);}}d([m.Override],O.prototype,"hashCode",null),d([m.Override],O.prototype,"equals",null),d([m.Override],O.prototype,"toString",null),l.ATNState=O,(function(T){T.INVALID_STATE_NUMBER=-1;})(O=l.ATNState||(l.ATNState={}));}),"./node_modules/antlr4ts/atn/ATNStateType.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.ATNStateType=void 0;(function(d){d[d.INVALID_TYPE=0]="INVALID_TYPE",d[d.BASIC=1]="BASIC",d[d.RULE_START=2]="RULE_START",d[d.BLOCK_START=3]="BLOCK_START",d[d.PLUS_BLOCK_START=4]="PLUS_BLOCK_START",d[d.STAR_BLOCK_START=5]="STAR_BLOCK_START",d[d.TOKEN_START=6]="TOKEN_START",d[d.RULE_STOP=7]="RULE_STOP",d[d.BLOCK_END=8]="BLOCK_END",d[d.STAR_LOOP_BACK=9]="STAR_LOOP_BACK",d[d.STAR_LOOP_ENTRY=10]="STAR_LOOP_ENTRY",d[d.PLUS_LOOP_BACK=11]="PLUS_LOOP_BACK",d[d.LOOP_END=12]="LOOP_END";})(l.ATNStateType||(l.ATNStateType={}));}),"./node_modules/antlr4ts/atn/AbstractPredicateTransition.js":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.AbstractPredicateTransition=void 0;let d=f("./node_modules/antlr4ts/atn/Transition.js");class m extends d.Transition{constructor(O){super(O);}}l.AbstractPredicateTransition=m;}),"./node_modules/antlr4ts/atn/ActionTransition.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.ActionTransition=void 0;let g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/atn/Transition.js"),T=class extends O.Transition{constructor(s,o,r=-1,x=false){super(s),this.ruleIndex=o,this.actionIndex=r,this.isCtxDependent=x;}get serializationType(){return 6}get isEpsilon(){return true}matches(s,o,r){return false}toString(){return "action_"+this.ruleIndex+":"+this.actionIndex}};d([g.Override],T.prototype,"serializationType",null),d([g.Override],T.prototype,"isEpsilon",null),d([g.Override],T.prototype,"matches",null),d([g.Override],T.prototype,"toString",null),T=d([m(0,g.NotNull)],T),l.ActionTransition=T;}),"./node_modules/antlr4ts/atn/AmbiguityInfo.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.AmbiguityInfo=void 0;let g=f("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=class extends g.DecisionEventInfo{constructor(s,o,r,x,n,c){super(s,o,x,n,c,o.useContext),this.ambigAlts=r;}get ambiguousAlternatives(){return this.ambigAlts}};d([O.NotNull],T.prototype,"ambigAlts",void 0),d([O.NotNull],T.prototype,"ambiguousAlternatives",null),T=d([m(1,O.NotNull),m(2,O.NotNull),m(3,O.NotNull)],T),l.AmbiguityInfo=T;}),"./node_modules/antlr4ts/atn/AtomTransition.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c},m=this&&this.__param||function(s,o){return function(r,x){o(r,x,s);}};Object.defineProperty(l,"__esModule",{value:true}),l.AtomTransition=void 0;let g=f("./node_modules/antlr4ts/misc/IntervalSet.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/atn/Transition.js"),h=class extends T.Transition{constructor(o,r){super(o),this._label=r;}get serializationType(){return 5}get label(){return g.IntervalSet.of(this._label)}matches(o,r,x){return this._label===o}toString(){return String(this.label)}};d([O.Override],h.prototype,"serializationType",null),d([O.Override,O.NotNull],h.prototype,"label",null),d([O.Override],h.prototype,"matches",null),d([O.Override,O.NotNull],h.prototype,"toString",null),h=d([m(0,O.NotNull)],h),l.AtomTransition=h;}),"./node_modules/antlr4ts/atn/BasicBlockStartState.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.BasicBlockStartState=void 0;let m=f("./node_modules/antlr4ts/atn/ATNStateType.js"),g=f("./node_modules/antlr4ts/atn/BlockStartState.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T extends g.BlockStartState{get stateType(){return m.ATNStateType.BLOCK_START}}d([O.Override],T.prototype,"stateType",null),l.BasicBlockStartState=T;}),"./node_modules/antlr4ts/atn/BasicState.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.BasicState=void 0;let m=f("./node_modules/antlr4ts/atn/ATNState.js"),g=f("./node_modules/antlr4ts/atn/ATNStateType.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T extends m.ATNState{get stateType(){return g.ATNStateType.BASIC}}d([O.Override],T.prototype,"stateType",null),l.BasicState=T;}),"./node_modules/antlr4ts/atn/BlockEndState.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.BlockEndState=void 0;let m=f("./node_modules/antlr4ts/atn/ATNState.js"),g=f("./node_modules/antlr4ts/atn/ATNStateType.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T extends m.ATNState{get stateType(){return g.ATNStateType.BLOCK_END}}d([O.Override],T.prototype,"stateType",null),l.BlockEndState=T;}),"./node_modules/antlr4ts/atn/BlockStartState.js":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.BlockStartState=void 0;let d=f("./node_modules/antlr4ts/atn/DecisionState.js");class m extends d.DecisionState{}l.BlockStartState=m;}),"./node_modules/antlr4ts/atn/ConflictInfo.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x};Object.defineProperty(l,"__esModule",{value:true}),l.ConflictInfo=void 0;let m=f("./node_modules/antlr4ts/Decorators.js"),g=f("./node_modules/antlr4ts/misc/Utils.js");class O{constructor(h,s){this._conflictedAlts=h,this.exact=s;}get conflictedAlts(){return this._conflictedAlts}get isExact(){return this.exact}equals(h){return h===this?true:h instanceof O?this.isExact===h.isExact&&g.equals(this.conflictedAlts,h.conflictedAlts):false}hashCode(){return this.conflictedAlts.hashCode()}}d([m.Override],O.prototype,"equals",null),d([m.Override],O.prototype,"hashCode",null),l.ConflictInfo=O;}),"./node_modules/antlr4ts/atn/ContextSensitivityInfo.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.ContextSensitivityInfo=void 0;let g=f("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=class extends g.DecisionEventInfo{constructor(s,o,r,x,n){super(s,o,r,x,n,true);}};T=d([m(1,O.NotNull),m(2,O.NotNull)],T),l.ContextSensitivityInfo=T;}),"./node_modules/antlr4ts/atn/DecisionEventInfo.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x},m=this&&this.__param||function(T,h){return function(s,o){h(s,o,T);}};Object.defineProperty(l,"__esModule",{value:true}),l.DecisionEventInfo=void 0;let g=f("./node_modules/antlr4ts/Decorators.js"),O=class{constructor(h,s,o,r,x,n){this.decision=h,this.fullCtx=n,this.stopIndex=x,this.input=o,this.startIndex=r,this.state=s;}};d([g.NotNull],O.prototype,"input",void 0),O=d([m(2,g.NotNull)],O),l.DecisionEventInfo=O;}),"./node_modules/antlr4ts/atn/DecisionInfo.js":(function(D,l,f){var d=this&&this.__decorate||function(O,T,h,s){var o=arguments.length,r=o<3?T:s===null?s=Object.getOwnPropertyDescriptor(T,h):s,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(O,T,h,s);else for(var n=O.length-1;n>=0;n--)(x=O[n])&&(r=(o<3?x(r):o>3?x(T,h,r):x(T,h))||r);return o>3&&r&&Object.defineProperty(T,h,r),r};Object.defineProperty(l,"__esModule",{value:true}),l.DecisionInfo=void 0;let m=f("./node_modules/antlr4ts/Decorators.js");class g{constructor(T){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=T;}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+"}"}}d([m.Override],g.prototype,"toString",null),l.DecisionInfo=g;}),"./node_modules/antlr4ts/atn/DecisionState.js":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.DecisionState=void 0;let d=f("./node_modules/antlr4ts/atn/ATNState.js");class m extends d.ATNState{constructor(){super(...arguments),this.decision=-1,this.nonGreedy=false,this.sll=false;}}l.DecisionState=m;}),"./node_modules/antlr4ts/atn/EpsilonTransition.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.EpsilonTransition=void 0;let g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/atn/Transition.js"),T=class extends O.Transition{constructor(s,o=-1){super(s),this._outermostPrecedenceReturn=o;}get outermostPrecedenceReturn(){return this._outermostPrecedenceReturn}get serializationType(){return 1}get isEpsilon(){return true}matches(s,o,r){return false}toString(){return "epsilon"}};d([g.Override],T.prototype,"serializationType",null),d([g.Override],T.prototype,"isEpsilon",null),d([g.Override],T.prototype,"matches",null),d([g.Override,g.NotNull],T.prototype,"toString",null),T=d([m(0,g.NotNull)],T),l.EpsilonTransition=T;}),"./node_modules/antlr4ts/atn/ErrorInfo.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.ErrorInfo=void 0;let g=f("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=class extends g.DecisionEventInfo{constructor(s,o,r,x,n){super(s,o,r,x,n,o.useContext);}};T=d([m(1,O.NotNull),m(2,O.NotNull)],T),l.ErrorInfo=T;}),"./node_modules/antlr4ts/atn/InvalidState.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.InvalidState=void 0;let m=f("./node_modules/antlr4ts/atn/ATNStateType.js"),g=f("./node_modules/antlr4ts/atn/BasicState.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T extends g.BasicState{get stateType(){return m.ATNStateType.INVALID_TYPE}}d([O.Override],T.prototype,"stateType",null),l.InvalidState=T;}),"./node_modules/antlr4ts/atn/LL1Analyzer.js":(function(D,l,f){var d=this&&this.__decorate||function(v,S,N,b){var U=arguments.length,A=U<3?S:b===null?b=Object.getOwnPropertyDescriptor(S,N):b,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(v,S,N,b);else for(var F=v.length-1;F>=0;F--)(w=v[F])&&(A=(U<3?w(A):U>3?w(S,N,A):w(S,N))||A);return U>3&&A&&Object.defineProperty(S,N,A),A},m=this&&this.__param||function(v,S){return function(N,b){S(N,b,v);}};Object.defineProperty(l,"__esModule",{value:true}),l.LL1Analyzer=void 0;let g=f("./node_modules/antlr4ts/atn/AbstractPredicateTransition.js"),O=f("./node_modules/antlr4ts/misc/Array2DHashSet.js"),T=f("./node_modules/antlr4ts/atn/ATNConfig.js"),h=f("./node_modules/antlr4ts/misc/BitSet.js"),s=f("./node_modules/antlr4ts/misc/IntervalSet.js"),o=f("./node_modules/antlr4ts/Decorators.js"),r=f("./node_modules/antlr4ts/atn/NotSetTransition.js"),x=f("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),n=f("./node_modules/antlr4ts/atn/PredictionContext.js"),c=f("./node_modules/antlr4ts/atn/RuleStopState.js"),a=f("./node_modules/antlr4ts/atn/RuleTransition.js"),p=f("./node_modules/antlr4ts/Token.js"),t=f("./node_modules/antlr4ts/atn/WildcardTransition.js"),y=class uo{constructor(S){this.atn=S;}getDecisionLookahead(S){if(S==null)return;let N=new Array(S.numberOfTransitions);for(let b=0;b<S.numberOfTransitions;b++){let U=new s.IntervalSet;N[b]=U;let A=new O.Array2DHashSet(x.ObjectEqualityComparator.INSTANCE);this._LOOK(S.transition(b).target,void 0,n.PredictionContext.EMPTY_LOCAL,U,A,new h.BitSet,false,false),(U.size===0||U.contains(uo.HIT_PRED))&&(U=void 0,N[b]=U);}return N}LOOK(S,N,b){if(b===void 0){if(S.atn==null)throw new Error("Illegal state");b=S.atn.ruleToStopState[S.ruleIndex];}else b===null&&(b=void 0);let U=new s.IntervalSet;return this._LOOK(S,b,N,U,new O.Array2DHashSet,new h.BitSet,true,true),U}_LOOK(S,N,b,U,A,w,F,M){let W=T.ATNConfig.create(S,0,b);if(!A.add(W))return;if(S===N){if(n.PredictionContext.isEmptyLocal(b)){U.add(p.Token.EPSILON);return}else if(b.isEmpty){M&&U.add(p.Token.EOF);return}}if(S instanceof c.RuleStopState){if(b.isEmpty&&!n.PredictionContext.isEmptyLocal(b)){M&&U.add(p.Token.EOF);return}let j=w.get(S.ruleIndex);try{w.clear(S.ruleIndex);for(let k=0;k<b.size;k++){if(b.getReturnState(k)===n.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let J=this.atn.states[b.getReturnState(k)];this._LOOK(J,N,b.getParent(k),U,A,w,F,M);}}finally{j&&w.set(S.ruleIndex);}}let L=S.numberOfTransitions;for(let j=0;j<L;j++){let k=S.transition(j);if(k instanceof a.RuleTransition){if(w.get(k.ruleIndex))continue;let J=b.getChild(k.followState.stateNumber);try{w.set(k.ruleIndex),this._LOOK(k.target,N,J,U,A,w,F,M);}finally{w.clear(k.ruleIndex);}}else if(k instanceof g.AbstractPredicateTransition)F?this._LOOK(k.target,N,b,U,A,w,F,M):U.add(uo.HIT_PRED);else if(k.isEpsilon)this._LOOK(k.target,N,b,U,A,w,F,M);else if(k instanceof t.WildcardTransition)U.addAll(s.IntervalSet.of(p.Token.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));else {let J=k.label;J!=null&&(k instanceof r.NotSetTransition&&(J=J.complement(s.IntervalSet.of(p.Token.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType))),U.addAll(J));}}}};y.HIT_PRED=p.Token.INVALID_TYPE,d([o.NotNull],y.prototype,"atn",void 0),d([o.NotNull,m(0,o.NotNull),m(1,o.NotNull)],y.prototype,"LOOK",null),d([m(0,o.NotNull),m(2,o.NotNull),m(3,o.NotNull),m(4,o.NotNull),m(5,o.NotNull)],y.prototype,"_LOOK",null),y=d([m(0,o.NotNull)],y),l.LL1Analyzer=y;}),"./node_modules/antlr4ts/atn/LexerATNSimulator.js":(function(D,l,f){var d=this&&this.__decorate||function(U,A,w,F){var M=arguments.length,W=M<3?A:F===null?F=Object.getOwnPropertyDescriptor(A,w):F,L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")W=Reflect.decorate(U,A,w,F);else for(var j=U.length-1;j>=0;j--)(L=U[j])&&(W=(M<3?L(W):M>3?L(A,w,W):L(A,w))||W);return M>3&&W&&Object.defineProperty(A,w,W),W},m=this&&this.__param||function(U,A){return function(w,F){A(w,F,U);}};Object.defineProperty(l,"__esModule",{value:true}),l.LexerATNSimulator=void 0;let g=f("./node_modules/antlr4ts/dfa/AcceptStateInfo.js"),O=f("./node_modules/antlr4ts/atn/ATN.js"),T=f("./node_modules/antlr4ts/atn/ATNConfig.js"),h=f("./node_modules/antlr4ts/atn/ATNConfigSet.js"),s=f("./node_modules/antlr4ts/atn/ATNSimulator.js"),o=f("./node_modules/antlr4ts/dfa/DFAState.js"),r=f("./node_modules/antlr4ts/misc/Interval.js"),x=f("./node_modules/antlr4ts/IntStream.js"),n=f("./node_modules/antlr4ts/Lexer.js"),c=f("./node_modules/antlr4ts/atn/LexerActionExecutor.js"),a=f("./node_modules/antlr4ts/LexerNoViableAltException.js"),p=f("./node_modules/antlr4ts/Decorators.js"),t=f("./node_modules/antlr4ts/atn/OrderedATNConfigSet.js"),y=f("./node_modules/antlr4ts/atn/PredictionContext.js"),v=f("./node_modules/antlr4ts/atn/RuleStopState.js"),S=f("./node_modules/antlr4ts/Token.js"),N=f("./node_modules/assert/build/assert.js"),b=class en extends s.ATNSimulator{constructor(A,w){super(A),this.optimize_tail_calls=true,this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=n.Lexer.DEFAULT_MODE,this.prevAccept=new en.SimState,this.recog=w;}copyState(A){this._charPositionInLine=A.charPositionInLine,this._line=A._line,this.mode=A.mode,this.startIndex=A.startIndex;}match(A,w){this.mode=w;let F=A.mark();try{this.startIndex=A.index,this.prevAccept.reset();let M=this.atn.modeToDFA[w].s0;return M==null?this.matchATN(A):this.execATN(A,M)}finally{A.release(F);}}reset(){this.prevAccept.reset(),this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=n.Lexer.DEFAULT_MODE;}matchATN(A){let w=this.atn.modeToStartState[this.mode];en.debug&&console.log(`matchATN mode ${this.mode} start: ${w}`);let F=this.mode,M=this.computeStartState(A,w),W=M.hasSemanticContext;W&&(M.hasSemanticContext=false);let L=this.addDFAState(M);if(!W){let k=this.atn.modeToDFA[this.mode];k.s0?L=k.s0:k.s0=L;}let j=this.execATN(A,L);return en.debug&&console.log(`DFA after matchATN: ${this.atn.modeToDFA[F].toLexerString()}`),j}execATN(A,w){en.debug&&console.log(`start state closure=${w.configs}`),w.isAcceptState&&this.captureSimState(this.prevAccept,A,w);let F=A.LA(1),M=w;for(;;){en.debug&&console.log(`execATN loop starting closure: ${M.configs}`);let W=this.getExistingTargetState(M,F);if(W==null&&(W=this.computeTargetState(A,M,F)),W===s.ATNSimulator.ERROR||(F!==x.IntStream.EOF&&this.consume(A),W.isAcceptState&&(this.captureSimState(this.prevAccept,A,W),F===x.IntStream.EOF)))break;F=A.LA(1),M=W;}return this.failOrAccept(this.prevAccept,A,M.configs,F)}getExistingTargetState(A,w){let F=A.getTarget(w);return en.debug&&F!=null&&console.log("reuse state "+A.stateNumber+" edge to "+F.stateNumber),F}computeTargetState(A,w,F){let M=new t.OrderedATNConfigSet;return this.getReachableConfigSet(A,w.configs,M,F),M.isEmpty?(M.hasSemanticContext||this.addDFAEdge(w,F,s.ATNSimulator.ERROR),s.ATNSimulator.ERROR):this.addDFAEdge(w,F,M)}failOrAccept(A,w,F,M){if(A.dfaState!=null){let W=A.dfaState.lexerActionExecutor;return this.accept(w,W,this.startIndex,A.index,A.line,A.charPos),A.dfaState.prediction}else {if(M===x.IntStream.EOF&&w.index===this.startIndex)return S.Token.EOF;throw new a.LexerNoViableAltException(this.recog,w,this.startIndex,F)}}getReachableConfigSet(A,w,F,M){let W=O.ATN.INVALID_ALT_NUMBER;for(let L of w){let j=L.alt===W;if(j&&L.hasPassedThroughNonGreedyDecision)continue;en.debug&&console.log(`testing ${this.getTokenName(M)} at ${L.toString(this.recog,true)}`);let k=L.state.numberOfOptimizedTransitions;for(let J=0;J<k;J++){let ut=L.state.getOptimizedTransition(J),ft=this.getReachableTarget(ut,M);if(ft!=null){let At=L.lexerActionExecutor,Dt;At!=null?(At=At.fixOffsetBeforeMatch(A.index-this.startIndex),Dt=L.transform(ft,true,At)):(N(L.lexerActionExecutor==null),Dt=L.transform(ft,true));let dt=M===x.IntStream.EOF;if(this.closure(A,Dt,F,j,true,dt)){W=L.alt;break}}}}}accept(A,w,F,M,W,L){en.debug&&console.log(`ACTION ${w}`),A.seek(M),this._line=W,this._charPositionInLine=L,w!=null&&this.recog!=null&&w.execute(this.recog,A,F);}getReachableTarget(A,w){if(A.matches(w,n.Lexer.MIN_CHAR_VALUE,n.Lexer.MAX_CHAR_VALUE))return A.target}computeStartState(A,w){let F=y.PredictionContext.EMPTY_FULL,M=new t.OrderedATNConfigSet;for(let W=0;W<w.numberOfTransitions;W++){let L=w.transition(W).target,j=T.ATNConfig.create(L,W+1,F);this.closure(A,j,M,false,false,false);}return M}closure(A,w,F,M,W,L){if(en.debug&&console.log("closure("+w.toString(this.recog,true)+")"),w.state instanceof v.RuleStopState){en.debug&&(this.recog!=null?console.log(`closure at ${this.recog.ruleNames[w.state.ruleIndex]} rule stop ${w}`):console.log(`closure at rule stop ${w}`));let k=w.context;if(k.isEmpty)return F.add(w),true;k.hasEmpty&&(F.add(w.transform(w.state,true,y.PredictionContext.EMPTY_FULL)),M=true);for(let J=0;J<k.size;J++){let ut=k.getReturnState(J);if(ut===y.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let ft=k.getParent(J),At=this.atn.states[ut],Dt=w.transform(At,false,ft);M=this.closure(A,Dt,F,M,W,L);}return M}w.state.onlyHasEpsilonTransitions||(!M||!w.hasPassedThroughNonGreedyDecision)&&F.add(w);let j=w.state;for(let k=0;k<j.numberOfOptimizedTransitions;k++){let J=j.getOptimizedTransition(k),ut=this.getEpsilonTarget(A,w,J,F,W,L);ut!=null&&(M=this.closure(A,ut,F,M,W,L));}return M}getEpsilonTarget(A,w,F,M,W,L){let j;switch(F.serializationType){case 3:let k=F;if(this.optimize_tail_calls&&k.optimizedTailCall&&!w.context.hasEmpty)j=w.transform(F.target,true);else {let ut=w.context.getChild(k.followState.stateNumber);j=w.transform(F.target,true,ut);}break;case 10:throw new Error("Precedence predicates are not supported in lexers.");case 4:let J=F;en.debug&&console.log("EVAL rule "+J.ruleIndex+":"+J.predIndex),M.hasSemanticContext=true,this.evaluatePredicate(A,J.ruleIndex,J.predIndex,W)?j=w.transform(F.target,true):j=void 0;break;case 6:if(w.context.hasEmpty){let ut=c.LexerActionExecutor.append(w.lexerActionExecutor,this.atn.lexerActions[F.actionIndex]);j=w.transform(F.target,true,ut);break}else {j=w.transform(F.target,true);break}case 1:j=w.transform(F.target,true);break;case 5:case 2:case 7:if(L&&F.matches(x.IntStream.EOF,n.Lexer.MIN_CHAR_VALUE,n.Lexer.MAX_CHAR_VALUE)){j=w.transform(F.target,false);break}j=void 0;break;default:j=void 0;break}return j}evaluatePredicate(A,w,F,M){if(this.recog==null)return true;if(!M)return this.recog.sempred(void 0,w,F);let W=this._charPositionInLine,L=this._line,j=A.index,k=A.mark();try{return this.consume(A),this.recog.sempred(void 0,w,F)}finally{this._charPositionInLine=W,this._line=L,A.seek(j),A.release(k);}}captureSimState(A,w,F){A.index=w.index,A.line=this._line,A.charPos=this._charPositionInLine,A.dfaState=F;}addDFAEdge(A,w,F){if(F instanceof h.ATNConfigSet){let M=F.hasSemanticContext;M&&(F.hasSemanticContext=false);let W=this.addDFAState(F);return M||this.addDFAEdge(A,w,W),W}else en.debug&&console.log("EDGE "+A+" -> "+F+" upon "+String.fromCharCode(w)),A?.setTarget(w,F);}addDFAState(A){N(!A.hasSemanticContext);let w=new o.DFAState(A),F=this.atn.modeToDFA[this.mode].states.get(w);if(F!=null)return F;A.optimizeConfigs(this);let M=new o.DFAState(A.clone(true)),W;for(let L of A)if(L.state instanceof v.RuleStopState){W=L;break}if(W!=null){let L=this.atn.ruleToTokenType[W.state.ruleIndex],j=W.lexerActionExecutor;M.acceptStateInfo=new g.AcceptStateInfo(L,j);}return this.atn.modeToDFA[this.mode].addState(M)}getDFA(A){return this.atn.modeToDFA[A]}getText(A){return A.getText(r.Interval.of(this.startIndex,A.index-1))}get line(){return this._line}set line(A){this._line=A;}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(A){this._charPositionInLine=A;}consume(A){A.LA(1)===10?(this._line++,this._charPositionInLine=0):this._charPositionInLine++,A.consume();}getTokenName(A){return A===-1?"EOF":"'"+String.fromCharCode(A)+"'"}};d([p.NotNull],b.prototype,"prevAccept",void 0),d([m(0,p.NotNull)],b.prototype,"copyState",null),d([m(0,p.NotNull)],b.prototype,"match",null),d([p.Override],b.prototype,"reset",null),d([m(0,p.NotNull)],b.prototype,"matchATN",null),d([m(0,p.NotNull),m(1,p.NotNull)],b.prototype,"execATN",null),d([m(0,p.NotNull)],b.prototype,"getExistingTargetState",null),d([p.NotNull,m(0,p.NotNull),m(1,p.NotNull)],b.prototype,"computeTargetState",null),d([m(0,p.NotNull),m(1,p.NotNull),m(2,p.NotNull)],b.prototype,"getReachableConfigSet",null),d([m(0,p.NotNull)],b.prototype,"accept",null),d([p.NotNull,m(0,p.NotNull),m(1,p.NotNull)],b.prototype,"computeStartState",null),d([m(0,p.NotNull),m(1,p.NotNull),m(2,p.NotNull)],b.prototype,"closure",null),d([m(0,p.NotNull),m(1,p.NotNull),m(2,p.NotNull),m(3,p.NotNull)],b.prototype,"getEpsilonTarget",null),d([m(0,p.NotNull)],b.prototype,"evaluatePredicate",null),d([m(0,p.NotNull),m(1,p.NotNull),m(2,p.NotNull)],b.prototype,"captureSimState",null),d([p.NotNull,m(0,p.NotNull)],b.prototype,"addDFAState",null),d([p.NotNull],b.prototype,"getDFA",null),d([p.NotNull,m(0,p.NotNull)],b.prototype,"getText",null),d([m(0,p.NotNull)],b.prototype,"consume",null),d([p.NotNull],b.prototype,"getTokenName",null),b=d([m(0,p.NotNull)],b),l.LexerATNSimulator=b,(function(U){U.debug=false,U.dfa_debug=false;class A{constructor(){this.index=-1,this.line=0,this.charPos=-1;}reset(){this.index=-1,this.line=0,this.charPos=-1,this.dfaState=void 0;}}U.SimState=A;})(b=l.LexerATNSimulator||(l.LexerATNSimulator={})),l.LexerATNSimulator=b;}),"./node_modules/antlr4ts/atn/LexerActionExecutor.js":(function(D,l,f){var d=this&&this.__decorate||function(o,r,x,n){var c=arguments.length,a=c<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,x):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,r,x,n);else for(var t=o.length-1;t>=0;t--)(p=o[t])&&(a=(c<3?p(a):c>3?p(r,x,a):p(r,x))||a);return c>3&&a&&Object.defineProperty(r,x,a),a},m=this&&this.__param||function(o,r){return function(x,n){r(x,n,o);}};Object.defineProperty(l,"__esModule",{value:true}),l.LexerActionExecutor=void 0;let g=f("./node_modules/antlr4ts/misc/ArrayEqualityComparator.js"),O=f("./node_modules/antlr4ts/atn/LexerIndexedCustomAction.js"),T=f("./node_modules/antlr4ts/misc/MurmurHash.js"),h=f("./node_modules/antlr4ts/Decorators.js"),s=class fi{constructor(r){this._lexerActions=r;let x=T.MurmurHash.initialize();for(let n of r)x=T.MurmurHash.update(x,n);this.cachedHashCode=T.MurmurHash.finish(x,r.length);}static append(r,x){if(!r)return new fi([x]);let n=r._lexerActions.slice(0);return n.push(x),new fi(n)}fixOffsetBeforeMatch(r){let x;for(let n=0;n<this._lexerActions.length;n++)this._lexerActions[n].isPositionDependent&&!(this._lexerActions[n]instanceof O.LexerIndexedCustomAction)&&(x||(x=this._lexerActions.slice(0)),x[n]=new O.LexerIndexedCustomAction(r,this._lexerActions[n]));return x?new fi(x):this}get lexerActions(){return this._lexerActions}execute(r,x,n){let c=false,a=x.index;try{for(let p of this._lexerActions){if(p instanceof O.LexerIndexedCustomAction){let t=p.offset;x.seek(n+t),p=p.action,c=n+t!==a;}else p.isPositionDependent&&(x.seek(a),c=!1);p.execute(r);}}finally{c&&x.seek(a);}}hashCode(){return this.cachedHashCode}equals(r){return r===this?true:r instanceof fi?this.cachedHashCode===r.cachedHashCode&&g.ArrayEqualityComparator.INSTANCE.equals(this._lexerActions,r._lexerActions):false}};d([h.NotNull],s.prototype,"_lexerActions",void 0),d([h.NotNull],s.prototype,"lexerActions",null),d([m(0,h.NotNull)],s.prototype,"execute",null),d([h.Override],s.prototype,"hashCode",null),d([h.Override],s.prototype,"equals",null),d([h.NotNull,m(1,h.NotNull)],s,"append",null),s=d([m(0,h.NotNull)],s),l.LexerActionExecutor=s;}),"./node_modules/antlr4ts/atn/LexerChannelAction.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.LexerChannelAction=void 0;let g=f("./node_modules/antlr4ts/misc/MurmurHash.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T{constructor(s){this._channel=s;}get channel(){return this._channel}get actionType(){return 0}get isPositionDependent(){return false}execute(s){s.channel=this._channel;}hashCode(){let s=g.MurmurHash.initialize();return s=g.MurmurHash.update(s,this.actionType),s=g.MurmurHash.update(s,this._channel),g.MurmurHash.finish(s,2)}equals(s){return s===this?true:s instanceof T?this._channel===s._channel:false}toString(){return `channel(${this._channel})`}}d([O.Override],T.prototype,"actionType",null),d([O.Override],T.prototype,"isPositionDependent",null),d([O.Override,m(0,O.NotNull)],T.prototype,"execute",null),d([O.Override],T.prototype,"hashCode",null),d([O.Override],T.prototype,"equals",null),d([O.Override],T.prototype,"toString",null),l.LexerChannelAction=T;}),"./node_modules/antlr4ts/atn/LexerCustomAction.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.LexerCustomAction=void 0;let g=f("./node_modules/antlr4ts/misc/MurmurHash.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T{constructor(s,o){this._ruleIndex=s,this._actionIndex=o;}get ruleIndex(){return this._ruleIndex}get actionIndex(){return this._actionIndex}get actionType(){return 1}get isPositionDependent(){return true}execute(s){s.action(void 0,this._ruleIndex,this._actionIndex);}hashCode(){let s=g.MurmurHash.initialize();return s=g.MurmurHash.update(s,this.actionType),s=g.MurmurHash.update(s,this._ruleIndex),s=g.MurmurHash.update(s,this._actionIndex),g.MurmurHash.finish(s,3)}equals(s){return s===this?true:s instanceof T?this._ruleIndex===s._ruleIndex&&this._actionIndex===s._actionIndex:false}}d([O.Override],T.prototype,"actionType",null),d([O.Override],T.prototype,"isPositionDependent",null),d([O.Override,m(0,O.NotNull)],T.prototype,"execute",null),d([O.Override],T.prototype,"hashCode",null),d([O.Override],T.prototype,"equals",null),l.LexerCustomAction=T;}),"./node_modules/antlr4ts/atn/LexerIndexedCustomAction.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.LexerIndexedCustomAction=void 0;let g=f("./node_modules/antlr4ts/misc/MurmurHash.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=class j0{constructor(s,o){this._offset=s,this._action=o;}get offset(){return this._offset}get action(){return this._action}get actionType(){return this._action.actionType}get isPositionDependent(){return true}execute(s){this._action.execute(s);}hashCode(){let s=g.MurmurHash.initialize();return s=g.MurmurHash.update(s,this._offset),s=g.MurmurHash.update(s,this._action),g.MurmurHash.finish(s,2)}equals(s){return s===this?true:s instanceof j0?this._offset===s._offset&&this._action.equals(s._action):false}};d([O.NotNull],T.prototype,"action",null),d([O.Override],T.prototype,"actionType",null),d([O.Override],T.prototype,"isPositionDependent",null),d([O.Override],T.prototype,"execute",null),d([O.Override],T.prototype,"hashCode",null),d([O.Override],T.prototype,"equals",null),T=d([m(1,O.NotNull)],T),l.LexerIndexedCustomAction=T;}),"./node_modules/antlr4ts/atn/LexerModeAction.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.LexerModeAction=void 0;let g=f("./node_modules/antlr4ts/misc/MurmurHash.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T{constructor(s){this._mode=s;}get mode(){return this._mode}get actionType(){return 2}get isPositionDependent(){return false}execute(s){s.mode(this._mode);}hashCode(){let s=g.MurmurHash.initialize();return s=g.MurmurHash.update(s,this.actionType),s=g.MurmurHash.update(s,this._mode),g.MurmurHash.finish(s,2)}equals(s){return s===this?true:s instanceof T?this._mode===s._mode:false}toString(){return `mode(${this._mode})`}}d([O.Override],T.prototype,"actionType",null),d([O.Override],T.prototype,"isPositionDependent",null),d([O.Override,m(0,O.NotNull)],T.prototype,"execute",null),d([O.Override],T.prototype,"hashCode",null),d([O.Override],T.prototype,"equals",null),d([O.Override],T.prototype,"toString",null),l.LexerModeAction=T;}),"./node_modules/antlr4ts/atn/LexerMoreAction.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.LexerMoreAction=void 0;let g=f("./node_modules/antlr4ts/misc/MurmurHash.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T{constructor(){}get actionType(){return 3}get isPositionDependent(){return false}execute(s){s.more();}hashCode(){let s=g.MurmurHash.initialize();return s=g.MurmurHash.update(s,this.actionType),g.MurmurHash.finish(s,1)}equals(s){return s===this}toString(){return "more"}}d([O.Override],T.prototype,"actionType",null),d([O.Override],T.prototype,"isPositionDependent",null),d([O.Override,m(0,O.NotNull)],T.prototype,"execute",null),d([O.Override],T.prototype,"hashCode",null),d([O.Override],T.prototype,"equals",null),d([O.Override],T.prototype,"toString",null),l.LexerMoreAction=T,(function(h){h.INSTANCE=new h;})(T=l.LexerMoreAction||(l.LexerMoreAction={}));}),"./node_modules/antlr4ts/atn/LexerPopModeAction.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.LexerPopModeAction=void 0;let g=f("./node_modules/antlr4ts/misc/MurmurHash.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T{constructor(){}get actionType(){return 4}get isPositionDependent(){return false}execute(s){s.popMode();}hashCode(){let s=g.MurmurHash.initialize();return s=g.MurmurHash.update(s,this.actionType),g.MurmurHash.finish(s,1)}equals(s){return s===this}toString(){return "popMode"}}d([O.Override],T.prototype,"actionType",null),d([O.Override],T.prototype,"isPositionDependent",null),d([O.Override,m(0,O.NotNull)],T.prototype,"execute",null),d([O.Override],T.prototype,"hashCode",null),d([O.Override],T.prototype,"equals",null),d([O.Override],T.prototype,"toString",null),l.LexerPopModeAction=T,(function(h){h.INSTANCE=new h;})(T=l.LexerPopModeAction||(l.LexerPopModeAction={}));}),"./node_modules/antlr4ts/atn/LexerPushModeAction.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.LexerPushModeAction=void 0;let g=f("./node_modules/antlr4ts/misc/MurmurHash.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T{constructor(s){this._mode=s;}get mode(){return this._mode}get actionType(){return 5}get isPositionDependent(){return false}execute(s){s.pushMode(this._mode);}hashCode(){let s=g.MurmurHash.initialize();return s=g.MurmurHash.update(s,this.actionType),s=g.MurmurHash.update(s,this._mode),g.MurmurHash.finish(s,2)}equals(s){return s===this?true:s instanceof T?this._mode===s._mode:false}toString(){return `pushMode(${this._mode})`}}d([O.Override],T.prototype,"actionType",null),d([O.Override],T.prototype,"isPositionDependent",null),d([O.Override,m(0,O.NotNull)],T.prototype,"execute",null),d([O.Override],T.prototype,"hashCode",null),d([O.Override],T.prototype,"equals",null),d([O.Override],T.prototype,"toString",null),l.LexerPushModeAction=T;}),"./node_modules/antlr4ts/atn/LexerSkipAction.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.LexerSkipAction=void 0;let g=f("./node_modules/antlr4ts/misc/MurmurHash.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T{constructor(){}get actionType(){return 6}get isPositionDependent(){return false}execute(s){s.skip();}hashCode(){let s=g.MurmurHash.initialize();return s=g.MurmurHash.update(s,this.actionType),g.MurmurHash.finish(s,1)}equals(s){return s===this}toString(){return "skip"}}d([O.Override],T.prototype,"actionType",null),d([O.Override],T.prototype,"isPositionDependent",null),d([O.Override,m(0,O.NotNull)],T.prototype,"execute",null),d([O.Override],T.prototype,"hashCode",null),d([O.Override],T.prototype,"equals",null),d([O.Override],T.prototype,"toString",null),l.LexerSkipAction=T,(function(h){h.INSTANCE=new h;})(T=l.LexerSkipAction||(l.LexerSkipAction={}));}),"./node_modules/antlr4ts/atn/LexerTypeAction.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.LexerTypeAction=void 0;let g=f("./node_modules/antlr4ts/misc/MurmurHash.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T{constructor(s){this._type=s;}get type(){return this._type}get actionType(){return 7}get isPositionDependent(){return false}execute(s){s.type=this._type;}hashCode(){let s=g.MurmurHash.initialize();return s=g.MurmurHash.update(s,this.actionType),s=g.MurmurHash.update(s,this._type),g.MurmurHash.finish(s,2)}equals(s){return s===this?true:s instanceof T?this._type===s._type:false}toString(){return `type(${this._type})`}}d([O.Override],T.prototype,"actionType",null),d([O.Override],T.prototype,"isPositionDependent",null),d([O.Override,m(0,O.NotNull)],T.prototype,"execute",null),d([O.Override],T.prototype,"hashCode",null),d([O.Override],T.prototype,"equals",null),d([O.Override],T.prototype,"toString",null),l.LexerTypeAction=T;}),"./node_modules/antlr4ts/atn/LookaheadEventInfo.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.LookaheadEventInfo=void 0;let g=f("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=class extends g.DecisionEventInfo{constructor(s,o,r,x,n,c,a){super(s,o,x,n,c,a),this.predictedAlt=r;}};T=d([m(3,O.NotNull)],T),l.LookaheadEventInfo=T;}),"./node_modules/antlr4ts/atn/LoopEndState.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.LoopEndState=void 0;let m=f("./node_modules/antlr4ts/atn/ATNState.js"),g=f("./node_modules/antlr4ts/atn/ATNStateType.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T extends m.ATNState{get stateType(){return g.ATNStateType.LOOP_END}}d([O.Override],T.prototype,"stateType",null),l.LoopEndState=T;}),"./node_modules/antlr4ts/atn/NotSetTransition.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.NotSetTransition=void 0;let g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/atn/SetTransition.js"),T=class extends O.SetTransition{constructor(s,o){super(s,o);}get serializationType(){return 8}matches(s,o,r){return s>=o&&s<=r&&!super.matches(s,o,r)}toString(){return "~"+super.toString()}};d([g.Override],T.prototype,"serializationType",null),d([g.Override],T.prototype,"matches",null),d([g.Override],T.prototype,"toString",null),T=d([m(0,g.NotNull),m(1,g.Nullable)],T),l.NotSetTransition=T;}),"./node_modules/antlr4ts/atn/OrderedATNConfigSet.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x};Object.defineProperty(l,"__esModule",{value:true}),l.OrderedATNConfigSet=void 0;let m=f("./node_modules/antlr4ts/atn/ATNConfigSet.js"),g=f("./node_modules/antlr4ts/Decorators.js");class O extends m.ATNConfigSet{constructor(h,s){h!=null&&s!=null?super(h,s):super();}clone(h){let s=new O(this,h);return !h&&this.isReadOnly&&s.addAll(this),s}getKey(h){return {state:0,alt:h.hashCode()}}canMerge(h,s,o){return h.equals(o)}}d([g.Override],O.prototype,"clone",null),d([g.Override],O.prototype,"getKey",null),d([g.Override],O.prototype,"canMerge",null),l.OrderedATNConfigSet=O;}),"./node_modules/antlr4ts/atn/ParseInfo.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x},m=this&&this.__param||function(T,h){return function(s,o){h(s,o,T);}};Object.defineProperty(l,"__esModule",{value:true}),l.ParseInfo=void 0;let g=f("./node_modules/antlr4ts/Decorators.js"),O=class{constructor(h){this.atnSimulator=h;}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let h=this.atnSimulator.getDecisionInfo(),s=[];for(let o=0;o<h.length;o++)h[o].LL_Fallback>0&&s.push(o);return s}getTotalTimeInPrediction(){let h=this.atnSimulator.getDecisionInfo(),s=0;for(let o of h)s+=o.timeInPrediction;return s}getTotalSLLLookaheadOps(){let h=this.atnSimulator.getDecisionInfo(),s=0;for(let o of h)s+=o.SLL_TotalLook;return s}getTotalLLLookaheadOps(){let h=this.atnSimulator.getDecisionInfo(),s=0;for(let o of h)s+=o.LL_TotalLook;return s}getTotalSLLATNLookaheadOps(){let h=this.atnSimulator.getDecisionInfo(),s=0;for(let o of h)s+=o.SLL_ATNTransitions;return s}getTotalLLATNLookaheadOps(){let h=this.atnSimulator.getDecisionInfo(),s=0;for(let o of h)s+=o.LL_ATNTransitions;return s}getTotalATNLookaheadOps(){let h=this.atnSimulator.getDecisionInfo(),s=0;for(let o of h)s+=o.SLL_ATNTransitions,s+=o.LL_ATNTransitions;return s}getDFASize(h){if(h)return this.atnSimulator.atn.decisionToDFA[h].states.size;{let s=0,o=this.atnSimulator.atn.decisionToDFA;for(let r=0;r<o.length;r++)s+=this.getDFASize(r);return s}}};d([g.NotNull],O.prototype,"getDecisionInfo",null),d([g.NotNull],O.prototype,"getLLDecisions",null),O=d([m(0,g.NotNull)],O),l.ParseInfo=O;}),"./node_modules/antlr4ts/atn/ParserATNSimulator.js":(function(D,l,f){var d=this&&this.__decorate||function(rt,K,G,Q){var ot=arguments.length,lt=ot<3?K:Q===null?Q=Object.getOwnPropertyDescriptor(K,G):Q,st;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")lt=Reflect.decorate(rt,K,G,Q);else for(var ht=rt.length-1;ht>=0;ht--)(st=rt[ht])&&(lt=(ot<3?st(lt):ot>3?st(K,G,lt):st(K,G))||lt);return ot>3&&lt&&Object.defineProperty(K,G,lt),lt},m=this&&this.__param||function(rt,K){return function(G,Q){K(G,Q,rt);}};Object.defineProperty(l,"__esModule",{value:true}),l.ParserATNSimulator=void 0;let g=f("./node_modules/antlr4ts/dfa/AcceptStateInfo.js"),O=f("./node_modules/antlr4ts/atn/ActionTransition.js"),T=f("./node_modules/antlr4ts/misc/Array2DHashSet.js"),h=f("./node_modules/antlr4ts/misc/Arrays.js"),s=f("./node_modules/antlr4ts/atn/ATN.js"),o=f("./node_modules/antlr4ts/atn/ATNConfig.js"),r=f("./node_modules/antlr4ts/atn/ATNConfigSet.js"),x=f("./node_modules/antlr4ts/atn/ATNSimulator.js"),n=f("./node_modules/antlr4ts/atn/ATNStateType.js"),c=f("./node_modules/antlr4ts/atn/AtomTransition.js"),a=f("./node_modules/antlr4ts/misc/BitSet.js"),p=f("./node_modules/antlr4ts/atn/ConflictInfo.js"),t=f("./node_modules/antlr4ts/atn/DecisionState.js"),y=f("./node_modules/antlr4ts/dfa/DFAState.js"),v=f("./node_modules/antlr4ts/misc/IntegerList.js"),S=f("./node_modules/antlr4ts/misc/Interval.js"),N=f("./node_modules/antlr4ts/IntStream.js"),b=f("./node_modules/antlr4ts/Decorators.js"),U=f("./node_modules/antlr4ts/atn/NotSetTransition.js"),A=f("./node_modules/antlr4ts/NoViableAltException.js"),w=f("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),F=f("./node_modules/antlr4ts/ParserRuleContext.js"),M=f("./node_modules/antlr4ts/atn/PredictionContext.js"),W=f("./node_modules/antlr4ts/atn/PredictionContextCache.js"),L=f("./node_modules/antlr4ts/atn/PredictionMode.js"),j=f("./node_modules/antlr4ts/atn/RuleStopState.js"),k=f("./node_modules/antlr4ts/atn/RuleTransition.js"),J=f("./node_modules/antlr4ts/atn/SemanticContext.js"),ut=f("./node_modules/antlr4ts/atn/SetTransition.js"),ft=f("./node_modules/antlr4ts/atn/SimulatorState.js"),At=f("./node_modules/antlr4ts/Token.js"),Dt=f("./node_modules/antlr4ts/VocabularyImpl.js"),dt=f("./node_modules/assert/build/assert.js"),jt=65535,_t=-2147483648,yt=class ue extends x.ATNSimulator{constructor(K,G){super(K),this.predictionMode=L.PredictionMode.LL,this.force_global_context=false,this.always_try_local_context=true,this.enable_global_context_dfa=false,this.optimize_unique_closure=true,this.optimize_ll1=true,this.optimize_tail_calls=true,this.tail_call_preserves_sll=true,this.treat_sllk1_conflict_as_ambiguity=false,this.reportAmbiguities=false,this.userWantsCtxSensitive=true,this._parser=G;}getPredictionMode(){return this.predictionMode}setPredictionMode(K){this.predictionMode=K;}reset(){}adaptivePredict(K,G,Q,ot){ot===void 0&&(ot=false);let lt=this.atn.decisionToDFA[G];if(dt(lt!=null),this.optimize_ll1&&!lt.isPrecedenceDfa&&!lt.isEmpty){let it=K.LA(1);if(it>=0&&it<=65535){let vt=(G<<16>>>0)+it,Z=this.atn.LL1Table.get(vt);if(Z!=null)return Z}}this.dfa=lt,this.force_global_context?ot=true:this.always_try_local_context||(ot=ot||lt.isContextSensitive),this.userWantsCtxSensitive=ot||this.predictionMode!==L.PredictionMode.SLL&&Q!=null&&!this.atn.decisionToState[G].sll,Q==null&&(Q=F.ParserRuleContext.emptyContext());let st;lt.isEmpty||(st=this.getStartState(lt,K,Q,ot)),st==null&&(Q==null&&(Q=F.ParserRuleContext.emptyContext()),ue.debug&&console.log("ATN decision "+lt.decision+" exec LA(1)=="+this.getLookaheadName(K)+", outerContext="+Q.toString(this._parser)),st=this.computeStartState(lt,Q,ot));let ht=K.mark(),xt=K.index;try{let it=this.execDFA(lt,K,xt,st);return ue.debug&&console.log("DFA after predictATN: "+lt.toString(this._parser.vocabulary,this._parser.ruleNames)),it}finally{this.dfa=void 0,K.seek(xt),K.release(ht);}}getStartState(K,G,Q,ot){if(!ot)if(K.isPrecedenceDfa){let ht=K.getPrecedenceStartState(this._parser.precedence,false);return ht==null?void 0:new ft.SimulatorState(Q,ht,false,Q)}else return K.s0==null?void 0:new ft.SimulatorState(Q,K.s0,false,Q);if(!this.enable_global_context_dfa)return;let lt=Q;dt(Q!=null);let st;for(K.isPrecedenceDfa?st=K.getPrecedenceStartState(this._parser.precedence,true):st=K.s0full;lt!=null&&st!=null&&st.isContextSensitive;)lt=this.skipTailCalls(lt),st=st.getContextTarget(this.getReturnState(lt)),lt.isEmpty?dt(st==null||!st.isContextSensitive):lt=lt.parent;if(st!=null)return new ft.SimulatorState(Q,st,ot,lt)}execDFA(K,G,Q,ot){let lt=ot.outerContext;ue.dfa_debug&&console.log("DFA decision "+K.decision+" exec LA(1)=="+this.getLookaheadName(G)+", outerContext="+lt.toString(this._parser)),ue.dfa_debug&&console.log(K.toString(this._parser.vocabulary,this._parser.ruleNames));let st=ot.s0,ht=G.LA(1),xt=ot.remainingOuterContext;for(;;){if(ue.dfa_debug&&console.log("DFA state "+st.stateNumber+" LA(1)=="+this.getLookaheadName(G)),ot.useContext)for(;st.isContextSymbol(ht);){let Z;if(xt!=null&&(xt=this.skipTailCalls(xt),Z=st.getContextTarget(this.getReturnState(xt))),Z==null){let tt=new ft.SimulatorState(ot.outerContext,st,ot.useContext,xt);return this.execATN(K,G,Q,tt)}dt(xt!=null),xt=xt.parent,st=Z;}if(this.isAcceptState(st,ot.useContext)){st.predicates!=null?ue.dfa_debug&&console.log("accept "+st):ue.dfa_debug&&console.log("accept; predict "+st.prediction+" in state "+st.stateNumber);break}dt(!this.isAcceptState(st,ot.useContext));let vt=this.getExistingTargetState(st,ht);if(vt==null){ue.dfa_debug&&ht>=0&&console.log("no edge for "+this._parser.vocabulary.getDisplayName(ht));let Z;if(ue.dfa_debug){let q=S.Interval.of(Q,this._parser.inputStream.index);console.log("ATN exec upon "+this._parser.inputStream.getText(q)+" at DFA state "+st.stateNumber);}let tt=new ft.SimulatorState(lt,st,ot.useContext,xt);return Z=this.execATN(K,G,Q,tt),ue.dfa_debug&&console.log("back from DFA update, alt="+Z+`, dfa=
9
+ `+K.toString(this._parser.vocabulary,this._parser.ruleNames)),ue.dfa_debug&&console.log("DFA decision "+K.decision+" predicts "+Z),Z}else if(vt===x.ATNSimulator.ERROR){let Z=new ft.SimulatorState(lt,st,ot.useContext,xt);return this.handleNoViableAlt(G,Q,Z)}st=vt,!this.isAcceptState(st,ot.useContext)&&ht!==N.IntStream.EOF&&(G.consume(),ht=G.LA(1));}if(!ot.useContext&&st.configs.conflictInfo!=null&&K.atnStartState instanceof t.DecisionState&&!(!this.userWantsCtxSensitive||!st.configs.dipsIntoOuterContext&&st.configs.isExactConflict||this.treat_sllk1_conflict_as_ambiguity&&G.index===Q)){dt(!ot.useContext);let vt,Z=st.predicates;if(Z!=null){let tt=G.index;if(tt!==Q&&G.seek(Q),vt=this.evalSemanticContext(Z,lt,true),vt.cardinality()===1)return vt.nextSetBit(0);tt!==Q&&G.seek(tt);}if(this.reportAmbiguities){let tt=new ft.SimulatorState(lt,st,ot.useContext,xt);this.reportAttemptingFullContext(K,vt,tt,Q,G.index);}return G.seek(Q),this.adaptivePredict(G,K.decision,lt,true)}let it=st.predicates;if(it!=null){let vt=G.index;Q!==vt&&G.seek(Q);let Z=this.evalSemanticContext(it,lt,this.reportAmbiguities&&this.predictionMode===L.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(Z.cardinality()){case 0:throw this.noViableAlt(G,lt,st.configs,Q);case 1:return Z.nextSetBit(0);default:return Q!==vt&&G.seek(vt),this.reportAmbiguity(K,st,Q,vt,st.configs.isExactConflict,Z,st.configs),Z.nextSetBit(0)}}return ue.dfa_debug&&console.log("DFA decision "+K.decision+" predicts "+st.prediction),st.prediction}isAcceptState(K,G){return K.isAcceptState?K.configs.conflictingAlts==null?true:G&&this.predictionMode===L.PredictionMode.LL_EXACT_AMBIG_DETECTION?K.configs.isExactConflict:true:false}execATN(K,G,Q,ot){ue.debug&&console.log("execATN decision "+K.decision+" exec LA(1)=="+this.getLookaheadName(G));let lt=ot.outerContext,st=ot.useContext,ht=G.LA(1),xt=ot,it=new W.PredictionContextCache;for(;;){let vt=this.computeReachSet(K,xt,ht,it);if(vt==null)return this.setDFAEdge(xt.s0,G.LA(1),x.ATNSimulator.ERROR),this.handleNoViableAlt(G,Q,xt);let Z=vt.s0;if(dt(Z.isAcceptState||Z.prediction===s.ATN.INVALID_ALT_NUMBER),dt(Z.isAcceptState||Z.configs.conflictInfo==null),this.isAcceptState(Z,st)){let tt=Z.configs.conflictingAlts,q=tt==null?Z.prediction:s.ATN.INVALID_ALT_NUMBER;if(q!==s.ATN.INVALID_ALT_NUMBER){if(this.optimize_ll1&&G.index===Q&&!K.isPrecedenceDfa&&vt.outerContext===vt.remainingOuterContext&&K.decision>=0&&!Z.configs.hasSemanticContext&&ht>=0&&ht<=jt){let et=(K.decision<<16>>>0)+ht;this.atn.LL1Table.set(et,q);}st&&this.always_try_local_context&&this.reportContextSensitivity(K,q,vt,Q,G.index);}q=Z.prediction;let Y=tt!=null&&this.userWantsCtxSensitive;if(Y&&(Y=!st&&(Z.configs.dipsIntoOuterContext||!Z.configs.isExactConflict)&&(!this.treat_sllk1_conflict_as_ambiguity||G.index!==Q)),Z.configs.hasSemanticContext){let et=Z.predicates;if(et!=null){let X=G.index;switch(X!==Q&&G.seek(Q),tt=this.evalSemanticContext(et,lt,Y||this.reportAmbiguities),tt.cardinality()){case 0:throw this.noViableAlt(G,lt,Z.configs,Q);case 1:return tt.nextSetBit(0);}X!==Q&&G.seek(X);}}if(Y){dt(!st),dt(this.isAcceptState(Z,false)),ue.debug&&console.log("RETRY with outerContext="+lt);let et=this.computeStartState(K,lt,true);return this.reportAmbiguities&&this.reportAttemptingFullContext(K,tt,vt,Q,G.index),G.seek(Q),this.execATN(K,G,Q,et)}else return tt!=null&&(this.reportAmbiguities&&tt.cardinality()>1&&this.reportAmbiguity(K,Z,Q,G.index,Z.configs.isExactConflict,tt,Z.configs),q=tt.nextSetBit(0)),q}xt=vt,ht!==N.IntStream.EOF&&(G.consume(),ht=G.LA(1));}}handleNoViableAlt(K,G,Q){if(Q.s0!=null){let ot=new a.BitSet,lt=0;for(let st of Q.s0.configs)(st.reachesIntoOuterContext||st.state instanceof j.RuleStopState)&&(ot.set(st.alt),lt=Math.max(lt,st.alt));switch(ot.cardinality()){case 0:break;case 1:return ot.nextSetBit(0);default:if(!Q.s0.configs.hasSemanticContext)return ot.nextSetBit(0);let st=new r.ATNConfigSet;for(let xt of Q.s0.configs)(xt.reachesIntoOuterContext||xt.state instanceof j.RuleStopState)&&st.add(xt);let ht=this.getPredsForAmbigAlts(ot,st,lt);if(ht!=null){let xt=this.getPredicatePredictions(ot,ht);if(xt!=null){let it=K.index;try{K.seek(G);let vt=this.evalSemanticContext(xt,Q.outerContext,!1);if(!vt.isEmpty)return vt.nextSetBit(0)}finally{K.seek(it);}}}return ot.nextSetBit(0)}}throw this.noViableAlt(K,Q.outerContext,Q.s0.configs,G)}computeReachSet(K,G,Q,ot){let lt=G.useContext,st=G.remainingOuterContext,ht=G.s0;if(lt)for(;ht.isContextSymbol(Q);){let vt;if(st!=null&&(st=this.skipTailCalls(st),vt=ht.getContextTarget(this.getReturnState(st))),vt==null)break;dt(st!=null),st=st.parent,ht=vt;}if(dt(!this.isAcceptState(ht,lt)),this.isAcceptState(ht,lt))return new ft.SimulatorState(G.outerContext,ht,lt,st);let xt=ht,it=this.getExistingTargetState(xt,Q);if(it==null){let vt=this.computeTargetState(K,xt,st,Q,lt,ot);it=vt[0],st=vt[1];}if(it!==x.ATNSimulator.ERROR)return dt(!lt||!it.configs.dipsIntoOuterContext),new ft.SimulatorState(G.outerContext,it,lt,st)}getExistingTargetState(K,G){return K.getTarget(G)}computeTargetState(K,G,Q,ot,lt,st){let ht=G.configs.toArray(),xt,it=new r.ATNConfigSet,vt;do{let tt=!lt||Q!=null;tt||(it.isOutermostConfigSet=true);let q=new r.ATNConfigSet,Y;for(let Ct of ht){if(ue.debug&&console.log("testing "+this.getTokenName(ot)+" at "+Ct.toString()),Ct.state instanceof j.RuleStopState){dt(Ct.context.isEmpty),(lt&&!Ct.reachesIntoOuterContext||ot===N.IntStream.EOF)&&(Y==null&&(Y=[]),Y.push(Ct));continue}let pt=Ct.state.numberOfOptimizedTransitions;for(let Bt=0;Bt<pt;Bt++){let Ht=Ct.state.getOptimizedTransition(Bt),$t=this.getReachableTarget(Ct,Ht,ot);$t!=null&&q.add(Ct.transform($t,false),st);}}if(this.optimize_unique_closure&&Y==null&&ot!==At.Token.EOF&&q.uniqueAlt!==s.ATN.INVALID_ALT_NUMBER){q.isOutermostConfigSet=it.isOutermostConfigSet,it=q;break}let et=false,X=ot===At.Token.EOF;if(this.closure(q,it,et,tt,st,X),vt=it.dipsIntoOuterContext,ot===N.IntStream.EOF&&(it=this.removeAllConfigsNotInRuleStopState(it,st)),Y!=null&&(!lt||!L.PredictionMode.hasConfigInRuleStopState(it))){dt(Y.length>0);for(let Ct of Y)it.add(Ct,st);}if(lt&&vt){it.clear(),Q=Q,Q=this.skipTailCalls(Q);let Ct=this.getReturnState(Q);if(xt==null&&(xt=new v.IntegerList),Q.isEmpty?Q=void 0:Q=Q.parent,xt.add(Ct),Ct!==M.PredictionContext.EMPTY_FULL_STATE_KEY)for(let pt=0;pt<ht.length;pt++)ht[pt]=ht[pt].appendContext(Ct,st);}}while(lt&&vt);return it.isEmpty?(this.setDFAEdge(G,ot,x.ATNSimulator.ERROR),[x.ATNSimulator.ERROR,Q]):[this.addDFAEdge(K,G,ot,xt,it,st),Q]}removeAllConfigsNotInRuleStopState(K,G){if(L.PredictionMode.allConfigsInRuleStopStates(K))return K;let Q=new r.ATNConfigSet;for(let ot of K)ot.state instanceof j.RuleStopState&&Q.add(ot,G);return Q}computeStartState(K,G,Q){let ot=K.isPrecedenceDfa?K.getPrecedenceStartState(this._parser.precedence,Q):Q?K.s0full:K.s0;if(ot!=null){if(!Q)return new ft.SimulatorState(G,ot,Q,G);ot.setContextSensitive(this.atn);}K.decision;let st=K.atnStartState,ht=0,xt=G,it=Q?M.PredictionContext.EMPTY_FULL:M.PredictionContext.EMPTY_LOCAL,vt=new W.PredictionContextCache;if(Q){if(!this.enable_global_context_dfa)for(;xt!=null;)xt.isEmpty?(ht=M.PredictionContext.EMPTY_FULL_STATE_KEY,xt=void 0):(ht=this.getReturnState(xt),it=it.appendSingleContext(ht,vt),xt=xt.parent);for(;ot!=null&&ot.isContextSensitive&&xt!=null;){let tt;if(xt=this.skipTailCalls(xt),xt.isEmpty?(tt=ot.getContextTarget(M.PredictionContext.EMPTY_FULL_STATE_KEY),ht=M.PredictionContext.EMPTY_FULL_STATE_KEY,xt=void 0):(ht=this.getReturnState(xt),tt=ot.getContextTarget(ht),it=it.appendSingleContext(ht,vt),xt=xt.parent),tt==null)break;ot=tt;}}if(ot!=null&&!ot.isContextSensitive)return new ft.SimulatorState(G,ot,Q,xt);let Z=new r.ATNConfigSet;for(;;){let tt=new r.ATNConfigSet,q=st.numberOfTransitions;for(let Bt=0;Bt<q;Bt++){let Ht=st.transition(Bt).target;tt.add(o.ATNConfig.create(Ht,Bt+1,it));}let Y=xt!=null;Y||(Z.isOutermostConfigSet=true),this.closure(tt,Z,true,Y,vt,false);let X=Z.dipsIntoOuterContext,Ct;if(Q&&!this.enable_global_context_dfa){ot=this.addDFAState(K,Z,vt);break}else ot==null?K.isPrecedenceDfa?(Z=this.applyPrecedenceFilter(Z,G,vt),Ct=this.addDFAState(K,Z,vt),K.setPrecedenceStartState(this._parser.precedence,Q,Ct)):(Ct=this.addDFAState(K,Z,vt),Q?K.s0full?Ct=K.s0full:K.s0full=Ct:K.s0?Ct=K.s0:K.s0=Ct):(K.isPrecedenceDfa&&(Z=this.applyPrecedenceFilter(Z,G,vt)),Ct=this.addDFAState(K,Z,vt),ot.setContextTarget(ht,Ct));if(ot=Ct,!Q||!X)break;Ct.setContextSensitive(this.atn),xt=xt,Z.clear(),xt=this.skipTailCalls(xt);let pt=this.getReturnState(xt);xt.isEmpty?xt=void 0:xt=xt.parent,pt!==M.PredictionContext.EMPTY_FULL_STATE_KEY&&(it=it.appendSingleContext(pt,vt)),ht=pt;}return new ft.SimulatorState(G,ot,Q,xt)}applyPrecedenceFilter(K,G,Q){let ot=new Map,lt=new r.ATNConfigSet;for(let st of K){if(st.alt!==1)continue;let ht=st.semanticContext.evalPrecedence(this._parser,G);ht!=null&&(ot.set(st.state.stateNumber,st.context),ht!==st.semanticContext?lt.add(st.transform(st.state,false,ht),Q):lt.add(st,Q));}for(let st of K)if(st.alt!==1){if(!st.isPrecedenceFilterSuppressed){let ht=ot.get(st.state.stateNumber);if(ht!=null&&ht.equals(st.context))continue}lt.add(st,Q);}return lt}getReachableTarget(K,G,Q){if(G.matches(Q,0,this.atn.maxTokenType))return G.target}predicateDFAState(K,G,Q){let ot=this.getConflictingAltsFromConfigSet(G);if(!ot)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.");ue.debug&&console.log("predicateDFAState "+K);let lt=this.getPredsForAmbigAlts(ot,G,Q),st;return lt!=null&&(st=this.getPredicatePredictions(ot,lt),K.predicates=st),st}getPredsForAmbigAlts(K,G,Q){let ot=new Array(Q+1),lt=ot.length;for(let xt of G)K.get(xt.alt)&&(ot[xt.alt]=J.SemanticContext.or(ot[xt.alt],xt.semanticContext));let st=0;for(let xt=0;xt<lt;xt++)ot[xt]==null?ot[xt]=J.SemanticContext.NONE:ot[xt]!==J.SemanticContext.NONE&&st++;let ht=ot;return st===0&&(ht=void 0),ue.debug&&console.log("getPredsForAmbigAlts result "+(ht?h.Arrays.toString(ht):"undefined")),ht}getPredicatePredictions(K,G){let Q=[],ot=false;for(let lt=1;lt<G.length;lt++){let st=G[lt];dt(st!=null),K!=null&&K.get(lt)&&st===J.SemanticContext.NONE?Q.push(new y.DFAState.PredPrediction(st,lt)):st!==J.SemanticContext.NONE&&(ot=true,Q.push(new y.DFAState.PredPrediction(st,lt)));}if(ot)return Q}evalSemanticContext(K,G,Q){let ot=new a.BitSet;for(let lt of K){if(lt.pred===J.SemanticContext.NONE){if(ot.set(lt.alt),!Q)break;continue}let st=this.evalSemanticContextImpl(lt.pred,G,lt.alt);if((ue.debug||ue.dfa_debug)&&console.log("eval pred "+lt+"="+st),st&&((ue.debug||ue.dfa_debug)&&console.log("PREDICT "+lt.alt),ot.set(lt.alt),!Q))break}return ot}evalSemanticContextImpl(K,G,Q){return K.eval(this._parser,G)}closure(K,G,Q,ot,lt,st){lt==null&&(lt=W.PredictionContextCache.UNCACHED);let ht=K,xt=new T.Array2DHashSet(w.ObjectEqualityComparator.INSTANCE);for(;ht.size>0;){let it=new r.ATNConfigSet;for(let vt of ht)this.closureImpl(vt,G,it,xt,Q,ot,lt,0,st);ht=it;}}closureImpl(K,G,Q,ot,lt,st,ht,xt,it){if(ue.debug&&console.log("closure("+K.toString(this._parser,true)+")"),K.state instanceof j.RuleStopState)if(K.context.isEmpty)if(st)ue.debug&&console.log("FALLING off rule "+this.getRuleName(K.state.ruleIndex)),K.context===M.PredictionContext.EMPTY_FULL?K=K.transform(K.state,false,M.PredictionContext.EMPTY_LOCAL):!K.reachesIntoOuterContext&&M.PredictionContext.isEmptyLocal(K.context)&&G.add(K,ht);else {G.add(K,ht);return}else {let Z=K.context.hasEmpty,tt=K.context.size-(Z?1:0);for(let q=0;q<tt;q++){let Y=K.context.getParent(q),et=this.atn.states[K.context.getReturnState(q)],X=o.ATNConfig.create(et,K.alt,Y,K.semanticContext);X.outerContextDepth=K.outerContextDepth,X.isPrecedenceFilterSuppressed=K.isPrecedenceFilterSuppressed,dt(xt>_t),this.closureImpl(X,G,Q,ot,lt,st,ht,xt-1,it);}if(!Z||!st)return;K=K.transform(K.state,false,M.PredictionContext.EMPTY_LOCAL);}let vt=K.state;vt.onlyHasEpsilonTransitions||(G.add(K,ht),ue.debug&&console.log("added config "+G));for(let Z=0;Z<vt.numberOfOptimizedTransitions;Z++){if(Z===0&&vt.stateType===n.ATNStateType.STAR_LOOP_ENTRY&&vt.precedenceRuleDecision&&!K.context.hasEmpty){let et=vt,X=true;for(let Ct=0;Ct<K.context.size;Ct++)if(!et.precedenceLoopbackStates.get(K.context.getReturnState(Ct))){X=false;break}if(X)continue}let tt=vt.getOptimizedTransition(Z),q=!(tt instanceof O.ActionTransition)&&lt,Y=this.getEpsilonTarget(K,tt,q,xt===0,ht,it);if(Y!=null){if(tt instanceof k.RuleTransition&&Q!=null&&!lt){Q.add(Y,ht);continue}let et=xt;if(K.state instanceof j.RuleStopState){if(this.dfa!=null&&this.dfa.isPrecedenceDfa&&tt.outermostPrecedenceReturn===this.dfa.atnStartState.ruleIndex&&(Y.isPrecedenceFilterSuppressed=true),Y.outerContextDepth=Y.outerContextDepth+1,!ot.add(Y))continue;dt(et>_t),et--,ue.debug&&console.log("dips into outer ctx: "+Y);}else if(tt instanceof k.RuleTransition)this.optimize_tail_calls&&tt.optimizedTailCall&&(!this.tail_call_preserves_sll||!M.PredictionContext.isEmptyLocal(K.context))?(dt(Y.context===K.context),et===0&&(et--,!this.tail_call_preserves_sll&&M.PredictionContext.isEmptyLocal(K.context)&&(Y.outerContextDepth=Y.outerContextDepth+1))):et>=0&&et++;else if(!tt.isEpsilon&&!ot.add(Y))continue;this.closureImpl(Y,G,Q,ot,q,st,ht,et,it);}}}getRuleName(K){return this._parser!=null&&K>=0?this._parser.ruleNames[K]:"<rule "+K+">"}getEpsilonTarget(K,G,Q,ot,lt,st){switch(G.serializationType){case 3:return this.ruleTransition(K,G,lt);case 10:return this.precedenceTransition(K,G,Q,ot);case 4:return this.predTransition(K,G,Q,ot);case 6:return this.actionTransition(K,G);case 1:return K.transform(G.target,false);case 5:case 2:case 7:return st&&G.matches(At.Token.EOF,0,1)?K.transform(G.target,false):void 0;default:return}}actionTransition(K,G){return ue.debug&&console.log("ACTION edge "+G.ruleIndex+":"+G.actionIndex),K.transform(G.target,false)}precedenceTransition(K,G,Q,ot){ue.debug&&(console.log("PRED (collectPredicates="+Q+") "+G.precedence+">=_p, ctx dependent=true"),this._parser!=null&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack()));let lt;if(Q&&ot){let st=J.SemanticContext.and(K.semanticContext,G.predicate);lt=K.transform(G.target,false,st);}else lt=K.transform(G.target,false);return ue.debug&&console.log("config from pred transition="+lt),lt}predTransition(K,G,Q,ot){ue.debug&&(console.log("PRED (collectPredicates="+Q+") "+G.ruleIndex+":"+G.predIndex+", ctx dependent="+G.isCtxDependent),this._parser!=null&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack()));let lt;if(Q&&(!G.isCtxDependent||G.isCtxDependent&&ot)){let st=J.SemanticContext.and(K.semanticContext,G.predicate);lt=K.transform(G.target,false,st);}else lt=K.transform(G.target,false);return ue.debug&&console.log("config from pred transition="+lt),lt}ruleTransition(K,G,Q){ue.debug&&console.log("CALL rule "+this.getRuleName(G.target.ruleIndex)+", ctx="+K.context);let ot=G.followState,lt;return this.optimize_tail_calls&&G.optimizedTailCall&&(!this.tail_call_preserves_sll||!M.PredictionContext.isEmptyLocal(K.context))?lt=K.context:Q!=null?lt=Q.getChild(K.context,ot.stateNumber):lt=K.context.getChild(ot.stateNumber),K.transform(G.target,false,lt)}isConflicted(K,G){if(K.uniqueAlt!==s.ATN.INVALID_ALT_NUMBER||K.size<=1)return;let Q=K.toArray();Q.sort(ue.STATE_ALT_SORT_COMPARATOR);let ot=!K.dipsIntoOuterContext,lt=new a.BitSet,st=Q[0].alt;lt.set(st);let ht=Q[0].state.nonStopStateNumber;for(let tt of Q){let q=tt.state.nonStopStateNumber;if(q!==ht){if(tt.alt!==st)return;ht=q;}}let xt;if(ot){ht=Q[0].state.nonStopStateNumber,xt=new a.BitSet;let tt=st;for(let Y of Q){if(Y.state.nonStopStateNumber!==ht)break;let et=Y.alt;xt.set(et),tt=et;}ht=Q[0].state.nonStopStateNumber;let q=st;for(let Y of Q){let et=Y.state.nonStopStateNumber,X=Y.alt;if(et!==ht){if(q!==tt){ot=false;break}ht=et,q=st;}else if(X!==q){if(X!==xt.nextSetBit(q+1)){ot=false;break}q=X;}}}ht=Q[0].state.nonStopStateNumber;let it=0,vt=0,Z=Q[0].context;for(let tt=1;tt<Q.length;tt++){let q=Q[tt];if(q.alt!==st||q.state.nonStopStateNumber!==ht)break;vt=tt,Z=G.join(Z,Q[tt].context);}for(let tt=vt+1;tt<Q.length;tt++){let q=Q[tt],Y=q.state;if(lt.set(q.alt),Y.nonStopStateNumber!==ht){ht=Y.nonStopStateNumber,it=tt,vt=tt,Z=q.context;for(let Bt=it+1;Bt<Q.length;Bt++){let Ht=Q[Bt];if(Ht.alt!==st||Ht.state.nonStopStateNumber!==ht)break;vt=Bt,Z=G.join(Z,Ht.context);}tt=vt;continue}let et=q.context,X=q.alt,Ct=tt;for(let Bt=Ct+1;Bt<Q.length;Bt++){let Ht=Q[Bt];if(Ht.alt!==X||Ht.state.nonStopStateNumber!==ht)break;Ct=Bt,et=G.join(et,Ht.context);}tt=Ct;let pt=G.join(Z,et);if(!Z.equals(pt))return;ot=ot&&Z.equals(et);}return new p.ConflictInfo(lt,ot)}getConflictingAltsFromConfigSet(K){let G=K.conflictingAlts;return G==null&&K.uniqueAlt!==s.ATN.INVALID_ALT_NUMBER&&(G=new a.BitSet,G.set(K.uniqueAlt)),G}getTokenName(K){if(K===At.Token.EOF)return "EOF";let Q=(this._parser!=null?this._parser.vocabulary:Dt.VocabularyImpl.EMPTY_VOCABULARY).getDisplayName(K);return Q===String(K)?Q:Q+"<"+K+">"}getLookaheadName(K){return this.getTokenName(K.LA(1))}dumpDeadEndConfigs(K){console.log("dead end configs: ");let G=K.deadEndConfigs;if(G)for(let Q of G){let ot="no edges";if(Q.state.numberOfOptimizedTransitions>0){let lt=Q.state.getOptimizedTransition(0);lt instanceof c.AtomTransition?ot="Atom "+this.getTokenName(lt._label):lt instanceof ut.SetTransition&&(ot=(lt instanceof U.NotSetTransition?"~":"")+"Set "+lt.set.toString());}console.log(Q.toString(this._parser,true)+":"+ot);}}noViableAlt(K,G,Q,ot){return new A.NoViableAltException(this._parser,K,K.get(ot),K.LT(1),Q,G)}getUniqueAlt(K){let G=s.ATN.INVALID_ALT_NUMBER;for(let Q of K)if(G===s.ATN.INVALID_ALT_NUMBER)G=Q.alt;else if(Q.alt!==G)return s.ATN.INVALID_ALT_NUMBER;return G}configWithAltAtStopState(K,G){for(let Q of K)if(Q.alt===G&&Q.state instanceof j.RuleStopState)return true;return false}addDFAEdge(K,G,Q,ot,lt,st){dt(ot==null||ot.isEmpty||K.isContextSensitive);let ht=G,xt=this.addDFAState(K,lt,st);if(ot!=null)for(let it of ot.toArray()){if(it===M.PredictionContext.EMPTY_FULL_STATE_KEY&&ht.configs.isOutermostConfigSet)continue;ht.setContextSensitive(this.atn),ht.setContextSymbol(Q);let vt=ht.getContextTarget(it);if(vt!=null){ht=vt;continue}vt=this.addDFAContextState(K,ht.configs,it,st),dt(it!==M.PredictionContext.EMPTY_FULL_STATE_KEY||vt.configs.isOutermostConfigSet),ht.setContextTarget(it,vt),ht=vt;}return ue.debug&&console.log("EDGE "+ht+" -> "+xt+" upon "+this.getTokenName(Q)),this.setDFAEdge(ht,Q,xt),ue.debug&&console.log(`DFA=
10
+ `+K.toString(this._parser!=null?this._parser.vocabulary:Dt.VocabularyImpl.EMPTY_VOCABULARY,this._parser!=null?this._parser.ruleNames:void 0)),xt}setDFAEdge(K,G,Q){K?.setTarget(G,Q);}addDFAContextState(K,G,Q,ot){if(Q!==M.PredictionContext.EMPTY_FULL_STATE_KEY){let lt=new r.ATNConfigSet;for(let st of G)lt.add(st.appendContext(Q,ot));return this.addDFAState(K,lt,ot)}else return dt(!G.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),G=G.clone(true),G.isOutermostConfigSet=true,this.addDFAState(K,G,ot)}addDFAState(K,G,Q){let ot=this.enable_global_context_dfa||!G.isOutermostConfigSet;if(ot){G.isReadOnly||G.optimizeConfigs(this);let it=this.createDFAState(K,G),vt=K.states.get(it);if(vt!=null)return vt}G.isReadOnly||G.conflictInfo==null&&(G.conflictInfo=this.isConflicted(G,Q));let lt=this.createDFAState(K,G.clone(true)),st=this.atn.getDecisionState(K.decision),ht=this.getUniqueAlt(G);if(ht!==s.ATN.INVALID_ALT_NUMBER)lt.acceptStateInfo=new g.AcceptStateInfo(ht);else if(G.conflictingAlts!=null){let it=G.conflictingAlts;it&&(lt.acceptStateInfo=new g.AcceptStateInfo(it.nextSetBit(0)));}if(lt.isAcceptState&&G.hasSemanticContext&&this.predicateDFAState(lt,G,st.numberOfTransitions),!ot)return lt;let xt=K.addState(lt);return ue.debug&&xt===lt&&console.log("adding new DFA state: "+lt),xt}createDFAState(K,G){return new y.DFAState(G)}reportAttemptingFullContext(K,G,Q,ot,lt){if(ue.debug||ue.retry_debug){let st=S.Interval.of(ot,lt);console.log("reportAttemptingFullContext decision="+K.decision+":"+Q.s0.configs+", input="+this._parser.inputStream.getText(st));}if(this._parser!=null){let st=this._parser.getErrorListenerDispatch();st.reportAttemptingFullContext&&st.reportAttemptingFullContext(this._parser,K,ot,lt,G,Q);}}reportContextSensitivity(K,G,Q,ot,lt){if(ue.debug||ue.retry_debug){let st=S.Interval.of(ot,lt);console.log("reportContextSensitivity decision="+K.decision+":"+Q.s0.configs+", input="+this._parser.inputStream.getText(st));}if(this._parser!=null){let st=this._parser.getErrorListenerDispatch();st.reportContextSensitivity&&st.reportContextSensitivity(this._parser,K,ot,lt,G,Q);}}reportAmbiguity(K,G,Q,ot,lt,st,ht){if(ue.debug||ue.retry_debug){let xt=S.Interval.of(Q,ot);console.log("reportAmbiguity "+st+":"+ht+", input="+this._parser.inputStream.getText(xt));}if(this._parser!=null){let xt=this._parser.getErrorListenerDispatch();xt.reportAmbiguity&&xt.reportAmbiguity(this._parser,K,Q,ot,lt,st,ht);}}getReturnState(K){return K.isEmpty?M.PredictionContext.EMPTY_FULL_STATE_KEY:this.atn.states[K.invokingState].transition(0).followState.stateNumber}skipTailCalls(K){if(!this.optimize_tail_calls)return K;for(;!K.isEmpty;){let G=this.atn.states[K.invokingState];if(dt(G.numberOfTransitions===1&&G.transition(0).serializationType===3),!G.transition(0).tailCall)break;K=K.parent;}return K}get parser(){return this._parser}};yt.debug=false,yt.dfa_debug=false,yt.retry_debug=false,yt.STATE_ALT_SORT_COMPARATOR=(rt,K)=>{let G=rt.state.nonStopStateNumber-K.state.nonStopStateNumber;return G!==0||(G=rt.alt-K.alt,G!==0)?G:0},d([b.NotNull],yt.prototype,"predictionMode",void 0),d([b.NotNull],yt.prototype,"getPredictionMode",null),d([m(0,b.NotNull)],yt.prototype,"setPredictionMode",null),d([b.Override],yt.prototype,"reset",null),d([m(0,b.NotNull)],yt.prototype,"adaptivePredict",null),d([m(0,b.NotNull),m(1,b.NotNull),m(2,b.NotNull)],yt.prototype,"getStartState",null),d([m(0,b.NotNull),m(1,b.NotNull),m(3,b.NotNull)],yt.prototype,"execDFA",null),d([m(0,b.NotNull),m(1,b.NotNull),m(3,b.NotNull)],yt.prototype,"execATN",null),d([m(0,b.NotNull),m(2,b.NotNull)],yt.prototype,"handleNoViableAlt",null),d([m(0,b.NotNull)],yt.prototype,"getExistingTargetState",null),d([b.NotNull,m(0,b.NotNull),m(1,b.NotNull)],yt.prototype,"computeTargetState",null),d([b.NotNull,m(0,b.NotNull)],yt.prototype,"removeAllConfigsNotInRuleStopState",null),d([b.NotNull],yt.prototype,"computeStartState",null),d([b.NotNull,m(0,b.NotNull)],yt.prototype,"applyPrecedenceFilter",null),d([m(0,b.NotNull),m(1,b.NotNull)],yt.prototype,"getReachableTarget",null),d([m(0,b.NotNull),m(1,b.NotNull)],yt.prototype,"getPredsForAmbigAlts",null),d([m(0,b.NotNull)],yt.prototype,"evalSemanticContext",null),d([m(0,b.NotNull)],yt.prototype,"evalSemanticContextImpl",null),d([m(1,b.NotNull),m(4,b.Nullable)],yt.prototype,"closure",null),d([m(0,b.NotNull),m(1,b.NotNull),m(2,b.Nullable),m(3,b.NotNull),m(6,b.NotNull)],yt.prototype,"closureImpl",null),d([b.NotNull],yt.prototype,"getRuleName",null),d([m(0,b.NotNull),m(1,b.NotNull)],yt.prototype,"getEpsilonTarget",null),d([b.NotNull,m(0,b.NotNull),m(1,b.NotNull)],yt.prototype,"actionTransition",null),d([b.Nullable,m(0,b.NotNull),m(1,b.NotNull)],yt.prototype,"precedenceTransition",null),d([b.Nullable,m(0,b.NotNull),m(1,b.NotNull)],yt.prototype,"predTransition",null),d([b.NotNull,m(0,b.NotNull),m(1,b.NotNull),m(2,b.Nullable)],yt.prototype,"ruleTransition",null),d([m(0,b.NotNull)],yt.prototype,"isConflicted",null),d([b.NotNull],yt.prototype,"getTokenName",null),d([m(0,b.NotNull)],yt.prototype,"dumpDeadEndConfigs",null),d([b.NotNull,m(0,b.NotNull),m(1,b.NotNull),m(2,b.NotNull)],yt.prototype,"noViableAlt",null),d([m(0,b.NotNull)],yt.prototype,"getUniqueAlt",null),d([m(0,b.NotNull)],yt.prototype,"configWithAltAtStopState",null),d([b.NotNull,m(0,b.NotNull),m(1,b.NotNull),m(4,b.NotNull)],yt.prototype,"addDFAEdge",null),d([m(0,b.Nullable),m(2,b.Nullable)],yt.prototype,"setDFAEdge",null),d([b.NotNull,m(0,b.NotNull),m(1,b.NotNull)],yt.prototype,"addDFAContextState",null),d([b.NotNull,m(0,b.NotNull),m(1,b.NotNull)],yt.prototype,"addDFAState",null),d([b.NotNull,m(0,b.NotNull),m(1,b.NotNull)],yt.prototype,"createDFAState",null),d([m(0,b.NotNull),m(2,b.NotNull)],yt.prototype,"reportAttemptingFullContext",null),d([m(0,b.NotNull),m(2,b.NotNull)],yt.prototype,"reportContextSensitivity",null),d([m(0,b.NotNull),m(5,b.NotNull),m(6,b.NotNull)],yt.prototype,"reportAmbiguity",null),yt=d([m(0,b.NotNull)],yt),l.ParserATNSimulator=yt;}),"./node_modules/antlr4ts/atn/PlusBlockStartState.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.PlusBlockStartState=void 0;let m=f("./node_modules/antlr4ts/atn/ATNStateType.js"),g=f("./node_modules/antlr4ts/atn/BlockStartState.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T extends g.BlockStartState{get stateType(){return m.ATNStateType.PLUS_BLOCK_START}}d([O.Override],T.prototype,"stateType",null),l.PlusBlockStartState=T;}),"./node_modules/antlr4ts/atn/PlusLoopbackState.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.PlusLoopbackState=void 0;let m=f("./node_modules/antlr4ts/atn/ATNStateType.js"),g=f("./node_modules/antlr4ts/atn/DecisionState.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T extends g.DecisionState{get stateType(){return m.ATNStateType.PLUS_LOOP_BACK}}d([O.Override],T.prototype,"stateType",null),l.PlusLoopbackState=T;}),"./node_modules/antlr4ts/atn/PrecedencePredicateTransition.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c},m=this&&this.__param||function(s,o){return function(r,x){o(r,x,s);}};Object.defineProperty(l,"__esModule",{value:true}),l.PrecedencePredicateTransition=void 0;let g=f("./node_modules/antlr4ts/atn/AbstractPredicateTransition.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/atn/SemanticContext.js"),h=class extends g.AbstractPredicateTransition{constructor(o,r){super(o),this.precedence=r;}get serializationType(){return 10}get isEpsilon(){return true}matches(o,r,x){return false}get predicate(){return new T.SemanticContext.PrecedencePredicate(this.precedence)}toString(){return this.precedence+" >= _p"}};d([O.Override],h.prototype,"serializationType",null),d([O.Override],h.prototype,"isEpsilon",null),d([O.Override],h.prototype,"matches",null),d([O.Override],h.prototype,"toString",null),h=d([m(0,O.NotNull)],h),l.PrecedencePredicateTransition=h;}),"./node_modules/antlr4ts/atn/PredicateEvalInfo.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.PredicateEvalInfo=void 0;let g=f("./node_modules/antlr4ts/atn/DecisionEventInfo.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=class extends g.DecisionEventInfo{constructor(s,o,r,x,n,c,a,p){super(o,s,r,x,n,s.useContext),this.semctx=c,this.evalResult=a,this.predictedAlt=p;}};T=d([m(0,O.NotNull),m(2,O.NotNull),m(5,O.NotNull)],T),l.PredicateEvalInfo=T;}),"./node_modules/antlr4ts/atn/PredicateTransition.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c},m=this&&this.__param||function(s,o){return function(r,x){o(r,x,s);}};Object.defineProperty(l,"__esModule",{value:true}),l.PredicateTransition=void 0;let g=f("./node_modules/antlr4ts/atn/AbstractPredicateTransition.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/atn/SemanticContext.js"),h=class extends g.AbstractPredicateTransition{constructor(o,r,x,n){super(o),this.ruleIndex=r,this.predIndex=x,this.isCtxDependent=n;}get serializationType(){return 4}get isEpsilon(){return true}matches(o,r,x){return false}get predicate(){return new T.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return "pred_"+this.ruleIndex+":"+this.predIndex}};d([O.Override],h.prototype,"serializationType",null),d([O.Override],h.prototype,"isEpsilon",null),d([O.Override],h.prototype,"matches",null),d([O.Override,O.NotNull],h.prototype,"toString",null),h=d([m(0,O.NotNull)],h),l.PredicateTransition=h;}),"./node_modules/antlr4ts/atn/PredictionContext.js":(function(D,l,f){var d=this&&this.__decorate||function(t,y,v,S){var N=arguments.length,b=N<3?y:S===null?S=Object.getOwnPropertyDescriptor(y,v):S,U;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(t,y,v,S);else for(var A=t.length-1;A>=0;A--)(U=t[A])&&(b=(N<3?U(b):N>3?U(y,v,b):U(y,v))||b);return N>3&&b&&Object.defineProperty(y,v,b),b},m=this&&this.__param||function(t,y){return function(v,S){y(v,S,t);}};Object.defineProperty(l,"__esModule",{value:true}),l.SingletonPredictionContext=l.PredictionContext=void 0;let g=f("./node_modules/antlr4ts/misc/Array2DHashMap.js"),O=f("./node_modules/antlr4ts/misc/Array2DHashSet.js"),T=f("./node_modules/antlr4ts/misc/Arrays.js"),h=f("./node_modules/antlr4ts/misc/MurmurHash.js"),s=f("./node_modules/antlr4ts/Decorators.js"),o=f("./node_modules/antlr4ts/atn/PredictionContextCache.js"),r=f("./node_modules/assert/build/assert.js"),x=1;class n{constructor(y){this.cachedHashCode=y;}static calculateEmptyHashCode(){let y=h.MurmurHash.initialize(x);return y=h.MurmurHash.finish(y,0),y}static calculateSingleHashCode(y,v){let S=h.MurmurHash.initialize(x);return S=h.MurmurHash.update(S,y),S=h.MurmurHash.update(S,v),S=h.MurmurHash.finish(S,2),S}static calculateHashCode(y,v){let S=h.MurmurHash.initialize(x);for(let N of y)S=h.MurmurHash.update(S,N);for(let N of v)S=h.MurmurHash.update(S,N);return S=h.MurmurHash.finish(S,2*y.length),S}static fromRuleContext(y,v,S=true){if(v.isEmpty)return S?n.EMPTY_FULL:n.EMPTY_LOCAL;let N;v._parent?N=n.fromRuleContext(y,v._parent,S):N=S?n.EMPTY_FULL:n.EMPTY_LOCAL;let U=y.states[v.invokingState].transition(0);return N.getChild(U.followState.stateNumber)}static addEmptyContext(y){return y.addEmptyContext()}static removeEmptyContext(y){return y.removeEmptyContext()}static join(y,v,S=o.PredictionContextCache.UNCACHED){if(y===v)return y;if(y.isEmpty)return n.isEmptyLocal(y)?y:n.addEmptyContext(v);if(v.isEmpty)return n.isEmptyLocal(v)?v:n.addEmptyContext(y);let N=y.size,b=v.size;if(N===1&&b===1&&y.getReturnState(0)===v.getReturnState(0)){let j=S.join(y.getParent(0),v.getParent(0));return j===y.getParent(0)?y:j===v.getParent(0)?v:j.getChild(y.getReturnState(0))}let U=0,A=new Array(N+b),w=new Array(A.length),F=0,M=0,W=true,L=true;for(;F<N&&M<b;)y.getReturnState(F)===v.getReturnState(M)?(A[U]=S.join(y.getParent(F),v.getParent(M)),w[U]=y.getReturnState(F),W=W&&A[U]===y.getParent(F),L=L&&A[U]===v.getParent(M),F++,M++):y.getReturnState(F)<v.getReturnState(M)?(A[U]=y.getParent(F),w[U]=y.getReturnState(F),L=false,F++):(r(v.getReturnState(M)<y.getReturnState(F)),A[U]=v.getParent(M),w[U]=v.getReturnState(M),W=false,M++),U++;for(;F<N;)A[U]=y.getParent(F),w[U]=y.getReturnState(F),F++,L=false,U++;for(;M<b;)A[U]=v.getParent(M),w[U]=v.getReturnState(M),M++,W=false,U++;return W?y:L?v:(U<A.length&&(A=A.slice(0,U),w=w.slice(0,U)),A.length===0?n.EMPTY_FULL:A.length===1?new p(A[0],w[0]):new a(A,w))}static isEmptyLocal(y){return y===n.EMPTY_LOCAL}static getCachedContext(y,v,S){if(y.isEmpty)return y;let N=S.get(y);if(N)return N;if(N=v.get(y),N)return S.put(y,N),N;let b=false,U=new Array(y.size);for(let w=0;w<U.length;w++){let F=n.getCachedContext(y.getParent(w),v,S);if(b||F!==y.getParent(w)){if(!b){U=new Array(y.size);for(let M=0;M<y.size;M++)U[M]=y.getParent(M);b=true;}U[w]=F;}}if(!b)return N=v.putIfAbsent(y,y),S.put(y,N??y),y;let A;if(U.length===1)A=new p(U[0],y.getReturnState(0));else {let w=new Array(y.size);for(let F=0;F<y.size;F++)w[F]=y.getReturnState(F);A=new a(U,w,y.hashCode());}return N=v.putIfAbsent(A,A),S.put(A,N||A),S.put(y,N||A),A}appendSingleContext(y,v){return this.appendContext(n.EMPTY_FULL.getChild(y),v)}getChild(y){return new p(this,y)}hashCode(){return this.cachedHashCode}toStrings(y,v,S=n.EMPTY_FULL){let N=[];t:for(let b=0;;b++){let U=0,A=true,w=this,F=v,M="";for(M+="[";!w.isEmpty&&w!==S;){let W=0;if(w.size>0){let L=1;for(;1<<L>>>0<w.size;)L++;let j=(1<<L>>>0)-1;if(W=b>>U&j,A=A&&W>=w.size-1,W>=w.size)continue t;U+=L;}if(y){M.length>1&&(M+=" ");let j=y.atn.states[F],k=y.ruleNames[j.ruleIndex];M+=k;}else w.getReturnState(W)!==n.EMPTY_FULL_STATE_KEY&&(w.isEmpty||(M.length>1&&(M+=" "),M+=w.getReturnState(W)));F=w.getReturnState(W),w=w.getParent(W);}if(M+="]",N.push(M),A)break}return N}}d([s.Override],n.prototype,"hashCode",null),d([m(0,s.NotNull),m(1,s.NotNull),m(2,s.NotNull)],n,"join",null),d([m(0,s.NotNull),m(1,s.NotNull),m(2,s.NotNull)],n,"getCachedContext",null),l.PredictionContext=n;class c extends n{constructor(y){super(n.calculateEmptyHashCode()),this.fullContext=y;}get isFullContext(){return this.fullContext}addEmptyContext(){return this}removeEmptyContext(){throw new Error("Cannot remove the empty context from itself.")}getParent(y){throw new Error("index out of bounds")}getReturnState(y){throw new Error("index out of bounds")}findReturnState(y){return -1}get size(){return 0}appendSingleContext(y,v){return v.getChild(this,y)}appendContext(y,v){return y}get isEmpty(){return true}get hasEmpty(){return true}equals(y){return this===y}toStrings(y,v,S){return ["[]"]}}d([s.Override],c.prototype,"addEmptyContext",null),d([s.Override],c.prototype,"removeEmptyContext",null),d([s.Override],c.prototype,"getParent",null),d([s.Override],c.prototype,"getReturnState",null),d([s.Override],c.prototype,"findReturnState",null),d([s.Override],c.prototype,"size",null),d([s.Override],c.prototype,"appendSingleContext",null),d([s.Override],c.prototype,"appendContext",null),d([s.Override],c.prototype,"isEmpty",null),d([s.Override],c.prototype,"hasEmpty",null),d([s.Override],c.prototype,"equals",null),d([s.Override],c.prototype,"toStrings",null);let a=class ar extends n{constructor(y,v,S){super(S||n.calculateHashCode(y,v)),r(y.length===v.length),r(v.length>1||v[0]!==n.EMPTY_FULL_STATE_KEY,"Should be using PredictionContext.EMPTY instead."),this.parents=y,this.returnStates=v;}getParent(y){return this.parents[y]}getReturnState(y){return this.returnStates[y]}findReturnState(y){return T.Arrays.binarySearch(this.returnStates,y)}get size(){return this.returnStates.length}get isEmpty(){return false}get hasEmpty(){return this.returnStates[this.returnStates.length-1]===n.EMPTY_FULL_STATE_KEY}addEmptyContext(){if(this.hasEmpty)return this;let y=this.parents.slice(0),v=this.returnStates.slice(0);return y.push(n.EMPTY_FULL),v.push(n.EMPTY_FULL_STATE_KEY),new ar(y,v)}removeEmptyContext(){if(!this.hasEmpty)return this;if(this.returnStates.length===2)return new p(this.parents[0],this.returnStates[0]);{let y=this.parents.slice(0,this.parents.length-1),v=this.returnStates.slice(0,this.returnStates.length-1);return new ar(y,v)}}appendContext(y,v){return ar.appendContextImpl(this,y,new n.IdentityHashMap)}static appendContextImpl(y,v,S){if(v.isEmpty){if(n.isEmptyLocal(v)){if(y.hasEmpty)return n.EMPTY_LOCAL;throw new Error("what to do here?")}return y}if(v.size!==1)throw new Error("Appending a tree suffix is not yet supported.");let N=S.get(y);if(!N){if(y.isEmpty)N=v;else {let b=y.size;y.hasEmpty&&b--;let U=new Array(b),A=new Array(b);for(let w=0;w<b;w++)A[w]=y.getReturnState(w);for(let w=0;w<b;w++)U[w]=ar.appendContextImpl(y.getParent(w),v,S);U.length===1?N=new p(U[0],A[0]):(r(U.length>1),N=new ar(U,A)),y.hasEmpty&&(N=n.join(N,v));}S.put(y,N);}return N}equals(y){if(this===y)return true;if(!(y instanceof ar)||this.hashCode()!==y.hashCode())return false;let v=y;return this.equalsImpl(v,new O.Array2DHashSet)}equalsImpl(y,v){let S=[],N=[];for(S.push(this),N.push(y);;){let b=S.pop(),U=N.pop();if(!b||!U)break;let A=new o.PredictionContextCache.IdentityCommutativePredictionContextOperands(b,U);if(!v.add(A))continue;let w=A.x.size;if(w===0){if(!A.x.equals(A.y))return false;continue}let F=A.y.size;if(w!==F)return false;for(let M=0;M<w;M++){if(A.x.getReturnState(M)!==A.y.getReturnState(M))return false;let W=A.x.getParent(M),L=A.y.getParent(M);if(W.hashCode()!==L.hashCode())return false;W!==L&&(S.push(W),N.push(L));}}return true}};d([s.NotNull],a.prototype,"parents",void 0),d([s.NotNull],a.prototype,"returnStates",void 0),d([s.Override],a.prototype,"getParent",null),d([s.Override],a.prototype,"getReturnState",null),d([s.Override],a.prototype,"findReturnState",null),d([s.Override],a.prototype,"size",null),d([s.Override],a.prototype,"isEmpty",null),d([s.Override],a.prototype,"hasEmpty",null),d([s.Override],a.prototype,"addEmptyContext",null),d([s.Override],a.prototype,"removeEmptyContext",null),d([s.Override],a.prototype,"appendContext",null),d([s.Override],a.prototype,"equals",null),a=d([m(0,s.NotNull)],a);let p=class K0 extends n{constructor(y,v){super(n.calculateSingleHashCode(y,v)),this.parent=y,this.returnState=v;}getParent(y){return this.parent}getReturnState(y){return this.returnState}findReturnState(y){return this.returnState===y?0:-1}get size(){return 1}get isEmpty(){return false}get hasEmpty(){return false}appendContext(y,v){return v.getChild(this.parent.appendContext(y,v),this.returnState)}addEmptyContext(){let y=[this.parent,n.EMPTY_FULL],v=[this.returnState,n.EMPTY_FULL_STATE_KEY];return new a(y,v)}removeEmptyContext(){return this}equals(y){if(y===this)return true;if(!(y instanceof K0))return false;let v=y;return this.hashCode()!==v.hashCode()?false:this.returnState===v.returnState&&this.parent.equals(v.parent)}};d([s.NotNull],p.prototype,"parent",void 0),d([s.Override],p.prototype,"getParent",null),d([s.Override],p.prototype,"getReturnState",null),d([s.Override],p.prototype,"findReturnState",null),d([s.Override],p.prototype,"size",null),d([s.Override],p.prototype,"isEmpty",null),d([s.Override],p.prototype,"hasEmpty",null),d([s.Override],p.prototype,"appendContext",null),d([s.Override],p.prototype,"addEmptyContext",null),d([s.Override],p.prototype,"removeEmptyContext",null),d([s.Override],p.prototype,"equals",null),p=d([m(0,s.NotNull)],p),l.SingletonPredictionContext=p,(function(t){t.EMPTY_LOCAL=new c(false),t.EMPTY_FULL=new c(true),t.EMPTY_LOCAL_STATE_KEY=-2147483648,t.EMPTY_FULL_STATE_KEY=2147483647;class y extends g.Array2DHashMap{constructor(){super(v.INSTANCE);}}t.IdentityHashMap=y;class v{IdentityEqualityComparator(){}hashCode(N){return N.hashCode()}equals(N,b){return N===b}}v.INSTANCE=new v,d([s.Override],v.prototype,"hashCode",null),d([s.Override],v.prototype,"equals",null),t.IdentityEqualityComparator=v;})(n=l.PredictionContext||(l.PredictionContext={}));}),"./node_modules/antlr4ts/atn/PredictionContextCache.js":(function(D,l,f){var d=this&&this.__decorate||function(o,r,x,n){var c=arguments.length,a=c<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,x):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,r,x,n);else for(var t=o.length-1;t>=0;t--)(p=o[t])&&(a=(c<3?p(a):c>3?p(r,x,a):p(r,x))||a);return c>3&&a&&Object.defineProperty(r,x,a),a};Object.defineProperty(l,"__esModule",{value:true}),l.PredictionContextCache=void 0;let m=f("./node_modules/antlr4ts/misc/Array2DHashMap.js"),g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),T=f("./node_modules/antlr4ts/atn/PredictionContext.js"),h=f("./node_modules/assert/build/assert.js");class s{constructor(r=true){this.contexts=new m.Array2DHashMap(O.ObjectEqualityComparator.INSTANCE),this.childContexts=new m.Array2DHashMap(O.ObjectEqualityComparator.INSTANCE),this.joinContexts=new m.Array2DHashMap(O.ObjectEqualityComparator.INSTANCE),this.enableCache=r;}getAsCached(r){if(!this.enableCache)return r;let x=this.contexts.get(r);return x||(x=r,this.contexts.put(r,r)),x}getChild(r,x){if(!this.enableCache)return r.getChild(x);let n=new s.PredictionContextAndInt(r,x),c=this.childContexts.get(n);return c||(c=r.getChild(x),c=this.getAsCached(c),this.childContexts.put(n,c)),c}join(r,x){if(!this.enableCache)return T.PredictionContext.join(r,x,this);let n=new s.IdentityCommutativePredictionContextOperands(r,x),c=this.joinContexts.get(n);return c||(c=T.PredictionContext.join(r,x,this),c=this.getAsCached(c),this.joinContexts.put(n,c),c)}}l.PredictionContextCache=s,s.UNCACHED=new s(false),(function(o){class r{constructor(c,a){this.obj=c,this.value=a;}equals(c){if(c instanceof r){if(c===this)return true}else return false;let a=c;return this.value===a.value&&(this.obj===a.obj||this.obj!=null&&this.obj.equals(a.obj))}hashCode(){let c=5;return c=7*c+(this.obj!=null?this.obj.hashCode():0),c=7*c+this.value,c}}d([g.Override],r.prototype,"equals",null),d([g.Override],r.prototype,"hashCode",null),o.PredictionContextAndInt=r;class x{constructor(c,a){h(c!=null),h(a!=null),this._x=c,this._y=a;}get x(){return this._x}get y(){return this._y}equals(c){if(c instanceof x){if(this===c)return true}else return false;let a=c;return this._x===a._x&&this._y===a._y||this._x===a._y&&this._y===a._x}hashCode(){return this._x.hashCode()^this._y.hashCode()}}d([g.Override],x.prototype,"equals",null),d([g.Override],x.prototype,"hashCode",null),o.IdentityCommutativePredictionContextOperands=x;})(s=l.PredictionContextCache||(l.PredictionContextCache={}));}),"./node_modules/antlr4ts/atn/PredictionMode.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c};Object.defineProperty(l,"__esModule",{value:true}),l.PredictionMode=void 0;let m=f("./node_modules/antlr4ts/misc/Array2DHashMap.js"),g=f("./node_modules/antlr4ts/misc/MurmurHash.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/atn/RuleStopState.js");((function(s){s[s.SLL=0]="SLL",s[s.LL=1]="LL",s[s.LL_EXACT_AMBIG_DETECTION=2]="LL_EXACT_AMBIG_DETECTION";}))(l.PredictionMode||(l.PredictionMode={})),(function(s){class o extends m.Array2DHashMap{constructor(){super(r.INSTANCE);}}class r{AltAndContextConfigEqualityComparator(){}hashCode(a){let p=g.MurmurHash.initialize(7);return p=g.MurmurHash.update(p,a.state.stateNumber),p=g.MurmurHash.update(p,a.context),p=g.MurmurHash.finish(p,2),p}equals(a,p){return a===p?true:a==null||p==null?false:a.state.stateNumber===p.state.stateNumber&&a.context.equals(p.context)}}r.INSTANCE=new r,d([O.Override],r.prototype,"hashCode",null),d([O.Override],r.prototype,"equals",null);function x(c){for(let a of c)if(a.state instanceof T.RuleStopState)return true;return false}s.hasConfigInRuleStopState=x;function n(c){for(let a of c)if(!(a.state instanceof T.RuleStopState))return false;return true}s.allConfigsInRuleStopStates=n;})(l.PredictionMode||(l.PredictionMode={}));}),"./node_modules/antlr4ts/atn/ProfilingATNSimulator.js":(function(D,l,f){var d=f("./node_modules/process/browser.js");var m=this&&this.__decorate||function(v,S,N,b){var U=arguments.length,A=U<3?S:b===null?b=Object.getOwnPropertyDescriptor(S,N):b,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(v,S,N,b);else for(var F=v.length-1;F>=0;F--)(w=v[F])&&(A=(U<3?w(A):U>3?w(S,N,A):w(S,N))||A);return U>3&&A&&Object.defineProperty(S,N,A),A},g=this&&this.__param||function(v,S){return function(N,b){S(N,b,v);}};Object.defineProperty(l,"__esModule",{value:true}),l.ProfilingATNSimulator=void 0;let O=f("./node_modules/antlr4ts/atn/AmbiguityInfo.js"),T=f("./node_modules/antlr4ts/atn/ATN.js"),h=f("./node_modules/antlr4ts/atn/ATNSimulator.js"),s=f("./node_modules/antlr4ts/atn/ContextSensitivityInfo.js"),o=f("./node_modules/antlr4ts/atn/DecisionInfo.js"),r=f("./node_modules/antlr4ts/atn/ErrorInfo.js"),x=f("./node_modules/antlr4ts/Decorators.js"),n=f("./node_modules/antlr4ts/atn/LookaheadEventInfo.js"),c=f("./node_modules/antlr4ts/atn/ParserATNSimulator.js"),a=f("./node_modules/antlr4ts/atn/PredicateEvalInfo.js"),p=f("./node_modules/antlr4ts/atn/SemanticContext.js"),t=f("./node_modules/antlr4ts/atn/SimulatorState.js");class y extends c.ParserATNSimulator{constructor(S){super(S.interpreter.atn,S),this._startIndex=0,this._sllStopIndex=0,this._llStopIndex=0,this.currentDecision=0,this.conflictingAltResolvedBySLL=0,this.optimize_ll1=false,this.reportAmbiguities=true,this.numDecisions=this.atn.decisionToState.length,this.decisions=[];for(let N=0;N<this.numDecisions;N++)this.decisions.push(new o.DecisionInfo(N));}adaptivePredict(S,N,b,U){if(U!==void 0)return super.adaptivePredict(S,N,b,U);try{this._input=S,this._startIndex=S.index,this._sllStopIndex=this._startIndex-1,this._llStopIndex=-1,this.currentDecision=N,this.currentState=void 0,this.conflictingAltResolvedBySLL=T.ATN.INVALID_ALT_NUMBER;let A=d.hrtime(),w=super.adaptivePredict(S,N,b),F=d.hrtime(),M=(F[0]-A[0])*1e9;M===0?M=F[1]-A[1]:M+=1e9-A[1]+F[1],this.decisions[N].timeInPrediction+=M,this.decisions[N].invocations++;let W=this._sllStopIndex-this._startIndex+1;if(this.decisions[N].SLL_TotalLook+=W,this.decisions[N].SLL_MinLook=this.decisions[N].SLL_MinLook===0?W:Math.min(this.decisions[N].SLL_MinLook,W),W>this.decisions[N].SLL_MaxLook&&(this.decisions[N].SLL_MaxLook=W,this.decisions[N].SLL_MaxLookEvent=new n.LookaheadEventInfo(N,void 0,w,S,this._startIndex,this._sllStopIndex,!1)),this._llStopIndex>=0){let L=this._llStopIndex-this._startIndex+1;this.decisions[N].LL_TotalLook+=L,this.decisions[N].LL_MinLook=this.decisions[N].LL_MinLook===0?L:Math.min(this.decisions[N].LL_MinLook,L),L>this.decisions[N].LL_MaxLook&&(this.decisions[N].LL_MaxLook=L,this.decisions[N].LL_MaxLookEvent=new n.LookaheadEventInfo(N,void 0,w,S,this._startIndex,this._llStopIndex,!0));}return w}finally{this._input=void 0,this.currentDecision=-1;}}getStartState(S,N,b,U){let A=super.getStartState(S,N,b,U);return this.currentState=A,A}computeStartState(S,N,b){let U=super.computeStartState(S,N,b);return this.currentState=U,U}computeReachSet(S,N,b,U){if(this._input===void 0)throw new Error("Invalid state");let A=super.computeReachSet(S,N,b,U);return A==null&&this.decisions[this.currentDecision].errors.push(new r.ErrorInfo(this.currentDecision,N,this._input,this._startIndex,this._input.index)),this.currentState=A,A}getExistingTargetState(S,N){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 b=super.getExistingTargetState(S,N);if(b!=null&&(this.currentState=new t.SimulatorState(this.currentState.outerContext,b,this.currentState.useContext,this.currentState.remainingOuterContext),this.currentState.useContext?this.decisions[this.currentDecision].LL_DFATransitions++:this.decisions[this.currentDecision].SLL_DFATransitions++,b===h.ATNSimulator.ERROR)){let U=new t.SimulatorState(this.currentState.outerContext,S,this.currentState.useContext,this.currentState.remainingOuterContext);this.decisions[this.currentDecision].errors.push(new r.ErrorInfo(this.currentDecision,U,this._input,this._startIndex,this._input.index));}return b}computeTargetState(S,N,b,U,A,w){let F=super.computeTargetState(S,N,b,U,A,w);return A?this.decisions[this.currentDecision].LL_ATNTransitions++:this.decisions[this.currentDecision].SLL_ATNTransitions++,F}evalSemanticContextImpl(S,N,b){if(this.currentState===void 0||this._input===void 0)throw new Error("Invalid state");let U=super.evalSemanticContextImpl(S,N,b);if(!(S instanceof p.SemanticContext.PrecedencePredicate)){let w=this._llStopIndex>=0?this._llStopIndex:this._sllStopIndex;this.decisions[this.currentDecision].predicateEvals.push(new a.PredicateEvalInfo(this.currentState,this.currentDecision,this._input,this._startIndex,w,S,U,b));}return U}reportContextSensitivity(S,N,b,U,A){if(this._input===void 0)throw new Error("Invalid state");N!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new s.ContextSensitivityInfo(this.currentDecision,b,this._input,U,A)),super.reportContextSensitivity(S,N,b,U,A);}reportAttemptingFullContext(S,N,b,U,A){N!=null?this.conflictingAltResolvedBySLL=N.nextSetBit(0):this.conflictingAltResolvedBySLL=b.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(S,N,b,U,A);}reportAmbiguity(S,N,b,U,A,w,F){if(this.currentState===void 0||this._input===void 0)throw new Error("Invalid state");let M;w!=null?M=w.nextSetBit(0):M=F.getRepresentedAlternatives().nextSetBit(0),this.conflictingAltResolvedBySLL!==T.ATN.INVALID_ALT_NUMBER&&M!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new s.ContextSensitivityInfo(this.currentDecision,this.currentState,this._input,b,U)),this.decisions[this.currentDecision].ambiguities.push(new O.AmbiguityInfo(this.currentDecision,this.currentState,w,this._input,b,U)),super.reportAmbiguity(S,N,b,U,A,w,F);}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}}m([x.Override,g(0,x.NotNull)],y.prototype,"adaptivePredict",null),m([x.Override],y.prototype,"getStartState",null),m([x.Override],y.prototype,"computeStartState",null),m([x.Override],y.prototype,"computeReachSet",null),m([x.Override],y.prototype,"getExistingTargetState",null),m([x.Override],y.prototype,"computeTargetState",null),m([x.Override],y.prototype,"evalSemanticContextImpl",null),m([x.Override],y.prototype,"reportContextSensitivity",null),m([x.Override],y.prototype,"reportAttemptingFullContext",null),m([x.Override,g(0,x.NotNull),g(5,x.NotNull),g(6,x.NotNull)],y.prototype,"reportAmbiguity",null),l.ProfilingATNSimulator=y;}),"./node_modules/antlr4ts/atn/RangeTransition.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c},m=this&&this.__param||function(s,o){return function(r,x){o(r,x,s);}};Object.defineProperty(l,"__esModule",{value:true}),l.RangeTransition=void 0;let g=f("./node_modules/antlr4ts/misc/IntervalSet.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/atn/Transition.js"),h=class extends T.Transition{constructor(o,r,x){super(o),this.from=r,this.to=x;}get serializationType(){return 2}get label(){return g.IntervalSet.of(this.from,this.to)}matches(o,r,x){return o>=this.from&&o<=this.to}toString(){return "'"+String.fromCodePoint(this.from)+"'..'"+String.fromCodePoint(this.to)+"'"}};d([O.Override],h.prototype,"serializationType",null),d([O.Override,O.NotNull],h.prototype,"label",null),d([O.Override],h.prototype,"matches",null),d([O.Override,O.NotNull],h.prototype,"toString",null),h=d([m(0,O.NotNull)],h),l.RangeTransition=h;}),"./node_modules/antlr4ts/atn/RuleStartState.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.RuleStartState=void 0;let m=f("./node_modules/antlr4ts/atn/ATNState.js"),g=f("./node_modules/antlr4ts/atn/ATNStateType.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T extends m.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=false,this.leftFactored=false;}get stateType(){return g.ATNStateType.RULE_START}}d([O.Override],T.prototype,"stateType",null),l.RuleStartState=T;}),"./node_modules/antlr4ts/atn/RuleStopState.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.RuleStopState=void 0;let m=f("./node_modules/antlr4ts/atn/ATNState.js"),g=f("./node_modules/antlr4ts/atn/ATNStateType.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T extends m.ATNState{get nonStopStateNumber(){return -1}get stateType(){return g.ATNStateType.RULE_STOP}}d([O.Override],T.prototype,"nonStopStateNumber",null),d([O.Override],T.prototype,"stateType",null),l.RuleStopState=T;}),"./node_modules/antlr4ts/atn/RuleTransition.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.RuleTransition=void 0;let g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/atn/Transition.js"),T=class extends O.Transition{constructor(s,o,r,x){super(s),this.tailCall=false,this.optimizedTailCall=false,this.ruleIndex=o,this.precedence=r,this.followState=x;}get serializationType(){return 3}get isEpsilon(){return true}matches(s,o,r){return false}};d([g.NotNull],T.prototype,"followState",void 0),d([g.Override],T.prototype,"serializationType",null),d([g.Override],T.prototype,"isEpsilon",null),d([g.Override],T.prototype,"matches",null),T=d([m(0,g.NotNull),m(3,g.NotNull)],T),l.RuleTransition=T;}),"./node_modules/antlr4ts/atn/SemanticContext.js":(function(D,l,f){var d=this&&this.__decorate||function(c,a,p,t){var y=arguments.length,v=y<3?a:t===null?t=Object.getOwnPropertyDescriptor(a,p):t,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(c,a,p,t);else for(var N=c.length-1;N>=0;N--)(S=c[N])&&(v=(y<3?S(v):y>3?S(a,p,v):S(a,p))||v);return y>3&&v&&Object.defineProperty(a,p,v),v},m=this&&this.__param||function(c,a){return function(p,t){a(p,t,c);}};Object.defineProperty(l,"__esModule",{value:true}),l.SemanticContext=void 0;let g=f("./node_modules/antlr4ts/misc/Array2DHashSet.js"),O=f("./node_modules/antlr4ts/misc/ArrayEqualityComparator.js"),T=f("./node_modules/antlr4ts/misc/MurmurHash.js"),h=f("./node_modules/antlr4ts/Decorators.js"),s=f("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),o=f("./node_modules/antlr4ts/misc/Utils.js");function r(c){let a;for(let p of c){if(a===void 0){a=p;continue}a.compareTo(p)<0&&(a=p);}return a}function x(c){let a;for(let p of c){if(a===void 0){a=p;continue}a.compareTo(p)>0&&(a=p);}return a}class n{static get NONE(){return n._NONE===void 0&&(n._NONE=new n.Predicate),n._NONE}evalPrecedence(a,p){return this}static and(a,p){if(!a||a===n.NONE)return p;if(p===n.NONE)return a;let t=new n.AND(a,p);return t.opnds.length===1?t.opnds[0]:t}static or(a,p){if(!a)return p;if(a===n.NONE||p===n.NONE)return n.NONE;let t=new n.OR(a,p);return t.opnds.length===1?t.opnds[0]:t}}l.SemanticContext=n,(function(c){function t(U){let A=[];for(let w=0;w<U.length;w++){let F=U[w];F instanceof c.PrecedencePredicate&&(A.push(F),U.splice(w,1),w--);}return A}class y extends c{constructor(A=-1,w=-1,F=false){super(),this.ruleIndex=A,this.predIndex=w,this.isCtxDependent=F;}eval(A,w){let F=this.isCtxDependent?w:void 0;return A.sempred(F,this.ruleIndex,this.predIndex)}hashCode(){let A=T.MurmurHash.initialize();return A=T.MurmurHash.update(A,this.ruleIndex),A=T.MurmurHash.update(A,this.predIndex),A=T.MurmurHash.update(A,this.isCtxDependent?1:0),A=T.MurmurHash.finish(A,3),A}equals(A){return A instanceof y?this===A?true:this.ruleIndex===A.ruleIndex&&this.predIndex===A.predIndex&&this.isCtxDependent===A.isCtxDependent:false}toString(){return "{"+this.ruleIndex+":"+this.predIndex+"}?"}}d([h.Override],y.prototype,"eval",null),d([h.Override],y.prototype,"hashCode",null),d([h.Override],y.prototype,"equals",null),d([h.Override],y.prototype,"toString",null),c.Predicate=y;class v extends c{constructor(A){super(),this.precedence=A;}eval(A,w){return A.precpred(w,this.precedence)}evalPrecedence(A,w){if(A.precpred(w,this.precedence))return c.NONE}compareTo(A){return this.precedence-A.precedence}hashCode(){let A=1;return A=31*A+this.precedence,A}equals(A){return A instanceof v?this===A?true:this.precedence===A.precedence:false}toString(){return "{"+this.precedence+">=prec}?"}}d([h.Override],v.prototype,"eval",null),d([h.Override],v.prototype,"evalPrecedence",null),d([h.Override],v.prototype,"compareTo",null),d([h.Override],v.prototype,"hashCode",null),d([h.Override],v.prototype,"equals",null),d([h.Override],v.prototype,"toString",null),c.PrecedencePredicate=v;class S extends c{}c.Operator=S;let N=class As extends S{constructor(A,w){super();let F=new g.Array2DHashSet(s.ObjectEqualityComparator.INSTANCE);A instanceof As?F.addAll(A.opnds):F.add(A),w instanceof As?F.addAll(w.opnds):F.add(w),this.opnds=F.toArray();let M=t(this.opnds),W=x(M);W&&this.opnds.push(W);}get operands(){return this.opnds}equals(A){return this===A?true:A instanceof As?O.ArrayEqualityComparator.INSTANCE.equals(this.opnds,A.opnds):false}hashCode(){return T.MurmurHash.hashCode(this.opnds,40363613)}eval(A,w){for(let F of this.opnds)if(!F.eval(A,w))return false;return true}evalPrecedence(A,w){let F=false,M=[];for(let L of this.opnds){let j=L.evalPrecedence(A,w);if(F=F||j!==L,j==null)return;j!==c.NONE&&M.push(j);}if(!F)return this;if(M.length===0)return c.NONE;let W=M[0];for(let L=1;L<M.length;L++)W=c.and(W,M[L]);return W}toString(){return o.join(this.opnds,"&&")}};d([h.Override],N.prototype,"operands",null),d([h.Override],N.prototype,"equals",null),d([h.Override],N.prototype,"hashCode",null),d([h.Override],N.prototype,"eval",null),d([h.Override],N.prototype,"evalPrecedence",null),d([h.Override],N.prototype,"toString",null),N=d([m(0,h.NotNull),m(1,h.NotNull)],N),c.AND=N;let b=class gs extends S{constructor(A,w){super();let F=new g.Array2DHashSet(s.ObjectEqualityComparator.INSTANCE);A instanceof gs?F.addAll(A.opnds):F.add(A),w instanceof gs?F.addAll(w.opnds):F.add(w),this.opnds=F.toArray();let M=t(this.opnds),W=r(M);W&&this.opnds.push(W);}get operands(){return this.opnds}equals(A){return this===A?true:A instanceof gs?O.ArrayEqualityComparator.INSTANCE.equals(this.opnds,A.opnds):false}hashCode(){return T.MurmurHash.hashCode(this.opnds,486279973)}eval(A,w){for(let F of this.opnds)if(F.eval(A,w))return true;return false}evalPrecedence(A,w){let F=false,M=[];for(let L of this.opnds){let j=L.evalPrecedence(A,w);if(F=F||j!==L,j===c.NONE)return c.NONE;j&&M.push(j);}if(!F)return this;if(M.length===0)return;let W=M[0];for(let L=1;L<M.length;L++)W=c.or(W,M[L]);return W}toString(){return o.join(this.opnds,"||")}};d([h.Override],b.prototype,"operands",null),d([h.Override],b.prototype,"equals",null),d([h.Override],b.prototype,"hashCode",null),d([h.Override],b.prototype,"eval",null),d([h.Override],b.prototype,"evalPrecedence",null),d([h.Override],b.prototype,"toString",null),b=d([m(0,h.NotNull),m(1,h.NotNull)],b),c.OR=b;})(n=l.SemanticContext||(l.SemanticContext={}));}),"./node_modules/antlr4ts/atn/SetTransition.js":(function(D,l,f){var d=this&&this.__decorate||function(o,r,x,n){var c=arguments.length,a=c<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,x):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,r,x,n);else for(var t=o.length-1;t>=0;t--)(p=o[t])&&(a=(c<3?p(a):c>3?p(r,x,a):p(r,x))||a);return c>3&&a&&Object.defineProperty(r,x,a),a},m=this&&this.__param||function(o,r){return function(x,n){r(x,n,o);}};Object.defineProperty(l,"__esModule",{value:true}),l.SetTransition=void 0;let g=f("./node_modules/antlr4ts/misc/IntervalSet.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/Token.js"),h=f("./node_modules/antlr4ts/atn/Transition.js"),s=class extends h.Transition{constructor(r,x){super(r),x==null&&(x=g.IntervalSet.of(T.Token.INVALID_TYPE)),this.set=x;}get serializationType(){return 7}get label(){return this.set}matches(r,x,n){return this.set.contains(r)}toString(){return this.set.toString()}};d([O.NotNull],s.prototype,"set",void 0),d([O.Override],s.prototype,"serializationType",null),d([O.Override,O.NotNull],s.prototype,"label",null),d([O.Override],s.prototype,"matches",null),d([O.Override,O.NotNull],s.prototype,"toString",null),s=d([m(0,O.NotNull),m(1,O.Nullable)],s),l.SetTransition=s;}),"./node_modules/antlr4ts/atn/SimulatorState.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.SimulatorState=void 0;let g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/ParserRuleContext.js"),T=class{constructor(s,o,r,x){this.outerContext=s??O.ParserRuleContext.emptyContext(),this.s0=o,this.useContext=r,this.remainingOuterContext=x;}};T=d([m(1,g.NotNull)],T),l.SimulatorState=T;}),"./node_modules/antlr4ts/atn/StarBlockStartState.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.StarBlockStartState=void 0;let m=f("./node_modules/antlr4ts/atn/ATNStateType.js"),g=f("./node_modules/antlr4ts/atn/BlockStartState.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T extends g.BlockStartState{get stateType(){return m.ATNStateType.STAR_BLOCK_START}}d([O.Override],T.prototype,"stateType",null),l.StarBlockStartState=T;}),"./node_modules/antlr4ts/atn/StarLoopEntryState.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c};Object.defineProperty(l,"__esModule",{value:true}),l.StarLoopEntryState=void 0;let m=f("./node_modules/antlr4ts/atn/ATNStateType.js"),g=f("./node_modules/antlr4ts/misc/BitSet.js"),O=f("./node_modules/antlr4ts/atn/DecisionState.js"),T=f("./node_modules/antlr4ts/Decorators.js");class h extends O.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=false,this.precedenceLoopbackStates=new g.BitSet;}get stateType(){return m.ATNStateType.STAR_LOOP_ENTRY}}d([T.Override],h.prototype,"stateType",null),l.StarLoopEntryState=h;}),"./node_modules/antlr4ts/atn/StarLoopbackState.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.StarLoopbackState=void 0;let m=f("./node_modules/antlr4ts/atn/ATNState.js"),g=f("./node_modules/antlr4ts/atn/ATNStateType.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T extends m.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return g.ATNStateType.STAR_LOOP_BACK}}d([O.Override],T.prototype,"stateType",null),l.StarLoopbackState=T;}),"./node_modules/antlr4ts/atn/TokensStartState.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.TokensStartState=void 0;let m=f("./node_modules/antlr4ts/atn/ATNStateType.js"),g=f("./node_modules/antlr4ts/atn/DecisionState.js"),O=f("./node_modules/antlr4ts/Decorators.js");class T extends g.DecisionState{get stateType(){return m.ATNStateType.TOKEN_START}}d([O.Override],T.prototype,"stateType",null),l.TokensStartState=T;}),"./node_modules/antlr4ts/atn/Transition.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x},m=this&&this.__param||function(T,h){return function(s,o){h(s,o,T);}};Object.defineProperty(l,"__esModule",{value:true}),l.Transition=void 0;let g=f("./node_modules/antlr4ts/Decorators.js"),O=class{constructor(h){if(h==null)throw new Error("target cannot be null.");this.target=h;}get isEpsilon(){return false}get label(){}};O.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],d([g.NotNull],O.prototype,"target",void 0),O=d([m(0,g.NotNull)],O),l.Transition=O;}),"./node_modules/antlr4ts/atn/WildcardTransition.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.WildcardTransition=void 0;let g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/atn/Transition.js"),T=class extends O.Transition{constructor(s){super(s);}get serializationType(){return 9}matches(s,o,r){return s>=o&&s<=r}toString(){return "."}};d([g.Override],T.prototype,"serializationType",null),d([g.Override],T.prototype,"matches",null),d([g.Override,g.NotNull],T.prototype,"toString",null),T=d([m(0,g.NotNull)],T),l.WildcardTransition=T;}),"./node_modules/antlr4ts/dfa/AcceptStateInfo.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.AcceptStateInfo=void 0;class f{constructor(m,g){this._prediction=m,this._lexerActionExecutor=g;}get prediction(){return this._prediction}get lexerActionExecutor(){return this._lexerActionExecutor}}l.AcceptStateInfo=f;}),"./node_modules/antlr4ts/dfa/DFA.js":(function(D,l,f){var d=this&&this.__decorate||function(a,p,t,y){var v=arguments.length,S=v<3?p:y===null?y=Object.getOwnPropertyDescriptor(p,t):y,N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(a,p,t,y);else for(var b=a.length-1;b>=0;b--)(N=a[b])&&(S=(v<3?N(S):v>3?N(p,t,S):N(p,t))||S);return v>3&&S&&Object.defineProperty(p,t,S),S},m=this&&this.__param||function(a,p){return function(t,y){p(t,y,a);}};Object.defineProperty(l,"__esModule",{value:true}),l.DFA=void 0;let g=f("./node_modules/antlr4ts/misc/Array2DHashSet.js"),O=f("./node_modules/antlr4ts/atn/ATNConfigSet.js"),T=f("./node_modules/antlr4ts/dfa/DFASerializer.js"),h=f("./node_modules/antlr4ts/dfa/DFAState.js"),s=f("./node_modules/antlr4ts/dfa/LexerDFASerializer.js"),o=f("./node_modules/antlr4ts/Decorators.js"),r=f("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js"),x=f("./node_modules/antlr4ts/atn/StarLoopEntryState.js"),n=f("./node_modules/antlr4ts/VocabularyImpl.js"),c=class{constructor(p,t=0){if(this.states=new g.Array2DHashSet(r.ObjectEqualityComparator.INSTANCE),this.nextStateNumber=0,!p.atn)throw new Error("The ATNState must be associated with an ATN");this.atnStartState=p,this.atn=p.atn,this.decision=t;let y=false;p instanceof x.StarLoopEntryState&&p.precedenceRuleDecision&&(y=true,this.s0=new h.DFAState(new O.ATNConfigSet),this.s0full=new h.DFAState(new O.ATNConfigSet)),this.precedenceDfa=y;}get isPrecedenceDfa(){return this.precedenceDfa}getPrecedenceStartState(p,t){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");return t?this.s0full.getTarget(p):this.s0.getTarget(p)}setPrecedenceStartState(p,t,y){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");p<0||(t?this.s0full.setTarget(p,y):this.s0.setTarget(p,y));}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(p){return p.stateNumber=this.nextStateNumber++,this.states.getOrAdd(p)}toString(p,t){if(p||(p=n.VocabularyImpl.EMPTY_VOCABULARY),!this.s0)return "";let y;return t?y=new T.DFASerializer(this,p,t,this.atnStartState.atn):y=new T.DFASerializer(this,p),y.toString()}toLexerString(){return this.s0?new s.LexerDFASerializer(this).toString():""}};d([o.NotNull],c.prototype,"states",void 0),d([o.NotNull],c.prototype,"atnStartState",void 0),d([o.NotNull],c.prototype,"atn",void 0),c=d([m(0,o.NotNull)],c),l.DFA=c;}),"./node_modules/antlr4ts/dfa/DFASerializer.js":(function(D,l,f){var d=this&&this.__decorate||function(o,r,x,n){var c=arguments.length,a=c<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,x):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,r,x,n);else for(var t=o.length-1;t>=0;t--)(p=o[t])&&(a=(c<3?p(a):c>3?p(r,x,a):p(r,x))||a);return c>3&&a&&Object.defineProperty(r,x,a),a};Object.defineProperty(l,"__esModule",{value:true}),l.DFASerializer=void 0;let m=f("./node_modules/antlr4ts/atn/ATNSimulator.js"),g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/atn/PredictionContext.js"),T=f("./node_modules/antlr4ts/Recognizer.js"),h=f("./node_modules/antlr4ts/VocabularyImpl.js");class s{constructor(r,x,n,c){x instanceof T.Recognizer?(n=x.ruleNames,c=x.atn,x=x.vocabulary):x||(x=h.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=r,this.vocabulary=x,this.ruleNames=n,this.atn=c;}toString(){if(!this.dfa.s0)return "";let r="";if(this.dfa.states){let n=new Array(...this.dfa.states.toArray());n.sort((c,a)=>c.stateNumber-a.stateNumber);for(let c of n){let a=c.getEdgeMap(),p=[...a.keys()].sort((v,S)=>v-S),t=c.getContextEdgeMap(),y=[...t.keys()].sort((v,S)=>v-S);for(let v of p){let S=a.get(v);if((S==null||S===m.ATNSimulator.ERROR)&&!c.isContextSymbol(v))continue;let N=false;r+=this.getStateString(c)+"-"+this.getEdgeLabel(v)+"->",c.isContextSymbol(v)&&(r+="!",N=true);let b=S;b&&b.stateNumber!==m.ATNSimulator.ERROR.stateNumber?r+=this.getStateString(b)+`
11
+ `:N&&(r+=`ctx
12
+ `);}if(c.isContextSensitive)for(let v of y)r+=this.getStateString(c)+"-"+this.getContextLabel(v)+"->"+this.getStateString(t.get(v))+`
13
+ `;}}let x=r;return x.length===0?"":x}getContextLabel(r){if(r===O.PredictionContext.EMPTY_FULL_STATE_KEY)return "ctx:EMPTY_FULL";if(r===O.PredictionContext.EMPTY_LOCAL_STATE_KEY)return "ctx:EMPTY_LOCAL";if(this.atn&&r>0&&r<=this.atn.states.length){let n=this.atn.states[r].ruleIndex;if(this.ruleNames&&n>=0&&n<this.ruleNames.length)return "ctx:"+String(r)+"("+this.ruleNames[n]+")"}return "ctx:"+String(r)}getEdgeLabel(r){return this.vocabulary.getDisplayName(r)}getStateString(r){if(r===m.ATNSimulator.ERROR)return "ERROR";let x=r.stateNumber,n="s"+x;if(r.isAcceptState&&(r.predicates?n=":s"+x+"=>"+r.predicates:n=":s"+x+"=>"+r.prediction),r.isContextSensitive){n+="*";for(let c of r.configs)if(c.reachesIntoOuterContext){n+="*";break}}return n}}d([g.NotNull],s.prototype,"dfa",void 0),d([g.NotNull],s.prototype,"vocabulary",void 0),d([g.Override],s.prototype,"toString",null),l.DFASerializer=s;}),"./node_modules/antlr4ts/dfa/DFAState.js":(function(D,l,f){var d=this&&this.__decorate||function(x,n,c,a){var p=arguments.length,t=p<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,c):a,y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(x,n,c,a);else for(var v=x.length-1;v>=0;v--)(y=x[v])&&(t=(p<3?y(t):p>3?y(n,c,t):y(n,c))||t);return p>3&&t&&Object.defineProperty(n,c,t),t},m=this&&this.__param||function(x,n){return function(c,a){n(c,a,x);}};Object.defineProperty(l,"__esModule",{value:true}),l.DFAState=void 0;let g=f("./node_modules/antlr4ts/atn/ATN.js"),O=f("./node_modules/antlr4ts/misc/BitSet.js"),T=f("./node_modules/antlr4ts/misc/MurmurHash.js"),h=f("./node_modules/antlr4ts/Decorators.js"),s=f("./node_modules/antlr4ts/atn/PredictionContext.js"),o=f("./node_modules/assert/build/assert.js");class r{constructor(n){this.stateNumber=-1,this.configs=n,this.edges=new Map,this.contextEdges=new Map;}get isContextSensitive(){return !!this.contextSymbols}isContextSymbol(n){return this.isContextSensitive?this.contextSymbols.get(n):false}setContextSymbol(n){o(this.isContextSensitive),this.contextSymbols.set(n);}setContextSensitive(n){o(!this.configs.isOutermostConfigSet),!this.isContextSensitive&&(this.contextSymbols||(this.contextSymbols=new O.BitSet));}get acceptStateInfo(){return this._acceptStateInfo}set acceptStateInfo(n){this._acceptStateInfo=n;}get isAcceptState(){return !!this._acceptStateInfo}get prediction(){return this._acceptStateInfo?this._acceptStateInfo.prediction:g.ATN.INVALID_ALT_NUMBER}get lexerActionExecutor(){if(this._acceptStateInfo)return this._acceptStateInfo.lexerActionExecutor}getTarget(n){return this.edges.get(n)}setTarget(n,c){this.edges.set(n,c);}getEdgeMap(){return this.edges}getContextTarget(n){return n===s.PredictionContext.EMPTY_FULL_STATE_KEY&&(n=-1),this.contextEdges.get(n)}setContextTarget(n,c){if(!this.isContextSensitive)throw new Error("The state is not context sensitive.");n===s.PredictionContext.EMPTY_FULL_STATE_KEY&&(n=-1),this.contextEdges.set(n,c);}getContextEdgeMap(){let n=new Map(this.contextEdges),c=n.get(-1);if(c!==void 0)if(n.size===1){let a=new Map;return a.set(s.PredictionContext.EMPTY_FULL_STATE_KEY,c),a}else n.delete(-1),n.set(s.PredictionContext.EMPTY_FULL_STATE_KEY,c);return n}hashCode(){let n=T.MurmurHash.initialize(7);return n=T.MurmurHash.update(n,this.configs.hashCode()),n=T.MurmurHash.finish(n,1),n}equals(n){if(this===n)return true;if(!(n instanceof r))return false;let c=n;return this.configs.equals(c.configs)}toString(){let n="";return n+=this.stateNumber+":"+this.configs,this.isAcceptState&&(n+="=>",this.predicates?n+=this.predicates:n+=this.prediction),n.toString()}}d([h.NotNull],r.prototype,"configs",void 0),d([h.NotNull],r.prototype,"edges",void 0),d([h.NotNull],r.prototype,"contextEdges",void 0),d([h.Override],r.prototype,"hashCode",null),d([h.Override],r.prototype,"equals",null),d([h.Override],r.prototype,"toString",null),l.DFAState=r,(function(x){let n=class{constructor(a,p){this.alt=p,this.pred=a;}toString(){return "("+this.pred+", "+this.alt+")"}};d([h.NotNull],n.prototype,"pred",void 0),d([h.Override],n.prototype,"toString",null),n=d([m(0,h.NotNull)],n),x.PredPrediction=n;})(r=l.DFAState||(l.DFAState={}));}),"./node_modules/antlr4ts/dfa/LexerDFASerializer.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c},m=this&&this.__param||function(s,o){return function(r,x){o(r,x,s);}};Object.defineProperty(l,"__esModule",{value:true}),l.LexerDFASerializer=void 0;let g=f("./node_modules/antlr4ts/dfa/DFASerializer.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=f("./node_modules/antlr4ts/VocabularyImpl.js"),h=class extends g.DFASerializer{constructor(o){super(o,T.VocabularyImpl.EMPTY_VOCABULARY);}getEdgeLabel(o){return "'"+String.fromCodePoint(o)+"'"}};d([O.Override,O.NotNull],h.prototype,"getEdgeLabel",null),h=d([m(0,O.NotNull)],h),l.LexerDFASerializer=h;}),"./node_modules/antlr4ts/index.js":(function(D,l,f){var d=this&&this.__createBinding||(Object.create?(function(g,O,T,h){h===void 0&&(h=T),Object.defineProperty(g,h,{enumerable:true,get:function(){return O[T]}});}):(function(g,O,T,h){h===void 0&&(h=T),g[h]=O[T];})),m=this&&this.__exportStar||function(g,O){for(var T in g)T!=="default"&&!Object.prototype.hasOwnProperty.call(O,T)&&d(O,g,T);};Object.defineProperty(l,"__esModule",{value:true}),m(f("./node_modules/antlr4ts/ANTLRErrorListener.js"),l),m(f("./node_modules/antlr4ts/ANTLRErrorStrategy.js"),l),m(f("./node_modules/antlr4ts/ANTLRInputStream.js"),l),m(f("./node_modules/antlr4ts/BailErrorStrategy.js"),l),m(f("./node_modules/antlr4ts/BufferedTokenStream.js"),l),m(f("./node_modules/antlr4ts/CharStream.js"),l),m(f("./node_modules/antlr4ts/CharStreams.js"),l),m(f("./node_modules/antlr4ts/CodePointBuffer.js"),l),m(f("./node_modules/antlr4ts/CodePointCharStream.js"),l),m(f("./node_modules/antlr4ts/CommonToken.js"),l),m(f("./node_modules/antlr4ts/CommonTokenFactory.js"),l),m(f("./node_modules/antlr4ts/CommonTokenStream.js"),l),m(f("./node_modules/antlr4ts/ConsoleErrorListener.js"),l),m(f("./node_modules/antlr4ts/DefaultErrorStrategy.js"),l),m(f("./node_modules/antlr4ts/Dependents.js"),l),m(f("./node_modules/antlr4ts/DiagnosticErrorListener.js"),l),m(f("./node_modules/antlr4ts/FailedPredicateException.js"),l),m(f("./node_modules/antlr4ts/InputMismatchException.js"),l),m(f("./node_modules/antlr4ts/InterpreterRuleContext.js"),l),m(f("./node_modules/antlr4ts/IntStream.js"),l),m(f("./node_modules/antlr4ts/Lexer.js"),l),m(f("./node_modules/antlr4ts/LexerInterpreter.js"),l),m(f("./node_modules/antlr4ts/LexerNoViableAltException.js"),l),m(f("./node_modules/antlr4ts/ListTokenSource.js"),l),m(f("./node_modules/antlr4ts/NoViableAltException.js"),l),m(f("./node_modules/antlr4ts/Parser.js"),l),m(f("./node_modules/antlr4ts/ParserErrorListener.js"),l),m(f("./node_modules/antlr4ts/ParserInterpreter.js"),l),m(f("./node_modules/antlr4ts/ParserRuleContext.js"),l),m(f("./node_modules/antlr4ts/ProxyErrorListener.js"),l),m(f("./node_modules/antlr4ts/ProxyParserErrorListener.js"),l),m(f("./node_modules/antlr4ts/RecognitionException.js"),l),m(f("./node_modules/antlr4ts/Recognizer.js"),l),m(f("./node_modules/antlr4ts/RuleContext.js"),l),m(f("./node_modules/antlr4ts/RuleContextWithAltNum.js"),l),m(f("./node_modules/antlr4ts/RuleDependency.js"),l),m(f("./node_modules/antlr4ts/RuleVersion.js"),l),m(f("./node_modules/antlr4ts/Token.js"),l),m(f("./node_modules/antlr4ts/TokenFactory.js"),l),m(f("./node_modules/antlr4ts/TokenSource.js"),l),m(f("./node_modules/antlr4ts/TokenStream.js"),l),m(f("./node_modules/antlr4ts/TokenStreamRewriter.js"),l),m(f("./node_modules/antlr4ts/Vocabulary.js"),l),m(f("./node_modules/antlr4ts/VocabularyImpl.js"),l),m(f("./node_modules/antlr4ts/WritableToken.js"),l);}),"./node_modules/antlr4ts/misc/Array2DHashMap.js":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.Array2DHashMap=void 0;let d=f("./node_modules/antlr4ts/misc/Array2DHashSet.js");class m{constructor(T){this.keyComparator=T;}hashCode(T){return this.keyComparator.hashCode(T.key)}equals(T,h){return this.keyComparator.equals(T.key,h.key)}}class g{constructor(T){T instanceof g?this.backingStore=new d.Array2DHashSet(T.backingStore):this.backingStore=new d.Array2DHashSet(new m(T));}clear(){this.backingStore.clear();}containsKey(T){return this.backingStore.contains({key:T})}get(T){let h=this.backingStore.get({key:T});if(h)return h.value}get isEmpty(){return this.backingStore.isEmpty}put(T,h){let s=this.backingStore.get({key:T,value:h}),o;return s?(o=s.value,s.value=h):this.backingStore.add({key:T,value:h}),o}putIfAbsent(T,h){let s=this.backingStore.get({key:T,value:h}),o;return s?o=s.value:this.backingStore.add({key:T,value:h}),o}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(T){return T instanceof g?this.backingStore.equals(T.backingStore):false}}l.Array2DHashMap=g;}),"./node_modules/antlr4ts/misc/Array2DHashSet.js":(function(D,l,f){var d=this&&this.__decorate||function(x,n,c,a){var p=arguments.length,t=p<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,c):a,y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(x,n,c,a);else for(var v=x.length-1;v>=0;v--)(y=x[v])&&(t=(p<3?y(t):p>3?y(n,c,t):y(n,c))||t);return p>3&&t&&Object.defineProperty(n,c,t),t},m=this&&this.__param||function(x,n){return function(c,a){n(c,a,x);}};Object.defineProperty(l,"__esModule",{value:true}),l.Array2DHashSet=void 0;let g=f("./node_modules/assert/build/assert.js"),O=f("./node_modules/antlr4ts/misc/DefaultEqualityComparator.js"),T=f("./node_modules/antlr4ts/Decorators.js"),h=f("./node_modules/antlr4ts/misc/MurmurHash.js"),s=16,o=.75;class r{constructor(n,c=s){if(this.n=0,this.threshold=Math.floor(s*o),n instanceof r){this.comparator=n.comparator,this.buckets=n.buckets.slice(0);for(let a=0;a<this.buckets.length;a++){let p=this.buckets[a];p&&(this.buckets[a]=p.slice(0));}this.n=n.n,this.threshold=n.threshold;}else this.comparator=n||O.DefaultEqualityComparator.INSTANCE,this.buckets=this.createBuckets(c);}getOrAdd(n){return this.n>this.threshold&&this.expand(),this.getOrAddImpl(n)}getOrAddImpl(n){let c=this.getBucket(n),a=this.buckets[c];if(!a)return a=[n],this.buckets[c]=a,this.n++,n;for(let p of a)if(this.comparator.equals(p,n))return p;return a.push(n),this.n++,n}get(n){if(n==null)return n;let c=this.getBucket(n),a=this.buckets[c];if(a){for(let p of a)if(this.comparator.equals(p,n))return p}}getBucket(n){return this.comparator.hashCode(n)&this.buckets.length-1}hashCode(){let n=h.MurmurHash.initialize();for(let c of this.buckets)if(c!=null)for(let a of c){if(a==null)break;n=h.MurmurHash.update(n,this.comparator.hashCode(a));}return n=h.MurmurHash.finish(n,this.size),n}equals(n){return n===this?true:!(n instanceof r)||n.size!==this.size?false:this.containsAll(n)}expand(){let n=this.buckets,c=this.buckets.length*2,a=this.createBuckets(c);this.buckets=a,this.threshold=Math.floor(c*o);let p=this.size;for(let t of n)if(t)for(let y of t){let v=this.getBucket(y),S=this.buckets[v];S||(S=[],this.buckets[v]=S),S.push(y);}g(this.n===p);}add(n){return this.getOrAdd(n)===n}get size(){return this.n}get isEmpty(){return this.n===0}contains(n){return this.containsFast(this.asElementType(n))}containsFast(n){return n==null?false:this.get(n)!=null}*[Symbol.iterator](){yield*this.toArray();}toArray(){let n=new Array(this.size),c=0;for(let a of this.buckets)if(a!=null)for(let p of a){if(p==null)break;n[c++]=p;}return n}containsAll(n){if(n instanceof r){let c=n;for(let a of c.buckets)if(a!=null)for(let p of a){if(p==null)break;if(!this.containsFast(this.asElementType(p)))return false}}else for(let c of n)if(!this.containsFast(this.asElementType(c)))return false;return true}addAll(n){let c=false;for(let a of n)this.getOrAdd(a)!==a&&(c=true);return c}clear(){this.buckets=this.createBuckets(s),this.n=0,this.threshold=Math.floor(s*o);}toString(){if(this.size===0)return "{}";let n="{",c=true;for(let a of this.buckets)if(a!=null)for(let p of a){if(p==null)break;c?c=false:n+=", ",n+=p.toString();}return n+="}",n}toTableString(){let n="";for(let c of this.buckets){if(c==null){n+=`null
14
+ `;continue}n+="[";let a=true;for(let p of c)a?a=false:n+=" ",p==null?n+="_":n+=p.toString();n+=`]
15
+ `;}return n}asElementType(n){return n}createBuckets(n){return new Array(n)}}d([T.NotNull],r.prototype,"comparator",void 0),d([T.Override],r.prototype,"hashCode",null),d([T.Override],r.prototype,"equals",null),d([T.Override],r.prototype,"add",null),d([T.Override],r.prototype,"size",null),d([T.Override],r.prototype,"isEmpty",null),d([T.Override],r.prototype,"contains",null),d([m(0,T.Nullable)],r.prototype,"containsFast",null),d([T.Override],r.prototype,Symbol.iterator,null),d([T.Override],r.prototype,"toArray",null),d([T.Override],r.prototype,"containsAll",null),d([T.Override],r.prototype,"addAll",null),d([T.Override],r.prototype,"clear",null),d([T.Override],r.prototype,"toString",null),d([T.SuppressWarnings("unchecked")],r.prototype,"asElementType",null),d([T.SuppressWarnings("unchecked")],r.prototype,"createBuckets",null),l.Array2DHashSet=r;}),"./node_modules/antlr4ts/misc/ArrayEqualityComparator.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.ArrayEqualityComparator=void 0;let m=f("./node_modules/antlr4ts/Decorators.js"),g=f("./node_modules/antlr4ts/misc/MurmurHash.js"),O=f("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js");class T{hashCode(s){return s==null?0:g.MurmurHash.hashCode(s,0)}equals(s,o){if(s==null)return o==null;if(o==null||s.length!==o.length)return false;for(let r=0;r<s.length;r++)if(!O.ObjectEqualityComparator.INSTANCE.equals(s[r],o[r]))return false;return true}}T.INSTANCE=new T,d([m.Override],T.prototype,"hashCode",null),d([m.Override],T.prototype,"equals",null),l.ArrayEqualityComparator=T;}),"./node_modules/antlr4ts/misc/Arrays.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.Arrays=void 0;(function(d){function m(T,h,s,o){return g(T,s!==void 0?s:0,o!==void 0?o:T.length,h)}d.binarySearch=m;function g(T,h,s,o){let r=h,x=s-1;for(;r<=x;){let n=r+x>>>1,c=T[n];if(c<o)r=n+1;else if(c>o)x=n-1;else return n}return -(r+1)}function O(T){let h="[",s=true;for(let o of T)s?s=false:h+=", ",o===null?h+="null":o===void 0?h+="undefined":h+=o;return h+="]",h}d.toString=O;})(l.Arrays||(l.Arrays={}));}),"./node_modules/antlr4ts/misc/BitSet.js":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.BitSet=void 0;let d=f("./node_modules/util/util.js"),m=f("./node_modules/antlr4ts/misc/MurmurHash.js"),g=new Uint16Array(0);function O(c){return c>>>4}function T(c){return c*16}function h(c){let a=1;for(let p=0;p<16;p++){if((c&a)!==0)return p;a=a<<1>>>0;}throw new RangeError("No specified bit found")}function s(c){let a=32768;for(let p=15;p>=0;p--){if((c&a)!==0)return p;a=a>>>1;}throw new RangeError("No specified bit found")}function o(c,a){return c&=15,a&=15,c===a?1<<c>>>0:65535>>>15-a^65535>>>16-c}let r=new Uint8Array(65536);for(let c=0;c<16;c++){let a=1<<c>>>0,p=0;for(;p<r.length;){p+=a;for(let t=0;t<a;t++)r[p]++,p++;}}class x{constructor(a){if(!a)this.data=g;else if(typeof a=="number"){if(a<0)throw new RangeError("nbits cannot be negative");this.data=new Uint16Array(O(a-1)+1);}else if(a instanceof x)this.data=a.data.slice(0);else {let p=-1;for(let t of a)p<t&&(p=t);this.data=new Uint16Array(O(p-1)+1);for(let t of a)this.set(t);}}and(a){let p=this.data,t=a.data,y=Math.min(p.length,t.length),v=-1;for(let S=0;S<y;S++)(p[S]&=t[S])!==0&&(v=S);v===-1&&(this.data=g),v<p.length-1&&(this.data=p.slice(0,v+1));}andNot(a){let p=this.data,t=a.data,y=Math.min(p.length,t.length),v=-1;for(let S=0;S<y;S++)(p[S]&=t[S]^65535)!==0&&(v=S);v===-1&&(this.data=g),v<p.length-1&&(this.data=p.slice(0,v+1));}cardinality(){if(this.isEmpty)return 0;let a=this.data,p=a.length,t=0;for(let y=0;y<p;y++)t+=r[a[y]];return t}clear(a,p){a==null?this.data.fill(0):p==null?this.set(a,false):this.set(a,p,false);}flip(a,p){if(p==null&&(p=a),a<0||p<a)throw new RangeError;let t=O(a),y=O(p);if(t===y)this.data[t]^=o(a,p);else {for(this.data[t++]^=o(a,15);t<y;)this.data[t++]^=65535;this.data[t++]^=o(0,p);}}get(a,p){if(p===void 0)return !!(this.data[O(a)]&o(a,a));{let t=new x(p+1);for(let y=a;y<=p;y++)t.set(y,this.get(y));return t}}intersects(a){let p=Math.min(this.length(),a.length());if(p===0)return false;let t=O(p-1);for(let y=0;y<=t;y++)if((this.data[y]&a.data[y])!==0)return true;return false}get isEmpty(){return this.length()===0}length(){return this.data.length?this.previousSetBit(T(this.data.length)-1)+1:0}nextClearBit(a){if(a<0)throw new RangeError("fromIndex cannot be negative");let p=this.data,t=p.length,y=O(a);if(y>t)return -1;let v=65535^o(a,15);if((p[y]|v)===65535){for(y++,v=0;y<t&&p[y]===65535;y++);if(y===t)return -1}return T(y)+h((p[y]|v)^65535)}nextSetBit(a){if(a<0)throw new RangeError("fromIndex cannot be negative");let p=this.data,t=p.length,y=O(a);if(y>t)return -1;let v=o(a,15);if((p[y]&v)===0){for(y++,v=65535;y<t&&p[y]===0;y++);if(y>=t)return -1}return T(y)+h(p[y]&v)}or(a){let p=this.data,t=a.data,y=Math.min(p.length,t.length),v=Math.max(p.length,t.length),S=p.length===v?p:new Uint16Array(v),N=-1;for(let U=0;U<y;U++)(S[U]=p[U]|t[U])!==0&&(N=U);let b=p.length>t.length?p:t;for(let U=y;U<v;U++)(S[U]=b[U])!==0&&(N=U);N===-1?this.data=g:S.length===N+1?this.data=S:this.data=S.slice(0,N);}previousClearBit(a){if(a<0)throw new RangeError("fromIndex cannot be negative");let p=this.data,t=p.length,y=O(a);y>=t&&(y=t-1);let v=65535^o(0,a);if((p[y]|v)===65535){for(v=0,y--;y>=0&&p[y]===65535;y--);if(y<0)return -1}return T(y)+s((p[y]|v)^65535)}previousSetBit(a){if(a<0)throw new RangeError("fromIndex cannot be negative");let p=this.data,t=p.length,y=O(a);y>=t&&(y=t-1);let v=o(0,a);if((p[y]&v)===0){for(y--,v=65535;y>=0&&p[y]===0;y--);if(y<0)return -1}return T(y)+s(p[y]&v)}set(a,p,t){if(p===void 0?(p=a,t=true):typeof p=="boolean"&&(t=p,p=a),t===void 0&&(t=true),a<0||a>p)throw new RangeError;let y=O(a),v=O(p);if(t&&v>=this.data.length){let S=new Uint16Array(v+1);this.data.forEach((N,b)=>S[b]=N),this.data=S;}else if(!t){if(y>=this.data.length)return;v>=this.data.length&&(v=this.data.length-1,p=this.data.length*16-1);}if(y===v)this._setBits(y,t,o(a,p));else {for(this._setBits(y++,t,o(a,15));y<v;)this.data[y++]=t?65535:0;this._setBits(y,t,o(0,p));}}_setBits(a,p,t){p?this.data[a]|=t:this.data[a]&=65535^t;}get size(){return this.data.byteLength*8}hashCode(){return m.MurmurHash.hashCode(this.data,22)}equals(a){if(a===this)return true;if(!(a instanceof x))return false;let p=this.length();if(p!==a.length())return false;if(p===0)return true;let t=O(p-1);for(let y=0;y<=t;y++)if(this.data[y]!==a.data[y])return false;return true}toString(){let a="{",p=true;for(let t=this.nextSetBit(0);t>=0;t=this.nextSetBit(t+1))p?p=false:a+=", ",a+=t;return a+="}",a}xor(a){let p=this.data,t=a.data,y=Math.min(p.length,t.length),v=Math.max(p.length,t.length),S=p.length===v?p:new Uint16Array(v),N=-1;for(let U=0;U<y;U++)(S[U]=p[U]^t[U])!==0&&(N=U);let b=p.length>t.length?p:t;for(let U=y;U<v;U++)(S[U]=b[U])!==0&&(N=U);N===-1?this.data=g:S.length===N+1?this.data=S:this.data=S.slice(0,N+1);}clone(){return new x(this)}[Symbol.iterator](){return new n(this.data)}[d.inspect.custom](){return "BitSet "+this.toString()}}l.BitSet=x;class n{constructor(a){this.data=a,this.index=0,this.mask=65535;}next(){for(;this.index<this.data.length;){let a=this.data[this.index]&this.mask;if(a!==0){let p=T(this.index)+h(a);return this.mask=o(p+1,15),{done:false,value:p}}this.index++,this.mask=65535;}return {done:true,value:-1}}[Symbol.iterator](){return this}}}),"./node_modules/antlr4ts/misc/Character.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.isSupplementaryCodePoint=l.isLowSurrogate=l.isHighSurrogate=void 0;function f(g){return g>=55296&&g<=56319}l.isHighSurrogate=f;function d(g){return g>=56320&&g<=57343}l.isLowSurrogate=d;function m(g){return g>=65536}l.isSupplementaryCodePoint=m;}),"./node_modules/antlr4ts/misc/DefaultEqualityComparator.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.DefaultEqualityComparator=void 0;let m=f("./node_modules/antlr4ts/Decorators.js"),g=f("./node_modules/antlr4ts/misc/MurmurHash.js"),O=f("./node_modules/antlr4ts/misc/ObjectEqualityComparator.js");class T{hashCode(s){return s==null?0:typeof s=="string"||typeof s=="number"?g.MurmurHash.hashCode([s]):O.ObjectEqualityComparator.INSTANCE.hashCode(s)}equals(s,o){return s==null?o==null:typeof s=="string"||typeof s=="number"?s===o:O.ObjectEqualityComparator.INSTANCE.equals(s,o)}}T.INSTANCE=new T,d([m.Override],T.prototype,"hashCode",null),d([m.Override],T.prototype,"equals",null),l.DefaultEqualityComparator=T;}),"./node_modules/antlr4ts/misc/IntegerList.js":(function(D,l,f){var d=this&&this.__decorate||function(o,r,x,n){var c=arguments.length,a=c<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,x):n,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,r,x,n);else for(var t=o.length-1;t>=0;t--)(p=o[t])&&(a=(c<3?p(a):c>3?p(r,x,a):p(r,x))||a);return c>3&&a&&Object.defineProperty(r,x,a),a};Object.defineProperty(l,"__esModule",{value:true}),l.IntegerList=void 0;let m=f("./node_modules/antlr4ts/misc/Arrays.js"),g=f("./node_modules/antlr4ts/Decorators.js"),O=new Int32Array(0),T=4,h=(1<<31>>>0)-1-8;class s{constructor(r){if(!r)this._data=O,this._size=0;else if(r instanceof s)this._data=r._data.slice(0),this._size=r._size;else if(typeof r=="number")r===0?(this._data=O,this._size=0):(this._data=new Int32Array(r),this._size=0);else {this._data=O,this._size=0;for(let x of r)this.add(x);}}add(r){this._data.length===this._size&&this.ensureCapacity(this._size+1),this._data[this._size]=r,this._size++;}addAll(r){if(Array.isArray(r))this.ensureCapacity(this._size+r.length),this._data.subarray(this._size,this._size+r.length).set(r),this._size+=r.length;else if(r instanceof s)this.ensureCapacity(this._size+r._size),this._data.subarray(this._size,this._size+r.size).set(r._data),this._size+=r._size;else {this.ensureCapacity(this._size+r.size);let x=0;for(let n of r)this._data[this._size+x]=n,x++;this._size+=r.size;}}get(r){if(r<0||r>=this._size)throw RangeError();return this._data[r]}contains(r){for(let x=0;x<this._size;x++)if(this._data[x]===r)return true;return false}set(r,x){if(r<0||r>=this._size)throw RangeError();let n=this._data[r];return this._data[r]=x,n}removeAt(r){let x=this.get(r);return this._data.copyWithin(r,r+1,this._size),this._data[this._size-1]=0,this._size--,x}removeRange(r,x){if(r<0||x<0||r>this._size||x>this._size||r>x)throw RangeError();this._data.copyWithin(x,r,this._size),this._data.fill(0,this._size-(x-r),this._size),this._size-=x-r;}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(r){if(r===this)return true;if(!(r instanceof s)||this._size!==r._size)return false;for(let x=0;x<this._size;x++)if(this._data[x]!==r._data[x])return false;return true}hashCode(){let r=1;for(let x=0;x<this._size;x++)r=31*r+this._data[x];return r}toString(){return this._data.toString()}binarySearch(r,x,n){if(x===void 0&&(x=0),n===void 0&&(n=this._size),x<0||n<0||x>this._size||n>this._size)throw new RangeError;if(x>n)throw new RangeError;return m.Arrays.binarySearch(this._data,r,x,n)}ensureCapacity(r){if(r<0||r>h)throw new RangeError;let x;for(this._data.length===0?x=T:x=this._data.length;x<r;)x=x*2,(x<0||x>h)&&(x=h);let n=new Int32Array(x);n.set(this._data),this._data=n;}toCharArray(){let r=new Uint16Array(this._size),x=0,n=false;for(let c=0;c<this._size;c++){let a=this._data[c];if(a>=0&&a<65536){r[x]=a,x++;continue}if(!n){let t=new Uint16Array(this.charArraySize());t.set(r,0),r=t,n=true;}let p=String.fromCodePoint(a);r[x]=p.charCodeAt(0),r[x+1]=p.charCodeAt(1),x+=2;}return r}charArraySize(){let r=0;for(let x=0;x<this._size;x++)r+=this._data[x]>=65536?2:1;return r}}d([g.NotNull],s.prototype,"_data",void 0),d([g.Override],s.prototype,"equals",null),d([g.Override],s.prototype,"hashCode",null),d([g.Override],s.prototype,"toString",null),l.IntegerList=s;}),"./node_modules/antlr4ts/misc/IntegerStack.js":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.IntegerStack=void 0;let d=f("./node_modules/antlr4ts/misc/IntegerList.js");class m extends d.IntegerList{constructor(O){super(O);}push(O){this.add(O);}pop(){return this.removeAt(this.size-1)}peek(){return this.get(this.size-1)}}l.IntegerStack=m;}),"./node_modules/antlr4ts/misc/Interval.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x};Object.defineProperty(l,"__esModule",{value:true}),l.Interval=void 0;let m=f("./node_modules/antlr4ts/Decorators.js"),g=1e3;class O{constructor(h,s){this.a=h,this.b=s;}static get INVALID(){return O._INVALID}static of(h,s){return h!==s||h<0||h>g?new O(h,s):(O.cache[h]==null&&(O.cache[h]=new O(h,h)),O.cache[h])}get length(){return this.b<this.a?0:this.b-this.a+1}equals(h){return h===this?true:h instanceof O?this.a===h.a&&this.b===h.b:false}hashCode(){let h=23;return h=h*31+this.a,h=h*31+this.b,h}startsBeforeDisjoint(h){return this.a<h.a&&this.b<h.a}startsBeforeNonDisjoint(h){return this.a<=h.a&&this.b>=h.a}startsAfter(h){return this.a>h.a}startsAfterDisjoint(h){return this.a>h.b}startsAfterNonDisjoint(h){return this.a>h.a&&this.a<=h.b}disjoint(h){return this.startsBeforeDisjoint(h)||this.startsAfterDisjoint(h)}adjacent(h){return this.a===h.b+1||this.b===h.a-1}properlyContains(h){return h.a>=this.a&&h.b<=this.b}union(h){return O.of(Math.min(this.a,h.a),Math.max(this.b,h.b))}intersection(h){return O.of(Math.max(this.a,h.a),Math.min(this.b,h.b))}differenceNotProperlyContained(h){let s;return h.startsBeforeNonDisjoint(this)?s=O.of(Math.max(this.a,h.b+1),this.b):h.startsAfterNonDisjoint(this)&&(s=O.of(this.a,h.a-1)),s}toString(){return this.a+".."+this.b}}O._INVALID=new O(-1,-2),O.cache=new Array(g+1),d([m.Override],O.prototype,"equals",null),d([m.Override],O.prototype,"hashCode",null),d([m.Override],O.prototype,"toString",null),l.Interval=O;}),"./node_modules/antlr4ts/misc/IntervalSet.js":(function(D,l,f){var d=this&&this.__decorate||function(n,c,a,p){var t=arguments.length,y=t<3?c:p===null?p=Object.getOwnPropertyDescriptor(c,a):p,v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(n,c,a,p);else for(var S=n.length-1;S>=0;S--)(v=n[S])&&(y=(t<3?v(y):t>3?v(c,a,y):v(c,a))||y);return t>3&&y&&Object.defineProperty(c,a,y),y},m=this&&this.__param||function(n,c){return function(a,p){c(a,p,n);}};Object.defineProperty(l,"__esModule",{value:true}),l.IntervalSet=void 0;let g=f("./node_modules/antlr4ts/misc/ArrayEqualityComparator.js"),O=f("./node_modules/antlr4ts/misc/IntegerList.js"),T=f("./node_modules/antlr4ts/misc/Interval.js"),h=f("./node_modules/antlr4ts/Lexer.js"),s=f("./node_modules/antlr4ts/misc/MurmurHash.js"),o=f("./node_modules/antlr4ts/Decorators.js"),r=f("./node_modules/antlr4ts/Token.js");class x{constructor(c){this.readonly=false,c!=null?this._intervals=c.slice(0):this._intervals=[];}static get COMPLETE_CHAR_SET(){return x._COMPLETE_CHAR_SET===void 0&&(x._COMPLETE_CHAR_SET=x.of(h.Lexer.MIN_CHAR_VALUE,h.Lexer.MAX_CHAR_VALUE),x._COMPLETE_CHAR_SET.setReadonly(true)),x._COMPLETE_CHAR_SET}static get EMPTY_SET(){return x._EMPTY_SET==null&&(x._EMPTY_SET=new x,x._EMPTY_SET.setReadonly(true)),x._EMPTY_SET}static of(c,a=c){let p=new x;return p.add(c,a),p}clear(){if(this.readonly)throw new Error("can't alter readonly IntervalSet");this._intervals.length=0;}add(c,a=c){this.addRange(T.Interval.of(c,a));}addRange(c){if(this.readonly)throw new Error("can't alter readonly IntervalSet");if(!(c.b<c.a)){for(let a=0;a<this._intervals.length;a++){let p=this._intervals[a];if(c.equals(p))return;if(c.adjacent(p)||!c.disjoint(p)){let t=c.union(p);for(this._intervals[a]=t;a<this._intervals.length-1;){a++;let y=this._intervals[a];if(!t.adjacent(y)&&t.disjoint(y))break;this._intervals.splice(a,1),a--,this._intervals[a]=t.union(y);}return}if(c.startsBeforeDisjoint(p)){this._intervals.splice(a,0,c);return}}this._intervals.push(c);}}static or(c){let a=new x;for(let p of c)a.addAll(p);return a}addAll(c){if(c==null)return this;if(c instanceof x){let a=c,p=a._intervals.length;for(let t=0;t<p;t++){let y=a._intervals[t];this.add(y.a,y.b);}}else for(let a of c.toArray())this.add(a);return this}complementRange(c,a){return this.complement(x.of(c,a))}complement(c){if(c.isNil)return x.EMPTY_SET;let a;return c instanceof x?a=c:(a=new x,a.addAll(c)),a.subtract(this)}subtract(c){if(c==null||c.isNil)return new x(this._intervals);if(c instanceof x)return x.subtract(this,c);let a=new x;return a.addAll(c),x.subtract(this,a)}static subtract(c,a){if(c.isNil)return new x;let p=new x(c._intervals);if(a.isNil)return p;let t=0,y=0;for(;t<p._intervals.length&&y<a._intervals.length;){let v=p._intervals[t],S=a._intervals[y];if(S.b<v.a){y++;continue}if(S.a>v.b){t++;continue}let N,b;if(S.a>v.a&&(N=new T.Interval(v.a,S.a-1)),S.b<v.b&&(b=new T.Interval(S.b+1,v.b)),N)if(b){p._intervals[t]=N,p._intervals.splice(t+1,0,b),t++,y++;continue}else {p._intervals[t]=N,t++;continue}else if(b){p._intervals[t]=b,y++;continue}else {p._intervals.splice(t,1);continue}}return p}or(c){let a=new x;return a.addAll(this),a.addAll(c),a}and(c){if(c.isNil)return new x;let a=this._intervals,p=c._intervals,t,y=a.length,v=p.length,S=0,N=0;for(;S<y&&N<v;){let b=a[S],U=p[N];b.startsBeforeDisjoint(U)?S++:U.startsBeforeDisjoint(b)?N++:b.properlyContains(U)?(t||(t=new x),t.addRange(b.intersection(U)),N++):U.properlyContains(b)?(t||(t=new x),t.addRange(b.intersection(U)),S++):b.disjoint(U)||(t||(t=new x),t.addRange(b.intersection(U)),b.startsAfterNonDisjoint(U)?N++:U.startsAfterNonDisjoint(b)&&S++);}return t||new x}contains(c){let a=this._intervals.length,p=0,t=a-1;for(;p<=t;){let y=p+t>>1,v=this._intervals[y],S=v.a;if(v.b<c)p=y+1;else if(S>c)t=y-1;else return true}return false}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 c=s.MurmurHash.initialize();for(let a of this._intervals)c=s.MurmurHash.update(c,a.a),c=s.MurmurHash.update(c,a.b);return c=s.MurmurHash.finish(c,this._intervals.length*2),c}equals(c){return c==null||!(c instanceof x)?false:g.ArrayEqualityComparator.INSTANCE.equals(this._intervals,c._intervals)}toString(c=false){let a="";if(this._intervals==null||this._intervals.length===0)return "{}";this.size>1&&(a+="{");let p=true;for(let t of this._intervals){p?p=false:a+=", ";let y=t.a,v=t.b;y===v?y===r.Token.EOF?a+="<EOF>":c?a+="'"+String.fromCodePoint(y)+"'":a+=y:c?a+="'"+String.fromCodePoint(y)+"'..'"+String.fromCodePoint(v)+"'":a+=y+".."+v;}return this.size>1&&(a+="}"),a}toStringVocabulary(c){if(this._intervals==null||this._intervals.length===0)return "{}";let a="";this.size>1&&(a+="{");let p=true;for(let t of this._intervals){p?p=false:a+=", ";let y=t.a,v=t.b;if(y===v)a+=this.elementName(c,y);else for(let S=y;S<=v;S++)S>y&&(a+=", "),a+=this.elementName(c,S);}return this.size>1&&(a+="}"),a}elementName(c,a){return a===r.Token.EOF?"<EOF>":a===r.Token.EPSILON?"<EPSILON>":c.getDisplayName(a)}get size(){let c=0,a=this._intervals.length;if(a===1){let p=this._intervals[0];return p.b-p.a+1}for(let p=0;p<a;p++){let t=this._intervals[p];c+=t.b-t.a+1;}return c}toIntegerList(){let c=new O.IntegerList(this.size),a=this._intervals.length;for(let p=0;p<a;p++){let t=this._intervals[p],y=t.a,v=t.b;for(let S=y;S<=v;S++)c.add(S);}return c}toSet(){let c=new Set;for(let a of this._intervals){let p=a.a,t=a.b;for(let y=p;y<=t;y++)c.add(y);}return c}toArray(){let c=new Array,a=this._intervals.length;for(let p=0;p<a;p++){let t=this._intervals[p],y=t.a,v=t.b;for(let S=y;S<=v;S++)c.push(S);}return c}remove(c){if(this.readonly)throw new Error("can't alter readonly IntervalSet");let a=this._intervals.length;for(let p=0;p<a;p++){let t=this._intervals[p],y=t.a,v=t.b;if(c<y)break;if(c===y&&c===v){this._intervals.splice(p,1);break}if(c===y){this._intervals[p]=T.Interval.of(t.a+1,t.b);break}if(c===v){this._intervals[p]=T.Interval.of(t.a,t.b-1);break}if(c>y&&c<v){let S=t.b;this._intervals[p]=T.Interval.of(t.a,c-1),this.add(c+1,S);}}}get isReadonly(){return this.readonly}setReadonly(c){if(this.readonly&&!c)throw new Error("can't alter readonly IntervalSet");this.readonly=c;}}d([o.Override],x.prototype,"addAll",null),d([o.Override],x.prototype,"complement",null),d([o.Override],x.prototype,"subtract",null),d([o.Override],x.prototype,"or",null),d([o.Override],x.prototype,"and",null),d([o.Override],x.prototype,"contains",null),d([o.Override],x.prototype,"isNil",null),d([o.Override],x.prototype,"hashCode",null),d([o.Override],x.prototype,"equals",null),d([m(0,o.NotNull)],x.prototype,"toStringVocabulary",null),d([o.NotNull,m(0,o.NotNull)],x.prototype,"elementName",null),d([o.Override],x.prototype,"size",null),d([o.Override],x.prototype,"remove",null),d([o.NotNull],x,"of",null),d([o.NotNull],x,"subtract",null),l.IntervalSet=x;}),"./node_modules/antlr4ts/misc/MultiMap.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.MultiMap=void 0;class f extends Map{constructor(){super();}map(m,g){let O=super.get(m);O||(O=[],super.set(m,O)),O.push(g);}getPairs(){let m=[];return this.forEach((g,O)=>{g.forEach(T=>{m.push([O,T]);});}),m}}l.MultiMap=f;}),"./node_modules/antlr4ts/misc/MurmurHash.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.MurmurHash=void 0;(function(d){function g(o=0){return o}d.initialize=g;function O(o,r){r==null?r=0:typeof r=="string"?r=s(r):typeof r=="object"&&(r=r.hashCode());let y=r;return y=Math.imul(y,3432918353),y=y<<15|y>>>17,y=Math.imul(y,461845907),o=o^y,o=o<<13|o>>>19,o=Math.imul(o,5)+3864292196,o&4294967295}d.update=O;function T(o,r){return o=o^r*4,o=o^o>>>16,o=Math.imul(o,2246822507),o=o^o>>>13,o=Math.imul(o,3266489909),o=o^o>>>16,o}d.finish=T;function h(o,r=0){let x=g(r),n=0;for(let c of o)x=O(x,c),n++;return x=T(x,n),x}d.hashCode=h;function s(o){let r=o.length;if(r===0)return 0;let x=0;for(let n=0;n<r;n++){let c=o.charCodeAt(n);x=(x<<5>>>0)-x+c,x|=0;}return x}})(l.MurmurHash||(l.MurmurHash={}));}),"./node_modules/antlr4ts/misc/ObjectEqualityComparator.js":(function(D,l,f){var d=this&&this.__decorate||function(O,T,h,s){var o=arguments.length,r=o<3?T:s===null?s=Object.getOwnPropertyDescriptor(T,h):s,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(O,T,h,s);else for(var n=O.length-1;n>=0;n--)(x=O[n])&&(r=(o<3?x(r):o>3?x(T,h,r):x(T,h))||r);return o>3&&r&&Object.defineProperty(T,h,r),r};Object.defineProperty(l,"__esModule",{value:true}),l.ObjectEqualityComparator=void 0;let m=f("./node_modules/antlr4ts/Decorators.js");class g{hashCode(T){return T==null?0:T.hashCode()}equals(T,h){return T==null?h==null:T.equals(h)}}g.INSTANCE=new g,d([m.Override],g.prototype,"hashCode",null),d([m.Override],g.prototype,"equals",null),l.ObjectEqualityComparator=g;}),"./node_modules/antlr4ts/misc/ParseCancellationException.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.ParseCancellationException=void 0;class f extends Error{constructor(m){super(m.message),this.cause=m,this.stack=m.stack;}getCause(){return this.cause}}l.ParseCancellationException=f;}),"./node_modules/antlr4ts/misc/UUID.js":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.UUID=void 0;let d=f("./node_modules/antlr4ts/misc/MurmurHash.js");class m{constructor(O,T,h,s){this.data=new Uint32Array(4),this.data[0]=O,this.data[1]=T,this.data[2]=h,this.data[3]=s;}static fromString(O){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(O))throw new Error("Incorrectly formatted UUID");let T=O.split("-"),h=parseInt(T[0],16),s=(parseInt(T[1],16)<<16>>>0)+parseInt(T[2],16),o=(parseInt(T[3],16)<<16>>>0)+parseInt(T[4].substr(0,4),16),r=parseInt(T[4].substr(-8),16);return new m(h,s,o,r)}hashCode(){return d.MurmurHash.hashCode([this.data[0],this.data[1],this.data[2],this.data[3]])}equals(O){return O===this?true:O instanceof m?this.data[0]===O.data[0]&&this.data[1]===O.data[1]&&this.data[2]===O.data[2]&&this.data[3]===O.data[3]:false}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)}}l.UUID=m;}),"./node_modules/antlr4ts/misc/Utils.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.toCharArray=l.toMap=l.equals=l.join=l.escapeWhitespace=void 0;function f(T,h){return h?T.replace(/ /,"\xB7"):T.replace(/\t/,"\\t").replace(/\n/,"\\n").replace(/\r/,"\\r")}l.escapeWhitespace=f;function d(T,h){let s="",o=true;for(let r of T)o?o=false:s+=h,s+=r;return s}l.join=d;function m(T,h){return T===h?true:T===void 0||h===void 0?false:T.equals(h)}l.equals=m;function g(T){let h=new Map;for(let s=0;s<T.length;s++)h.set(T[s],s);return h}l.toMap=g;function O(T){if(typeof T=="string"){let h=new Uint16Array(T.length);for(let s=0;s<T.length;s++)h[s]=T.charCodeAt(s);return h}else return T.toCharArray()}l.toCharArray=O;}),"./node_modules/antlr4ts/tree/AbstractParseTreeVisitor.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x},m=this&&this.__param||function(T,h){return function(s,o){h(s,o,T);}};Object.defineProperty(l,"__esModule",{value:true}),l.AbstractParseTreeVisitor=void 0;let g=f("./node_modules/antlr4ts/Decorators.js");class O{visit(h){return h.accept(this)}visitChildren(h){let s=this.defaultResult(),o=h.childCount;for(let r=0;r<o&&this.shouldVisitNextChild(h,s);r++){let n=h.getChild(r).accept(this);s=this.aggregateResult(s,n);}return s}visitTerminal(h){return this.defaultResult()}visitErrorNode(h){return this.defaultResult()}aggregateResult(h,s){return s}shouldVisitNextChild(h,s){return true}}d([g.Override,m(0,g.NotNull)],O.prototype,"visit",null),d([g.Override,m(0,g.NotNull)],O.prototype,"visitChildren",null),d([g.Override,m(0,g.NotNull)],O.prototype,"visitTerminal",null),d([g.Override,m(0,g.NotNull)],O.prototype,"visitErrorNode",null),d([m(0,g.NotNull)],O.prototype,"shouldVisitNextChild",null),l.AbstractParseTreeVisitor=O;}),"./node_modules/antlr4ts/tree/ErrorNode.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x};Object.defineProperty(l,"__esModule",{value:true}),l.ErrorNode=void 0;let m=f("./node_modules/antlr4ts/Decorators.js"),g=f("./node_modules/antlr4ts/tree/TerminalNode.js");class O extends g.TerminalNode{constructor(h){super(h);}accept(h){return h.visitErrorNode(this)}}d([m.Override],O.prototype,"accept",null),l.ErrorNode=O;}),"./node_modules/antlr4ts/tree/ParseTreeWalker.js":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.ParseTreeWalker=void 0;let d=f("./node_modules/antlr4ts/tree/ErrorNode.js"),m=f("./node_modules/antlr4ts/tree/TerminalNode.js"),g=f("./node_modules/antlr4ts/tree/RuleNode.js");class O{walk(h,s){let o=[],r=[],x=s,n=0;for(;x;){if(x instanceof d.ErrorNode?h.visitErrorNode&&h.visitErrorNode(x):x instanceof m.TerminalNode?h.visitTerminal&&h.visitTerminal(x):this.enterRule(h,x),x.childCount>0){o.push(x),r.push(n),n=0,x=x.getChild(0);continue}do{if(x instanceof g.RuleNode&&this.exitRule(h,x),o.length===0){x=void 0,n=0;break}let c=o[o.length-1];if(n++,x=n<c.childCount?c.getChild(n):void 0,x)break;x=o.pop(),n=r.pop();}while(x)}}enterRule(h,s){let o=s.ruleContext;h.enterEveryRule&&h.enterEveryRule(o),o.enterRule(h);}exitRule(h,s){let o=s.ruleContext;o.exitRule(h),h.exitEveryRule&&h.exitEveryRule(o);}}l.ParseTreeWalker=O,(function(T){T.DEFAULT=new T;})(O=l.ParseTreeWalker||(l.ParseTreeWalker={}));}),"./node_modules/antlr4ts/tree/RuleNode.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.RuleNode=void 0;class f{}l.RuleNode=f;}),"./node_modules/antlr4ts/tree/TerminalNode.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.TerminalNode=void 0;let m=f("./node_modules/antlr4ts/misc/Interval.js"),g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/Token.js");class T{constructor(s){this._symbol=s;}getChild(s){throw new RangeError("Terminal Node has no children.")}get symbol(){return this._symbol}get parent(){return this._parent}setParent(s){this._parent=s;}get payload(){return this._symbol}get sourceInterval(){let s=this._symbol.tokenIndex;return new m.Interval(s,s)}get childCount(){return 0}accept(s){return s.visitTerminal(this)}get text(){return this._symbol.text||""}toStringTree(s){return this.toString()}toString(){return this._symbol.type===O.Token.EOF?"<EOF>":this._symbol.text||""}}d([g.Override],T.prototype,"getChild",null),d([g.Override],T.prototype,"parent",null),d([g.Override],T.prototype,"setParent",null),d([g.Override],T.prototype,"payload",null),d([g.Override],T.prototype,"sourceInterval",null),d([g.Override],T.prototype,"childCount",null),d([g.Override],T.prototype,"accept",null),d([g.Override],T.prototype,"text",null),d([g.Override],T.prototype,"toStringTree",null),d([g.Override],T.prototype,"toString",null),l.TerminalNode=T;}),"./node_modules/antlr4ts/tree/Trees.js":(function(D,l,f){var d=this&&this.__decorate||function(p,t,y,v){var S=arguments.length,N=S<3?t:v===null?v=Object.getOwnPropertyDescriptor(t,y):v,b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(p,t,y,v);else for(var U=p.length-1;U>=0;U--)(b=p[U])&&(N=(S<3?b(N):S>3?b(t,y,N):b(t,y))||N);return S>3&&N&&Object.defineProperty(t,y,N),N},m=this&&this.__param||function(p,t){return function(y,v){t(y,v,p);}};Object.defineProperty(l,"__esModule",{value:true}),l.Trees=void 0;let g=f("./node_modules/antlr4ts/atn/ATN.js"),O=f("./node_modules/antlr4ts/CommonToken.js"),T=f("./node_modules/antlr4ts/tree/ErrorNode.js"),h=f("./node_modules/antlr4ts/Decorators.js"),s=f("./node_modules/antlr4ts/Parser.js"),o=f("./node_modules/antlr4ts/ParserRuleContext.js"),r=f("./node_modules/antlr4ts/tree/RuleNode.js"),x=f("./node_modules/antlr4ts/tree/TerminalNode.js"),n=f("./node_modules/antlr4ts/Token.js"),c=f("./node_modules/antlr4ts/misc/Utils.js");class a{static toStringTree(t,y){let v;y instanceof s.Parser?v=y.ruleNames:v=y;let S=c.escapeWhitespace(this.getNodeText(t,v),false);if(t.childCount===0)return S;let N="";N+="(",S=c.escapeWhitespace(this.getNodeText(t,v),false),N+=S,N+=" ";for(let b=0;b<t.childCount;b++)b>0&&(N+=" "),N+=this.toStringTree(t.getChild(b),v);return N+=")",N}static getNodeText(t,y){let v;if(y instanceof s.Parser)v=y.ruleNames;else if(y)v=y;else {let S=t.payload;return typeof S.text=="string"?S.text:t.payload.toString()}if(t instanceof r.RuleNode){let S=t.ruleContext,N=S.ruleIndex,b=v[N],U=S.altNumber;return U!==g.ATN.INVALID_ALT_NUMBER?b+":"+U:b}else {if(t instanceof T.ErrorNode)return t.toString();if(t instanceof x.TerminalNode)return t.symbol.text||""}throw new TypeError("Unexpected node type")}static getChildren(t){let y=[];for(let v=0;v<t.childCount;v++)y.push(t.getChild(v));return y}static getAncestors(t){let y=[],v=t.parent;for(;v;)y.unshift(v),v=v.parent;return y}static isAncestorOf(t,y){if(!t||!y||!t.parent)return false;let v=y.parent;for(;v;){if(t===v)return true;v=v.parent;}return false}static findAllTokenNodes(t,y){return a.findAllNodes(t,y,true)}static findAllRuleNodes(t,y){return a.findAllNodes(t,y,false)}static findAllNodes(t,y,v){let S=[];return a._findAllNodes(t,y,v,S),S}static _findAllNodes(t,y,v,S){v&&t instanceof x.TerminalNode?t.symbol.type===y&&S.push(t):!v&&t instanceof o.ParserRuleContext&&t.ruleIndex===y&&S.push(t);for(let N=0;N<t.childCount;N++)a._findAllNodes(t.getChild(N),y,v,S);}static getDescendants(t){let y=[];function v(S){y.push(S);let N=S.childCount;for(let b=0;b<N;b++)v(S.getChild(b));}return v(t),y}static getRootOfSubtreeEnclosingRegion(t,y,v){let S=t.childCount;for(let N=0;N<S;N++){let b=t.getChild(N),U=a.getRootOfSubtreeEnclosingRegion(b,y,v);if(U)return U}if(t instanceof o.ParserRuleContext){let N=t.stop;if(y>=t.start.tokenIndex&&(N==null||v<=N.tokenIndex))return t}}static stripChildrenOutOfRange(t,y,v,S){if(!t)return;let N=t.childCount;for(let b=0;b<N;b++){let U=t.getChild(b),A=U.sourceInterval;if(U instanceof o.ParserRuleContext&&(A.b<v||A.a>S)&&a.isAncestorOf(U,y)){let w=new O.CommonToken(n.Token.INVALID_TYPE,"...");t.children[b]=new x.TerminalNode(w);}}}static findNodeSuchThat(t,y){if(y(t))return t;let v=t.childCount;for(let S=0;S<v;S++){let N=a.findNodeSuchThat(t.getChild(S),y);if(N!==void 0)return N}}}d([m(0,h.NotNull)],a,"toStringTree",null),d([h.NotNull,m(0,h.NotNull)],a,"getAncestors",null),d([m(0,h.NotNull)],a,"getRootOfSubtreeEnclosingRegion",null),l.Trees=a;}),"./node_modules/antlr4ts/tree/pattern/Chunk.js":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.Chunk=void 0;class f{}l.Chunk=f;}),"./node_modules/antlr4ts/tree/pattern/ParseTreeMatch.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x},m=this&&this.__param||function(T,h){return function(s,o){h(s,o,T);}};Object.defineProperty(l,"__esModule",{value:true}),l.ParseTreeMatch=void 0;let g=f("./node_modules/antlr4ts/Decorators.js"),O=class{constructor(h,s,o,r){if(!h)throw new Error("tree cannot be null");if(!s)throw new Error("pattern cannot be null");if(!o)throw new Error("labels cannot be null");this._tree=h,this._pattern=s,this._labels=o,this._mismatchedNode=r;}get(h){let s=this._labels.get(h);if(!(!s||s.length===0))return s[s.length-1]}getAll(h){let s=this._labels.get(h);return s||[]}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`}};d([g.NotNull,m(0,g.NotNull)],O.prototype,"getAll",null),d([g.NotNull],O.prototype,"labels",null),d([g.NotNull],O.prototype,"pattern",null),d([g.NotNull],O.prototype,"tree",null),d([g.Override],O.prototype,"toString",null),O=d([m(0,g.NotNull),m(1,g.NotNull),m(2,g.NotNull)],O),l.ParseTreeMatch=O;}),"./node_modules/antlr4ts/tree/pattern/ParseTreePattern.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.ParseTreePattern=void 0;let g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/tree/xpath/XPath.js"),T=class{constructor(s,o,r,x){this._matcher=s,this._patternRuleIndex=r,this._pattern=o,this._patternTree=x;}match(s){return this._matcher.match(s,this)}matches(s){return this._matcher.match(s,this).succeeded}findAll(s,o){let r=O.XPath.findAll(s,o,this._matcher.parser),x=[];for(let n of r){let c=this.match(n);c.succeeded&&x.push(c);}return x}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};d([g.NotNull],T.prototype,"_pattern",void 0),d([g.NotNull],T.prototype,"_patternTree",void 0),d([g.NotNull],T.prototype,"_matcher",void 0),d([g.NotNull,m(0,g.NotNull)],T.prototype,"match",null),d([m(0,g.NotNull)],T.prototype,"matches",null),d([g.NotNull,m(0,g.NotNull),m(1,g.NotNull)],T.prototype,"findAll",null),d([g.NotNull],T.prototype,"matcher",null),d([g.NotNull],T.prototype,"pattern",null),d([g.NotNull],T.prototype,"patternTree",null),T=d([m(0,g.NotNull),m(1,g.NotNull),m(3,g.NotNull)],T),l.ParseTreePattern=T;}),"./node_modules/antlr4ts/tree/pattern/ParseTreePatternMatcher.js":(function(D,l,f){var d=this&&this.__decorate||function(w,F,M,W){var L=arguments.length,j=L<3?F:W===null?W=Object.getOwnPropertyDescriptor(F,M):W,k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")j=Reflect.decorate(w,F,M,W);else for(var J=w.length-1;J>=0;J--)(k=w[J])&&(j=(L<3?k(j):L>3?k(F,M,j):k(F,M))||j);return L>3&&j&&Object.defineProperty(F,M,j),j},m=this&&this.__param||function(w,F){return function(M,W){F(M,W,w);}};Object.defineProperty(l,"__esModule",{value:true}),l.ParseTreePatternMatcher=void 0;let g=f("./node_modules/antlr4ts/BailErrorStrategy.js"),O=f("./node_modules/antlr4ts/CharStreams.js"),T=f("./node_modules/antlr4ts/CommonTokenStream.js"),h=f("./node_modules/antlr4ts/ListTokenSource.js"),s=f("./node_modules/antlr4ts/misc/MultiMap.js"),o=f("./node_modules/antlr4ts/Decorators.js"),r=f("./node_modules/antlr4ts/misc/ParseCancellationException.js"),x=f("./node_modules/antlr4ts/ParserInterpreter.js"),n=f("./node_modules/antlr4ts/ParserRuleContext.js"),c=f("./node_modules/antlr4ts/tree/pattern/ParseTreeMatch.js"),a=f("./node_modules/antlr4ts/tree/pattern/ParseTreePattern.js"),p=f("./node_modules/antlr4ts/RecognitionException.js"),t=f("./node_modules/antlr4ts/tree/RuleNode.js"),y=f("./node_modules/antlr4ts/tree/pattern/RuleTagToken.js"),v=f("./node_modules/antlr4ts/tree/pattern/TagChunk.js"),S=f("./node_modules/antlr4ts/tree/TerminalNode.js"),N=f("./node_modules/antlr4ts/tree/pattern/TextChunk.js"),b=f("./node_modules/antlr4ts/Token.js"),U=f("./node_modules/antlr4ts/tree/pattern/TokenTagToken.js");class A{constructor(F,M){this.start="<",this.stop=">",this.escape="\\",this.escapeRE=/\\/g,this._lexer=F,this._parser=M;}setDelimiters(F,M,W){if(!F)throw new Error("start cannot be null or empty");if(!M)throw new Error("stop cannot be null or empty");this.start=F,this.stop=M,this.escape=W,this.escapeRE=new RegExp(W.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g");}matches(F,M,W=0){if(typeof M=="string"){let L=this.compile(M,W);return this.matches(F,L)}else {let L=new s.MultiMap;return !this.matchImpl(F,M.patternTree,L)}}match(F,M,W=0){if(typeof M=="string"){let L=this.compile(M,W);return this.match(F,L)}else {let L=new s.MultiMap,j=this.matchImpl(F,M.patternTree,L);return new c.ParseTreeMatch(F,M,L,j)}}compile(F,M){let W=this.tokenize(F),L=new h.ListTokenSource(W),j=new T.CommonTokenStream(L),k=this._parser,J=new x.ParserInterpreter(k.grammarFileName,k.vocabulary,k.ruleNames,k.getATNWithBypassAlts(),j),ut;try{J.errorHandler=new g.BailErrorStrategy,ut=J.parse(M);}catch(ft){throw ft instanceof r.ParseCancellationException?ft.getCause():ft instanceof p.RecognitionException?ft:ft instanceof Error?new A.CannotInvokeStartRule(ft):ft}if(j.LA(1)!==b.Token.EOF)throw new A.StartRuleDoesNotConsumeFullPattern;return new a.ParseTreePattern(this,F,M,ut)}get lexer(){return this._lexer}get parser(){return this._parser}matchImpl(F,M,W){if(!F)throw new TypeError("tree cannot be null");if(!M)throw new TypeError("patternTree cannot be null");if(F instanceof S.TerminalNode&&M instanceof S.TerminalNode){let L;if(F.symbol.type===M.symbol.type)if(M.symbol instanceof U.TokenTagToken){let j=M.symbol;W.map(j.tokenName,F);let k=j.label;k&&W.map(k,F);}else F.text===M.text||L||(L=F);else L||(L=F);return L}if(F instanceof n.ParserRuleContext&&M instanceof n.ParserRuleContext){let L,j=this.getRuleTagToken(M);if(j){if(F.ruleContext.ruleIndex===M.ruleContext.ruleIndex){W.map(j.ruleName,F);let ut=j.label;ut&&W.map(ut,F);}else L||(L=F);return L}if(F.childCount!==M.childCount)return L||(L=F),L;let k=F.childCount;for(let J=0;J<k;J++){let ut=this.matchImpl(F.getChild(J),M.getChild(J),W);if(ut)return ut}return L}return F}getRuleTagToken(F){if(F instanceof t.RuleNode&&F.childCount===1&&F.getChild(0)instanceof S.TerminalNode){let M=F.getChild(0);if(M.symbol instanceof y.RuleTagToken)return M.symbol}}tokenize(F){let M=this.split(F),W=[];for(let L of M)if(L instanceof v.TagChunk){let j=L,k=j.tag.substr(0,1);if(k===k.toUpperCase()){let J=this._parser.getTokenType(j.tag);if(J===b.Token.INVALID_TYPE)throw new Error("Unknown token "+j.tag+" in pattern: "+F);let ut=new U.TokenTagToken(j.tag,J,j.label);W.push(ut);}else if(k===k.toLowerCase()){let J=this._parser.getRuleIndex(j.tag);if(J===-1)throw new Error("Unknown rule "+j.tag+" in pattern: "+F);let ut=this._parser.getATNWithBypassAlts().ruleToTokenType[J];W.push(new y.RuleTagToken(j.tag,ut,j.label));}else throw new Error("invalid tag: "+j.tag+" in pattern: "+F)}else {let j=L;this._lexer.inputStream=O.CharStreams.fromString(j.text);let k=this._lexer.nextToken();for(;k.type!==b.Token.EOF;)W.push(k),k=this._lexer.nextToken();}return W}split(F){let M=0,W=F.length,L=[],k=[],J=[];for(;M<W;)M===F.indexOf(this.escape+this.start,M)?M+=this.escape.length+this.start.length:M===F.indexOf(this.escape+this.stop,M)?M+=this.escape.length+this.stop.length:M===F.indexOf(this.start,M)?(k.push(M),M+=this.start.length):M===F.indexOf(this.stop,M)?(J.push(M),M+=this.stop.length):M++;if(k.length>J.length)throw new Error("unterminated tag in pattern: "+F);if(k.length<J.length)throw new Error("missing start tag in pattern: "+F);let ut=k.length;for(let ft=0;ft<ut;ft++)if(k[ft]>=J[ft])throw new Error("tag delimiters out of order in pattern: "+F);if(ut===0){let ft=F.substring(0,W);L.push(new N.TextChunk(ft));}if(ut>0&&k[0]>0){let ft=F.substring(0,k[0]);L.push(new N.TextChunk(ft));}for(let ft=0;ft<ut;ft++){let At=F.substring(k[ft]+this.start.length,J[ft]),Dt=At,dt,jt=At.indexOf(":");if(jt>=0&&(dt=At.substring(0,jt),Dt=At.substring(jt+1,At.length)),L.push(new v.TagChunk(Dt,dt)),ft+1<ut){let _t=F.substring(J[ft]+this.stop.length,k[ft+1]);L.push(new N.TextChunk(_t));}}if(ut>0){let ft=J[ut-1]+this.stop.length;if(ft<W){let At=F.substring(ft,W);L.push(new N.TextChunk(At));}}for(let ft=0;ft<L.length;ft++){let At=L[ft];if(At instanceof N.TextChunk){let Dt=At.text.replace(this.escapeRE,"");Dt.length<At.text.length&&(L[ft]=new N.TextChunk(Dt));}}return L}}d([o.NotNull,m(1,o.NotNull)],A.prototype,"match",null),d([o.NotNull],A.prototype,"lexer",null),d([o.NotNull],A.prototype,"parser",null),d([m(0,o.NotNull),m(1,o.NotNull),m(2,o.NotNull)],A.prototype,"matchImpl",null),l.ParseTreePatternMatcher=A,(function(w){class F extends Error{constructor(L){super(`CannotInvokeStartRule: ${L}`),this.error=L;}}w.CannotInvokeStartRule=F;class M extends Error{constructor(){super("StartRuleDoesNotConsumeFullPattern");}}w.StartRuleDoesNotConsumeFullPattern=M;})(A=l.ParseTreePatternMatcher||(l.ParseTreePatternMatcher={}));}),"./node_modules/antlr4ts/tree/pattern/RuleTagToken.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.RuleTagToken=void 0;let g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/Token.js"),T=class{constructor(s,o,r){if(s==null||s.length===0)throw new Error("ruleName cannot be null or empty.");this._ruleName=s,this.bypassTokenType=o,this._label=r;}get ruleName(){return this._ruleName}get label(){return this._label}get channel(){return O.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}};d([g.NotNull],T.prototype,"ruleName",null),d([g.Override],T.prototype,"channel",null),d([g.Override],T.prototype,"text",null),d([g.Override],T.prototype,"type",null),d([g.Override],T.prototype,"line",null),d([g.Override],T.prototype,"charPositionInLine",null),d([g.Override],T.prototype,"tokenIndex",null),d([g.Override],T.prototype,"startIndex",null),d([g.Override],T.prototype,"stopIndex",null),d([g.Override],T.prototype,"tokenSource",null),d([g.Override],T.prototype,"inputStream",null),d([g.Override],T.prototype,"toString",null),T=d([m(0,g.NotNull)],T),l.RuleTagToken=T;}),"./node_modules/antlr4ts/tree/pattern/TagChunk.js":(function(D,l,f){var d=this&&this.__decorate||function(T,h,s,o){var r=arguments.length,x=r<3?h:o===null?o=Object.getOwnPropertyDescriptor(h,s):o,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(T,h,s,o);else for(var c=T.length-1;c>=0;c--)(n=T[c])&&(x=(r<3?n(x):r>3?n(h,s,x):n(h,s))||x);return r>3&&x&&Object.defineProperty(h,s,x),x};Object.defineProperty(l,"__esModule",{value:true}),l.TagChunk=void 0;let m=f("./node_modules/antlr4ts/tree/pattern/Chunk.js"),g=f("./node_modules/antlr4ts/Decorators.js");class O extends m.Chunk{constructor(h,s){if(super(),h==null||h.length===0)throw new Error("tag cannot be null or empty");this._tag=h,this._label=s;}get tag(){return this._tag}get label(){return this._label}toString(){return this._label!=null?this._label+":"+this._tag:this._tag}}d([g.NotNull],O.prototype,"tag",null),d([g.Override],O.prototype,"toString",null),l.TagChunk=O;}),"./node_modules/antlr4ts/tree/pattern/TextChunk.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.TextChunk=void 0;let g=f("./node_modules/antlr4ts/tree/pattern/Chunk.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=class extends g.Chunk{constructor(s){if(super(),s==null)throw new Error("text cannot be null");this._text=s;}get text(){return this._text}toString(){return "'"+this._text+"'"}};d([O.NotNull],T.prototype,"_text",void 0),d([O.NotNull],T.prototype,"text",null),d([O.Override],T.prototype,"toString",null),T=d([m(0,O.NotNull)],T),l.TextChunk=T;}),"./node_modules/antlr4ts/tree/pattern/TokenTagToken.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n},m=this&&this.__param||function(h,s){return function(o,r){s(o,r,h);}};Object.defineProperty(l,"__esModule",{value:true}),l.TokenTagToken=void 0;let g=f("./node_modules/antlr4ts/CommonToken.js"),O=f("./node_modules/antlr4ts/Decorators.js"),T=class extends g.CommonToken{constructor(s,o,r){super(o),this._tokenName=s,this._label=r;}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}};d([O.NotNull],T.prototype,"_tokenName",void 0),d([O.NotNull],T.prototype,"tokenName",null),d([O.Override],T.prototype,"text",null),d([O.Override],T.prototype,"toString",null),T=d([m(0,O.NotNull)],T),l.TokenTagToken=T;}),"./node_modules/antlr4ts/tree/xpath/XPath.js":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.XPath=void 0;let d=f("./node_modules/antlr4ts/CharStreams.js"),m=f("./node_modules/antlr4ts/CommonTokenStream.js"),g=f("./node_modules/antlr4ts/LexerNoViableAltException.js"),O=f("./node_modules/antlr4ts/ParserRuleContext.js"),T=f("./node_modules/antlr4ts/Token.js"),h=f("./node_modules/antlr4ts/tree/xpath/XPathLexer.js"),s=f("./node_modules/antlr4ts/tree/xpath/XPathLexerErrorListener.js"),o=f("./node_modules/antlr4ts/tree/xpath/XPathRuleAnywhereElement.js"),r=f("./node_modules/antlr4ts/tree/xpath/XPathRuleElement.js"),x=f("./node_modules/antlr4ts/tree/xpath/XPathTokenAnywhereElement.js"),n=f("./node_modules/antlr4ts/tree/xpath/XPathTokenElement.js"),c=f("./node_modules/antlr4ts/tree/xpath/XPathWildcardAnywhereElement.js"),a=f("./node_modules/antlr4ts/tree/xpath/XPathWildcardElement.js");class p{constructor(y,v){this.parser=y,this.path=v,this.elements=this.split(v);}split(y){let v=new h.XPathLexer(d.CharStreams.fromString(y));v.recover=w=>{throw w},v.removeErrorListeners(),v.addErrorListener(new s.XPathLexerErrorListener);let S=new m.CommonTokenStream(v);try{S.fill();}catch(w){if(w instanceof g.LexerNoViableAltException){let M="Invalid tokens or characters at index "+v.charPositionInLine+" in path '"+y+"' -- "+w.message;throw new RangeError(M)}throw w}let N=S.getTokens(),b=[],U=N.length,A=0;t:for(;A<U;){let w=N[A],F;switch(w.type){case h.XPathLexer.ROOT:case h.XPathLexer.ANYWHERE:let M=w.type===h.XPathLexer.ANYWHERE;A++,F=N[A];let W=F.type===h.XPathLexer.BANG;W&&(A++,F=N[A]);let L=this.getXPathElement(F,M);L.invert=W,b.push(L),A++;break;case h.XPathLexer.TOKEN_REF:case h.XPathLexer.RULE_REF:case h.XPathLexer.WILDCARD:b.push(this.getXPathElement(w,false)),A++;break;case T.Token.EOF:break t;default:throw new Error("Unknowth path element "+w)}}return b}getXPathElement(y,v){if(y.type===T.Token.EOF)throw new Error("Missing path element at end of path");let S=y.text;if(S==null)throw new Error("Expected wordToken to have text content.");let N=this.parser.getTokenType(S),b=this.parser.getRuleIndex(S);switch(y.type){case h.XPathLexer.WILDCARD:return v?new c.XPathWildcardAnywhereElement:new a.XPathWildcardElement;case h.XPathLexer.TOKEN_REF:case h.XPathLexer.STRING:if(N===T.Token.INVALID_TYPE)throw new Error(S+" at index "+y.startIndex+" isn't a valid token name");return v?new x.XPathTokenAnywhereElement(S,N):new n.XPathTokenElement(S,N);default:if(b===-1)throw new Error(S+" at index "+y.startIndex+" isn't a valid rule name");return v?new o.XPathRuleAnywhereElement(S,b):new r.XPathRuleElement(S,b)}}static findAll(y,v,S){return new p(S,v).evaluate(y)}evaluate(y){let v=new O.ParserRuleContext;v.addChild(y);let S=new Set([v]),N=0;for(;N<this.elements.length;){let b=new Set;for(let U of S)U.childCount>0&&this.elements[N].evaluate(U).forEach(b.add,b);N++,S=b;}return S}}l.XPath=p,p.WILDCARD="*",p.NOT="!";}),"./node_modules/antlr4ts/tree/xpath/XPathElement.js":(function(D,l,f){var d=this&&this.__decorate||function(O,T,h,s){var o=arguments.length,r=o<3?T:s===null?s=Object.getOwnPropertyDescriptor(T,h):s,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(O,T,h,s);else for(var n=O.length-1;n>=0;n--)(x=O[n])&&(r=(o<3?x(r):o>3?x(T,h,r):x(T,h))||r);return o>3&&r&&Object.defineProperty(T,h,r),r};Object.defineProperty(l,"__esModule",{value:true}),l.XPathElement=void 0;let m=f("./node_modules/antlr4ts/Decorators.js");class g{constructor(T){this.nodeName=T,this.invert=false;}toString(){let T=this.invert?"!":"";return Object.constructor.name+"["+T+this.nodeName+"]"}}d([m.Override],g.prototype,"toString",null),l.XPathElement=g;}),"./node_modules/antlr4ts/tree/xpath/XPathLexer.js":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.XPathLexer=void 0;let d=f("./node_modules/antlr4ts/atn/ATNDeserializer.js"),m=f("./node_modules/antlr4ts/Lexer.js"),g=f("./node_modules/antlr4ts/atn/LexerATNSimulator.js"),O=f("./node_modules/antlr4ts/VocabularyImpl.js"),T=f("./node_modules/antlr4ts/misc/Utils.js");class h extends m.Lexer{constructor(o){super(o),this._interp=new g.LexerATNSimulator(h._ATN,this);}get vocabulary(){return h.VOCABULARY}get grammarFileName(){return "XPathLexer.g4"}get ruleNames(){return h.ruleNames}get serializedATN(){return h._serializedATN}get channelNames(){return h.channelNames}get modeNames(){return h.modeNames}action(o,r,x){r===4&&this.ID_action(o,x);}ID_action(o,r){if(r===0){let x=this.text;x.charAt(0)===x.charAt(0).toUpperCase()?this.type=h.TOKEN_REF:this.type=h.RULE_REF;}}static get _ATN(){return h.__ATN||(h.__ATN=new d.ATNDeserializer().deserialize(T.toCharArray(h._serializedATN))),h.__ATN}}l.XPathLexer=h,h.TOKEN_REF=1,h.RULE_REF=2,h.ANYWHERE=3,h.ROOT=4,h.WILDCARD=5,h.BANG=6,h.ID=7,h.STRING=8,h.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],h.modeNames=["DEFAULT_MODE"],h.ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"],h._LITERAL_NAMES=[void 0,void 0,void 0,"'//'","'/'","'*'","'!'"],h._SYMBOLIC_NAMES=[void 0,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"],h.VOCABULARY=new O.VocabularyImpl(h._LITERAL_NAMES,h._SYMBOLIC_NAMES,[]),h._serializedATNSegments=2,h._serializedATNSegment0=`\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241
16
+ 2\b     \x07 \x07\b \b \x07
17
+ \f"\v\x07\x07\b\b  \x07 ,
18
+ \f  /\v   -
19
+ \x07\x07 \b\v \r
20
+ \u02B6
21
+ 2;C\\aac|\x81\xA1\xAC\xAC\xAF\xAF\xB7\xB7\xBC\xBC\xC2\xD8\xDA\xF8\xFA\u02C3\u02C8\u02D3\u02E2\u02E6\u02EE\u02EE\u02F0\u02F0\u0302\u0376\u0378\u0379\u037C\u037F\u0381\u0381\u0388\u0388\u038A\u038C\u038E\u038E\u0390\u03A3\u03A5\u03F7\u03F9\u0483\u0485\u0489\u048C\u0531\u0533\u0558\u055B\u055B\u0563\u0589\u0593\u05BF\u05C1\u05C1\u05C3\u05C4\u05C6\u05C7\u05C9\u05C9\u05D2\u05EC\u05F2\u05F4\u0602\u0607\u0612\u061C\u061E\u061E\u0622\u066B\u0670\u06D5\u06D7\u06DF\u06E1\u06EA\u06EC\u06FE\u0701\u0701\u0711\u074C\u074F\u07B3\u07C2\u07F7\u07FC\u07FC\u0802\u082F\u0842\u085D\u08A2\u08B6\u08B8\u08BF\u08D6\u0965\u0968\u0971\u0973\u0985\u0987\u098E\u0991\u0992\u0995\u09AA\u09AC\u09B2\u09B4\u09B4\u09B8\u09BB\u09BE\u09C6\u09C9\u09CA\u09CD\u09D0\u09D9\u09D9\u09DE\u09DF\u09E1\u09E5\u09E8\u09F3\u0A03\u0A05\u0A07\u0A0C\u0A11\u0A12\u0A15\u0A2A\u0A2C\u0A32\u0A34\u0A35\u0A37\u0A38\u0A3A\u0A3B\u0A3E\u0A3E\u0A40\u0A44\u0A49\u0A4A\u0A4D\u0A4F\u0A53\u0A53\u0A5B\u0A5E\u0A60\u0A60\u0A68\u0A77\u0A83\u0A85\u0A87\u0A8F\u0A91\u0A93\u0A95\u0AAA\u0AAC\u0AB2\u0AB4\u0AB5\u0AB7\u0ABB\u0ABE\u0AC7\u0AC9\u0ACB\u0ACD\u0ACF\u0AD2\u0AD2\u0AE2\u0AE5\u0AE8\u0AF1\u0AFB\u0AFB\u0B03\u0B05\u0B07\u0B0E\u0B11\u0B12\u0B15\u0B2A\u0B2C\u0B32\u0B34\u0B35\u0B37\u0B3B\u0B3E\u0B46\u0B49\u0B4A\u0B4D\u0B4F\u0B58\u0B59\u0B5E\u0B5F\u0B61\u0B65\u0B68\u0B71\u0B73\u0B73\u0B84\u0B85\u0B87\u0B8C\u0B90\u0B92\u0B94\u0B97\u0B9B\u0B9C\u0B9E\u0B9E\u0BA0\u0BA1\u0BA5\u0BA6\u0BAA\u0BAC\u0BB0\u0BBB\u0BC0\u0BC4\u0BC8\u0BCA\u0BCC\u0BCF\u0BD2\u0BD2\u0BD9\u0BD9\u0BE8\u0BF1\u0C02\u0C05\u0C07\u0C0E\u0C10\u0C12\u0C14\u0C2A\u0C2C\u0C3B\u0C3F\u0C46\u0C48\u0C4A\u0C4C\u0C4F\u0C57\u0C58\u0C5A\u0C5C\u0C62\u0C65\u0C68\u0C71\u0C82\u0C85\u0C87\u0C8E\u0C90\u0C92\u0C94\u0CAA\u0CAC\u0CB5\u0CB7\u0CBB\u0CBE\u0CC6\u0CC8\u0CCA\u0CCC\u0CCF\u0CD7\u0CD8\u0CE0\u0CE0\u0CE2\u0CE5\u0CE8\u0CF1\u0CF3\u0CF4\u0D03\u0D05\u0D07\u0D0E\u0D10\u0D12\u0D14\u0D3C\u0D3F\u0D46\u0D48\u0D4A\u0D4C\u0D50\u0D56\u0D59\u0D61\u0D65\u0D68\u0D71\u0D7C\u0D81\u0D84\u0D85\u0D87\u0D98\u0D9C\u0DB3\u0DB5\u0DBD\u0DBF\u0DBF\u0DC2\u0DC8\u0DCC\u0DCC\u0DD1\u0DD6\u0DD8\u0DD8\u0DDA\u0DE1\u0DE8\u0DF1\u0DF4\u0DF5\u0E03\u0E3C\u0E42\u0E50\u0E52\u0E5B\u0E83\u0E84\u0E86\u0E86\u0E89\u0E8A\u0E8C\u0E8C\u0E8F\u0E8F\u0E96\u0E99\u0E9B\u0EA1\u0EA3\u0EA5\u0EA7\u0EA7\u0EA9\u0EA9\u0EAC\u0EAD\u0EAF\u0EBB\u0EBD\u0EBF\u0EC2\u0EC6\u0EC8\u0EC8\u0ECA\u0ECF\u0ED2\u0EDB\u0EDE\u0EE1\u0F02\u0F02\u0F1A\u0F1B\u0F22\u0F2B\u0F37\u0F37\u0F39\u0F39\u0F3B\u0F3B\u0F40\u0F49\u0F4B\u0F6E\u0F73\u0F86\u0F88\u0F99\u0F9B\u0FBE\u0FC8\u0FC8\u1002\u104B\u1052\u109F\u10A2\u10C7\u10C9\u10C9\u10CF\u10CF\u10D2\u10FC\u10FE\u124A\u124C\u124F\u1252\u1258\u125A\u125A\u125C\u125F\u1262\u128A\u128C\u128F\u1292\u12B2\u12B4\u12B7\u12BA\u12C0\u12C2\u12C2\u12C4\u12C7\u12CA\u12D8\u12DA\u1312\u1314\u1317\u131A\u135C\u135F\u1361\u1382\u1391\u13A2\u13F7\u13FA\u13FF\u1403\u166E\u1671\u1681\u1683\u169C\u16A2\u16EC\u16F0\u16FA\u1702\u170E\u1710\u1716\u1722\u1736\u1742\u1755\u1762\u176E\u1770\u1772\u1774\u1775\u1782\u17D5\u17D9\u17D9\u17DE\u17DF\u17E2\u17EB\u180D\u1810\u1812\u181B\u1822\u1879\u1882\u18AC\u18B2\u18F7\u1902\u1920\u1922\u192D\u1932\u193D\u1948\u196F\u1972\u1976\u1982\u19AD\u19B2\u19CB\u19D2\u19DB\u1A02\u1A1D\u1A22\u1A60\u1A62\u1A7E\u1A81\u1A8B\u1A92\u1A9B\u1AA9\u1AA9\u1AB2\u1ABF\u1B02\u1B4D\u1B52\u1B5B\u1B6D\u1B75\u1B82\u1BF5\u1C02\u1C39\u1C42\u1C4B\u1C4F\u1C7F\u1C82\u1C8A\u1CD2\u1CD4\u1CD6\u1CF8\u1CFA\u1CFB\u1D02\u1DF7\u1DFD\u1F17\u1F1A\u1F1F\u1F22\u1F47\u1F4A\u1F4F\u1F52\u1F59\u1F5B\u1F5B\u1F5D\u1F5D\u1F5F\u1F5F\u1F61\u1F7F\u1F82\u1FB6\u1FB8\u1FBE\u1FC0\u1FC0\u1FC4\u1FC6\u1FC8\u1FCE\u1FD2\u1FD5\u1FD8\u1FDD\u1FE2\u1FEE\u1FF4\u1FF6\u1FF8\u1FFE\u200D\u2011\u202C\u2030\u2041\u2042\u2056\u2056\u2062\u2066\u2068\u2071\u2073\u2073\u2081\u2081\u2092\u209E\u20D2\u20DE\u20E3\u20E3\u20E7\u20F2\u2104\u2104\u2109\u2109\u210C\u2115\u2117\u2117\u211B\u211F\u2126\u2126\u2128\u2128\u212A\u212A\u212C\u212F\u2131\u213B\u213E\u2141\u2147\u214B\u2150\u2150\u2162\u218A\u2C02\u2C30\u2C32\u2C60\u2C62\u2CE6\u2CED\u2CF5\u2D02\u2D27\u2D29\u2D29\u2D2F\u2D2F\u2D32\u2D69\u2D71\u2D71\u2D81\u2D98\u2DA2\u2DA8\u2DAA\u2DB0\u2DB2\u2DB8\u2DBA\u2DC0\u2DC2\u2DC8\u2DCA\u2DD0\u2DD2\u2DD8\u2DDA\u2DE0\u2DE2\u2E01\u2E31\u2E31\u3007\u3009\u3023\u3031\u3033\u3037\u303A\u303E\u3043\u3098\u309B\u309C\u309F\u30A1\u30A3\u30FC\u30FE\u3101\u3107\u312F\u3133\u3190\u31A2\u31BC\u31F2\u3201\u3402\u4DB7\u4E02\u9FD7\uA002\uA48E\uA4D2\uA4FF\uA502\uA60E\uA612\uA62D\uA642\uA671\uA676\uA67F\uA681\uA6F3\uA719\uA721\uA724\uA78A\uA78D\uA7B0\uA7B2\uA7B9\uA7F9\uA829\uA842\uA875\uA882\uA8C7\uA8D2\uA8DB\uA8E2\uA8F9\uA8FD\uA8FD\uA8FF\uA8FF\uA902\uA92F\uA932\uA955\uA962\uA97E\uA982\uA9C2\uA9D1\uA9DB\uA9E2\uAA00\uAA02\uAA38\uAA42\uAA4F\uAA52\uAA5B\uAA62\uAA78\uAA7C\uAAC4\uAADD\uAADF\uAAE2\uAAF1\uAAF4\uAAF8\uAB03\uAB08\uAB0B\uAB10\uAB13\uAB18\uAB22\uAB28\uAB2A\uAB30\uAB32\uAB5C\uAB5E\uAB67\uAB72\uABEC\uABEE\uABEF\uABF2\uABFB\uAC02\uD7A5\uD7B2\uD7C8\uD7CD\uD7FD\uF902\uFA6F\uFA72\uFADB\uFB02\uFB08\uFB15\uFB19\uFB1F\uFB2A\uFB2C\uFB38\uFB3A\uFB3E\uFB40\uFB40\uFB42\uFB43\uFB45\uFB46\uFB48\uFBB3\uFBD5\uFD3F\uFD52\uFD91\uFD94\uFDC9\uFDF2\uFDFD\uFE02\uFE11\uFE22\uFE31\uFE35\uFE36\uFE4F\uFE51\uFE72\uFE76\uFE78\uFEFE\uFF01\uFF01\uFF12\uFF1B\uFF23\uFF3C\uFF41\uFF41\uFF43\uFF5C\uFF68\uFFC0\uFFC4\uFFC9\uFFCC\uFFD1\uFFD4\uFFD9\uFFDC\uFFDE\uFFFB\uFFFD\r(*<>?AOR_\x82\xFC\u0142\u0176\u01FF\u01FF\u0282\u029E\u02A2\u02D2\u02E2\u02E2\u0302\u0321\u0332\u034C\u0352\u037C\u0382\u039F\u03A2\u03C5\u03CA\u03D1\u03D3\u03D7\u0402\u049F\u04A2\u04AB\u04B2\u04D5\u04DA\u04FD\u0502\u0529\u0532\u0565\u0602\u0738\u0742\u0757\u0762\u0769\u0802\u0807\u080A\u080A\u080C\u0837\u0839\u083A\u083E\u083E\u0841\u0857\u0862\u0878\u0882\u08A0\u08E2\u08F4\u08F6\u08F7\u0902\u0917\u0922\u093B\u0982\u09B9\u09C0\u09C1\u0A02\u0A05\u0A07\u0A08\u0A0E\u0A15\u0A17\u0A19\u0A1B\u0A35\u0A3A\u0A3C\u0A41\u0A41\u0A62\u0A7E\u0A82\u0A9E\u0AC2\u0AC9\u0ACB\u0AE8\u0B02\u0B37\u0B42\u0B57\u0B62\u0B74\u0B82\u0B93\u0C02\u0C4A\u0C82\u0CB4\u0CC2\u0CF4\u1002\u1048\u1068\u1071\u1081\u10BC\u10BF\u10BF\u10D2\u10EA\u10F2\u10FB\u1102\u1136\u1138\u1141\u1152\u1175\u1178\u1178\u1182\u11C6\u11CC\u11CE\u11D2\u11DC\u11DE\u11DE\u1202\u1213\u1215\u1239\u1240\u1240\u1282\u1288\u128A\u128A\u128C\u128F\u1291\u129F\u12A1\u12AA\u12B2\u12EC\u12F2\u12FB\u1302\u1305\u1307\u130E\u1311\u1312\u1315\u132A\u132C\u1332\u1334\u1335\u1337\u133B\u133E\u1346\u1349\u134A\u134D\u134F\u1352\u1352\u1359\u1359\u135F\u1365\u1368\u136E\u1372\u1376\u1402\u144C\u1452\u145B\u1482\u14C7\u14C9\u14C9\u14D2\u14DB\u1582\u15B7\u15BA\u15C2\u15DA\u15DF\u1602\u1642\u1646\u1646\u1652\u165B\u1682\u16B9\u16C2\u16CB\u1702\u171B\u171F\u172D\u1732\u173B\u18A2\u18EB\u1901\u1901\u1AC2\u1AFA\u1C02\u1C0A\u1C0C\u1C38\u1C3A\u1C42\u1C52\u1C5B\u1C74\u1C91\u1C94\u1CA9\u1CAB\u1CB8\u2002\u239B\u2402\u2470\u2482\u2545\u3002\u3430\u4402\u4648\u6802\u6A3A\u6A42\u6A60\u6A62\u6A6B\u6AD2\u6AEF\u6AF2\u6AF6\u6B02\u6B38\u6B42\u6B45\u6B52\u6B5B\u6B65\u6B79\u6B7F\u6B91\u6F02\u6F46\u6F52\u6F80\u6F91\u6FA1\u6FE2\u6FE2\u7002\u87EE\u8802\u8AF4\uB002\uB003\uBC02\uBC6C\uBC72\uBC7E\uBC82\uBC8A\uBC92\uBC9B\uBC9F\uBCA0\uBCA2\uBCA5\uD167\uD16B\uD16F\uD184\uD187\uD18D\uD1AC\uD1AF\uD244\uD246\uD402\uD456\uD458\uD49E\uD4A0\uD4A1\uD4A4\uD4A4\uD4A7\uD4A8\uD4AB\uD4AE\uD4B0\uD4BB\uD4BD\uD4BD\uD4BF\uD4C5\uD4C7\uD507\uD509\uD50C\uD50F\uD516\uD518\uD51E\uD520\uD53B\uD53D\uD540\uD542\uD546\uD548\uD548\uD54C\uD552\uD554\uD6A7\uD6AA\uD6C2\uD6C4\uD6DC\uD6DE\uD6FC\uD6FE\uD716\uD718\uD736\uD738\uD750\uD752\uD770\uD772\uD78A\uD78C\uD7AA\uD7AC\uD7C4\uD7C6\uD7CD\uD7D0\uD801\uDA02\uDA38\uDA3D\uDA6E\uDA77\uDA77\uDA86\uDA86\uDA9D\uDAA1\uDAA3\uDAB1\uE002\uE008\uE00A\uE01A\uE01D\uE023\uE025\uE026\uE028\uE02C\uE802\uE8C6\uE8D2\uE8D8\uE902\uE94C\uE952\uE95B\uEE02\uEE05\uEE07\uEE21\uEE23\uEE24\uEE26\uEE26\uEE29\uEE29\uEE2B\uEE34\uEE36\uEE39\uEE3B\uEE3B\uEE3D\uEE3D\uEE44\uEE44\uEE49\uEE49\uEE4B\uEE4B\uEE4D\uEE4D\uEE4F\uEE51\uEE53\uEE54\uEE56\uEE56\uEE59\uEE59\uEE5B\uEE5B\uEE5D\uEE5D\uEE5F\uEE5F\uEE61\uEE61\uEE63\uEE64\uEE66\uEE66\uEE69\uEE6C\uEE6E\uEE74\uEE76\uEE79\uEE7B\uEE7E\uEE80\uEE80\uEE82\uEE8B\uEE8D\uEE9D\uEEA3\uEEA5\uEEA7\uEEAB\uEEAD\uEEBD\uA6D8\uA702\uB736\uB742\uB81F\uB822\uCEA3\uF802\uFA1F"\x81\u0102\u01F1\u0240C\\c|\xAC\xAC\xB7\xB7\xBC\xBC\xC2\xD8\xDA\xF8\xFA\u02C3\u02C8\u02D3\u02E2\u02E6\u02EE\u02EE\u02F0\u02F0\u0372\u0376\u0378\u0379\u037C\u037F\u0381\u0381\u0388\u0388\u038A\u038C\u038E\u038E\u0390\u03A3\u03A5\u03F7\u03F9\u0483\u048C\u0531\u0533\u0558\u055B\u055B\u0563\u0589\u05D2\u05EC\u05F2\u05F4\u0622\u064C\u0670\u0671\u0673\u06D5\u06D7\u06D7\u06E7\u06E8\u06F0\u06F1\u06FC\u06FE\u0701\u0701\u0712\u0712\u0714\u0731\u074F\u07A7\u07B3\u07B3\u07CC\u07EC\u07F6\u07F7\u07FC\u07FC\u0802\u0817\u081C\u081C\u0826\u0826\u082A\u082A\u0842\u085A\u08A2\u08B6\u08B8\u08BF\u0906\u093B\u093F\u093F\u0952\u0952\u095A\u0963\u0973\u0982\u0987\u098E\u0991\u0992\u0995\u09AA\u09AC\u09B2\u09B4\u09B4\u09B8\u09BB\u09BF\u09BF\u09D0\u09D0\u09DE\u09DF\u09E1\u09E3\u09F2\u09F3\u0A07\u0A0C\u0A11\u0A12\u0A15\u0A2A\u0A2C\u0A32\u0A34\u0A35\u0A37\u0A38\u0A3A\u0A3B\u0A5B\u0A5E\u0A60\u0A60\u0A74\u0A76\u0A87\u0A8F\u0A91\u0A93\u0A95\u0AAA\u0AAC\u0AB2\u0AB4\u0AB5\u0AB7\u0ABB\u0ABF\u0ABF\u0AD2\u0AD2\u0AE2\u0AE3\u0AFB\u0AFB\u0B07\u0B0E\u0B11\u0B12\u0B15\u0B2A\u0B2C\u0B32\u0B34\u0B35\u0B37\u0B3B\u0B3F\u0B3F\u0B5E\u0B5F\u0B61\u0B63\u0B73\u0B73\u0B85\u0B85\u0B87\u0B8C\u0B90\u0B92\u0B94\u0B97\u0B9B\u0B9C\u0B9E\u0B9E\u0BA0\u0BA1\u0BA5\u0BA6\u0BAA\u0BAC\u0BB0\u0BBB\u0BD2\u0BD2\u0C07\u0C0E\u0C10\u0C12\u0C14\u0C2A\u0C2C\u0C3B\u0C3F\u0C3F\u0C5A\u0C5C\u0C62\u0C63\u0C82\u0C82\u0C87\u0C8E\u0C90\u0C92\u0C94\u0CAA\u0CAC\u0CB5\u0CB7\u0CBB\u0CBF\u0CBF\u0CE0\u0CE0\u0CE2\u0CE3\u0CF3\u0CF4\u0D07\u0D0E\u0D10\u0D12\u0D14\u0D3C\u0D3F\u0D3F\u0D50\u0D50\u0D56\u0D58\u0D61\u0D63\u0D7C\u0D81\u0D87\u0D98\u0D9C\u0DB3\u0DB5\u0DBD\u0DBF\u0DBF\u0DC2\u0DC8\u0E03\u0E32\u0E34\u0E35\u0E42\u0E48\u0E83\u0E84\u0E86\u0E86\u0E89\u0E8A\u0E8C\u0E8C\u0E8F\u0E8F\u0E96\u0E99\u0E9B\u0EA1\u0EA3\u0EA5\u0EA7\u0EA7\u0EA9\u0EA9\u0EAC\u0EAD\u0EAF\u0EB2\u0EB4\u0EB5\u0EBF\u0EBF\u0EC2\u0EC6\u0EC8\u0EC8\u0EDE\u0EE1\u0F02\u0F02\u0F42\u0F49\u0F4B\u0F6E\u0F8A\u0F8E\u1002\u102C\u1041\u1041\u1052\u1057\u105C\u105F\u1063\u1063\u1067\u1068\u1070\u1072\u1077\u1083\u1090\u1090\u10A2\u10C7\u10C9\u10C9\u10CF\u10CF\u10D2\u10FC\u10FE\u124A\u124C\u124F\u1252\u1258\u125A\u125A\u125C\u125F\u1262\u128A\u128C\u128F\u1292\u12B2\u12B4\u12B7\u12BA\u12C0\u12C2\u12C2\u12C4\u12C7\u12CA\u12D8\u12DA\u1312\u1314\u1317\u131A\u135C\u1382\u1391\u13A2\u13F7\u13FA\u13FF\u1403\u166E\u1671\u1681\u1683\u169C\u16A2\u16EC\u16F0\u16FA\u1702\u170E\u1710\u1713\u1722\u1733\u1742\u1753\u1762\u176E\u1770\u1772\u1782\u17B5\u17D9\u17D9\u17DE\u17DE\u1822\u1879\u1882\u1886\u1889\u18AA\u18AC\u18AC\u18B2\u18F7\u1902\u1920\u1952\u196F\u1972\u1976\u1982\u19AD\u19B2\u19CB\u1A02\u1A18\u1A22\u1A56\u1AA9\u1AA9\u1B07\u1B35\u1B47\u1B4D\u1B85\u1BA2\u1BB0\u1BB1\u1BBC\u1BE7\u1C02\u1C25\u1C4F\u1C51\u1C5C\u1C7F\u1C82\u1C8A\u1CEB\u1CEE\u1CF0\u1CF3\u1CF7\u1CF8\u1D02\u1DC1\u1E02\u1F17\u1F1A\u1F1F\u1F22\u1F47\u1F4A\u1F4F\u1F52\u1F59\u1F5B\u1F5B\u1F5D\u1F5D\u1F5F\u1F5F\u1F61\u1F7F\u1F82\u1FB6\u1FB8\u1FBE\u1FC0\u1FC0\u1FC4\u1FC6\u1FC8\u1FCE\u1FD2\u1FD5\u1FD8\u1FDD\u1FE2\u1FEE\u1FF4\u1FF6\u1FF8\u1FFE\u2073\u2073\u2081\u2081\u2092\u209E\u2104\u2104\u2109\u2109\u210C\u2115\u2117\u2117\u211B\u211F\u2126\u2126\u2128\u2128\u212A\u212A\u212C\u212F\u2131\u213B\u213E\u2141\u2147\u214B\u2150\u2150\u2162\u218A\u2C02\u2C30\u2C32\u2C60\u2C62\u2CE6\u2CED\u2CF0\u2CF4\u2CF5\u2D02\u2D27\u2D29\u2D29\u2D2F\u2D2F\u2D32\u2D69\u2D71\u2D71\u2D82\u2D98\u2DA2\u2DA8\u2DAA\u2DB0\u2DB2\u2DB8\u2DBA\u2DC0\u2DC2\u2DC8\u2DCA\u2DD0\u2DD2\u2DD8\u2DDA\u2DE0\u2E31\u2E31\u3007\u3009\u3023\u302B\u3033\u3037\u303A\u303E\u3043\u3098\u309F\u30A1\u30A3\u30FC\u30FE\u3101\u3107\u312F\u3133\u3190\u31A2\u31BC\u31F2\u3201\u3402\u4DB7\u4E02\u9FD7\uA002\uA48E\uA4D2\uA4FF\uA502\uA60E\uA612\uA621\uA62C\uA62D\uA642\uA670\uA681\uA69F\uA6A2\uA6F1\uA719\uA721\uA724\uA78A\uA78D\uA7B0\uA7B2\uA7B9\uA7F9\uA803\uA805\uA807\uA809\uA80C\uA80E\uA824\uA842\uA875\uA884\uA8B5\uA8F4\uA8F9\uA8FD\uA8FD\uA8FF\uA8FF\uA90C\uA927\uA932\uA948\uA962\uA97E\uA986\uA9B4\uA9D1\uA9D1\uA9E2\uA9E6\uA9E8\uA9F1\uA9FC\uAA00\uAA02\uAA2A\uAA42\uAA44\uAA46\uAA4D\uAA62\uAA78\uAA7C\uAA7C\uAA80\uAAB1\uAAB3\uAAB3\uAAB7\uAAB8\uAABB\uAABF\uAAC2\uAAC2\uAAC4\uAAC4\uAADD\uAADF\uAAE2\uAAEC\uAAF4\uAAF6\uAB03\uAB08\uAB0B\uAB10\uAB13\uAB18\uAB22\uAB28\uAB2A\uAB30\uAB32\uAB5C\uAB5E\uAB67\uAB72\uABE4\uAC02\uD7A5\uD7B2\uD7C8\uD7CD\uD7FD\uF902\uFA6F\uFA72\uFADB\uFB02\uFB08\uFB15\uFB19\uFB1F\uFB1F\uFB21\uFB2A\uFB2C\uFB38\uFB3A\uFB3E\uFB40\uFB40\uFB42\uFB43\uFB45\uFB46\uFB48\uFBB3\uFBD5\uFD3F\uFD52\uFD91\uFD94\uFDC9\uFDF2\uFDFD\uFE72\uFE76\uFE78\uFEFE\uFF23\uFF3C\uFF43\uFF5C\uFF68\uFFC0\uFFC4\uFFC9\uFFCC\uFFD1\uFFD4\uFFD9\uFFDC\uFFDE\r(*<>?AOR_\x82\xFC\u0142\u0176\u0282\u029E\u02A2\u02D2\u0302\u0321\u0332\u034C\u0352\u0377\u0382\u039F\u03A2\u03C5\u03CA\u03D1\u03D3\u03D7\u0402\u049F\u04B2\u04D5\u04DA\u04FD\u0502\u0529\u0532\u0565\u0602\u0738\u0742\u0757\u0762\u0769\u0802\u0807\u080A\u080A\u080C\u0837\u0839\u083A\u083E\u083E\u0841\u0857\u0862\u0878\u0882\u08A0\u08E2\u08F4\u08F6\u08F7\u0902\u0917\u0922\u093B\u0982\u09B9\u09C0\u09C1\u0A02\u0A02\u0A12\u0A15\u0A17\u0A19\u0A1B\u0A35\u0A62\u0A7E\u0A82\u0A9E\u0AC2\u0AC9\u0ACB\u0AE6\u0B02\u0B37\u0B42\u0B57\u0B62\u0B74\u0B82\u0B93\u0C02\u0C4A\u0C82\u0CB4\u0CC2\u0CF4\u1005\u1039\u1085\u10B1\u10D2\u10EA\u1105\u1128\u1152\u1174\u1178\u1178\u1185\u11B4\u11C3\u11C6\u11DC\u11DC\u11DE\u11DE\u1202\u1213\u1215\u122D\u1282\u1288\u128A\u128A\u128C\u128F\u1291\u129F\u12A1\u12AA\u12B2\u12E0\u1307\u130E\u1311\u1312\u1315\u132A\u132C\u1332\u1334\u1335\u1337\u133B\u133F\u133F\u1352\u1352\u135F\u1363\u1402\u1436\u1449\u144C\u1482\u14B1\u14C6\u14C7\u14C9\u14C9\u1582\u15B0\u15DA\u15DD\u1602\u1631\u1646\u1646\u1682\u16AC\u1702\u171B\u18A2\u18E1\u1901\u1901\u1AC2\u1AFA\u1C02\u1C0A\u1C0C\u1C30\u1C42\u1C42\u1C74\u1C91\u2002\u239B\u2402\u2470\u2482\u2545\u3002\u3430\u4402\u4648\u6802\u6A3A\u6A42\u6A60\u6AD2\u6AEF\u6B02\u6B31\u6B42\u6B45\u6B65\u6B79\u6B7F\u6B91\u6F02\u6F46\u6F52\u6F52\u6F95\u6FA1\u6FE2\u6FE2\u7002\u87EE\u8802\u8AF4\uB002\uB003\uBC02\uBC6C\uBC72\uBC7E\uBC82\uBC8A\uBC92\uBC9B\uD402\uD456\uD458\uD49E\uD4A0\uD4A1\uD4A4\uD4A4\uD4A7\uD4A8\uD4AB\uD4AE\uD4B0\uD4BB\uD4BD\uD4BD\uD4BF\uD4C5\uD4C7\uD507\uD509\uD50C\uD50F\uD516\uD518\uD51E\uD520\uD53B\uD53D\uD540\uD542\uD546\uD548\uD548`,h._serializedATNSegment1=`\uD54C\uD552\uD554\uD6A7\uD6AA\uD6C2\uD6C4\uD6DC\uD6DE\uD6FC\uD6FE\uD716\uD718\uD736\uD738\uD750\uD752\uD770\uD772\uD78A\uD78C\uD7AA\uD7AC\uD7C4\uD7C6\uD7CD\uE802\uE8C6\uE902\uE945\uEE02\uEE05\uEE07\uEE21\uEE23\uEE24\uEE26\uEE26\uEE29\uEE29\uEE2B\uEE34\uEE36\uEE39\uEE3B\uEE3B\uEE3D\uEE3D\uEE44\uEE44\uEE49\uEE49\uEE4B\uEE4B\uEE4D\uEE4D\uEE4F\uEE51\uEE53\uEE54\uEE56\uEE56\uEE59\uEE59\uEE5B\uEE5B\uEE5D\uEE5D\uEE5F\uEE5F\uEE61\uEE61\uEE63\uEE64\uEE66\uEE66\uEE69\uEE6C\uEE6E\uEE74\uEE76\uEE79\uEE7B\uEE7E\uEE80\uEE80\uEE82\uEE8B\uEE8D\uEE9D\uEEA3\uEEA5\uEEA7\uEEAB\uEEAD\uEEBD\uA6D8\uA702\uB736\uB742\uB81F\uB822\uCEA3\uF802\uFA1F1\x07 \v\x07 \v\r%')\x071\x071\x071\x07,\b\x1B\x07#\x1B
22
+  \b\r\x07"  !!#" #$\b$\f%& &'( ()-\x07)*,\v+*,/-.-+.0/-01\x07)1 -`,h._serializedATN=T.join([h._serializedATNSegment0,h._serializedATNSegment1],"");}),"./node_modules/antlr4ts/tree/xpath/XPathLexerErrorListener.js":(function(D,l,f){var d=this&&this.__decorate||function(O,T,h,s){var o=arguments.length,r=o<3?T:s===null?s=Object.getOwnPropertyDescriptor(T,h):s,x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(O,T,h,s);else for(var n=O.length-1;n>=0;n--)(x=O[n])&&(r=(o<3?x(r):o>3?x(T,h,r):x(T,h))||r);return o>3&&r&&Object.defineProperty(T,h,r),r};Object.defineProperty(l,"__esModule",{value:true}),l.XPathLexerErrorListener=void 0;let m=f("./node_modules/antlr4ts/Decorators.js");class g{syntaxError(T,h,s,o,r,x){}}d([m.Override],g.prototype,"syntaxError",null),l.XPathLexerErrorListener=g;}),"./node_modules/antlr4ts/tree/xpath/XPathRuleAnywhereElement.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.XPathRuleAnywhereElement=void 0;let m=f("./node_modules/antlr4ts/Decorators.js"),g=f("./node_modules/antlr4ts/tree/Trees.js"),O=f("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class T extends O.XPathElement{constructor(s,o){super(s),this.ruleIndex=o;}evaluate(s){return g.Trees.findAllRuleNodes(s,this.ruleIndex)}}d([m.Override],T.prototype,"evaluate",null),l.XPathRuleAnywhereElement=T;}),"./node_modules/antlr4ts/tree/xpath/XPathRuleElement.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c};Object.defineProperty(l,"__esModule",{value:true}),l.XPathRuleElement=void 0;let m=f("./node_modules/antlr4ts/ParserRuleContext.js"),g=f("./node_modules/antlr4ts/Decorators.js"),O=f("./node_modules/antlr4ts/tree/Trees.js"),T=f("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class h extends T.XPathElement{constructor(o,r){super(o),this.ruleIndex=r;}evaluate(o){let r=[];for(let x of O.Trees.getChildren(o))x instanceof m.ParserRuleContext&&(x.ruleIndex===this.ruleIndex&&!this.invert||x.ruleIndex!==this.ruleIndex&&this.invert)&&r.push(x);return r}}d([g.Override],h.prototype,"evaluate",null),l.XPathRuleElement=h;}),"./node_modules/antlr4ts/tree/xpath/XPathTokenAnywhereElement.js":(function(D,l,f){var d=this&&this.__decorate||function(h,s,o,r){var x=arguments.length,n=x<3?s:r===null?r=Object.getOwnPropertyDescriptor(s,o):r,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,s,o,r);else for(var a=h.length-1;a>=0;a--)(c=h[a])&&(n=(x<3?c(n):x>3?c(s,o,n):c(s,o))||n);return x>3&&n&&Object.defineProperty(s,o,n),n};Object.defineProperty(l,"__esModule",{value:true}),l.XPathTokenAnywhereElement=void 0;let m=f("./node_modules/antlr4ts/Decorators.js"),g=f("./node_modules/antlr4ts/tree/Trees.js"),O=f("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class T extends O.XPathElement{constructor(s,o){super(s),this.tokenType=o;}evaluate(s){return g.Trees.findAllTokenNodes(s,this.tokenType)}}d([m.Override],T.prototype,"evaluate",null),l.XPathTokenAnywhereElement=T;}),"./node_modules/antlr4ts/tree/xpath/XPathTokenElement.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c};Object.defineProperty(l,"__esModule",{value:true}),l.XPathTokenElement=void 0;let m=f("./node_modules/antlr4ts/Decorators.js"),g=f("./node_modules/antlr4ts/tree/TerminalNode.js"),O=f("./node_modules/antlr4ts/tree/Trees.js"),T=f("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class h extends T.XPathElement{constructor(o,r){super(o),this.tokenType=r;}evaluate(o){let r=[];for(let x of O.Trees.getChildren(o))x instanceof g.TerminalNode&&(x.symbol.type===this.tokenType&&!this.invert||x.symbol.type!==this.tokenType&&this.invert)&&r.push(x);return r}}d([m.Override],h.prototype,"evaluate",null),l.XPathTokenElement=h;}),"./node_modules/antlr4ts/tree/xpath/XPathWildcardAnywhereElement.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c};Object.defineProperty(l,"__esModule",{value:true}),l.XPathWildcardAnywhereElement=void 0;let m=f("./node_modules/antlr4ts/Decorators.js"),g=f("./node_modules/antlr4ts/tree/Trees.js"),O=f("./node_modules/antlr4ts/tree/xpath/XPath.js"),T=f("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class h extends T.XPathElement{constructor(){super(O.XPath.WILDCARD);}evaluate(o){return this.invert?[]:g.Trees.getDescendants(o)}}d([m.Override],h.prototype,"evaluate",null),l.XPathWildcardAnywhereElement=h;}),"./node_modules/antlr4ts/tree/xpath/XPathWildcardElement.js":(function(D,l,f){var d=this&&this.__decorate||function(s,o,r,x){var n=arguments.length,c=n<3?o:x===null?x=Object.getOwnPropertyDescriptor(o,r):x,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(s,o,r,x);else for(var p=s.length-1;p>=0;p--)(a=s[p])&&(c=(n<3?a(c):n>3?a(o,r,c):a(o,r))||c);return n>3&&c&&Object.defineProperty(o,r,c),c};Object.defineProperty(l,"__esModule",{value:true}),l.XPathWildcardElement=void 0;let m=f("./node_modules/antlr4ts/Decorators.js"),g=f("./node_modules/antlr4ts/tree/Trees.js"),O=f("./node_modules/antlr4ts/tree/xpath/XPath.js"),T=f("./node_modules/antlr4ts/tree/xpath/XPathElement.js");class h extends T.XPathElement{constructor(){super(O.XPath.WILDCARD);}evaluate(o){let r=[];if(this.invert)return r;for(let x of g.Trees.getChildren(o))r.push(x);return r}}d([m.Override],h.prototype,"evaluate",null),l.XPathWildcardElement=h;}),"./node_modules/assert/build/assert.js":((D,l,f)=>{var d=f("./node_modules/process/browser.js");function m(q){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},m(q)}function O(q,Y,et){return Object.defineProperty(q,"prototype",{writable:false}),q}function s(q,Y){if(!(q instanceof Y))throw new TypeError("Cannot call a class as a function")}var o=f("./node_modules/assert/build/internal/errors.js"),r=o.codes,x=r.ERR_AMBIGUOUS_ARGUMENT,n=r.ERR_INVALID_ARG_TYPE,c=r.ERR_INVALID_ARG_VALUE,a=r.ERR_INVALID_RETURN_VALUE,p=r.ERR_MISSING_ARGS,t=f("./node_modules/assert/build/internal/assert/assertion_error.js"),y=f("./node_modules/util/util.js"),v=y.inspect,S=f("./node_modules/util/util.js").types,N=S.isPromise,b=S.isRegExp,U=f("./node_modules/object.assign/polyfill.js")(),A=f("./node_modules/object-is/polyfill.js")(),w=f("./node_modules/call-bind/callBound.js")("RegExp.prototype.test"),M,W;function J(){var q=f("./node_modules/assert/build/internal/util/comparisons.js");M=q.isDeepEqual,W=q.isDeepStrictEqual;}var Dt=false,dt=D.exports=K,jt={};function _t(q){throw q.message instanceof Error?q.message:new t(q)}function yt(q,Y,et,X,Ct){var pt=arguments.length,Bt;if(pt===0)Bt="Failed";else if(pt===1)et=q,q=void 0;else {if(Dt===false){Dt=true;var Ht=d.emitWarning?d.emitWarning:console.warn.bind(console);Ht("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094");}pt===2&&(X="!=");}if(et instanceof Error)throw et;var $t={actual:q,expected:Y,operator:X===void 0?"fail":X,stackStartFn:Ct||yt};et!==void 0&&($t.message=et);var Wt=new t($t);throw Bt&&(Wt.message=Bt,Wt.generatedMessage=true),Wt}dt.fail=yt,dt.AssertionError=t;function rt(q,Y,et,X){if(!et){var Ct=false;if(Y===0)Ct=true,X="No value argument passed to `assert.ok()`";else if(X instanceof Error)throw X;var pt=new t({actual:et,expected:true,message:X,operator:"==",stackStartFn:q});throw pt.generatedMessage=Ct,pt}}function K(){for(var q=arguments.length,Y=new Array(q),et=0;et<q;et++)Y[et]=arguments[et];rt.apply(void 0,[K,Y.length].concat(Y));}dt.ok=K,dt.equal=function q(Y,et,X){if(arguments.length<2)throw new p("actual","expected");Y!=et&&_t({actual:Y,expected:et,message:X,operator:"==",stackStartFn:q});},dt.notEqual=function q(Y,et,X){if(arguments.length<2)throw new p("actual","expected");Y==et&&_t({actual:Y,expected:et,message:X,operator:"!=",stackStartFn:q});},dt.deepEqual=function q(Y,et,X){if(arguments.length<2)throw new p("actual","expected");M===void 0&&J(),M(Y,et)||_t({actual:Y,expected:et,message:X,operator:"deepEqual",stackStartFn:q});},dt.notDeepEqual=function q(Y,et,X){if(arguments.length<2)throw new p("actual","expected");M===void 0&&J(),M(Y,et)&&_t({actual:Y,expected:et,message:X,operator:"notDeepEqual",stackStartFn:q});},dt.deepStrictEqual=function q(Y,et,X){if(arguments.length<2)throw new p("actual","expected");M===void 0&&J(),W(Y,et)||_t({actual:Y,expected:et,message:X,operator:"deepStrictEqual",stackStartFn:q});},dt.notDeepStrictEqual=G;function G(q,Y,et){if(arguments.length<2)throw new p("actual","expected");M===void 0&&J(),W(q,Y)&&_t({actual:q,expected:Y,message:et,operator:"notDeepStrictEqual",stackStartFn:G});}dt.strictEqual=function q(Y,et,X){if(arguments.length<2)throw new p("actual","expected");A(Y,et)||_t({actual:Y,expected:et,message:X,operator:"strictEqual",stackStartFn:q});},dt.notStrictEqual=function q(Y,et,X){if(arguments.length<2)throw new p("actual","expected");A(Y,et)&&_t({actual:Y,expected:et,message:X,operator:"notStrictEqual",stackStartFn:q});};var Q=O(function q(Y,et,X){var Ct=this;s(this,q),et.forEach(function(pt){pt in Y&&(X!==void 0&&typeof X[pt]=="string"&&b(Y[pt])&&w(Y[pt],X[pt])?Ct[pt]=X[pt]:Ct[pt]=Y[pt]);});});function ot(q,Y,et,X,Ct,pt){if(!(et in q)||!W(q[et],Y[et])){if(!X){var Bt=new Q(q,Ct),Ht=new Q(Y,Ct,q),$t=new t({actual:Bt,expected:Ht,operator:"deepStrictEqual",stackStartFn:pt});throw $t.actual=q,$t.expected=Y,$t.operator=pt.name,$t}_t({actual:q,expected:Y,message:X,operator:pt.name,stackStartFn:pt});}}function lt(q,Y,et,X){if(typeof Y!="function"){if(b(Y))return w(Y,q);if(arguments.length===2)throw new n("expected",["Function","RegExp"],Y);if(m(q)!=="object"||q===null){var Ct=new t({actual:q,expected:Y,message:et,operator:"deepStrictEqual",stackStartFn:X});throw Ct.operator=X.name,Ct}var pt=Object.keys(Y);if(Y instanceof Error)pt.push("name","message");else if(pt.length===0)throw new c("error",Y,"may not be an empty object");return M===void 0&&J(),pt.forEach(function(Bt){typeof q[Bt]=="string"&&b(Y[Bt])&&w(Y[Bt],q[Bt])||ot(q,Y,Bt,et,pt,X);}),true}return Y.prototype!==void 0&&q instanceof Y?true:Error.isPrototypeOf(Y)?false:Y.call({},q)===true}function st(q){if(typeof q!="function")throw new n("fn","Function",q);try{q();}catch(Y){return Y}return jt}function ht(q){return N(q)||q!==null&&m(q)==="object"&&typeof q.then=="function"&&typeof q.catch=="function"}function xt(q){return Promise.resolve().then(function(){var Y;if(typeof q=="function"){if(Y=q(),!ht(Y))throw new a("instance of Promise","promiseFn",Y)}else if(ht(q))Y=q;else throw new n("promiseFn",["Function","Promise"],q);return Promise.resolve().then(function(){return Y}).then(function(){return jt}).catch(function(et){return et})})}function it(q,Y,et,X){if(typeof et=="string"){if(arguments.length===4)throw new n("error",["Object","Error","Function","RegExp"],et);if(m(Y)==="object"&&Y!==null){if(Y.message===et)throw new x("error/message",'The error message "'.concat(Y.message,'" is identical to the message.'))}else if(Y===et)throw new x("error/message",'The error "'.concat(Y,'" is identical to the message.'));X=et,et=void 0;}else if(et!=null&&m(et)!=="object"&&typeof et!="function")throw new n("error",["Object","Error","Function","RegExp"],et);if(Y===jt){var Ct="";et&&et.name&&(Ct+=" (".concat(et.name,")")),Ct+=X?": ".concat(X):".";var pt=q.name==="rejects"?"rejection":"exception";_t({actual:void 0,expected:et,operator:q.name,message:"Missing expected ".concat(pt).concat(Ct),stackStartFn:q});}if(et&&!lt(Y,et,X,q))throw Y}function vt(q,Y,et,X){if(Y!==jt){if(typeof et=="string"&&(X=et,et=void 0),!et||lt(Y,et)){var Ct=X?": ".concat(X):".",pt=q.name==="doesNotReject"?"rejection":"exception";_t({actual:Y,expected:et,operator:q.name,message:"Got unwanted ".concat(pt).concat(Ct,`
23
+ `)+'Actual message: "'.concat(Y&&Y.message,'"'),stackStartFn:q});}throw Y}}dt.throws=function q(Y){for(var et=arguments.length,X=new Array(et>1?et-1:0),Ct=1;Ct<et;Ct++)X[Ct-1]=arguments[Ct];it.apply(void 0,[q,st(Y)].concat(X));},dt.rejects=function q(Y){for(var et=arguments.length,X=new Array(et>1?et-1:0),Ct=1;Ct<et;Ct++)X[Ct-1]=arguments[Ct];return xt(Y).then(function(pt){return it.apply(void 0,[q,pt].concat(X))})},dt.doesNotThrow=function q(Y){for(var et=arguments.length,X=new Array(et>1?et-1:0),Ct=1;Ct<et;Ct++)X[Ct-1]=arguments[Ct];vt.apply(void 0,[q,st(Y)].concat(X));},dt.doesNotReject=function q(Y){for(var et=arguments.length,X=new Array(et>1?et-1:0),Ct=1;Ct<et;Ct++)X[Ct-1]=arguments[Ct];return xt(Y).then(function(pt){return vt.apply(void 0,[q,pt].concat(X))})},dt.ifError=function q(Y){if(Y!=null){var et="ifError got unwanted exception: ";m(Y)==="object"&&typeof Y.message=="string"?Y.message.length===0&&Y.constructor?et+=Y.constructor.name:et+=Y.message:et+=v(Y);var X=new t({actual:Y,expected:null,operator:"ifError",message:et,stackStartFn:q}),Ct=Y.stack;if(typeof Ct=="string"){var pt=Ct.split(`
24
+ `);pt.shift();for(var Bt=X.stack.split(`
25
+ `),Ht=0;Ht<pt.length;Ht++){var $t=Bt.indexOf(pt[Ht]);if($t!==-1){Bt=Bt.slice(0,$t);break}}X.stack="".concat(Bt.join(`
26
+ `),`
27
+ `).concat(pt.join(`
28
+ `));}throw X}};function Z(q,Y,et,X,Ct){if(!b(Y))throw new n("regexp","RegExp",Y);var pt=Ct==="match";if(typeof q!="string"||w(Y,q)!==pt){if(et instanceof Error)throw et;var Bt=!et;et=et||(typeof q!="string"?'The "string" argument must be of type string. Received type '+"".concat(m(q)," (").concat(v(q),")"):(pt?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(v(Y),`. Input:
29
+
30
+ `).concat(v(q),`
31
+ `));var Ht=new t({actual:q,expected:Y,message:et,operator:Ct,stackStartFn:X});throw Ht.generatedMessage=Bt,Ht}}dt.match=function q(Y,et,X){Z(Y,et,X,q,"match");},dt.doesNotMatch=function q(Y,et,X){Z(Y,et,X,q,"doesNotMatch");};function tt(){for(var q=arguments.length,Y=new Array(q),et=0;et<q;et++)Y[et]=arguments[et];rt.apply(void 0,[tt,Y.length].concat(Y));}dt.strict=U(tt,dt,{equal:dt.strictEqual,deepEqual:dt.deepStrictEqual,notEqual:dt.notStrictEqual,notDeepEqual:dt.notDeepStrictEqual}),dt.strict.strict=dt.strict;}),"./node_modules/assert/build/internal/assert/assertion_error.js":((D,l,f)=>{var d=f("./node_modules/process/browser.js");function m(_t,yt){var rt=Object.keys(_t);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(_t);yt&&(K=K.filter(function(G){return Object.getOwnPropertyDescriptor(_t,G).enumerable})),rt.push.apply(rt,K);}return rt}function g(_t){for(var yt=1;yt<arguments.length;yt++){var rt=arguments[yt]!=null?arguments[yt]:{};yt%2?m(Object(rt),true).forEach(function(K){O(_t,K,rt[K]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(_t,Object.getOwnPropertyDescriptors(rt)):m(Object(rt)).forEach(function(K){Object.defineProperty(_t,K,Object.getOwnPropertyDescriptor(rt,K));});}return _t}function O(_t,yt,rt){return yt=o(yt),yt in _t?Object.defineProperty(_t,yt,{value:rt,enumerable:true,configurable:true,writable:true}):_t[yt]=rt,_t}function T(_t,yt){if(!(_t instanceof yt))throw new TypeError("Cannot call a class as a function")}function h(_t,yt){for(var rt=0;rt<yt.length;rt++){var K=yt[rt];K.enumerable=K.enumerable||false,K.configurable=true,"value"in K&&(K.writable=true),Object.defineProperty(_t,o(K.key),K);}}function s(_t,yt,rt){return yt&&h(_t.prototype,yt),Object.defineProperty(_t,"prototype",{writable:false}),_t}function o(_t){var yt=r(_t,"string");return b(yt)==="symbol"?yt:String(yt)}function r(_t,yt){if(b(_t)!=="object"||_t===null)return _t;var rt=_t[Symbol.toPrimitive];if(rt!==void 0){var K=rt.call(_t,yt);if(b(K)!=="object")return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return (yt==="string"?String:Number)(_t)}function x(_t,yt){if(typeof yt!="function"&&yt!==null)throw new TypeError("Super expression must either be null or a function");_t.prototype=Object.create(yt&&yt.prototype,{constructor:{value:_t,writable:true,configurable:true}}),Object.defineProperty(_t,"prototype",{writable:false}),yt&&S(_t,yt);}function n(_t){var yt=y();return function(){var K=N(_t),G;if(yt){var Q=N(this).constructor;G=Reflect.construct(K,arguments,Q);}else G=K.apply(this,arguments);return c(this,G)}}function c(_t,yt){if(yt&&(b(yt)==="object"||typeof yt=="function"))return yt;if(yt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a(_t)}function a(_t){if(_t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _t}function p(_t){var yt=typeof Map=="function"?new Map:void 0;return p=function(K){if(K===null||!v(K))return K;if(typeof K!="function")throw new TypeError("Super expression must either be null or a function");if(typeof yt<"u"){if(yt.has(K))return yt.get(K);yt.set(K,G);}function G(){return t(K,arguments,N(this).constructor)}return G.prototype=Object.create(K.prototype,{constructor:{value:G,enumerable:false,writable:true,configurable:true}}),S(G,K)},p(_t)}function t(_t,yt,rt){return y()?t=Reflect.construct.bind():t=function(G,Q,ot){var lt=[null];lt.push.apply(lt,Q);var st=Function.bind.apply(G,lt),ht=new st;return ot&&S(ht,ot.prototype),ht},t.apply(null,arguments)}function y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return false;if(typeof Proxy=="function")return true;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return false}}function v(_t){return Function.toString.call(_t).indexOf("[native code]")!==-1}function S(_t,yt){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,G){return K.__proto__=G,K},S(_t,yt)}function N(_t){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(rt){return rt.__proto__||Object.getPrototypeOf(rt)},N(_t)}function b(_t){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(yt){return typeof yt}:function(yt){return yt&&typeof Symbol=="function"&&yt.constructor===Symbol&&yt!==Symbol.prototype?"symbol":typeof yt},b(_t)}var U=f("./node_modules/util/util.js"),A=U.inspect,w=f("./node_modules/assert/build/internal/errors.js"),F=w.codes.ERR_INVALID_ARG_TYPE;function M(_t,yt,rt){return (rt===void 0||rt>_t.length)&&(rt=_t.length),_t.substring(rt-yt.length,rt)===yt}function W(_t,yt){if(yt=Math.floor(yt),_t.length==0||yt==0)return "";var rt=_t.length*yt;for(yt=Math.floor(Math.log(yt)/Math.log(2));yt;)_t+=_t,yt--;return _t+=_t.substring(0,rt-_t.length),_t}var L="",j="",k="",J="",ut={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:"},ft=10;function At(_t){var yt=Object.keys(_t),rt=Object.create(Object.getPrototypeOf(_t));return yt.forEach(function(K){rt[K]=_t[K];}),Object.defineProperty(rt,"message",{value:_t.message}),rt}function Dt(_t){return A(_t,{compact:false,customInspect:false,depth:1e3,maxArrayLength:1/0,showHidden:false,breakLength:1/0,showProxy:false,sorted:true,getters:true})}function dt(_t,yt,rt){var K="",G="",Q=0,ot="",lt=false,st=Dt(_t),ht=st.split(`
32
+ `),xt=Dt(yt).split(`
33
+ `),it=0,vt="";if(rt==="strictEqual"&&b(_t)==="object"&&b(yt)==="object"&&_t!==null&&yt!==null&&(rt="strictEqualObject"),ht.length===1&&xt.length===1&&ht[0]!==xt[0]){var Z=ht[0].length+xt[0].length;if(Z<=ft){if((b(_t)!=="object"||_t===null)&&(b(yt)!=="object"||yt===null)&&(_t!==0||yt!==0))return "".concat(ut[rt],`
34
+
35
+ `)+"".concat(ht[0]," !== ").concat(xt[0],`
36
+ `)}else if(rt!=="strictEqualObject"){var tt=d.stderr&&d.stderr.isTTY?d.stderr.columns:80;if(Z<tt){for(;ht[0][it]===xt[0][it];)it++;it>2&&(vt=`
37
+ `.concat(W(" ",it),"^"),it=0);}}}for(var q=ht[ht.length-1],Y=xt[xt.length-1];q===Y&&(it++<2?ot=`
38
+ `.concat(q).concat(ot):K=q,ht.pop(),xt.pop(),!(ht.length===0||xt.length===0));)q=ht[ht.length-1],Y=xt[xt.length-1];var et=Math.max(ht.length,xt.length);if(et===0){var X=st.split(`
39
+ `);if(X.length>30)for(X[26]="".concat(L,"...").concat(J);X.length>27;)X.pop();return "".concat(ut.notIdentical,`
40
+
41
+ `).concat(X.join(`
42
+ `),`
43
+ `)}it>3&&(ot=`
44
+ `.concat(L,"...").concat(J).concat(ot),lt=true),K!==""&&(ot=`
45
+ `.concat(K).concat(ot),K="");var Ct=0,pt=ut[rt]+`
46
+ `.concat(j,"+ actual").concat(J," ").concat(k,"- expected").concat(J),Bt=" ".concat(L,"...").concat(J," Lines skipped");for(it=0;it<et;it++){var Ht=it-Q;if(ht.length<it+1)Ht>1&&it>2&&(Ht>4?(G+=`
47
+ `.concat(L,"...").concat(J),lt=true):Ht>3&&(G+=`
48
+ `.concat(xt[it-2]),Ct++),G+=`
49
+ `.concat(xt[it-1]),Ct++),Q=it,K+=`
50
+ `.concat(k,"-").concat(J," ").concat(xt[it]),Ct++;else if(xt.length<it+1)Ht>1&&it>2&&(Ht>4?(G+=`
51
+ `.concat(L,"...").concat(J),lt=true):Ht>3&&(G+=`
52
+ `.concat(ht[it-2]),Ct++),G+=`
53
+ `.concat(ht[it-1]),Ct++),Q=it,G+=`
54
+ `.concat(j,"+").concat(J," ").concat(ht[it]),Ct++;else {var $t=xt[it],Wt=ht[it],mt=Wt!==$t&&(!M(Wt,",")||Wt.slice(0,-1)!==$t);mt&&M($t,",")&&$t.slice(0,-1)===Wt&&(mt=false,Wt+=","),mt?(Ht>1&&it>2&&(Ht>4?(G+=`
55
+ `.concat(L,"...").concat(J),lt=true):Ht>3&&(G+=`
56
+ `.concat(ht[it-2]),Ct++),G+=`
57
+ `.concat(ht[it-1]),Ct++),Q=it,G+=`
58
+ `.concat(j,"+").concat(J," ").concat(Wt),K+=`
59
+ `.concat(k,"-").concat(J," ").concat($t),Ct+=2):(G+=K,K="",(Ht===1||it===0)&&(G+=`
60
+ `.concat(Wt),Ct++));}if(Ct>20&&it<et-2)return "".concat(pt).concat(Bt,`
61
+ `).concat(G,`
62
+ `).concat(L,"...").concat(J).concat(K,`
63
+ `)+"".concat(L,"...").concat(J)}return "".concat(pt).concat(lt?Bt:"",`
64
+ `).concat(G).concat(K).concat(ot).concat(vt)}var jt=(function(_t,yt){x(K,_t);var rt=n(K);function K(G){var Q;if(T(this,K),b(G)!=="object"||G===null)throw new F("options","Object",G);var ot=G.message,lt=G.operator,st=G.stackStartFn,ht=G.actual,xt=G.expected,it=Error.stackTraceLimit;if(Error.stackTraceLimit=0,ot!=null)Q=rt.call(this,String(ot));else if(d.stderr&&d.stderr.isTTY&&(d.stderr&&d.stderr.getColorDepth&&d.stderr.getColorDepth()!==1?(L="\x1B[34m",j="\x1B[32m",J="\x1B[39m",k="\x1B[31m"):(L="",j="",J="",k="")),b(ht)==="object"&&ht!==null&&b(xt)==="object"&&xt!==null&&"stack"in ht&&ht instanceof Error&&"stack"in xt&&xt instanceof Error&&(ht=At(ht),xt=At(xt)),lt==="deepStrictEqual"||lt==="strictEqual")Q=rt.call(this,dt(ht,xt,lt));else if(lt==="notDeepStrictEqual"||lt==="notStrictEqual"){var vt=ut[lt],Z=Dt(ht).split(`
65
+ `);if(lt==="notStrictEqual"&&b(ht)==="object"&&ht!==null&&(vt=ut.notStrictEqualObject),Z.length>30)for(Z[26]="".concat(L,"...").concat(J);Z.length>27;)Z.pop();Z.length===1?Q=rt.call(this,"".concat(vt," ").concat(Z[0])):Q=rt.call(this,"".concat(vt,`
66
+
67
+ `).concat(Z.join(`
68
+ `),`
69
+ `));}else {var tt=Dt(ht),q="",Y=ut[lt];lt==="notDeepEqual"||lt==="notEqual"?(tt="".concat(ut[lt],`
70
+
71
+ `).concat(tt),tt.length>1024&&(tt="".concat(tt.slice(0,1021),"..."))):(q="".concat(Dt(xt)),tt.length>512&&(tt="".concat(tt.slice(0,509),"...")),q.length>512&&(q="".concat(q.slice(0,509),"...")),lt==="deepEqual"||lt==="equal"?tt="".concat(Y,`
72
+
73
+ `).concat(tt,`
74
+
75
+ should equal
76
+
77
+ `):q=" ".concat(lt," ").concat(q)),Q=rt.call(this,"".concat(tt).concat(q));}return Error.stackTraceLimit=it,Q.generatedMessage=!ot,Object.defineProperty(a(Q),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:false,writable:true,configurable:true}),Q.code="ERR_ASSERTION",Q.actual=ht,Q.expected=xt,Q.operator=lt,Error.captureStackTrace&&Error.captureStackTrace(a(Q),st),Q.stack,Q.name="AssertionError",c(Q)}return s(K,[{key:"toString",value:function(){return "".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:yt,value:function(Q,ot){return A(this,g(g({},ot),{},{customInspect:false,depth:0}))}}]),K})(p(Error),A.custom);D.exports=jt;}),"./node_modules/assert/build/internal/errors.js":((D,l,f)=>{function d(A){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},d(A)}function g(A,w,F){return Object.defineProperty(A,"prototype",{writable:false}),A}function h(A,w){if(!(A instanceof w))throw new TypeError("Cannot call a class as a function")}function s(A,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(w&&w.prototype,{constructor:{value:A,writable:true,configurable:true}}),Object.defineProperty(A,"prototype",{writable:false}),w&&o(A,w);}function o(A,w){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(M,W){return M.__proto__=W,M},o(A,w)}function r(A){var w=c();return function(){var M=a(A),W;if(w){var L=a(this).constructor;W=Reflect.construct(M,arguments,L);}else W=M.apply(this,arguments);return x(this,W)}}function x(A,w){if(w&&(d(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(A)}function n(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function c(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return false;if(typeof Proxy=="function")return true;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return false}}function a(A){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},a(A)}var p={},t,y;function v(A,w,F){F||(F=Error);function M(L,j,k){return typeof w=="string"?w:w(L,j,k)}var W=(function(L){s(k,L);var j=r(k);function k(J,ut,ft){var At;return h(this,k),At=j.call(this,M(J,ut,ft)),At.code=A,At}return g(k)})(F);p[A]=W;}function S(A,w){if(Array.isArray(A)){var F=A.length;return A=A.map(function(M){return String(M)}),F>2?"one of ".concat(w," ").concat(A.slice(0,F-1).join(", "),", or ")+A[F-1]:F===2?"one of ".concat(w," ").concat(A[0]," or ").concat(A[1]):"of ".concat(w," ").concat(A[0])}else return "of ".concat(w," ").concat(String(A))}function N(A,w,F){return A.substr(0,w.length)===w}function b(A,w,F){return (F===void 0||F>A.length)&&(F=A.length),A.substring(F-w.length,F)===w}function U(A,w,F){return typeof F!="number"&&(F=0),F+w.length>A.length?false:A.indexOf(w,F)!==-1}v("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),v("ERR_INVALID_ARG_TYPE",function(A,w,F){t===void 0&&(t=f("./node_modules/assert/build/assert.js")),t(typeof A=="string","'name' must be a string");var M;typeof w=="string"&&N(w,"not ")?(M="must not be",w=w.replace(/^not /,"")):M="must be";var W;if(b(A," argument"))W="The ".concat(A," ").concat(M," ").concat(S(w,"type"));else {var L=U(A,".")?"property":"argument";W='The "'.concat(A,'" ').concat(L," ").concat(M," ").concat(S(w,"type"));}return W+=". Received type ".concat(d(F)),W},TypeError),v("ERR_INVALID_ARG_VALUE",function(A,w){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";y===void 0&&(y=f("./node_modules/util/util.js"));var M=y.inspect(w);return M.length>128&&(M="".concat(M.slice(0,128),"...")),"The argument '".concat(A,"' ").concat(F,". Received ").concat(M)},TypeError),v("ERR_INVALID_RETURN_VALUE",function(A,w,F){var M;return F&&F.constructor&&F.constructor.name?M="instance of ".concat(F.constructor.name):M="type ".concat(d(F)),"Expected ".concat(A,' to be returned from the "').concat(w,'"')+" function but got ".concat(M,".")},TypeError),v("ERR_MISSING_ARGS",function(){for(var A=arguments.length,w=new Array(A),F=0;F<A;F++)w[F]=arguments[F];t===void 0&&(t=f("./node_modules/assert/build/assert.js")),t(w.length>0,"At least one arg needs to be specified");var M="The ",W=w.length;switch(w=w.map(function(L){return '"'.concat(L,'"')}),W){case 1:M+="".concat(w[0]," argument");break;case 2:M+="".concat(w[0]," and ").concat(w[1]," arguments");break;default:M+=w.slice(0,W-1).join(", "),M+=", and ".concat(w[W-1]," arguments");break}return "".concat(M," must be specified")},TypeError),D.exports.codes=p;}),"./node_modules/assert/build/internal/util/comparisons.js":((D,l,f)=>{function d(mt,Tt){return h(mt)||T(mt,Tt)||g(mt,Tt)||m()}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
78
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g(mt,Tt){if(mt){if(typeof mt=="string")return O(mt,Tt);var Ft=Object.prototype.toString.call(mt).slice(8,-1);if(Ft==="Object"&&mt.constructor&&(Ft=mt.constructor.name),Ft==="Map"||Ft==="Set")return Array.from(mt);if(Ft==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ft))return O(mt,Tt)}}function O(mt,Tt){(Tt==null||Tt>mt.length)&&(Tt=mt.length);for(var Ft=0,Mt=new Array(Tt);Ft<Tt;Ft++)Mt[Ft]=mt[Ft];return Mt}function T(mt,Tt){var Ft=mt==null?null:typeof Symbol<"u"&&mt[Symbol.iterator]||mt["@@iterator"];if(Ft!=null){var Mt,Ut,Xt,qt,se=[],ee=true,Rt=false;try{if(Xt=(Ft=Ft.call(mt)).next,Tt===0);else for(;!(ee=(Mt=Xt.call(Ft)).done)&&(se.push(Mt.value),se.length!==Tt);ee=!0);}catch(Kt){Rt=true,Ut=Kt;}finally{try{if(!ee&&Ft.return!=null&&(qt=Ft.return(),Object(qt)!==qt))return}finally{if(Rt)throw Ut}}return se}}function h(mt){if(Array.isArray(mt))return mt}function s(mt){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Tt){return typeof Tt}:function(Tt){return Tt&&typeof Symbol=="function"&&Tt.constructor===Symbol&&Tt!==Symbol.prototype?"symbol":typeof Tt},s(mt)}var o=/a/g.flags!==void 0,r=function(Tt){var Ft=[];return Tt.forEach(function(Mt){return Ft.push(Mt)}),Ft},x=function(Tt){var Ft=[];return Tt.forEach(function(Mt,Ut){return Ft.push([Ut,Mt])}),Ft},n=Object.is?Object.is:f("./node_modules/object-is/index.js"),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return []},a=Number.isNaN?Number.isNaN:f("./node_modules/is-nan/index.js");function p(mt){return mt.call.bind(mt)}var t=p(Object.prototype.hasOwnProperty),y=p(Object.prototype.propertyIsEnumerable),v=p(Object.prototype.toString),S=f("./node_modules/util/util.js").types,N=S.isAnyArrayBuffer,b=S.isArrayBufferView,U=S.isDate,A=S.isMap,w=S.isRegExp,F=S.isSet,M=S.isNativeError,W=S.isBoxedPrimitive,L=S.isNumberObject,j=S.isStringObject,k=S.isBooleanObject,J=S.isBigIntObject,ut=S.isSymbolObject,ft=S.isFloat32Array,At=S.isFloat64Array;function Dt(mt){if(mt.length===0||mt.length>10)return true;for(var Tt=0;Tt<mt.length;Tt++){var Ft=mt.charCodeAt(Tt);if(Ft<48||Ft>57)return true}return mt.length===10&&mt>=Math.pow(2,32)}function dt(mt){return Object.keys(mt).filter(Dt).concat(c(mt).filter(Object.prototype.propertyIsEnumerable.bind(mt)))}function jt(mt,Tt){if(mt===Tt)return 0;for(var Ft=mt.length,Mt=Tt.length,Ut=0,Xt=Math.min(Ft,Mt);Ut<Xt;++Ut)if(mt[Ut]!==Tt[Ut]){Ft=mt[Ut],Mt=Tt[Ut];break}return Ft<Mt?-1:Mt<Ft?1:0}var yt=true,rt=false,K=0,G=1,Q=2,ot=3;function lt(mt,Tt){return o?mt.source===Tt.source&&mt.flags===Tt.flags:RegExp.prototype.toString.call(mt)===RegExp.prototype.toString.call(Tt)}function st(mt,Tt){if(mt.byteLength!==Tt.byteLength)return false;for(var Ft=0;Ft<mt.byteLength;Ft++)if(mt[Ft]!==Tt[Ft])return false;return true}function ht(mt,Tt){return mt.byteLength!==Tt.byteLength?false:jt(new Uint8Array(mt.buffer,mt.byteOffset,mt.byteLength),new Uint8Array(Tt.buffer,Tt.byteOffset,Tt.byteLength))===0}function xt(mt,Tt){return mt.byteLength===Tt.byteLength&&jt(new Uint8Array(mt),new Uint8Array(Tt))===0}function it(mt,Tt){return L(mt)?L(Tt)&&n(Number.prototype.valueOf.call(mt),Number.prototype.valueOf.call(Tt)):j(mt)?j(Tt)&&String.prototype.valueOf.call(mt)===String.prototype.valueOf.call(Tt):k(mt)?k(Tt)&&Boolean.prototype.valueOf.call(mt)===Boolean.prototype.valueOf.call(Tt):J(mt)?J(Tt)&&BigInt.prototype.valueOf.call(mt)===BigInt.prototype.valueOf.call(Tt):ut(Tt)&&Symbol.prototype.valueOf.call(mt)===Symbol.prototype.valueOf.call(Tt)}function vt(mt,Tt,Ft,Mt){if(mt===Tt)return mt!==0?true:Ft?n(mt,Tt):true;if(Ft){if(s(mt)!=="object")return typeof mt=="number"&&a(mt)&&a(Tt);if(s(Tt)!=="object"||mt===null||Tt===null||Object.getPrototypeOf(mt)!==Object.getPrototypeOf(Tt))return false}else {if(mt===null||s(mt)!=="object")return Tt===null||s(Tt)!=="object"?mt==Tt:false;if(Tt===null||s(Tt)!=="object")return false}var Ut=v(mt),Xt=v(Tt);if(Ut!==Xt)return false;if(Array.isArray(mt)){if(mt.length!==Tt.length)return false;var qt=dt(mt),se=dt(Tt);return qt.length!==se.length?false:tt(mt,Tt,Ft,Mt,G,qt)}if(Ut==="[object Object]"&&(!A(mt)&&A(Tt)||!F(mt)&&F(Tt)))return false;if(U(mt)){if(!U(Tt)||Date.prototype.getTime.call(mt)!==Date.prototype.getTime.call(Tt))return false}else if(w(mt)){if(!w(Tt)||!lt(mt,Tt))return false}else if(M(mt)||mt instanceof Error){if(mt.message!==Tt.message||mt.name!==Tt.name)return false}else if(b(mt)){if(!Ft&&(ft(mt)||At(mt))){if(!st(mt,Tt))return false}else if(!ht(mt,Tt))return false;var ee=dt(mt),Rt=dt(Tt);return ee.length!==Rt.length?false:tt(mt,Tt,Ft,Mt,K,ee)}else {if(F(mt))return !F(Tt)||mt.size!==Tt.size?false:tt(mt,Tt,Ft,Mt,Q);if(A(mt))return !A(Tt)||mt.size!==Tt.size?false:tt(mt,Tt,Ft,Mt,ot);if(N(mt)){if(!xt(mt,Tt))return false}else if(W(mt)&&!it(mt,Tt))return false}return tt(mt,Tt,Ft,Mt,K)}function Z(mt,Tt){return Tt.filter(function(Ft){return y(mt,Ft)})}function tt(mt,Tt,Ft,Mt,Ut,Xt){if(arguments.length===5){Xt=Object.keys(mt);var qt=Object.keys(Tt);if(Xt.length!==qt.length)return false}for(var se=0;se<Xt.length;se++)if(!t(Tt,Xt[se]))return false;if(Ft&&arguments.length===5){var ee=c(mt);if(ee.length!==0){var Rt=0;for(se=0;se<ee.length;se++){var Kt=ee[se];if(y(mt,Kt)){if(!y(Tt,Kt))return false;Xt.push(Kt),Rt++;}else if(y(Tt,Kt))return false}var zt=c(Tt);if(ee.length!==zt.length&&Z(Tt,zt).length!==Rt)return false}else {var Yt=c(Tt);if(Yt.length!==0&&Z(Tt,Yt).length!==0)return false}}if(Xt.length===0&&(Ut===K||Ut===G&&mt.length===0||mt.size===0))return true;if(Mt===void 0)Mt={val1:new Map,val2:new Map,position:0};else {var ae=Mt.val1.get(mt);if(ae!==void 0){var Oe=Mt.val2.get(Tt);if(Oe!==void 0)return ae===Oe}Mt.position++;}Mt.val1.set(mt,Mt.position),Mt.val2.set(Tt,Mt.position);var me=Ht(mt,Tt,Ft,Xt,Mt,Ut);return Mt.val1.delete(mt),Mt.val2.delete(Tt),me}function q(mt,Tt,Ft,Mt){for(var Ut=r(mt),Xt=0;Xt<Ut.length;Xt++){var qt=Ut[Xt];if(vt(Tt,qt,Ft,Mt))return mt.delete(qt),true}return false}function Y(mt){switch(s(mt)){case "undefined":return null;case "object":return;case "symbol":return false;case "string":mt=+mt;case "number":if(a(mt))return false}return true}function et(mt,Tt,Ft){var Mt=Y(Ft);return Mt??(Tt.has(Mt)&&!mt.has(Mt))}function X(mt,Tt,Ft,Mt,Ut){var Xt=Y(Ft);if(Xt!=null)return Xt;var qt=Tt.get(Xt);return qt===void 0&&!Tt.has(Xt)||!vt(Mt,qt,false,Ut)?false:!mt.has(Xt)&&vt(Mt,qt,false,Ut)}function Ct(mt,Tt,Ft,Mt){for(var Ut=null,Xt=r(mt),qt=0;qt<Xt.length;qt++){var se=Xt[qt];if(s(se)==="object"&&se!==null)Ut===null&&(Ut=new Set),Ut.add(se);else if(!Tt.has(se)){if(Ft||!et(mt,Tt,se))return false;Ut===null&&(Ut=new Set),Ut.add(se);}}if(Ut!==null){for(var ee=r(Tt),Rt=0;Rt<ee.length;Rt++){var Kt=ee[Rt];if(s(Kt)==="object"&&Kt!==null){if(!q(Ut,Kt,Ft,Mt))return false}else if(!Ft&&!mt.has(Kt)&&!q(Ut,Kt,Ft,Mt))return false}return Ut.size===0}return true}function pt(mt,Tt,Ft,Mt,Ut,Xt){for(var qt=r(mt),se=0;se<qt.length;se++){var ee=qt[se];if(vt(Ft,ee,Ut,Xt)&&vt(Mt,Tt.get(ee),Ut,Xt))return mt.delete(ee),true}return false}function Bt(mt,Tt,Ft,Mt){for(var Ut=null,Xt=x(mt),qt=0;qt<Xt.length;qt++){var se=d(Xt[qt],2),ee=se[0],Rt=se[1];if(s(ee)==="object"&&ee!==null)Ut===null&&(Ut=new Set),Ut.add(ee);else {var Kt=Tt.get(ee);if(Kt===void 0&&!Tt.has(ee)||!vt(Rt,Kt,Ft,Mt)){if(Ft||!X(mt,Tt,ee,Rt,Mt))return false;Ut===null&&(Ut=new Set),Ut.add(ee);}}}if(Ut!==null){for(var zt=x(Tt),Yt=0;Yt<zt.length;Yt++){var ae=d(zt[Yt],2),Oe=ae[0],me=ae[1];if(s(Oe)==="object"&&Oe!==null){if(!pt(Ut,mt,Oe,me,Ft,Mt))return false}else if(!Ft&&(!mt.has(Oe)||!vt(mt.get(Oe),me,false,Mt))&&!pt(Ut,mt,Oe,me,false,Mt))return false}return Ut.size===0}return true}function Ht(mt,Tt,Ft,Mt,Ut,Xt){var qt=0;if(Xt===Q){if(!Ct(mt,Tt,Ft,Ut))return false}else if(Xt===ot){if(!Bt(mt,Tt,Ft,Ut))return false}else if(Xt===G)for(;qt<mt.length;qt++)if(t(mt,qt)){if(!t(Tt,qt)||!vt(mt[qt],Tt[qt],Ft,Ut))return false}else {if(t(Tt,qt))return false;for(var se=Object.keys(mt);qt<se.length;qt++){var ee=se[qt];if(!t(Tt,ee)||!vt(mt[ee],Tt[ee],Ft,Ut))return false}return se.length===Object.keys(Tt).length}for(qt=0;qt<Mt.length;qt++){var Rt=Mt[qt];if(!vt(mt[Rt],Tt[Rt],Ft,Ut))return false}return true}function $t(mt,Tt){return vt(mt,Tt,rt)}function Wt(mt,Tt){return vt(mt,Tt,yt)}D.exports={isDeepEqual:$t,isDeepStrictEqual:Wt};}),"./node_modules/available-typed-arrays/index.js":((D,l,f)=>{var d=f("./node_modules/possible-typed-array-names/index.js"),m=typeof globalThis>"u"?f.g:globalThis;D.exports=function(){for(var O=[],T=0;T<d.length;T++)typeof m[d[T]]=="function"&&(O[O.length]=d[T]);return O};}),"./node_modules/call-bind-apply-helpers/actualApply.js":((D,l,f)=>{var d=f("./node_modules/function-bind/index.js"),m=f("./node_modules/call-bind-apply-helpers/functionApply.js"),g=f("./node_modules/call-bind-apply-helpers/functionCall.js"),O=f("./node_modules/call-bind-apply-helpers/reflectApply.js");D.exports=O||d.call(g,m);}),"./node_modules/call-bind-apply-helpers/applyBind.js":((D,l,f)=>{var d=f("./node_modules/function-bind/index.js"),m=f("./node_modules/call-bind-apply-helpers/functionApply.js"),g=f("./node_modules/call-bind-apply-helpers/actualApply.js");D.exports=function(){return g(d,m,arguments)};}),"./node_modules/call-bind-apply-helpers/functionApply.js":(D=>{D.exports=Function.prototype.apply;}),"./node_modules/call-bind-apply-helpers/functionCall.js":(D=>{D.exports=Function.prototype.call;}),"./node_modules/call-bind-apply-helpers/index.js":((D,l,f)=>{var d=f("./node_modules/function-bind/index.js"),m=f("./node_modules/es-errors/type.js"),g=f("./node_modules/call-bind-apply-helpers/functionCall.js"),O=f("./node_modules/call-bind-apply-helpers/actualApply.js");D.exports=function(h){if(h.length<1||typeof h[0]!="function")throw new m("a function is required");return O(d,g,h)};}),"./node_modules/call-bind-apply-helpers/reflectApply.js":(D=>{D.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply;}),"./node_modules/call-bind/callBound.js":((D,l,f)=>{var d=f("./node_modules/get-intrinsic/index.js"),m=f("./node_modules/call-bind/index.js"),g=m(d("String.prototype.indexOf"));D.exports=function(T,h){var s=d(T,!!h);return typeof s=="function"&&g(T,".prototype.")>-1?m(s):s};}),"./node_modules/call-bind/index.js":((D,l,f)=>{var d=f("./node_modules/set-function-length/index.js"),m=f("./node_modules/es-define-property/index.js"),g=f("./node_modules/call-bind-apply-helpers/index.js"),O=f("./node_modules/call-bind-apply-helpers/applyBind.js");D.exports=function(h){var s=g(arguments),o=h.length-(arguments.length-1);return d(s,1+(o>0?o:0),true)},m?m(D.exports,"apply",{value:O}):D.exports.apply=O;}),"./node_modules/call-bound/index.js":((D,l,f)=>{var d=f("./node_modules/get-intrinsic/index.js"),m=f("./node_modules/call-bind-apply-helpers/index.js"),g=m([d("%String.prototype.indexOf%")]);D.exports=function(T,h){var s=d(T,!!h);return typeof s=="function"&&g(T,".prototype.")>-1?m([s]):s};}),"./node_modules/define-data-property/index.js":((D,l,f)=>{var d=f("./node_modules/es-define-property/index.js"),m=f("./node_modules/es-errors/syntax.js"),g=f("./node_modules/es-errors/type.js"),O=f("./node_modules/gopd/index.js");D.exports=function(h,s,o){if(!h||typeof h!="object"&&typeof h!="function")throw new g("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new g("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new g("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new g("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new g("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new g("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,x=arguments.length>4?arguments[4]:null,n=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:false,a=!!O&&O(h,s);if(d)d(h,s,{configurable:n===null&&a?a.configurable:!n,enumerable:r===null&&a?a.enumerable:!r,value:o,writable:x===null&&a?a.writable:!x});else if(c||!r&&!x&&!n)h[s]=o;else throw new m("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")};}),"./node_modules/define-properties/index.js":((D,l,f)=>{var d=f("./node_modules/object-keys/index.js"),m=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",g=Object.prototype.toString,O=Array.prototype.concat,T=f("./node_modules/define-data-property/index.js"),h=function(x){return typeof x=="function"&&g.call(x)==="[object Function]"},s=f("./node_modules/has-property-descriptors/index.js")(),o=function(x,n,c,a){if(n in x){if(a===true){if(x[n]===c)return}else if(!h(a)||!a())return}s?T(x,n,c,true):T(x,n,c);},r=function(x,n){var c=arguments.length>2?arguments[2]:{},a=d(n);m&&(a=O.call(a,Object.getOwnPropertySymbols(n)));for(var p=0;p<a.length;p+=1)o(x,a[p],n[a[p]],c[a[p]]);};r.supportsDescriptors=!!s,D.exports=r;}),"./node_modules/dunder-proto/get.js":((D,l,f)=>{var d=f("./node_modules/call-bind-apply-helpers/index.js"),m=f("./node_modules/gopd/index.js"),g;try{g=[].__proto__===Array.prototype;}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var O=!!g&&m&&m(Object.prototype,"__proto__"),T=Object,h=T.getPrototypeOf;D.exports=O&&typeof O.get=="function"?d([O.get]):typeof h=="function"?function(o){return h(o==null?o:T(o))}:false;}),"./node_modules/es-define-property/index.js":(D=>{var l=Object.defineProperty||false;if(l)try{l({},"a",{value:1});}catch{l=false;}D.exports=l;}),"./node_modules/es-errors/eval.js":(D=>{D.exports=EvalError;}),"./node_modules/es-errors/index.js":(D=>{D.exports=Error;}),"./node_modules/es-errors/range.js":(D=>{D.exports=RangeError;}),"./node_modules/es-errors/ref.js":(D=>{D.exports=ReferenceError;}),"./node_modules/es-errors/syntax.js":(D=>{D.exports=SyntaxError;}),"./node_modules/es-errors/type.js":(D=>{D.exports=TypeError;}),"./node_modules/es-errors/uri.js":(D=>{D.exports=URIError;}),"./node_modules/es-object-atoms/index.js":(D=>{D.exports=Object;}),"./node_modules/for-each/index.js":((D,l,f)=>{var d=f("./node_modules/is-callable/index.js"),m=Object.prototype.toString,g=Object.prototype.hasOwnProperty,O=function(r,x,n){for(var c=0,a=r.length;c<a;c++)g.call(r,c)&&(n==null?x(r[c],c,r):x.call(n,r[c],c,r));},T=function(r,x,n){for(var c=0,a=r.length;c<a;c++)n==null?x(r.charAt(c),c,r):x.call(n,r.charAt(c),c,r);},h=function(r,x,n){for(var c in r)g.call(r,c)&&(n==null?x(r[c],c,r):x.call(n,r[c],c,r));};function s(o){return m.call(o)==="[object Array]"}D.exports=function(r,x,n){if(!d(x))throw new TypeError("iterator must be a function");var c;arguments.length>=3&&(c=n),s(r)?O(r,x,c):typeof r=="string"?T(r,x,c):h(r,x,c);};}),"./node_modules/function-bind/implementation.js":(D=>{var l="Function.prototype.bind called on incompatible ",f=Object.prototype.toString,d=Math.max,m="[object Function]",g=function(s,o){for(var r=[],x=0;x<s.length;x+=1)r[x]=s[x];for(var n=0;n<o.length;n+=1)r[n+s.length]=o[n];return r},O=function(s,o){for(var r=[],x=o,n=0;x<s.length;x+=1,n+=1)r[n]=s[x];return r},T=function(h,s){for(var o="",r=0;r<h.length;r+=1)o+=h[r],r+1<h.length&&(o+=s);return o};D.exports=function(s){var o=this;if(typeof o!="function"||f.apply(o)!==m)throw new TypeError(l+o);for(var r=O(arguments,1),x,n=function(){if(this instanceof x){var y=o.apply(this,g(r,arguments));return Object(y)===y?y:this}return o.apply(s,g(r,arguments))},c=d(0,o.length-r.length),a=[],p=0;p<c;p++)a[p]="$"+p;if(x=Function("binder","return function ("+T(a,",")+"){ return binder.apply(this,arguments); }")(n),o.prototype){var t=function(){};t.prototype=o.prototype,x.prototype=new t,t.prototype=null;}return x};}),"./node_modules/function-bind/index.js":((D,l,f)=>{var d=f("./node_modules/function-bind/implementation.js");D.exports=Function.prototype.bind||d;}),"./node_modules/get-intrinsic/index.js":((D,l,f)=>{var d,m=f("./node_modules/es-object-atoms/index.js"),g=f("./node_modules/es-errors/index.js"),O=f("./node_modules/es-errors/eval.js"),T=f("./node_modules/es-errors/range.js"),h=f("./node_modules/es-errors/ref.js"),s=f("./node_modules/es-errors/syntax.js"),o=f("./node_modules/es-errors/type.js"),r=f("./node_modules/es-errors/uri.js"),x=f("./node_modules/math-intrinsics/abs.js"),n=f("./node_modules/math-intrinsics/floor.js"),c=f("./node_modules/math-intrinsics/max.js"),a=f("./node_modules/math-intrinsics/min.js"),p=f("./node_modules/math-intrinsics/pow.js"),t=f("./node_modules/math-intrinsics/round.js"),y=f("./node_modules/math-intrinsics/sign.js"),v=Function,S=function(ht){try{return v('"use strict"; return ('+ht+").constructor;")()}catch{}},N=f("./node_modules/gopd/index.js"),b=f("./node_modules/es-define-property/index.js"),U=function(){throw new o},A=N?(function(){try{return arguments.callee,U}catch{try{return N(arguments,"callee").get}catch{return U}}})():U,w=f("./node_modules/has-symbols/index.js")(),F=f("./node_modules/get-proto/index.js"),M=f("./node_modules/get-proto/Object.getPrototypeOf.js"),W=f("./node_modules/get-proto/Reflect.getPrototypeOf.js"),L=f("./node_modules/call-bind-apply-helpers/functionApply.js"),j=f("./node_modules/call-bind-apply-helpers/functionCall.js"),k={},J=typeof Uint8Array>"u"||!F?d:F(Uint8Array),ut={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?d:ArrayBuffer,"%ArrayIteratorPrototype%":w&&F?F([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":typeof Atomics>"u"?d:Atomics,"%BigInt%":typeof BigInt>"u"?d:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?d:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?d:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":g,"%eval%":eval,"%EvalError%":O,"%Float16Array%":typeof Float16Array>"u"?d:Float16Array,"%Float32Array%":typeof Float32Array>"u"?d:Float32Array,"%Float64Array%":typeof Float64Array>"u"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?d:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":k,"%Int8Array%":typeof Int8Array>"u"?d:Int8Array,"%Int16Array%":typeof Int16Array>"u"?d:Int16Array,"%Int32Array%":typeof Int32Array>"u"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&F?F(F([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map>"u"?d:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!F?d:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":m,"%Object.getOwnPropertyDescriptor%":N,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?d:Promise,"%Proxy%":typeof Proxy>"u"?d:Proxy,"%RangeError%":T,"%ReferenceError%":h,"%Reflect%":typeof Reflect>"u"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?d:Set,"%SetIteratorPrototype%":typeof Set>"u"||!w||!F?d:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&F?F(""[Symbol.iterator]()):d,"%Symbol%":w?Symbol:d,"%SyntaxError%":s,"%ThrowTypeError%":A,"%TypedArray%":J,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?d:Uint32Array,"%URIError%":r,"%WeakMap%":typeof WeakMap>"u"?d:WeakMap,"%WeakRef%":typeof WeakRef>"u"?d:WeakRef,"%WeakSet%":typeof WeakSet>"u"?d:WeakSet,"%Function.prototype.call%":j,"%Function.prototype.apply%":L,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":M,"%Math.abs%":x,"%Math.floor%":n,"%Math.max%":c,"%Math.min%":a,"%Math.pow%":p,"%Math.round%":t,"%Math.sign%":y,"%Reflect.getPrototypeOf%":W};if(F)try{null.error;}catch(ht){var ft=F(F(ht));ut["%Error.prototype%"]=ft;}var At=function ht(xt){var it;if(xt==="%AsyncFunction%")it=S("async function () {}");else if(xt==="%GeneratorFunction%")it=S("function* () {}");else if(xt==="%AsyncGeneratorFunction%")it=S("async function* () {}");else if(xt==="%AsyncGenerator%"){var vt=ht("%AsyncGeneratorFunction%");vt&&(it=vt.prototype);}else if(xt==="%AsyncIteratorPrototype%"){var Z=ht("%AsyncGenerator%");Z&&F&&(it=F(Z.prototype));}return ut[xt]=it,it},Dt={__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"]},dt=f("./node_modules/function-bind/index.js"),jt=f("./node_modules/hasown/index.js"),_t=dt.call(j,Array.prototype.concat),yt=dt.call(L,Array.prototype.splice),rt=dt.call(j,String.prototype.replace),K=dt.call(j,String.prototype.slice),G=dt.call(j,RegExp.prototype.exec),Q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ot=/\\(\\)?/g,lt=function(xt){var it=K(xt,0,1),vt=K(xt,-1);if(it==="%"&&vt!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(vt==="%"&&it!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var Z=[];return rt(xt,Q,function(tt,q,Y,et){Z[Z.length]=Y?rt(et,ot,"$1"):q||tt;}),Z},st=function(xt,it){var vt=xt,Z;if(jt(Dt,vt)&&(Z=Dt[vt],vt="%"+Z[0]+"%"),jt(ut,vt)){var tt=ut[vt];if(tt===k&&(tt=At(vt)),typeof tt>"u"&&!it)throw new o("intrinsic "+xt+" exists, but is not available. Please file an issue!");return {alias:Z,name:vt,value:tt}}throw new s("intrinsic "+xt+" does not exist!")};D.exports=function(xt,it){if(typeof xt!="string"||xt.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof it!="boolean")throw new o('"allowMissing" argument must be a boolean');if(G(/^%?[^%]*%?$/,xt)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var vt=lt(xt),Z=vt.length>0?vt[0]:"",tt=st("%"+Z+"%",it),q=tt.name,Y=tt.value,et=false,X=tt.alias;X&&(Z=X[0],yt(vt,_t([0,1],X)));for(var Ct=1,pt=true;Ct<vt.length;Ct+=1){var Bt=vt[Ct],Ht=K(Bt,0,1),$t=K(Bt,-1);if((Ht==='"'||Ht==="'"||Ht==="`"||$t==='"'||$t==="'"||$t==="`")&&Ht!==$t)throw new s("property names with quotes must have matching quotes");if((Bt==="constructor"||!pt)&&(et=true),Z+="."+Bt,q="%"+Z+"%",jt(ut,q))Y=ut[q];else if(Y!=null){if(!(Bt in Y)){if(!it)throw new o("base intrinsic for "+xt+" exists, but the property is not available.");return}if(N&&Ct+1>=vt.length){var Wt=N(Y,Bt);pt=!!Wt,pt&&"get"in Wt&&!("originalValue"in Wt.get)?Y=Wt.get:Y=Y[Bt];}else pt=jt(Y,Bt),Y=Y[Bt];pt&&!et&&(ut[q]=Y);}}return Y};}),"./node_modules/get-proto/Object.getPrototypeOf.js":((D,l,f)=>{var d=f("./node_modules/es-object-atoms/index.js");D.exports=d.getPrototypeOf||null;}),"./node_modules/get-proto/Reflect.getPrototypeOf.js":(D=>{D.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null;}),"./node_modules/get-proto/index.js":((D,l,f)=>{var d=f("./node_modules/get-proto/Reflect.getPrototypeOf.js"),m=f("./node_modules/get-proto/Object.getPrototypeOf.js"),g=f("./node_modules/dunder-proto/get.js");D.exports=d?function(T){return d(T)}:m?function(T){if(!T||typeof T!="object"&&typeof T!="function")throw new TypeError("getProto: not an object");return m(T)}:g?function(T){return g(T)}:null;}),"./node_modules/gopd/gOPD.js":(D=>{D.exports=Object.getOwnPropertyDescriptor;}),"./node_modules/gopd/index.js":((D,l,f)=>{var d=f("./node_modules/gopd/gOPD.js");if(d)try{d([],"length");}catch{d=null;}D.exports=d;}),"./node_modules/has-property-descriptors/index.js":((D,l,f)=>{var d=f("./node_modules/es-define-property/index.js"),m=function(){return !!d};m.hasArrayLengthDefineBug=function(){if(!d)return null;try{return d([],"length",{value:1}).length!==1}catch{return true}},D.exports=m;}),"./node_modules/has-symbols/index.js":((D,l,f)=>{var d=typeof Symbol<"u"&&Symbol,m=f("./node_modules/has-symbols/shams.js");D.exports=function(){return typeof d!="function"||typeof Symbol!="function"||typeof d("foo")!="symbol"||typeof Symbol("bar")!="symbol"?false:m()};}),"./node_modules/has-symbols/shams.js":(D=>{D.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return false;if(typeof Symbol.iterator=="symbol")return true;var f={},d=Symbol("test"),m=Object(d);if(typeof d=="string"||Object.prototype.toString.call(d)!=="[object Symbol]"||Object.prototype.toString.call(m)!=="[object Symbol]")return false;var g=42;f[d]=g;for(var O in f)return false;if(typeof Object.keys=="function"&&Object.keys(f).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(f).length!==0)return false;var T=Object.getOwnPropertySymbols(f);if(T.length!==1||T[0]!==d||!Object.prototype.propertyIsEnumerable.call(f,d))return false;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(f,d);if(h.value!==g||h.enumerable!==true)return false}return true};}),"./node_modules/has-tostringtag/shams.js":((D,l,f)=>{var d=f("./node_modules/has-symbols/shams.js");D.exports=function(){return d()&&!!Symbol.toStringTag};}),"./node_modules/hasown/index.js":((D,l,f)=>{var d=Function.prototype.call,m=Object.prototype.hasOwnProperty,g=f("./node_modules/function-bind/index.js");D.exports=g.call(d,m);}),"./node_modules/inherits/inherits_browser.js":(D=>{typeof Object.create=="function"?D.exports=function(f,d){d&&(f.super_=d,f.prototype=Object.create(d.prototype,{constructor:{value:f,enumerable:false,writable:true,configurable:true}}));}:D.exports=function(f,d){if(d){f.super_=d;var m=function(){};m.prototype=d.prototype,f.prototype=new m,f.prototype.constructor=f;}};}),"./node_modules/is-arguments/index.js":((D,l,f)=>{var d=f("./node_modules/has-tostringtag/shams.js")(),m=f("./node_modules/call-bound/index.js"),g=m("Object.prototype.toString"),O=function(o){return d&&o&&typeof o=="object"&&Symbol.toStringTag in o?false:g(o)==="[object Arguments]"},T=function(o){return O(o)?true:o!==null&&typeof o=="object"&&"length"in o&&typeof o.length=="number"&&o.length>=0&&g(o)!=="[object Array]"&&"callee"in o&&g(o.callee)==="[object Function]"},h=(function(){return O(arguments)})();O.isLegacyArguments=T,D.exports=h?O:T;}),"./node_modules/is-callable/index.js":(D=>{var l=Function.prototype.toString,f=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,d,m;if(typeof f=="function"&&typeof Object.defineProperty=="function")try{d=Object.defineProperty({},"length",{get:function(){throw m}}),m={},f(function(){throw 42},null,d);}catch(v){v!==m&&(f=null);}else f=null;var g=/^\s*class\b/,O=function(S){try{var N=l.call(S);return g.test(N)}catch{return false}},T=function(S){try{return O(S)?!1:(l.call(S),!0)}catch{return false}},h=Object.prototype.toString,s="[object Object]",o="[object Function]",r="[object GeneratorFunction]",x="[object HTMLAllCollection]",n="[object HTML document.all class]",c="[object HTMLCollection]",a=typeof Symbol=="function"&&!!Symbol.toStringTag,p=!(0 in[,]),t=function(){return false};if(typeof document=="object"){var y=document.all;h.call(y)===h.call(document.all)&&(t=function(S){if((p||!S)&&(typeof S>"u"||typeof S=="object"))try{var N=h.call(S);return (N===x||N===n||N===c||N===s)&&S("")==null}catch{}return false});}D.exports=f?function(S){if(t(S))return true;if(!S||typeof S!="function"&&typeof S!="object")return false;try{f(S,null,d);}catch(N){if(N!==m)return false}return !O(S)&&T(S)}:function(S){if(t(S))return true;if(!S||typeof S!="function"&&typeof S!="object")return false;if(a)return T(S);if(O(S))return false;var N=h.call(S);return N!==o&&N!==r&&!/^\[object HTML/.test(N)?false:T(S)};}),"./node_modules/is-generator-function/index.js":((D,l,f)=>{var d=f("./node_modules/call-bound/index.js"),m=f("./node_modules/safe-regex-test/index.js"),g=m(/^\s*(?:function)?\*/),O=f("./node_modules/has-tostringtag/shams.js")(),T=f("./node_modules/get-proto/index.js"),h=d("Object.prototype.toString"),s=d("Function.prototype.toString"),o=function(){if(!O)return false;try{return Function("return function*() {}")()}catch{}},r;D.exports=function(n){if(typeof n!="function")return false;if(g(s(n)))return true;if(!O){var c=h(n);return c==="[object GeneratorFunction]"}if(!T)return false;if(typeof r>"u"){var a=o();r=a?T(a):false;}return T(n)===r};}),"./node_modules/is-nan/implementation.js":(D=>{D.exports=function(f){return f!==f};}),"./node_modules/is-nan/index.js":((D,l,f)=>{var d=f("./node_modules/call-bind/index.js"),m=f("./node_modules/define-properties/index.js"),g=f("./node_modules/is-nan/implementation.js"),O=f("./node_modules/is-nan/polyfill.js"),T=f("./node_modules/is-nan/shim.js"),h=d(O(),Number);m(h,{getPolyfill:O,implementation:g,shim:T}),D.exports=h;}),"./node_modules/is-nan/polyfill.js":((D,l,f)=>{var d=f("./node_modules/is-nan/implementation.js");D.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:d};}),"./node_modules/is-nan/shim.js":((D,l,f)=>{var d=f("./node_modules/define-properties/index.js"),m=f("./node_modules/is-nan/polyfill.js");D.exports=function(){var O=m();return d(Number,{isNaN:O},{isNaN:function(){return Number.isNaN!==O}}),O};}),"./node_modules/is-regex/index.js":((D,l,f)=>{var d=f("./node_modules/call-bound/index.js"),m=f("./node_modules/has-tostringtag/shams.js")(),g=f("./node_modules/hasown/index.js"),O=f("./node_modules/gopd/index.js"),T;if(m){var h=d("RegExp.prototype.exec"),s={},o=function(){throw s},r={toString:o,valueOf:o};typeof Symbol.toPrimitive=="symbol"&&(r[Symbol.toPrimitive]=o),T=function(a){if(!a||typeof a!="object")return false;var p=O(a,"lastIndex"),t=p&&g(p,"value");if(!t)return false;try{h(a,r);}catch(y){return y===s}};}else {var x=d("Object.prototype.toString"),n="[object RegExp]";T=function(a){return !a||typeof a!="object"&&typeof a!="function"?false:x(a)===n};}D.exports=T;}),"./node_modules/is-typed-array/index.js":((D,l,f)=>{var d=f("./node_modules/which-typed-array/index.js");D.exports=function(g){return !!d(g)};}),"./node_modules/lodash/lodash.js":(function(D,l,f){D=f.nmd(D);var d;(function(){var m,g="4.17.21",O=200,T="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",s="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",r=500,x="__lodash_placeholder__",n=1,c=2,a=4,p=1,t=2,y=1,v=2,S=4,N=8,b=16,U=32,A=64,w=128,F=256,M=512,W=30,L="...",j=800,k=16,J=1,ut=2,ft=3,At=1/0,Dt=9007199254740991,dt=17976931348623157e292,jt=NaN,_t=4294967295,yt=_t-1,rt=_t>>>1,K=[["ary",w],["bind",y],["bindKey",v],["curry",N],["curryRight",b],["flip",M],["partial",U],["partialRight",A],["rearg",F]],G="[object Arguments]",Q="[object Array]",ot="[object AsyncFunction]",lt="[object Boolean]",st="[object Date]",ht="[object DOMException]",xt="[object Error]",it="[object Function]",vt="[object GeneratorFunction]",Z="[object Map]",tt="[object Number]",q="[object Null]",Y="[object Object]",et="[object Promise]",X="[object Proxy]",Ct="[object RegExp]",pt="[object Set]",Bt="[object String]",Ht="[object Symbol]",$t="[object Undefined]",Wt="[object WeakMap]",mt="[object WeakSet]",Tt="[object ArrayBuffer]",Ft="[object DataView]",Mt="[object Float32Array]",Ut="[object Float64Array]",Xt="[object Int8Array]",qt="[object Int16Array]",se="[object Int32Array]",ee="[object Uint8Array]",Rt="[object Uint8ClampedArray]",Kt="[object Uint16Array]",zt="[object Uint32Array]",Yt=/\b__p \+= '';/g,ae=/\b(__p \+=) '' \+/g,Oe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,De=/[&<>"']/g,$e=RegExp(me.source),Fn=RegExp(De.source),jn=/<%-([\s\S]+?)%>/g,Zn=/<%([\s\S]+?)%>/g,pr=/<%=([\s\S]+?)%>/g,Kn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gr=/^\w*$/,mr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tr=/[\\^$.*+?()[\]{}|]/g,Vr=RegExp(tr.source),Pn=/^\s+/,Er=/\s/,zr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Tr=/\{\n\/\* \[wrapped with (.+)\] \*/,_n=/,? & /,rn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,_r=/[()=,{}\[\]\/\s]/,yr=/\\(\\)?/g,Wr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yn=/\w*$/,Mn=/^[-+]0x[0-9a-f]+$/i,qr=/^0b[01]+$/i,kt=/^\[object .+?Constructor\]$/,i=/^0o[0-7]+$/i,R=/^(?:0|[1-9]\d*)$/,$=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gt=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,pe="\\ud800-\\udfff",St="\\u0300-\\u036f",te="\\ufe20-\\ufe2f",K1="\\u20d0-\\u20ff",ul=St+te+K1,ol="\\u2700-\\u27bf",ll="a-z\\xdf-\\xf6\\xf8-\\xff",P1="\\xac\\xb1\\xd7\\xf7",M1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",U1="\\u2000-\\u206f",k1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",al="A-Z\\xc0-\\xd6\\xd8-\\xde",xl="\\ufe0e\\ufe0f",cl=P1+M1+U1+k1,Qs="['\u2019]",H1="["+pe+"]",hl="["+cl+"]",Fi="["+ul+"]",fl="\\d+",G1="["+ol+"]",dl="["+ll+"]",pl="[^"+pe+cl+fl+ol+ll+al+"]",Xs="\\ud83c[\\udffb-\\udfff]",V1="(?:"+Fi+"|"+Xs+")",ml="[^"+pe+"]",Js="(?:\\ud83c[\\udde6-\\uddff]){2}",Zs="[\\ud800-\\udbff][\\udc00-\\udfff]",Or="["+al+"]",El="\\u200d",Tl="(?:"+dl+"|"+pl+")",z1="(?:"+Or+"|"+pl+")",_l="(?:"+Qs+"(?:d|ll|m|re|s|t|ve))?",yl="(?:"+Qs+"(?:D|LL|M|RE|S|T|VE))?",Ol=V1+"?",Al="["+xl+"]?",W1="(?:"+El+"(?:"+[ml,Js,Zs].join("|")+")"+Al+Ol+")*",q1="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gl=Al+Ol+W1,Y1="(?:"+[G1,Js,Zs].join("|")+")"+gl,Q1="(?:"+[ml+Fi+"?",Fi,Js,Zs,H1].join("|")+")",X1=RegExp(Qs,"g"),J1=RegExp(Fi,"g"),tu=RegExp(Xs+"(?="+Xs+")|"+Q1+gl,"g"),Z1=RegExp([Or+"?"+dl+"+"+_l+"(?="+[hl,Or,"$"].join("|")+")",z1+"+"+yl+"(?="+[hl,Or+Tl,"$"].join("|")+")",Or+"?"+Tl+"+"+_l,Or+"+"+yl,$1,q1,fl,Y1].join("|"),"g"),tm=RegExp("["+El+pe+ul+xl+"]"),em=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nm=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rm=-1,Ce={};Ce[Mt]=Ce[Ut]=Ce[Xt]=Ce[qt]=Ce[se]=Ce[ee]=Ce[Rt]=Ce[Kt]=Ce[zt]=true,Ce[G]=Ce[Q]=Ce[Tt]=Ce[lt]=Ce[Ft]=Ce[st]=Ce[xt]=Ce[it]=Ce[Z]=Ce[tt]=Ce[Y]=Ce[Ct]=Ce[pt]=Ce[Bt]=Ce[Wt]=false;var ge={};ge[G]=ge[Q]=ge[Tt]=ge[Ft]=ge[lt]=ge[st]=ge[Mt]=ge[Ut]=ge[Xt]=ge[qt]=ge[se]=ge[Z]=ge[tt]=ge[Y]=ge[Ct]=ge[pt]=ge[Bt]=ge[Ht]=ge[ee]=ge[Rt]=ge[Kt]=ge[zt]=true,ge[xt]=ge[it]=ge[Wt]=false;var im={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},sm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},um={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},om={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lm=parseFloat,am=parseInt,vl=typeof f.g=="object"&&f.g&&f.g.Object===Object&&f.g,xm=typeof self=="object"&&self&&self.Object===Object&&self,Ke=vl||xm||Function("return this")(),Cl=l&&!l.nodeType&&l,$r=Cl&&true&&D&&!D.nodeType&&D,Sl=$r&&$r.exports===Cl,eu=Sl&&vl.process,sn=(function(){try{var Et=$r&&$r.require&&$r.require("util").types;return Et||eu&&eu.binding&&eu.binding("util")}catch{}})(),Rl=sn&&sn.isArrayBuffer,Nl=sn&&sn.isDate,Dl=sn&&sn.isMap,bl=sn&&sn.isRegExp,Ll=sn&&sn.isSet,Il=sn&&sn.isTypedArray;function Ye(Et,bt,Nt){switch(Nt.length){case 0:return Et.call(bt);case 1:return Et.call(bt,Nt[0]);case 2:return Et.call(bt,Nt[0],Nt[1]);case 3:return Et.call(bt,Nt[0],Nt[1],Nt[2])}return Et.apply(bt,Nt)}function cm(Et,bt,Nt,Gt){for(var ne=-1,Te=Et==null?0:Et.length;++ne<Te;){var we=Et[ne];bt(Gt,we,Nt(we),Et);}return Gt}function un(Et,bt){for(var Nt=-1,Gt=Et==null?0:Et.length;++Nt<Gt&&bt(Et[Nt],Nt,Et)!==false;);return Et}function hm(Et,bt){for(var Nt=Et==null?0:Et.length;Nt--&&bt(Et[Nt],Nt,Et)!==false;);return Et}function wl(Et,bt){for(var Nt=-1,Gt=Et==null?0:Et.length;++Nt<Gt;)if(!bt(Et[Nt],Nt,Et))return false;return true}function Un(Et,bt){for(var Nt=-1,Gt=Et==null?0:Et.length,ne=0,Te=[];++Nt<Gt;){var we=Et[Nt];bt(we,Nt,Et)&&(Te[ne++]=we);}return Te}function ji(Et,bt){var Nt=Et==null?0:Et.length;return !!Nt&&Ar(Et,bt,0)>-1}function nu(Et,bt,Nt){for(var Gt=-1,ne=Et==null?0:Et.length;++Gt<ne;)if(Nt(bt,Et[Gt]))return true;return false}function Re(Et,bt){for(var Nt=-1,Gt=Et==null?0:Et.length,ne=Array(Gt);++Nt<Gt;)ne[Nt]=bt(Et[Nt],Nt,Et);return ne}function kn(Et,bt){for(var Nt=-1,Gt=bt.length,ne=Et.length;++Nt<Gt;)Et[ne+Nt]=bt[Nt];return Et}function ru(Et,bt,Nt,Gt){var ne=-1,Te=Et==null?0:Et.length;for(Gt&&Te&&(Nt=Et[++ne]);++ne<Te;)Nt=bt(Nt,Et[ne],ne,Et);return Nt}function fm(Et,bt,Nt,Gt){var ne=Et==null?0:Et.length;for(Gt&&ne&&(Nt=Et[--ne]);ne--;)Nt=bt(Nt,Et[ne],ne,Et);return Nt}function iu(Et,bt){for(var Nt=-1,Gt=Et==null?0:Et.length;++Nt<Gt;)if(bt(Et[Nt],Nt,Et))return true;return false}var dm=su("length");function pm(Et){return Et.split("")}function mm(Et){return Et.match(rn)||[]}function Bl(Et,bt,Nt){var Gt;return Nt(Et,function(ne,Te,we){if(bt(ne,Te,we))return Gt=Te,false}),Gt}function Ki(Et,bt,Nt,Gt){for(var ne=Et.length,Te=Nt+(Gt?1:-1);Gt?Te--:++Te<ne;)if(bt(Et[Te],Te,Et))return Te;return -1}function Ar(Et,bt,Nt){return bt===bt?Nm(Et,bt,Nt):Ki(Et,Fl,Nt)}function Em(Et,bt,Nt,Gt){for(var ne=Nt-1,Te=Et.length;++ne<Te;)if(Gt(Et[ne],bt))return ne;return -1}function Fl(Et){return Et!==Et}function jl(Et,bt){var Nt=Et==null?0:Et.length;return Nt?ou(Et,bt)/Nt:jt}function su(Et){return function(bt){return bt==null?m:bt[Et]}}function uu(Et){return function(bt){return Et==null?m:Et[bt]}}function Kl(Et,bt,Nt,Gt,ne){return ne(Et,function(Te,we,Ae){Nt=Gt?(Gt=false,Te):bt(Nt,Te,we,Ae);}),Nt}function Tm(Et,bt){var Nt=Et.length;for(Et.sort(bt);Nt--;)Et[Nt]=Et[Nt].value;return Et}function ou(Et,bt){for(var Nt,Gt=-1,ne=Et.length;++Gt<ne;){var Te=bt(Et[Gt]);Te!==m&&(Nt=Nt===m?Te:Nt+Te);}return Nt}function lu(Et,bt){for(var Nt=-1,Gt=Array(Et);++Nt<Et;)Gt[Nt]=bt(Nt);return Gt}function _m(Et,bt){return Re(bt,function(Nt){return [Nt,Et[Nt]]})}function Pl(Et){return Et&&Et.slice(0,Hl(Et)+1).replace(Pn,"")}function Qe(Et){return function(bt){return Et(bt)}}function au(Et,bt){return Re(bt,function(Nt){return Et[Nt]})}function Yr(Et,bt){return Et.has(bt)}function Ml(Et,bt){for(var Nt=-1,Gt=Et.length;++Nt<Gt&&Ar(bt,Et[Nt],0)>-1;);return Nt}function Ul(Et,bt){for(var Nt=Et.length;Nt--&&Ar(bt,Et[Nt],0)>-1;);return Nt}function ym(Et,bt){for(var Nt=Et.length,Gt=0;Nt--;)Et[Nt]===bt&&++Gt;return Gt}var Om=uu(im),Am=uu(sm);function gm(Et){return "\\"+om[Et]}function vm(Et,bt){return Et==null?m:Et[bt]}function gr(Et){return tm.test(Et)}function Cm(Et){return em.test(Et)}function Sm(Et){for(var bt,Nt=[];!(bt=Et.next()).done;)Nt.push(bt.value);return Nt}function xu(Et){var bt=-1,Nt=Array(Et.size);return Et.forEach(function(Gt,ne){Nt[++bt]=[ne,Gt];}),Nt}function kl(Et,bt){return function(Nt){return Et(bt(Nt))}}function Hn(Et,bt){for(var Nt=-1,Gt=Et.length,ne=0,Te=[];++Nt<Gt;){var we=Et[Nt];(we===bt||we===x)&&(Et[Nt]=x,Te[ne++]=Nt);}return Te}function Pi(Et){var bt=-1,Nt=Array(Et.size);return Et.forEach(function(Gt){Nt[++bt]=Gt;}),Nt}function Rm(Et){var bt=-1,Nt=Array(Et.size);return Et.forEach(function(Gt){Nt[++bt]=[Gt,Gt];}),Nt}function Nm(Et,bt,Nt){for(var Gt=Nt-1,ne=Et.length;++Gt<ne;)if(Et[Gt]===bt)return Gt;return -1}function Dm(Et,bt,Nt){for(var Gt=Nt+1;Gt--;)if(Et[Gt]===bt)return Gt;return Gt}function vr(Et){return gr(Et)?Lm(Et):dm(Et)}function dn(Et){return gr(Et)?Im(Et):pm(Et)}function Hl(Et){for(var bt=Et.length;bt--&&Er.test(Et.charAt(bt)););return bt}var bm=uu(um);function Lm(Et){for(var bt=tu.lastIndex=0;tu.test(Et);)++bt;return bt}function Im(Et){return Et.match(tu)||[]}function wm(Et){return Et.match(Z1)||[]}var Bm=(function Et(bt){bt=bt==null?Ke:Mi.defaults(Ke.Object(),bt,Mi.pick(Ke,nm));var Nt=bt.Array,Gt=bt.Date,ne=bt.Error,Te=bt.Function,we=bt.Math,Ae=bt.Object,cu=bt.RegExp,Fm=bt.String,on=bt.TypeError,Ui=Nt.prototype,jm=Te.prototype,Cr=Ae.prototype,ki=bt["__core-js_shared__"],Hi=jm.toString,ye=Cr.hasOwnProperty,Km=0,Gl=(function(){var e=/[^.]+$/.exec(ki&&ki.keys&&ki.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Gi=Cr.toString,Pm=Hi.call(Ae),Mm=Ke._,Um=cu("^"+Hi.call(ye).replace(tr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vi=Sl?bt.Buffer:m,Gn=bt.Symbol,zi=bt.Uint8Array,Vl=Vi?Vi.allocUnsafe:m,Wi=kl(Ae.getPrototypeOf,Ae),zl=Ae.create,Wl=Cr.propertyIsEnumerable,qi=Ui.splice,ql=Gn?Gn.isConcatSpreadable:m,Qr=Gn?Gn.iterator:m,er=Gn?Gn.toStringTag:m,$i=(function(){try{var e=ur(Ae,"defineProperty");return e({},"",{}),e}catch{}})(),km=bt.clearTimeout!==Ke.clearTimeout&&bt.clearTimeout,Hm=Gt&&Gt.now!==Ke.Date.now&&Gt.now,Gm=bt.setTimeout!==Ke.setTimeout&&bt.setTimeout,Yi=we.ceil,Qi=we.floor,hu=Ae.getOwnPropertySymbols,Vm=Vi?Vi.isBuffer:m,$l=bt.isFinite,zm=Ui.join,Wm=kl(Ae.keys,Ae),Be=we.max,Me=we.min,qm=Gt.now,$m=bt.parseInt,Yl=we.random,Ym=Ui.reverse,fu=ur(bt,"DataView"),Xr=ur(bt,"Map"),du=ur(bt,"Promise"),Sr=ur(bt,"Set"),Jr=ur(bt,"WeakMap"),Zr=ur(Ae,"create"),Xi=Jr&&new Jr,Rr={},Qm=or(fu),Xm=or(Xr),Jm=or(du),Zm=or(Sr),tE=or(Jr),Ji=Gn?Gn.prototype:m,ti=Ji?Ji.valueOf:m,Ql=Ji?Ji.toString:m;function V(e){if(be(e)&&!ie(e)&&!(e instanceof fe)){if(e instanceof ln)return e;if(ye.call(e,"__wrapped__"))return Xa(e)}return new ln(e)}var Nr=(function(){function e(){}return function(u){if(!Ne(u))return {};if(zl)return zl(u);e.prototype=u;var _=new e;return e.prototype=m,_}})();function Zi(){}function ln(e,u){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=m;}V.templateSettings={escape:jn,evaluate:Zn,interpolate:pr,variable:"",imports:{_:V}},V.prototype=Zi.prototype,V.prototype.constructor=V,ln.prototype=Nr(Zi.prototype),ln.prototype.constructor=ln;function fe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=false,this.__iteratees__=[],this.__takeCount__=_t,this.__views__=[];}function eE(){var e=new fe(this.__wrapped__);return e.__actions__=Ve(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ve(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ve(this.__views__),e}function nE(){if(this.__filtered__){var e=new fe(this);e.__dir__=-1,e.__filtered__=true;}else e=this.clone(),e.__dir__*=-1;return e}function rE(){var e=this.__wrapped__.value(),u=this.__dir__,_=ie(e),I=u<0,P=_?e.length:0,z=pT(0,P,this.__views__),nt=z.start,ct=z.end,Ot=ct-nt,Lt=I?ct:nt-1,It=this.__iteratees__,wt=It.length,Pt=0,Vt=Me(Ot,this.__takeCount__);if(!_||!I&&P==Ot&&Vt==Ot)return ya(e,this.__actions__);var Jt=[];t:for(;Ot--&&Pt<Vt;){Lt+=u;for(var le=-1,Zt=e[Lt];++le<wt;){var he=It[le],de=he.iteratee,Ze=he.type,Ge=de(Zt);if(Ze==ut)Zt=Ge;else if(!Ge){if(Ze==J)continue t;break t}}Jt[Pt++]=Zt;}return Jt}fe.prototype=Nr(Zi.prototype),fe.prototype.constructor=fe;function nr(e){var u=-1,_=e==null?0:e.length;for(this.clear();++u<_;){var I=e[u];this.set(I[0],I[1]);}}function iE(){this.__data__=Zr?Zr(null):{},this.size=0;}function sE(e){var u=this.has(e)&&delete this.__data__[e];return this.size-=u?1:0,u}function uE(e){var u=this.__data__;if(Zr){var _=u[e];return _===o?m:_}return ye.call(u,e)?u[e]:m}function oE(e){var u=this.__data__;return Zr?u[e]!==m:ye.call(u,e)}function lE(e,u){var _=this.__data__;return this.size+=this.has(e)?0:1,_[e]=Zr&&u===m?o:u,this}nr.prototype.clear=iE,nr.prototype.delete=sE,nr.prototype.get=uE,nr.prototype.has=oE,nr.prototype.set=lE;function Sn(e){var u=-1,_=e==null?0:e.length;for(this.clear();++u<_;){var I=e[u];this.set(I[0],I[1]);}}function aE(){this.__data__=[],this.size=0;}function xE(e){var u=this.__data__,_=ts(u,e);if(_<0)return false;var I=u.length-1;return _==I?u.pop():qi.call(u,_,1),--this.size,true}function cE(e){var u=this.__data__,_=ts(u,e);return _<0?m:u[_][1]}function hE(e){return ts(this.__data__,e)>-1}function fE(e,u){var _=this.__data__,I=ts(_,e);return I<0?(++this.size,_.push([e,u])):_[I][1]=u,this}Sn.prototype.clear=aE,Sn.prototype.delete=xE,Sn.prototype.get=cE,Sn.prototype.has=hE,Sn.prototype.set=fE;function Rn(e){var u=-1,_=e==null?0:e.length;for(this.clear();++u<_;){var I=e[u];this.set(I[0],I[1]);}}function dE(){this.size=0,this.__data__={hash:new nr,map:new(Xr||Sn),string:new nr};}function pE(e){var u=hs(this,e).delete(e);return this.size-=u?1:0,u}function mE(e){return hs(this,e).get(e)}function EE(e){return hs(this,e).has(e)}function TE(e,u){var _=hs(this,e),I=_.size;return _.set(e,u),this.size+=_.size==I?0:1,this}Rn.prototype.clear=dE,Rn.prototype.delete=pE,Rn.prototype.get=mE,Rn.prototype.has=EE,Rn.prototype.set=TE;function rr(e){var u=-1,_=e==null?0:e.length;for(this.__data__=new Rn;++u<_;)this.add(e[u]);}function _E(e){return this.__data__.set(e,o),this}function yE(e){return this.__data__.has(e)}rr.prototype.add=rr.prototype.push=_E,rr.prototype.has=yE;function pn(e){var u=this.__data__=new Sn(e);this.size=u.size;}function OE(){this.__data__=new Sn,this.size=0;}function AE(e){var u=this.__data__,_=u.delete(e);return this.size=u.size,_}function gE(e){return this.__data__.get(e)}function vE(e){return this.__data__.has(e)}function CE(e,u){var _=this.__data__;if(_ instanceof Sn){var I=_.__data__;if(!Xr||I.length<O-1)return I.push([e,u]),this.size=++_.size,this;_=this.__data__=new Rn(I);}return _.set(e,u),this.size=_.size,this}pn.prototype.clear=OE,pn.prototype.delete=AE,pn.prototype.get=gE,pn.prototype.has=vE,pn.prototype.set=CE;function Xl(e,u){var _=ie(e),I=!_&&lr(e),P=!_&&!I&&$n(e),z=!_&&!I&&!P&&Ir(e),nt=_||I||P||z,ct=nt?lu(e.length,Fm):[],Ot=ct.length;for(var Lt in e)(u||ye.call(e,Lt))&&!(nt&&(Lt=="length"||P&&(Lt=="offset"||Lt=="parent")||z&&(Lt=="buffer"||Lt=="byteLength"||Lt=="byteOffset")||Ln(Lt,Ot)))&&ct.push(Lt);return ct}function Jl(e){var u=e.length;return u?e[Cu(0,u-1)]:m}function SE(e,u){return fs(Ve(e),ir(u,0,e.length))}function RE(e){return fs(Ve(e))}function pu(e,u,_){(_!==m&&!mn(e[u],_)||_===m&&!(u in e))&&Nn(e,u,_);}function ei(e,u,_){var I=e[u];(!(ye.call(e,u)&&mn(I,_))||_===m&&!(u in e))&&Nn(e,u,_);}function ts(e,u){for(var _=e.length;_--;)if(mn(e[_][0],u))return _;return -1}function NE(e,u,_,I){return Vn(e,function(P,z,nt){u(I,P,_(P),nt);}),I}function Zl(e,u){return e&&An(u,je(u),e)}function DE(e,u){return e&&An(u,We(u),e)}function Nn(e,u,_){u=="__proto__"&&$i?$i(e,u,{configurable:true,enumerable:true,value:_,writable:true}):e[u]=_;}function mu(e,u){for(var _=-1,I=u.length,P=Nt(I),z=e==null;++_<I;)P[_]=z?m:Qu(e,u[_]);return P}function ir(e,u,_){return e===e&&(_!==m&&(e=e<=_?e:_),u!==m&&(e=e>=u?e:u)),e}function an(e,u,_,I,P,z){var nt,ct=u&n,Ot=u&c,Lt=u&a;if(_&&(nt=P?_(e,I,P,z):_(e)),nt!==m)return nt;if(!Ne(e))return e;var It=ie(e);if(It){if(nt=ET(e),!ct)return Ve(e,nt)}else {var wt=Ue(e),Pt=wt==it||wt==vt;if($n(e))return ga(e,ct);if(wt==Y||wt==G||Pt&&!P){if(nt=Ot||Pt?{}:Ha(e),!ct)return Ot?uT(e,DE(nt,e)):sT(e,Zl(nt,e))}else {if(!ge[wt])return P?e:{};nt=TT(e,wt,ct);}}z||(z=new pn);var Vt=z.get(e);if(Vt)return Vt;z.set(e,nt),E0(e)?e.forEach(function(Zt){nt.add(an(Zt,u,_,Zt,e,z));}):p0(e)&&e.forEach(function(Zt,he){nt.set(he,an(Zt,u,_,he,e,z));});var Jt=Lt?Ot?ju:Fu:Ot?We:je,le=It?m:Jt(e);return un(le||e,function(Zt,he){le&&(he=Zt,Zt=e[he]),ei(nt,he,an(Zt,u,_,he,e,z));}),nt}function bE(e){var u=je(e);return function(_){return ta(_,e,u)}}function ta(e,u,_){var I=_.length;if(e==null)return !I;for(e=Ae(e);I--;){var P=_[I],z=u[P],nt=e[P];if(nt===m&&!(P in e)||!z(nt))return false}return true}function ea(e,u,_){if(typeof e!="function")throw new on(h);return li(function(){e.apply(m,_);},u)}function ni(e,u,_,I){var P=-1,z=ji,nt=true,ct=e.length,Ot=[],Lt=u.length;if(!ct)return Ot;_&&(u=Re(u,Qe(_))),I?(z=nu,nt=false):u.length>=O&&(z=Yr,nt=false,u=new rr(u));t:for(;++P<ct;){var It=e[P],wt=_==null?It:_(It);if(It=I||It!==0?It:0,nt&&wt===wt){for(var Pt=Lt;Pt--;)if(u[Pt]===wt)continue t;Ot.push(It);}else z(u,wt,I)||Ot.push(It);}return Ot}var Vn=Na(On),na=Na(Tu,true);function LE(e,u){var _=true;return Vn(e,function(I,P,z){return _=!!u(I,P,z),_}),_}function es(e,u,_){for(var I=-1,P=e.length;++I<P;){var z=e[I],nt=u(z);if(nt!=null&&(ct===m?nt===nt&&!Je(nt):_(nt,ct)))var ct=nt,Ot=z;}return Ot}function IE(e,u,_,I){var P=e.length;for(_=oe(_),_<0&&(_=-_>P?0:P+_),I=I===m||I>P?P:oe(I),I<0&&(I+=P),I=_>I?0:_0(I);_<I;)e[_++]=u;return e}function ra(e,u){var _=[];return Vn(e,function(I,P,z){u(I,P,z)&&_.push(I);}),_}function Pe(e,u,_,I,P){var z=-1,nt=e.length;for(_||(_=yT),P||(P=[]);++z<nt;){var ct=e[z];u>0&&_(ct)?u>1?Pe(ct,u-1,_,I,P):kn(P,ct):I||(P[P.length]=ct);}return P}var Eu=Da(),ia=Da(true);function On(e,u){return e&&Eu(e,u,je)}function Tu(e,u){return e&&ia(e,u,je)}function ns(e,u){return Un(u,function(_){return In(e[_])})}function sr(e,u){u=Wn(u,e);for(var _=0,I=u.length;e!=null&&_<I;)e=e[gn(u[_++])];return _&&_==I?e:m}function sa(e,u,_){var I=u(e);return ie(e)?I:kn(I,_(e))}function ke(e){return e==null?e===m?$t:q:er&&er in Ae(e)?dT(e):RT(e)}function _u(e,u){return e>u}function wE(e,u){return e!=null&&ye.call(e,u)}function BE(e,u){return e!=null&&u in Ae(e)}function FE(e,u,_){return e>=Me(u,_)&&e<Be(u,_)}function yu(e,u,_){for(var I=_?nu:ji,P=e[0].length,z=e.length,nt=z,ct=Nt(z),Ot=1/0,Lt=[];nt--;){var It=e[nt];nt&&u&&(It=Re(It,Qe(u))),Ot=Me(It.length,Ot),ct[nt]=!_&&(u||P>=120&&It.length>=120)?new rr(nt&&It):m;}It=e[0];var wt=-1,Pt=ct[0];t:for(;++wt<P&&Lt.length<Ot;){var Vt=It[wt],Jt=u?u(Vt):Vt;if(Vt=_||Vt!==0?Vt:0,!(Pt?Yr(Pt,Jt):I(Lt,Jt,_))){for(nt=z;--nt;){var le=ct[nt];if(!(le?Yr(le,Jt):I(e[nt],Jt,_)))continue t}Pt&&Pt.push(Jt),Lt.push(Vt);}}return Lt}function jE(e,u,_,I){return On(e,function(P,z,nt){u(I,_(P),z,nt);}),I}function ri(e,u,_){u=Wn(u,e),e=Wa(e,u);var I=e==null?e:e[gn(cn(u))];return I==null?m:Ye(I,e,_)}function ua(e){return be(e)&&ke(e)==G}function KE(e){return be(e)&&ke(e)==Tt}function PE(e){return be(e)&&ke(e)==st}function ii(e,u,_,I,P){return e===u?true:e==null||u==null||!be(e)&&!be(u)?e!==e&&u!==u:ME(e,u,_,I,ii,P)}function ME(e,u,_,I,P,z){var nt=ie(e),ct=ie(u),Ot=nt?Q:Ue(e),Lt=ct?Q:Ue(u);Ot=Ot==G?Y:Ot,Lt=Lt==G?Y:Lt;var It=Ot==Y,wt=Lt==Y,Pt=Ot==Lt;if(Pt&&$n(e)){if(!$n(u))return false;nt=true,It=false;}if(Pt&&!It)return z||(z=new pn),nt||Ir(e)?Ma(e,u,_,I,P,z):hT(e,u,Ot,_,I,P,z);if(!(_&p)){var Vt=It&&ye.call(e,"__wrapped__"),Jt=wt&&ye.call(u,"__wrapped__");if(Vt||Jt){var le=Vt?e.value():e,Zt=Jt?u.value():u;return z||(z=new pn),P(le,Zt,_,I,z)}}return Pt?(z||(z=new pn),fT(e,u,_,I,P,z)):false}function UE(e){return be(e)&&Ue(e)==Z}function Ou(e,u,_,I){var P=_.length,z=P,nt=!I;if(e==null)return !z;for(e=Ae(e);P--;){var ct=_[P];if(nt&&ct[2]?ct[1]!==e[ct[0]]:!(ct[0]in e))return false}for(;++P<z;){ct=_[P];var Ot=ct[0],Lt=e[Ot],It=ct[1];if(nt&&ct[2]){if(Lt===m&&!(Ot in e))return false}else {var wt=new pn;if(I)var Pt=I(Lt,It,Ot,e,u,wt);if(!(Pt===m?ii(It,Lt,p|t,I,wt):Pt))return false}}return true}function oa(e){if(!Ne(e)||AT(e))return false;var u=In(e)?Um:kt;return u.test(or(e))}function kE(e){return be(e)&&ke(e)==Ct}function HE(e){return be(e)&&Ue(e)==pt}function GE(e){return be(e)&&_s(e.length)&&!!Ce[ke(e)]}function la(e){return typeof e=="function"?e:e==null?qe:typeof e=="object"?ie(e)?ca(e[0],e[1]):xa(e):b0(e)}function Au(e){if(!oi(e))return Wm(e);var u=[];for(var _ in Ae(e))ye.call(e,_)&&_!="constructor"&&u.push(_);return u}function VE(e){if(!Ne(e))return ST(e);var u=oi(e),_=[];for(var I in e)I=="constructor"&&(u||!ye.call(e,I))||_.push(I);return _}function gu(e,u){return e<u}function aa(e,u){var _=-1,I=ze(e)?Nt(e.length):[];return Vn(e,function(P,z,nt){I[++_]=u(P,z,nt);}),I}function xa(e){var u=Pu(e);return u.length==1&&u[0][2]?Va(u[0][0],u[0][1]):function(_){return _===e||Ou(_,e,u)}}function ca(e,u){return Uu(e)&&Ga(u)?Va(gn(e),u):function(_){var I=Qu(_,e);return I===m&&I===u?Xu(_,e):ii(u,I,p|t)}}function rs(e,u,_,I,P){e!==u&&Eu(u,function(z,nt){if(P||(P=new pn),Ne(z))zE(e,u,nt,_,rs,I,P);else {var ct=I?I(Hu(e,nt),z,nt+"",e,u,P):m;ct===m&&(ct=z),pu(e,nt,ct);}},We);}function zE(e,u,_,I,P,z,nt){var ct=Hu(e,_),Ot=Hu(u,_),Lt=nt.get(Ot);if(Lt){pu(e,_,Lt);return}var It=z?z(ct,Ot,_+"",e,u,nt):m,wt=It===m;if(wt){var Pt=ie(Ot),Vt=!Pt&&$n(Ot),Jt=!Pt&&!Vt&&Ir(Ot);It=Ot,Pt||Vt||Jt?ie(ct)?It=ct:Le(ct)?It=Ve(ct):Vt?(wt=false,It=ga(Ot,true)):Jt?(wt=false,It=va(Ot,true)):It=[]:ai(Ot)||lr(Ot)?(It=ct,lr(ct)?It=y0(ct):(!Ne(ct)||In(ct))&&(It=Ha(Ot))):wt=false;}wt&&(nt.set(Ot,It),P(It,Ot,I,z,nt),nt.delete(Ot)),pu(e,_,It);}function ha(e,u){var _=e.length;if(_)return u+=u<0?_:0,Ln(u,_)?e[u]:m}function fa(e,u,_){u.length?u=Re(u,function(z){return ie(z)?function(nt){return sr(nt,z.length===1?z[0]:z)}:z}):u=[qe];var I=-1;u=Re(u,Qe(Qt()));var P=aa(e,function(z,nt,ct){var Ot=Re(u,function(Lt){return Lt(z)});return {criteria:Ot,index:++I,value:z}});return Tm(P,function(z,nt){return iT(z,nt,_)})}function WE(e,u){return da(e,u,function(_,I){return Xu(e,I)})}function da(e,u,_){for(var I=-1,P=u.length,z={};++I<P;){var nt=u[I],ct=sr(e,nt);_(ct,nt)&&si(z,Wn(nt,e),ct);}return z}function qE(e){return function(u){return sr(u,e)}}function vu(e,u,_,I){var P=I?Em:Ar,z=-1,nt=u.length,ct=e;for(e===u&&(u=Ve(u)),_&&(ct=Re(e,Qe(_)));++z<nt;)for(var Ot=0,Lt=u[z],It=_?_(Lt):Lt;(Ot=P(ct,It,Ot,I))>-1;)ct!==e&&qi.call(ct,Ot,1),qi.call(e,Ot,1);return e}function pa(e,u){for(var _=e?u.length:0,I=_-1;_--;){var P=u[_];if(_==I||P!==z){var z=P;Ln(P)?qi.call(e,P,1):Nu(e,P);}}return e}function Cu(e,u){return e+Qi(Yl()*(u-e+1))}function $E(e,u,_,I){for(var P=-1,z=Be(Yi((u-e)/(_||1)),0),nt=Nt(z);z--;)nt[I?z:++P]=e,e+=_;return nt}function Su(e,u){var _="";if(!e||u<1||u>Dt)return _;do u%2&&(_+=e),u=Qi(u/2),u&&(e+=e);while(u);return _}function xe(e,u){return Gu(za(e,u,qe),e+"")}function YE(e){return Jl(wr(e))}function QE(e,u){var _=wr(e);return fs(_,ir(u,0,_.length))}function si(e,u,_,I){if(!Ne(e))return e;u=Wn(u,e);for(var P=-1,z=u.length,nt=z-1,ct=e;ct!=null&&++P<z;){var Ot=gn(u[P]),Lt=_;if(Ot==="__proto__"||Ot==="constructor"||Ot==="prototype")return e;if(P!=nt){var It=ct[Ot];Lt=I?I(It,Ot,ct):m,Lt===m&&(Lt=Ne(It)?It:Ln(u[P+1])?[]:{});}ei(ct,Ot,Lt),ct=ct[Ot];}return e}var ma=Xi?function(e,u){return Xi.set(e,u),e}:qe,XE=$i?function(e,u){return $i(e,"toString",{configurable:true,enumerable:false,value:Zu(u),writable:true})}:qe;function JE(e){return fs(wr(e))}function xn(e,u,_){var I=-1,P=e.length;u<0&&(u=-u>P?0:P+u),_=_>P?P:_,_<0&&(_+=P),P=u>_?0:_-u>>>0,u>>>=0;for(var z=Nt(P);++I<P;)z[I]=e[I+u];return z}function ZE(e,u){var _;return Vn(e,function(I,P,z){return _=u(I,P,z),!_}),!!_}function is(e,u,_){var I=0,P=e==null?I:e.length;if(typeof u=="number"&&u===u&&P<=rt){for(;I<P;){var z=I+P>>>1,nt=e[z];nt!==null&&!Je(nt)&&(_?nt<=u:nt<u)?I=z+1:P=z;}return P}return Ru(e,u,qe,_)}function Ru(e,u,_,I){var P=0,z=e==null?0:e.length;if(z===0)return 0;u=_(u);for(var nt=u!==u,ct=u===null,Ot=Je(u),Lt=u===m;P<z;){var It=Qi((P+z)/2),wt=_(e[It]),Pt=wt!==m,Vt=wt===null,Jt=wt===wt,le=Je(wt);if(nt)var Zt=I||Jt;else Lt?Zt=Jt&&(I||Pt):ct?Zt=Jt&&Pt&&(I||!Vt):Ot?Zt=Jt&&Pt&&!Vt&&(I||!le):Vt||le?Zt=false:Zt=I?wt<=u:wt<u;Zt?P=It+1:z=It;}return Me(z,yt)}function Ea(e,u){for(var _=-1,I=e.length,P=0,z=[];++_<I;){var nt=e[_],ct=u?u(nt):nt;if(!_||!mn(ct,Ot)){var Ot=ct;z[P++]=nt===0?0:nt;}}return z}function Ta(e){return typeof e=="number"?e:Je(e)?jt:+e}function Xe(e){if(typeof e=="string")return e;if(ie(e))return Re(e,Xe)+"";if(Je(e))return Ql?Ql.call(e):"";var u=e+"";return u=="0"&&1/e==-At?"-0":u}function zn(e,u,_){var I=-1,P=ji,z=e.length,nt=true,ct=[],Ot=ct;if(_)nt=false,P=nu;else if(z>=O){var Lt=u?null:xT(e);if(Lt)return Pi(Lt);nt=false,P=Yr,Ot=new rr;}else Ot=u?[]:ct;t:for(;++I<z;){var It=e[I],wt=u?u(It):It;if(It=_||It!==0?It:0,nt&&wt===wt){for(var Pt=Ot.length;Pt--;)if(Ot[Pt]===wt)continue t;u&&Ot.push(wt),ct.push(It);}else P(Ot,wt,_)||(Ot!==ct&&Ot.push(wt),ct.push(It));}return ct}function Nu(e,u){return u=Wn(u,e),e=Wa(e,u),e==null||delete e[gn(cn(u))]}function _a(e,u,_,I){return si(e,u,_(sr(e,u)),I)}function ss(e,u,_,I){for(var P=e.length,z=I?P:-1;(I?z--:++z<P)&&u(e[z],z,e););return _?xn(e,I?0:z,I?z+1:P):xn(e,I?z+1:0,I?P:z)}function ya(e,u){var _=e;return _ instanceof fe&&(_=_.value()),ru(u,function(I,P){return P.func.apply(P.thisArg,kn([I],P.args))},_)}function Du(e,u,_){var I=e.length;if(I<2)return I?zn(e[0]):[];for(var P=-1,z=Nt(I);++P<I;)for(var nt=e[P],ct=-1;++ct<I;)ct!=P&&(z[P]=ni(z[P]||nt,e[ct],u,_));return zn(Pe(z,1),u,_)}function Oa(e,u,_){for(var I=-1,P=e.length,z=u.length,nt={};++I<P;){var ct=I<z?u[I]:m;_(nt,e[I],ct);}return nt}function bu(e){return Le(e)?e:[]}function Lu(e){return typeof e=="function"?e:qe}function Wn(e,u){return ie(e)?e:Uu(e,u)?[e]:Qa(_e(e))}var tT=xe;function qn(e,u,_){var I=e.length;return _=_===m?I:_,!u&&_>=I?e:xn(e,u,_)}var Aa=km||function(e){return Ke.clearTimeout(e)};function ga(e,u){if(u)return e.slice();var _=e.length,I=Vl?Vl(_):new e.constructor(_);return e.copy(I),I}function Iu(e){var u=new e.constructor(e.byteLength);return new zi(u).set(new zi(e)),u}function eT(e,u){var _=u?Iu(e.buffer):e.buffer;return new e.constructor(_,e.byteOffset,e.byteLength)}function nT(e){var u=new e.constructor(e.source,yn.exec(e));return u.lastIndex=e.lastIndex,u}function rT(e){return ti?Ae(ti.call(e)):{}}function va(e,u){var _=u?Iu(e.buffer):e.buffer;return new e.constructor(_,e.byteOffset,e.length)}function Ca(e,u){if(e!==u){var _=e!==m,I=e===null,P=e===e,z=Je(e),nt=u!==m,ct=u===null,Ot=u===u,Lt=Je(u);if(!ct&&!Lt&&!z&&e>u||z&&nt&&Ot&&!ct&&!Lt||I&&nt&&Ot||!_&&Ot||!P)return 1;if(!I&&!z&&!Lt&&e<u||Lt&&_&&P&&!I&&!z||ct&&_&&P||!nt&&P||!Ot)return -1}return 0}function iT(e,u,_){for(var I=-1,P=e.criteria,z=u.criteria,nt=P.length,ct=_.length;++I<nt;){var Ot=Ca(P[I],z[I]);if(Ot){if(I>=ct)return Ot;var Lt=_[I];return Ot*(Lt=="desc"?-1:1)}}return e.index-u.index}function Sa(e,u,_,I){for(var P=-1,z=e.length,nt=_.length,ct=-1,Ot=u.length,Lt=Be(z-nt,0),It=Nt(Ot+Lt),wt=!I;++ct<Ot;)It[ct]=u[ct];for(;++P<nt;)(wt||P<z)&&(It[_[P]]=e[P]);for(;Lt--;)It[ct++]=e[P++];return It}function Ra(e,u,_,I){for(var P=-1,z=e.length,nt=-1,ct=_.length,Ot=-1,Lt=u.length,It=Be(z-ct,0),wt=Nt(It+Lt),Pt=!I;++P<It;)wt[P]=e[P];for(var Vt=P;++Ot<Lt;)wt[Vt+Ot]=u[Ot];for(;++nt<ct;)(Pt||P<z)&&(wt[Vt+_[nt]]=e[P++]);return wt}function Ve(e,u){var _=-1,I=e.length;for(u||(u=Nt(I));++_<I;)u[_]=e[_];return u}function An(e,u,_,I){var P=!_;_||(_={});for(var z=-1,nt=u.length;++z<nt;){var ct=u[z],Ot=I?I(_[ct],e[ct],ct,_,e):m;Ot===m&&(Ot=e[ct]),P?Nn(_,ct,Ot):ei(_,ct,Ot);}return _}function sT(e,u){return An(e,Mu(e),u)}function uT(e,u){return An(e,Ua(e),u)}function us(e,u){return function(_,I){var P=ie(_)?cm:NE,z=u?u():{};return P(_,e,Qt(I,2),z)}}function Dr(e){return xe(function(u,_){var I=-1,P=_.length,z=P>1?_[P-1]:m,nt=P>2?_[2]:m;for(z=e.length>3&&typeof z=="function"?(P--,z):m,nt&&He(_[0],_[1],nt)&&(z=P<3?m:z,P=1),u=Ae(u);++I<P;){var ct=_[I];ct&&e(u,ct,I,z);}return u})}function Na(e,u){return function(_,I){if(_==null)return _;if(!ze(_))return e(_,I);for(var P=_.length,z=u?P:-1,nt=Ae(_);(u?z--:++z<P)&&I(nt[z],z,nt)!==false;);return _}}function Da(e){return function(u,_,I){for(var P=-1,z=Ae(u),nt=I(u),ct=nt.length;ct--;){var Ot=nt[e?ct:++P];if(_(z[Ot],Ot,z)===false)break}return u}}function oT(e,u,_){var I=u&y,P=ui(e);function z(){var nt=this&&this!==Ke&&this instanceof z?P:e;return nt.apply(I?_:this,arguments)}return z}function ba(e){return function(u){u=_e(u);var _=gr(u)?dn(u):m,I=_?_[0]:u.charAt(0),P=_?qn(_,1).join(""):u.slice(1);return I[e]()+P}}function br(e){return function(u){return ru(N0(R0(u).replace(X1,"")),e,"")}}function ui(e){return function(){var u=arguments;switch(u.length){case 0:return new e;case 1:return new e(u[0]);case 2:return new e(u[0],u[1]);case 3:return new e(u[0],u[1],u[2]);case 4:return new e(u[0],u[1],u[2],u[3]);case 5:return new e(u[0],u[1],u[2],u[3],u[4]);case 6:return new e(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new e(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var _=Nr(e.prototype),I=e.apply(_,u);return Ne(I)?I:_}}function lT(e,u,_){var I=ui(e);function P(){for(var z=arguments.length,nt=Nt(z),ct=z,Ot=Lr(P);ct--;)nt[ct]=arguments[ct];var Lt=z<3&&nt[0]!==Ot&&nt[z-1]!==Ot?[]:Hn(nt,Ot);if(z-=Lt.length,z<_)return Fa(e,u,os,P.placeholder,m,nt,Lt,m,m,_-z);var It=this&&this!==Ke&&this instanceof P?I:e;return Ye(It,this,nt)}return P}function La(e){return function(u,_,I){var P=Ae(u);if(!ze(u)){var z=Qt(_,3);u=je(u),_=function(ct){return z(P[ct],ct,P)};}var nt=e(u,_,I);return nt>-1?P[z?u[nt]:nt]:m}}function Ia(e){return bn(function(u){var _=u.length,I=_,P=ln.prototype.thru;for(e&&u.reverse();I--;){var z=u[I];if(typeof z!="function")throw new on(h);if(P&&!nt&&cs(z)=="wrapper")var nt=new ln([],true);}for(I=nt?I:_;++I<_;){z=u[I];var ct=cs(z),Ot=ct=="wrapper"?Ku(z):m;Ot&&ku(Ot[0])&&Ot[1]==(w|N|U|F)&&!Ot[4].length&&Ot[9]==1?nt=nt[cs(Ot[0])].apply(nt,Ot[3]):nt=z.length==1&&ku(z)?nt[ct]():nt.thru(z);}return function(){var Lt=arguments,It=Lt[0];if(nt&&Lt.length==1&&ie(It))return nt.plant(It).value();for(var wt=0,Pt=_?u[wt].apply(this,Lt):It;++wt<_;)Pt=u[wt].call(this,Pt);return Pt}})}function os(e,u,_,I,P,z,nt,ct,Ot,Lt){var It=u&w,wt=u&y,Pt=u&v,Vt=u&(N|b),Jt=u&M,le=Pt?m:ui(e);function Zt(){for(var he=arguments.length,de=Nt(he),Ze=he;Ze--;)de[Ze]=arguments[Ze];if(Vt)var Ge=Lr(Zt),tn=ym(de,Ge);if(I&&(de=Sa(de,I,P,Vt)),z&&(de=Ra(de,z,nt,Vt)),he-=tn,Vt&&he<Lt){var Ie=Hn(de,Ge);return Fa(e,u,os,Zt.placeholder,_,de,Ie,ct,Ot,Lt-he)}var En=wt?_:this,Bn=Pt?En[e]:e;return he=de.length,ct?de=NT(de,ct):Jt&&he>1&&de.reverse(),It&&Ot<he&&(de.length=Ot),this&&this!==Ke&&this instanceof Zt&&(Bn=le||ui(Bn)),Bn.apply(En,de)}return Zt}function wa(e,u){return function(_,I){return jE(_,e,u(I),{})}}function ls(e,u){return function(_,I){var P;if(_===m&&I===m)return u;if(_!==m&&(P=_),I!==m){if(P===m)return I;typeof _=="string"||typeof I=="string"?(_=Xe(_),I=Xe(I)):(_=Ta(_),I=Ta(I)),P=e(_,I);}return P}}function wu(e){return bn(function(u){return u=Re(u,Qe(Qt())),xe(function(_){var I=this;return e(u,function(P){return Ye(P,I,_)})})})}function as(e,u){u=u===m?" ":Xe(u);var _=u.length;if(_<2)return _?Su(u,e):u;var I=Su(u,Yi(e/vr(u)));return gr(u)?qn(dn(I),0,e).join(""):I.slice(0,e)}function aT(e,u,_,I){var P=u&y,z=ui(e);function nt(){for(var ct=-1,Ot=arguments.length,Lt=-1,It=I.length,wt=Nt(It+Ot),Pt=this&&this!==Ke&&this instanceof nt?z:e;++Lt<It;)wt[Lt]=I[Lt];for(;Ot--;)wt[Lt++]=arguments[++ct];return Ye(Pt,P?_:this,wt)}return nt}function Ba(e){return function(u,_,I){return I&&typeof I!="number"&&He(u,_,I)&&(_=I=m),u=wn(u),_===m?(_=u,u=0):_=wn(_),I=I===m?u<_?1:-1:wn(I),$E(u,_,I,e)}}function xs(e){return function(u,_){return typeof u=="string"&&typeof _=="string"||(u=hn(u),_=hn(_)),e(u,_)}}function Fa(e,u,_,I,P,z,nt,ct,Ot,Lt){var It=u&N,wt=It?nt:m,Pt=It?m:nt,Vt=It?z:m,Jt=It?m:z;u|=It?U:A,u&=~(It?A:U),u&S||(u&=-4);var le=[e,u,P,Vt,wt,Jt,Pt,ct,Ot,Lt],Zt=_.apply(m,le);return ku(e)&&qa(Zt,le),Zt.placeholder=I,$a(Zt,e,u)}function Bu(e){var u=we[e];return function(_,I){if(_=hn(_),I=I==null?0:Me(oe(I),292),I&&$l(_)){var P=(_e(_)+"e").split("e"),z=u(P[0]+"e"+(+P[1]+I));return P=(_e(z)+"e").split("e"),+(P[0]+"e"+(+P[1]-I))}return u(_)}}var xT=Sr&&1/Pi(new Sr([,-0]))[1]==At?function(e){return new Sr(e)}:no;function ja(e){return function(u){var _=Ue(u);return _==Z?xu(u):_==pt?Rm(u):_m(u,e(u))}}function Dn(e,u,_,I,P,z,nt,ct){var Ot=u&v;if(!Ot&&typeof e!="function")throw new on(h);var Lt=I?I.length:0;if(Lt||(u&=-97,I=P=m),nt=nt===m?nt:Be(oe(nt),0),ct=ct===m?ct:oe(ct),Lt-=P?P.length:0,u&A){var It=I,wt=P;I=P=m;}var Pt=Ot?m:Ku(e),Vt=[e,u,_,I,P,It,wt,z,nt,ct];if(Pt&&CT(Vt,Pt),e=Vt[0],u=Vt[1],_=Vt[2],I=Vt[3],P=Vt[4],ct=Vt[9]=Vt[9]===m?Ot?0:e.length:Be(Vt[9]-Lt,0),!ct&&u&(N|b)&&(u&=-25),!u||u==y)var Jt=oT(e,u,_);else u==N||u==b?Jt=lT(e,u,ct):(u==U||u==(y|U))&&!P.length?Jt=aT(e,u,_,I):Jt=os.apply(m,Vt);var le=Pt?ma:qa;return $a(le(Jt,Vt),e,u)}function Ka(e,u,_,I){return e===m||mn(e,Cr[_])&&!ye.call(I,_)?u:e}function Pa(e,u,_,I,P,z){return Ne(e)&&Ne(u)&&(z.set(u,e),rs(e,u,m,Pa,z),z.delete(u)),e}function cT(e){return ai(e)?m:e}function Ma(e,u,_,I,P,z){var nt=_&p,ct=e.length,Ot=u.length;if(ct!=Ot&&!(nt&&Ot>ct))return false;var Lt=z.get(e),It=z.get(u);if(Lt&&It)return Lt==u&&It==e;var wt=-1,Pt=true,Vt=_&t?new rr:m;for(z.set(e,u),z.set(u,e);++wt<ct;){var Jt=e[wt],le=u[wt];if(I)var Zt=nt?I(le,Jt,wt,u,e,z):I(Jt,le,wt,e,u,z);if(Zt!==m){if(Zt)continue;Pt=false;break}if(Vt){if(!iu(u,function(he,de){if(!Yr(Vt,de)&&(Jt===he||P(Jt,he,_,I,z)))return Vt.push(de)})){Pt=false;break}}else if(!(Jt===le||P(Jt,le,_,I,z))){Pt=false;break}}return z.delete(e),z.delete(u),Pt}function hT(e,u,_,I,P,z,nt){switch(_){case Ft:if(e.byteLength!=u.byteLength||e.byteOffset!=u.byteOffset)return false;e=e.buffer,u=u.buffer;case Tt:return !(e.byteLength!=u.byteLength||!z(new zi(e),new zi(u)));case lt:case st:case tt:return mn(+e,+u);case xt:return e.name==u.name&&e.message==u.message;case Ct:case Bt:return e==u+"";case Z:var ct=xu;case pt:var Ot=I&p;if(ct||(ct=Pi),e.size!=u.size&&!Ot)return false;var Lt=nt.get(e);if(Lt)return Lt==u;I|=t,nt.set(e,u);var It=Ma(ct(e),ct(u),I,P,z,nt);return nt.delete(e),It;case Ht:if(ti)return ti.call(e)==ti.call(u)}return false}function fT(e,u,_,I,P,z){var nt=_&p,ct=Fu(e),Ot=ct.length,Lt=Fu(u),It=Lt.length;if(Ot!=It&&!nt)return false;for(var wt=Ot;wt--;){var Pt=ct[wt];if(!(nt?Pt in u:ye.call(u,Pt)))return false}var Vt=z.get(e),Jt=z.get(u);if(Vt&&Jt)return Vt==u&&Jt==e;var le=true;z.set(e,u),z.set(u,e);for(var Zt=nt;++wt<Ot;){Pt=ct[wt];var he=e[Pt],de=u[Pt];if(I)var Ze=nt?I(de,he,Pt,u,e,z):I(he,de,Pt,e,u,z);if(!(Ze===m?he===de||P(he,de,_,I,z):Ze)){le=false;break}Zt||(Zt=Pt=="constructor");}if(le&&!Zt){var Ge=e.constructor,tn=u.constructor;Ge!=tn&&"constructor"in e&&"constructor"in u&&!(typeof Ge=="function"&&Ge instanceof Ge&&typeof tn=="function"&&tn instanceof tn)&&(le=false);}return z.delete(e),z.delete(u),le}function bn(e){return Gu(za(e,m,t0),e+"")}function Fu(e){return sa(e,je,Mu)}function ju(e){return sa(e,We,Ua)}var Ku=Xi?function(e){return Xi.get(e)}:no;function cs(e){for(var u=e.name+"",_=Rr[u],I=ye.call(Rr,u)?_.length:0;I--;){var P=_[I],z=P.func;if(z==null||z==e)return P.name}return u}function Lr(e){var u=ye.call(V,"placeholder")?V:e;return u.placeholder}function Qt(){var e=V.iteratee||to;return e=e===to?la:e,arguments.length?e(arguments[0],arguments[1]):e}function hs(e,u){var _=e.__data__;return OT(u)?_[typeof u=="string"?"string":"hash"]:_.map}function Pu(e){for(var u=je(e),_=u.length;_--;){var I=u[_],P=e[I];u[_]=[I,P,Ga(P)];}return u}function ur(e,u){var _=vm(e,u);return oa(_)?_:m}function dT(e){var u=ye.call(e,er),_=e[er];try{e[er]=m;var I=!0;}catch{}var P=Gi.call(e);return I&&(u?e[er]=_:delete e[er]),P}var Mu=hu?function(e){return e==null?[]:(e=Ae(e),Un(hu(e),function(u){return Wl.call(e,u)}))}:ro,Ua=hu?function(e){for(var u=[];e;)kn(u,Mu(e)),e=Wi(e);return u}:ro,Ue=ke;(fu&&Ue(new fu(new ArrayBuffer(1)))!=Ft||Xr&&Ue(new Xr)!=Z||du&&Ue(du.resolve())!=et||Sr&&Ue(new Sr)!=pt||Jr&&Ue(new Jr)!=Wt)&&(Ue=function(e){var u=ke(e),_=u==Y?e.constructor:m,I=_?or(_):"";if(I)switch(I){case Qm:return Ft;case Xm:return Z;case Jm:return et;case Zm:return pt;case tE:return Wt}return u});function pT(e,u,_){for(var I=-1,P=_.length;++I<P;){var z=_[I],nt=z.size;switch(z.type){case "drop":e+=nt;break;case "dropRight":u-=nt;break;case "take":u=Me(u,e+nt);break;case "takeRight":e=Be(e,u-nt);break}}return {start:e,end:u}}function mT(e){var u=e.match(Tr);return u?u[1].split(_n):[]}function ka(e,u,_){u=Wn(u,e);for(var I=-1,P=u.length,z=false;++I<P;){var nt=gn(u[I]);if(!(z=e!=null&&_(e,nt)))break;e=e[nt];}return z||++I!=P?z:(P=e==null?0:e.length,!!P&&_s(P)&&Ln(nt,P)&&(ie(e)||lr(e)))}function ET(e){var u=e.length,_=new e.constructor(u);return u&&typeof e[0]=="string"&&ye.call(e,"index")&&(_.index=e.index,_.input=e.input),_}function Ha(e){return typeof e.constructor=="function"&&!oi(e)?Nr(Wi(e)):{}}function TT(e,u,_){var I=e.constructor;switch(u){case Tt:return Iu(e);case lt:case st:return new I(+e);case Ft:return eT(e,_);case Mt:case Ut:case Xt:case qt:case se:case ee:case Rt:case Kt:case zt:return va(e,_);case Z:return new I;case tt:case Bt:return new I(e);case Ct:return nT(e);case pt:return new I;case Ht:return rT(e)}}function _T(e,u){var _=u.length;if(!_)return e;var I=_-1;return u[I]=(_>1?"& ":"")+u[I],u=u.join(_>2?", ":" "),e.replace(zr,`{
79
+ /* [wrapped with `+u+`] */
80
+ `)}function yT(e){return ie(e)||lr(e)||!!(ql&&e&&e[ql])}function Ln(e,u){var _=typeof e;return u=u??Dt,!!u&&(_=="number"||_!="symbol"&&R.test(e))&&e>-1&&e%1==0&&e<u}function He(e,u,_){if(!Ne(_))return false;var I=typeof u;return (I=="number"?ze(_)&&Ln(u,_.length):I=="string"&&u in _)?mn(_[u],e):false}function Uu(e,u){if(ie(e))return false;var _=typeof e;return _=="number"||_=="symbol"||_=="boolean"||e==null||Je(e)?true:Gr.test(e)||!Kn.test(e)||u!=null&&e in Ae(u)}function OT(e){var u=typeof e;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?e!=="__proto__":e===null}function ku(e){var u=cs(e),_=V[u];if(typeof _!="function"||!(u in fe.prototype))return false;if(e===_)return true;var I=Ku(_);return !!I&&e===I[0]}function AT(e){return !!Gl&&Gl in e}var gT=ki?In:io;function oi(e){var u=e&&e.constructor,_=typeof u=="function"&&u.prototype||Cr;return e===_}function Ga(e){return e===e&&!Ne(e)}function Va(e,u){return function(_){return _==null?false:_[e]===u&&(u!==m||e in Ae(_))}}function vT(e){var u=Es(e,function(I){return _.size===r&&_.clear(),I}),_=u.cache;return u}function CT(e,u){var _=e[1],I=u[1],P=_|I,z=P<(y|v|w),nt=I==w&&_==N||I==w&&_==F&&e[7].length<=u[8]||I==(w|F)&&u[7].length<=u[8]&&_==N;if(!(z||nt))return e;I&y&&(e[2]=u[2],P|=_&y?0:S);var ct=u[3];if(ct){var Ot=e[3];e[3]=Ot?Sa(Ot,ct,u[4]):ct,e[4]=Ot?Hn(e[3],x):u[4];}return ct=u[5],ct&&(Ot=e[5],e[5]=Ot?Ra(Ot,ct,u[6]):ct,e[6]=Ot?Hn(e[5],x):u[6]),ct=u[7],ct&&(e[7]=ct),I&w&&(e[8]=e[8]==null?u[8]:Me(e[8],u[8])),e[9]==null&&(e[9]=u[9]),e[0]=u[0],e[1]=P,e}function ST(e){var u=[];if(e!=null)for(var _ in Ae(e))u.push(_);return u}function RT(e){return Gi.call(e)}function za(e,u,_){return u=Be(u===m?e.length-1:u,0),function(){for(var I=arguments,P=-1,z=Be(I.length-u,0),nt=Nt(z);++P<z;)nt[P]=I[u+P];P=-1;for(var ct=Nt(u+1);++P<u;)ct[P]=I[P];return ct[u]=_(nt),Ye(e,this,ct)}}function Wa(e,u){return u.length<2?e:sr(e,xn(u,0,-1))}function NT(e,u){for(var _=e.length,I=Me(u.length,_),P=Ve(e);I--;){var z=u[I];e[I]=Ln(z,_)?P[z]:m;}return e}function Hu(e,u){if(!(u==="constructor"&&typeof e[u]=="function")&&u!="__proto__")return e[u]}var qa=Ya(ma),li=Gm||function(e,u){return Ke.setTimeout(e,u)},Gu=Ya(XE);function $a(e,u,_){var I=u+"";return Gu(e,_T(I,DT(mT(I),_)))}function Ya(e){var u=0,_=0;return function(){var I=qm(),P=k-(I-_);if(_=I,P>0){if(++u>=j)return arguments[0]}else u=0;return e.apply(m,arguments)}}function fs(e,u){var _=-1,I=e.length,P=I-1;for(u=u===m?I:u;++_<u;){var z=Cu(_,P),nt=e[z];e[z]=e[_],e[_]=nt;}return e.length=u,e}var Qa=vT(function(e){var u=[];return e.charCodeAt(0)===46&&u.push(""),e.replace(mr,function(_,I,P,z){u.push(P?z.replace(yr,"$1"):I||_);}),u});function gn(e){if(typeof e=="string"||Je(e))return e;var u=e+"";return u=="0"&&1/e==-At?"-0":u}function or(e){if(e!=null){try{return Hi.call(e)}catch{}try{return e+""}catch{}}return ""}function DT(e,u){return un(K,function(_){var I="_."+_[0];u&_[1]&&!ji(e,I)&&e.push(I);}),e.sort()}function Xa(e){if(e instanceof fe)return e.clone();var u=new ln(e.__wrapped__,e.__chain__);return u.__actions__=Ve(e.__actions__),u.__index__=e.__index__,u.__values__=e.__values__,u}function bT(e,u,_){(_?He(e,u,_):u===m)?u=1:u=Be(oe(u),0);var I=e==null?0:e.length;if(!I||u<1)return [];for(var P=0,z=0,nt=Nt(Yi(I/u));P<I;)nt[z++]=xn(e,P,P+=u);return nt}function LT(e){for(var u=-1,_=e==null?0:e.length,I=0,P=[];++u<_;){var z=e[u];z&&(P[I++]=z);}return P}function IT(){var e=arguments.length;if(!e)return [];for(var u=Nt(e-1),_=arguments[0],I=e;I--;)u[I-1]=arguments[I];return kn(ie(_)?Ve(_):[_],Pe(u,1))}var wT=xe(function(e,u){return Le(e)?ni(e,Pe(u,1,Le,true)):[]}),BT=xe(function(e,u){var _=cn(u);return Le(_)&&(_=m),Le(e)?ni(e,Pe(u,1,Le,true),Qt(_,2)):[]}),FT=xe(function(e,u){var _=cn(u);return Le(_)&&(_=m),Le(e)?ni(e,Pe(u,1,Le,true),m,_):[]});function jT(e,u,_){var I=e==null?0:e.length;return I?(u=_||u===m?1:oe(u),xn(e,u<0?0:u,I)):[]}function KT(e,u,_){var I=e==null?0:e.length;return I?(u=_||u===m?1:oe(u),u=I-u,xn(e,0,u<0?0:u)):[]}function PT(e,u){return e&&e.length?ss(e,Qt(u,3),true,true):[]}function MT(e,u){return e&&e.length?ss(e,Qt(u,3),true):[]}function UT(e,u,_,I){var P=e==null?0:e.length;return P?(_&&typeof _!="number"&&He(e,u,_)&&(_=0,I=P),IE(e,u,_,I)):[]}function Ja(e,u,_){var I=e==null?0:e.length;if(!I)return -1;var P=_==null?0:oe(_);return P<0&&(P=Be(I+P,0)),Ki(e,Qt(u,3),P)}function Za(e,u,_){var I=e==null?0:e.length;if(!I)return -1;var P=I-1;return _!==m&&(P=oe(_),P=_<0?Be(I+P,0):Me(P,I-1)),Ki(e,Qt(u,3),P,true)}function t0(e){var u=e==null?0:e.length;return u?Pe(e,1):[]}function kT(e){var u=e==null?0:e.length;return u?Pe(e,At):[]}function HT(e,u){var _=e==null?0:e.length;return _?(u=u===m?1:oe(u),Pe(e,u)):[]}function GT(e){for(var u=-1,_=e==null?0:e.length,I={};++u<_;){var P=e[u];I[P[0]]=P[1];}return I}function e0(e){return e&&e.length?e[0]:m}function VT(e,u,_){var I=e==null?0:e.length;if(!I)return -1;var P=_==null?0:oe(_);return P<0&&(P=Be(I+P,0)),Ar(e,u,P)}function zT(e){var u=e==null?0:e.length;return u?xn(e,0,-1):[]}var WT=xe(function(e){var u=Re(e,bu);return u.length&&u[0]===e[0]?yu(u):[]}),qT=xe(function(e){var u=cn(e),_=Re(e,bu);return u===cn(_)?u=m:_.pop(),_.length&&_[0]===e[0]?yu(_,Qt(u,2)):[]}),$T=xe(function(e){var u=cn(e),_=Re(e,bu);return u=typeof u=="function"?u:m,u&&_.pop(),_.length&&_[0]===e[0]?yu(_,m,u):[]});function YT(e,u){return e==null?"":zm.call(e,u)}function cn(e){var u=e==null?0:e.length;return u?e[u-1]:m}function QT(e,u,_){var I=e==null?0:e.length;if(!I)return -1;var P=I;return _!==m&&(P=oe(_),P=P<0?Be(I+P,0):Me(P,I-1)),u===u?Dm(e,u,P):Ki(e,Fl,P,true)}function XT(e,u){return e&&e.length?ha(e,oe(u)):m}var JT=xe(n0);function n0(e,u){return e&&e.length&&u&&u.length?vu(e,u):e}function ZT(e,u,_){return e&&e.length&&u&&u.length?vu(e,u,Qt(_,2)):e}function t3(e,u,_){return e&&e.length&&u&&u.length?vu(e,u,m,_):e}var e3=bn(function(e,u){var _=e==null?0:e.length,I=mu(e,u);return pa(e,Re(u,function(P){return Ln(P,_)?+P:P}).sort(Ca)),I});function n3(e,u){var _=[];if(!(e&&e.length))return _;var I=-1,P=[],z=e.length;for(u=Qt(u,3);++I<z;){var nt=e[I];u(nt,I,e)&&(_.push(nt),P.push(I));}return pa(e,P),_}function Vu(e){return e==null?e:Ym.call(e)}function r3(e,u,_){var I=e==null?0:e.length;return I?(_&&typeof _!="number"&&He(e,u,_)?(u=0,_=I):(u=u==null?0:oe(u),_=_===m?I:oe(_)),xn(e,u,_)):[]}function i3(e,u){return is(e,u)}function s3(e,u,_){return Ru(e,u,Qt(_,2))}function u3(e,u){var _=e==null?0:e.length;if(_){var I=is(e,u);if(I<_&&mn(e[I],u))return I}return -1}function o3(e,u){return is(e,u,true)}function l3(e,u,_){return Ru(e,u,Qt(_,2),true)}function a3(e,u){var _=e==null?0:e.length;if(_){var I=is(e,u,true)-1;if(mn(e[I],u))return I}return -1}function x3(e){return e&&e.length?Ea(e):[]}function c3(e,u){return e&&e.length?Ea(e,Qt(u,2)):[]}function h3(e){var u=e==null?0:e.length;return u?xn(e,1,u):[]}function f3(e,u,_){return e&&e.length?(u=_||u===m?1:oe(u),xn(e,0,u<0?0:u)):[]}function d3(e,u,_){var I=e==null?0:e.length;return I?(u=_||u===m?1:oe(u),u=I-u,xn(e,u<0?0:u,I)):[]}function p3(e,u){return e&&e.length?ss(e,Qt(u,3),false,true):[]}function m3(e,u){return e&&e.length?ss(e,Qt(u,3)):[]}var E3=xe(function(e){return zn(Pe(e,1,Le,true))}),T3=xe(function(e){var u=cn(e);return Le(u)&&(u=m),zn(Pe(e,1,Le,true),Qt(u,2))}),_3=xe(function(e){var u=cn(e);return u=typeof u=="function"?u:m,zn(Pe(e,1,Le,true),m,u)});function y3(e){return e&&e.length?zn(e):[]}function O3(e,u){return e&&e.length?zn(e,Qt(u,2)):[]}function A3(e,u){return u=typeof u=="function"?u:m,e&&e.length?zn(e,m,u):[]}function zu(e){if(!(e&&e.length))return [];var u=0;return e=Un(e,function(_){if(Le(_))return u=Be(_.length,u),true}),lu(u,function(_){return Re(e,su(_))})}function r0(e,u){if(!(e&&e.length))return [];var _=zu(e);return u==null?_:Re(_,function(I){return Ye(u,m,I)})}var g3=xe(function(e,u){return Le(e)?ni(e,u):[]}),v3=xe(function(e){return Du(Un(e,Le))}),C3=xe(function(e){var u=cn(e);return Le(u)&&(u=m),Du(Un(e,Le),Qt(u,2))}),S3=xe(function(e){var u=cn(e);return u=typeof u=="function"?u:m,Du(Un(e,Le),m,u)}),R3=xe(zu);function N3(e,u){return Oa(e||[],u||[],ei)}function D3(e,u){return Oa(e||[],u||[],si)}var b3=xe(function(e){var u=e.length,_=u>1?e[u-1]:m;return _=typeof _=="function"?(e.pop(),_):m,r0(e,_)});function i0(e){var u=V(e);return u.__chain__=true,u}function L3(e,u){return u(e),e}function ds(e,u){return u(e)}var I3=bn(function(e){var u=e.length,_=u?e[0]:0,I=this.__wrapped__,P=function(z){return mu(z,e)};return u>1||this.__actions__.length||!(I instanceof fe)||!Ln(_)?this.thru(P):(I=I.slice(_,+_+(u?1:0)),I.__actions__.push({func:ds,args:[P],thisArg:m}),new ln(I,this.__chain__).thru(function(z){return u&&!z.length&&z.push(m),z}))});function w3(){return i0(this)}function B3(){return new ln(this.value(),this.__chain__)}function F3(){this.__values__===m&&(this.__values__=T0(this.value()));var e=this.__index__>=this.__values__.length,u=e?m:this.__values__[this.__index__++];return {done:e,value:u}}function j3(){return this}function K3(e){for(var u,_=this;_ instanceof Zi;){var I=Xa(_);I.__index__=0,I.__values__=m,u?P.__wrapped__=I:u=I;var P=I;_=_.__wrapped__;}return P.__wrapped__=e,u}function P3(){var e=this.__wrapped__;if(e instanceof fe){var u=e;return this.__actions__.length&&(u=new fe(this)),u=u.reverse(),u.__actions__.push({func:ds,args:[Vu],thisArg:m}),new ln(u,this.__chain__)}return this.thru(Vu)}function M3(){return ya(this.__wrapped__,this.__actions__)}var U3=us(function(e,u,_){ye.call(e,_)?++e[_]:Nn(e,_,1);});function k3(e,u,_){var I=ie(e)?wl:LE;return _&&He(e,u,_)&&(u=m),I(e,Qt(u,3))}function H3(e,u){var _=ie(e)?Un:ra;return _(e,Qt(u,3))}var G3=La(Ja),V3=La(Za);function z3(e,u){return Pe(ps(e,u),1)}function W3(e,u){return Pe(ps(e,u),At)}function q3(e,u,_){return _=_===m?1:oe(_),Pe(ps(e,u),_)}function s0(e,u){var _=ie(e)?un:Vn;return _(e,Qt(u,3))}function u0(e,u){var _=ie(e)?hm:na;return _(e,Qt(u,3))}var $3=us(function(e,u,_){ye.call(e,_)?e[_].push(u):Nn(e,_,[u]);});function Y3(e,u,_,I){e=ze(e)?e:wr(e),_=_&&!I?oe(_):0;var P=e.length;return _<0&&(_=Be(P+_,0)),ys(e)?_<=P&&e.indexOf(u,_)>-1:!!P&&Ar(e,u,_)>-1}var Q3=xe(function(e,u,_){var I=-1,P=typeof u=="function",z=ze(e)?Nt(e.length):[];return Vn(e,function(nt){z[++I]=P?Ye(u,nt,_):ri(nt,u,_);}),z}),X3=us(function(e,u,_){Nn(e,_,u);});function ps(e,u){var _=ie(e)?Re:aa;return _(e,Qt(u,3))}function J3(e,u,_,I){return e==null?[]:(ie(u)||(u=u==null?[]:[u]),_=I?m:_,ie(_)||(_=_==null?[]:[_]),fa(e,u,_))}var Z3=us(function(e,u,_){e[_?0:1].push(u);},function(){return [[],[]]});function t_(e,u,_){var I=ie(e)?ru:Kl,P=arguments.length<3;return I(e,Qt(u,4),_,P,Vn)}function e_(e,u,_){var I=ie(e)?fm:Kl,P=arguments.length<3;return I(e,Qt(u,4),_,P,na)}function n_(e,u){var _=ie(e)?Un:ra;return _(e,Ts(Qt(u,3)))}function r_(e){var u=ie(e)?Jl:YE;return u(e)}function i_(e,u,_){(_?He(e,u,_):u===m)?u=1:u=oe(u);var I=ie(e)?SE:QE;return I(e,u)}function s_(e){var u=ie(e)?RE:JE;return u(e)}function u_(e){if(e==null)return 0;if(ze(e))return ys(e)?vr(e):e.length;var u=Ue(e);return u==Z||u==pt?e.size:Au(e).length}function o_(e,u,_){var I=ie(e)?iu:ZE;return _&&He(e,u,_)&&(u=m),I(e,Qt(u,3))}var l_=xe(function(e,u){if(e==null)return [];var _=u.length;return _>1&&He(e,u[0],u[1])?u=[]:_>2&&He(u[0],u[1],u[2])&&(u=[u[0]]),fa(e,Pe(u,1),[])}),ms=Hm||function(){return Ke.Date.now()};function a_(e,u){if(typeof u!="function")throw new on(h);return e=oe(e),function(){if(--e<1)return u.apply(this,arguments)}}function o0(e,u,_){return u=_?m:u,u=e&&u==null?e.length:u,Dn(e,w,m,m,m,m,u)}function l0(e,u){var _;if(typeof u!="function")throw new on(h);return e=oe(e),function(){return --e>0&&(_=u.apply(this,arguments)),e<=1&&(u=m),_}}var Wu=xe(function(e,u,_){var I=y;if(_.length){var P=Hn(_,Lr(Wu));I|=U;}return Dn(e,I,u,_,P)}),a0=xe(function(e,u,_){var I=y|v;if(_.length){var P=Hn(_,Lr(a0));I|=U;}return Dn(u,I,e,_,P)});function x0(e,u,_){u=_?m:u;var I=Dn(e,N,m,m,m,m,m,u);return I.placeholder=x0.placeholder,I}function c0(e,u,_){u=_?m:u;var I=Dn(e,b,m,m,m,m,m,u);return I.placeholder=c0.placeholder,I}function h0(e,u,_){var I,P,z,nt,ct,Ot,Lt=0,It=false,wt=false,Pt=true;if(typeof e!="function")throw new on(h);u=hn(u)||0,Ne(_)&&(It=!!_.leading,wt="maxWait"in _,z=wt?Be(hn(_.maxWait)||0,u):z,Pt="trailing"in _?!!_.trailing:Pt);function Vt(Ie){var En=I,Bn=P;return I=P=m,Lt=Ie,nt=e.apply(Bn,En),nt}function Jt(Ie){return Lt=Ie,ct=li(he,u),It?Vt(Ie):nt}function le(Ie){var En=Ie-Ot,Bn=Ie-Lt,L0=u-En;return wt?Me(L0,z-Bn):L0}function Zt(Ie){var En=Ie-Ot,Bn=Ie-Lt;return Ot===m||En>=u||En<0||wt&&Bn>=z}function he(){var Ie=ms();if(Zt(Ie))return de(Ie);ct=li(he,le(Ie));}function de(Ie){return ct=m,Pt&&I?Vt(Ie):(I=P=m,nt)}function Ze(){ct!==m&&Aa(ct),Lt=0,I=Ot=P=ct=m;}function Ge(){return ct===m?nt:de(ms())}function tn(){var Ie=ms(),En=Zt(Ie);if(I=arguments,P=this,Ot=Ie,En){if(ct===m)return Jt(Ot);if(wt)return Aa(ct),ct=li(he,u),Vt(Ot)}return ct===m&&(ct=li(he,u)),nt}return tn.cancel=Ze,tn.flush=Ge,tn}var x_=xe(function(e,u){return ea(e,1,u)}),c_=xe(function(e,u,_){return ea(e,hn(u)||0,_)});function h_(e){return Dn(e,M)}function Es(e,u){if(typeof e!="function"||u!=null&&typeof u!="function")throw new on(h);var _=function(){var I=arguments,P=u?u.apply(this,I):I[0],z=_.cache;if(z.has(P))return z.get(P);var nt=e.apply(this,I);return _.cache=z.set(P,nt)||z,nt};return _.cache=new(Es.Cache||Rn),_}Es.Cache=Rn;function Ts(e){if(typeof e!="function")throw new on(h);return function(){var u=arguments;switch(u.length){case 0:return !e.call(this);case 1:return !e.call(this,u[0]);case 2:return !e.call(this,u[0],u[1]);case 3:return !e.call(this,u[0],u[1],u[2])}return !e.apply(this,u)}}function f_(e){return l0(2,e)}var d_=tT(function(e,u){u=u.length==1&&ie(u[0])?Re(u[0],Qe(Qt())):Re(Pe(u,1),Qe(Qt()));var _=u.length;return xe(function(I){for(var P=-1,z=Me(I.length,_);++P<z;)I[P]=u[P].call(this,I[P]);return Ye(e,this,I)})}),qu=xe(function(e,u){var _=Hn(u,Lr(qu));return Dn(e,U,m,u,_)}),f0=xe(function(e,u){var _=Hn(u,Lr(f0));return Dn(e,A,m,u,_)}),p_=bn(function(e,u){return Dn(e,F,m,m,m,u)});function m_(e,u){if(typeof e!="function")throw new on(h);return u=u===m?u:oe(u),xe(e,u)}function E_(e,u){if(typeof e!="function")throw new on(h);return u=u==null?0:Be(oe(u),0),xe(function(_){var I=_[u],P=qn(_,0,u);return I&&kn(P,I),Ye(e,this,P)})}function T_(e,u,_){var I=true,P=true;if(typeof e!="function")throw new on(h);return Ne(_)&&(I="leading"in _?!!_.leading:I,P="trailing"in _?!!_.trailing:P),h0(e,u,{leading:I,maxWait:u,trailing:P})}function __(e){return o0(e,1)}function y_(e,u){return qu(Lu(u),e)}function O_(){if(!arguments.length)return [];var e=arguments[0];return ie(e)?e:[e]}function A_(e){return an(e,a)}function g_(e,u){return u=typeof u=="function"?u:m,an(e,a,u)}function v_(e){return an(e,n|a)}function C_(e,u){return u=typeof u=="function"?u:m,an(e,n|a,u)}function S_(e,u){return u==null||ta(e,u,je(u))}function mn(e,u){return e===u||e!==e&&u!==u}var R_=xs(_u),N_=xs(function(e,u){return e>=u}),lr=ua((function(){return arguments})())?ua:function(e){return be(e)&&ye.call(e,"callee")&&!Wl.call(e,"callee")},ie=Nt.isArray,D_=Rl?Qe(Rl):KE;function ze(e){return e!=null&&_s(e.length)&&!In(e)}function Le(e){return be(e)&&ze(e)}function b_(e){return e===true||e===false||be(e)&&ke(e)==lt}var $n=Vm||io,L_=Nl?Qe(Nl):PE;function I_(e){return be(e)&&e.nodeType===1&&!ai(e)}function w_(e){if(e==null)return true;if(ze(e)&&(ie(e)||typeof e=="string"||typeof e.splice=="function"||$n(e)||Ir(e)||lr(e)))return !e.length;var u=Ue(e);if(u==Z||u==pt)return !e.size;if(oi(e))return !Au(e).length;for(var _ in e)if(ye.call(e,_))return false;return true}function B_(e,u){return ii(e,u)}function F_(e,u,_){_=typeof _=="function"?_:m;var I=_?_(e,u):m;return I===m?ii(e,u,m,_):!!I}function $u(e){if(!be(e))return false;var u=ke(e);return u==xt||u==ht||typeof e.message=="string"&&typeof e.name=="string"&&!ai(e)}function j_(e){return typeof e=="number"&&$l(e)}function In(e){if(!Ne(e))return false;var u=ke(e);return u==it||u==vt||u==ot||u==X}function d0(e){return typeof e=="number"&&e==oe(e)}function _s(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Dt}function Ne(e){var u=typeof e;return e!=null&&(u=="object"||u=="function")}function be(e){return e!=null&&typeof e=="object"}var p0=Dl?Qe(Dl):UE;function K_(e,u){return e===u||Ou(e,u,Pu(u))}function P_(e,u,_){return _=typeof _=="function"?_:m,Ou(e,u,Pu(u),_)}function M_(e){return m0(e)&&e!=+e}function U_(e){if(gT(e))throw new ne(T);return oa(e)}function k_(e){return e===null}function H_(e){return e==null}function m0(e){return typeof e=="number"||be(e)&&ke(e)==tt}function ai(e){if(!be(e)||ke(e)!=Y)return false;var u=Wi(e);if(u===null)return true;var _=ye.call(u,"constructor")&&u.constructor;return typeof _=="function"&&_ instanceof _&&Hi.call(_)==Pm}var Yu=bl?Qe(bl):kE;function G_(e){return d0(e)&&e>=-Dt&&e<=Dt}var E0=Ll?Qe(Ll):HE;function ys(e){return typeof e=="string"||!ie(e)&&be(e)&&ke(e)==Bt}function Je(e){return typeof e=="symbol"||be(e)&&ke(e)==Ht}var Ir=Il?Qe(Il):GE;function V_(e){return e===m}function z_(e){return be(e)&&Ue(e)==Wt}function W_(e){return be(e)&&ke(e)==mt}var q_=xs(gu),$_=xs(function(e,u){return e<=u});function T0(e){if(!e)return [];if(ze(e))return ys(e)?dn(e):Ve(e);if(Qr&&e[Qr])return Sm(e[Qr]());var u=Ue(e),_=u==Z?xu:u==pt?Pi:wr;return _(e)}function wn(e){if(!e)return e===0?e:0;if(e=hn(e),e===At||e===-At){var u=e<0?-1:1;return u*dt}return e===e?e:0}function oe(e){var u=wn(e),_=u%1;return u===u?_?u-_:u:0}function _0(e){return e?ir(oe(e),0,_t):0}function hn(e){if(typeof e=="number")return e;if(Je(e))return jt;if(Ne(e)){var u=typeof e.valueOf=="function"?e.valueOf():e;e=Ne(u)?u+"":u;}if(typeof e!="string")return e===0?e:+e;e=Pl(e);var _=qr.test(e);return _||i.test(e)?am(e.slice(2),_?2:8):Mn.test(e)?jt:+e}function y0(e){return An(e,We(e))}function Y_(e){return e?ir(oe(e),-Dt,Dt):e===0?e:0}function _e(e){return e==null?"":Xe(e)}var Q_=Dr(function(e,u){if(oi(u)||ze(u)){An(u,je(u),e);return}for(var _ in u)ye.call(u,_)&&ei(e,_,u[_]);}),O0=Dr(function(e,u){An(u,We(u),e);}),Os=Dr(function(e,u,_,I){An(u,We(u),e,I);}),X_=Dr(function(e,u,_,I){An(u,je(u),e,I);}),J_=bn(mu);function Z_(e,u){var _=Nr(e);return u==null?_:Zl(_,u)}var ty=xe(function(e,u){e=Ae(e);var _=-1,I=u.length,P=I>2?u[2]:m;for(P&&He(u[0],u[1],P)&&(I=1);++_<I;)for(var z=u[_],nt=We(z),ct=-1,Ot=nt.length;++ct<Ot;){var Lt=nt[ct],It=e[Lt];(It===m||mn(It,Cr[Lt])&&!ye.call(e,Lt))&&(e[Lt]=z[Lt]);}return e}),ey=xe(function(e){return e.push(m,Pa),Ye(A0,m,e)});function ny(e,u){return Bl(e,Qt(u,3),On)}function ry(e,u){return Bl(e,Qt(u,3),Tu)}function iy(e,u){return e==null?e:Eu(e,Qt(u,3),We)}function sy(e,u){return e==null?e:ia(e,Qt(u,3),We)}function uy(e,u){return e&&On(e,Qt(u,3))}function oy(e,u){return e&&Tu(e,Qt(u,3))}function ly(e){return e==null?[]:ns(e,je(e))}function ay(e){return e==null?[]:ns(e,We(e))}function Qu(e,u,_){var I=e==null?m:sr(e,u);return I===m?_:I}function xy(e,u){return e!=null&&ka(e,u,wE)}function Xu(e,u){return e!=null&&ka(e,u,BE)}var cy=wa(function(e,u,_){u!=null&&typeof u.toString!="function"&&(u=Gi.call(u)),e[u]=_;},Zu(qe)),hy=wa(function(e,u,_){u!=null&&typeof u.toString!="function"&&(u=Gi.call(u)),ye.call(e,u)?e[u].push(_):e[u]=[_];},Qt),fy=xe(ri);function je(e){return ze(e)?Xl(e):Au(e)}function We(e){return ze(e)?Xl(e,true):VE(e)}function dy(e,u){var _={};return u=Qt(u,3),On(e,function(I,P,z){Nn(_,u(I,P,z),I);}),_}function py(e,u){var _={};return u=Qt(u,3),On(e,function(I,P,z){Nn(_,P,u(I,P,z));}),_}var my=Dr(function(e,u,_){rs(e,u,_);}),A0=Dr(function(e,u,_,I){rs(e,u,_,I);}),Ey=bn(function(e,u){var _={};if(e==null)return _;var I=false;u=Re(u,function(z){return z=Wn(z,e),I||(I=z.length>1),z}),An(e,ju(e),_),I&&(_=an(_,n|c|a,cT));for(var P=u.length;P--;)Nu(_,u[P]);return _});function Ty(e,u){return g0(e,Ts(Qt(u)))}var _y=bn(function(e,u){return e==null?{}:WE(e,u)});function g0(e,u){if(e==null)return {};var _=Re(ju(e),function(I){return [I]});return u=Qt(u),da(e,_,function(I,P){return u(I,P[0])})}function yy(e,u,_){u=Wn(u,e);var I=-1,P=u.length;for(P||(P=1,e=m);++I<P;){var z=e==null?m:e[gn(u[I])];z===m&&(I=P,z=_),e=In(z)?z.call(e):z;}return e}function Oy(e,u,_){return e==null?e:si(e,u,_)}function Ay(e,u,_,I){return I=typeof I=="function"?I:m,e==null?e:si(e,u,_,I)}var v0=ja(je),C0=ja(We);function gy(e,u,_){var I=ie(e),P=I||$n(e)||Ir(e);if(u=Qt(u,4),_==null){var z=e&&e.constructor;P?_=I?new z:[]:Ne(e)?_=In(z)?Nr(Wi(e)):{}:_={};}return (P?un:On)(e,function(nt,ct,Ot){return u(_,nt,ct,Ot)}),_}function vy(e,u){return e==null?true:Nu(e,u)}function Cy(e,u,_){return e==null?e:_a(e,u,Lu(_))}function Sy(e,u,_,I){return I=typeof I=="function"?I:m,e==null?e:_a(e,u,Lu(_),I)}function wr(e){return e==null?[]:au(e,je(e))}function Ry(e){return e==null?[]:au(e,We(e))}function Ny(e,u,_){return _===m&&(_=u,u=m),_!==m&&(_=hn(_),_=_===_?_:0),u!==m&&(u=hn(u),u=u===u?u:0),ir(hn(e),u,_)}function Dy(e,u,_){return u=wn(u),_===m?(_=u,u=0):_=wn(_),e=hn(e),FE(e,u,_)}function by(e,u,_){if(_&&typeof _!="boolean"&&He(e,u,_)&&(u=_=m),_===m&&(typeof u=="boolean"?(_=u,u=m):typeof e=="boolean"&&(_=e,e=m)),e===m&&u===m?(e=0,u=1):(e=wn(e),u===m?(u=e,e=0):u=wn(u)),e>u){var I=e;e=u,u=I;}if(_||e%1||u%1){var P=Yl();return Me(e+P*(u-e+lm("1e-"+((P+"").length-1))),u)}return Cu(e,u)}var Ly=br(function(e,u,_){return u=u.toLowerCase(),e+(_?S0(u):u)});function S0(e){return Ju(_e(e).toLowerCase())}function R0(e){return e=_e(e),e&&e.replace($,Om).replace(J1,"")}function Iy(e,u,_){e=_e(e),u=Xe(u);var I=e.length;_=_===m?I:ir(oe(_),0,I);var P=_;return _-=u.length,_>=0&&e.slice(_,P)==u}function wy(e){return e=_e(e),e&&Fn.test(e)?e.replace(De,Am):e}function By(e){return e=_e(e),e&&Vr.test(e)?e.replace(tr,"\\$&"):e}var Fy=br(function(e,u,_){return e+(_?"-":"")+u.toLowerCase()}),jy=br(function(e,u,_){return e+(_?" ":"")+u.toLowerCase()}),Ky=ba("toLowerCase");function Py(e,u,_){e=_e(e),u=oe(u);var I=u?vr(e):0;if(!u||I>=u)return e;var P=(u-I)/2;return as(Qi(P),_)+e+as(Yi(P),_)}function My(e,u,_){e=_e(e),u=oe(u);var I=u?vr(e):0;return u&&I<u?e+as(u-I,_):e}function Uy(e,u,_){e=_e(e),u=oe(u);var I=u?vr(e):0;return u&&I<u?as(u-I,_)+e:e}function ky(e,u,_){return _||u==null?u=0:u&&(u=+u),$m(_e(e).replace(Pn,""),u||0)}function Hy(e,u,_){return (_?He(e,u,_):u===m)?u=1:u=oe(u),Su(_e(e),u)}function Gy(){var e=arguments,u=_e(e[0]);return e.length<3?u:u.replace(e[1],e[2])}var Vy=br(function(e,u,_){return e+(_?"_":"")+u.toLowerCase()});function zy(e,u,_){return _&&typeof _!="number"&&He(e,u,_)&&(u=_=m),_=_===m?_t:_>>>0,_?(e=_e(e),e&&(typeof u=="string"||u!=null&&!Yu(u))&&(u=Xe(u),!u&&gr(e))?qn(dn(e),0,_):e.split(u,_)):[]}var Wy=br(function(e,u,_){return e+(_?" ":"")+Ju(u)});function qy(e,u,_){return e=_e(e),_=_==null?0:ir(oe(_),0,e.length),u=Xe(u),e.slice(_,_+u.length)==u}function $y(e,u,_){var I=V.templateSettings;_&&He(e,u,_)&&(u=m),e=_e(e),u=Os({},u,I,Ka);var P=Os({},u.imports,I.imports,Ka),z=je(P),nt=au(P,z),ct,Ot,Lt=0,It=u.interpolate||gt,wt="__p += '",Pt=cu((u.escape||gt).source+"|"+It.source+"|"+(It===pr?Wr:gt).source+"|"+(u.evaluate||gt).source+"|$","g"),Vt="//# sourceURL="+(ye.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rm+"]")+`
81
+ `;e.replace(Pt,function(Zt,he,de,Ze,Ge,tn){return de||(de=Ze),wt+=e.slice(Lt,tn).replace(Ee,gm),he&&(ct=true,wt+=`' +
82
+ __e(`+he+`) +
83
+ '`),Ge&&(Ot=true,wt+=`';
84
+ `+Ge+`;
85
+ __p += '`),de&&(wt+=`' +
86
+ ((__t = (`+de+`)) == null ? '' : __t) +
87
+ '`),Lt=tn+Zt.length,Zt}),wt+=`';
88
+ `;var Jt=ye.call(u,"variable")&&u.variable;if(!Jt)wt=`with (obj) {
89
+ `+wt+`
90
+ }
91
+ `;else if(_r.test(Jt))throw new ne(s);wt=(Ot?wt.replace(Yt,""):wt).replace(ae,"$1").replace(Oe,"$1;"),wt="function("+(Jt||"obj")+`) {
92
+ `+(Jt?"":`obj || (obj = {});
93
+ `)+"var __t, __p = ''"+(ct?", __e = _.escape":"")+(Ot?`, __j = Array.prototype.join;
94
+ function print() { __p += __j.call(arguments, '') }
95
+ `:`;
96
+ `)+wt+`return __p
97
+ }`;var le=D0(function(){return Te(z,Vt+"return "+wt).apply(m,nt)});if(le.source=wt,$u(le))throw le;return le}function Yy(e){return _e(e).toLowerCase()}function Qy(e){return _e(e).toUpperCase()}function Xy(e,u,_){if(e=_e(e),e&&(_||u===m))return Pl(e);if(!e||!(u=Xe(u)))return e;var I=dn(e),P=dn(u),z=Ml(I,P),nt=Ul(I,P)+1;return qn(I,z,nt).join("")}function Jy(e,u,_){if(e=_e(e),e&&(_||u===m))return e.slice(0,Hl(e)+1);if(!e||!(u=Xe(u)))return e;var I=dn(e),P=Ul(I,dn(u))+1;return qn(I,0,P).join("")}function Zy(e,u,_){if(e=_e(e),e&&(_||u===m))return e.replace(Pn,"");if(!e||!(u=Xe(u)))return e;var I=dn(e),P=Ml(I,dn(u));return qn(I,P).join("")}function tO(e,u){var _=W,I=L;if(Ne(u)){var P="separator"in u?u.separator:P;_="length"in u?oe(u.length):_,I="omission"in u?Xe(u.omission):I;}e=_e(e);var z=e.length;if(gr(e)){var nt=dn(e);z=nt.length;}if(_>=z)return e;var ct=_-vr(I);if(ct<1)return I;var Ot=nt?qn(nt,0,ct).join(""):e.slice(0,ct);if(P===m)return Ot+I;if(nt&&(ct+=Ot.length-ct),Yu(P)){if(e.slice(ct).search(P)){var Lt,It=Ot;for(P.global||(P=cu(P.source,_e(yn.exec(P))+"g")),P.lastIndex=0;Lt=P.exec(It);)var wt=Lt.index;Ot=Ot.slice(0,wt===m?ct:wt);}}else if(e.indexOf(Xe(P),ct)!=ct){var Pt=Ot.lastIndexOf(P);Pt>-1&&(Ot=Ot.slice(0,Pt));}return Ot+I}function eO(e){return e=_e(e),e&&$e.test(e)?e.replace(me,bm):e}var nO=br(function(e,u,_){return e+(_?" ":"")+u.toUpperCase()}),Ju=ba("toUpperCase");function N0(e,u,_){return e=_e(e),u=_?m:u,u===m?Cm(e)?wm(e):mm(e):e.match(u)||[]}var D0=xe(function(e,u){try{return Ye(e,m,u)}catch(_){return $u(_)?_:new ne(_)}}),rO=bn(function(e,u){return un(u,function(_){_=gn(_),Nn(e,_,Wu(e[_],e));}),e});function iO(e){var u=e==null?0:e.length,_=Qt();return e=u?Re(e,function(I){if(typeof I[1]!="function")throw new on(h);return [_(I[0]),I[1]]}):[],xe(function(I){for(var P=-1;++P<u;){var z=e[P];if(Ye(z[0],this,I))return Ye(z[1],this,I)}})}function sO(e){return bE(an(e,n))}function Zu(e){return function(){return e}}function uO(e,u){return e==null||e!==e?u:e}var oO=Ia(),lO=Ia(true);function qe(e){return e}function to(e){return la(typeof e=="function"?e:an(e,n))}function aO(e){return xa(an(e,n))}function xO(e,u){return ca(e,an(u,n))}var cO=xe(function(e,u){return function(_){return ri(_,e,u)}}),hO=xe(function(e,u){return function(_){return ri(e,_,u)}});function eo(e,u,_){var I=je(u),P=ns(u,I);_==null&&!(Ne(u)&&(P.length||!I.length))&&(_=u,u=e,e=this,P=ns(u,je(u)));var z=!(Ne(_)&&"chain"in _)||!!_.chain,nt=In(e);return un(P,function(ct){var Ot=u[ct];e[ct]=Ot,nt&&(e.prototype[ct]=function(){var Lt=this.__chain__;if(z||Lt){var It=e(this.__wrapped__),wt=It.__actions__=Ve(this.__actions__);return wt.push({func:Ot,args:arguments,thisArg:e}),It.__chain__=Lt,It}return Ot.apply(e,kn([this.value()],arguments))});}),e}function fO(){return Ke._===this&&(Ke._=Mm),this}function no(){}function dO(e){return e=oe(e),xe(function(u){return ha(u,e)})}var pO=wu(Re),mO=wu(wl),EO=wu(iu);function b0(e){return Uu(e)?su(gn(e)):qE(e)}function TO(e){return function(u){return e==null?m:sr(e,u)}}var _O=Ba(),yO=Ba(true);function ro(){return []}function io(){return false}function OO(){return {}}function AO(){return ""}function gO(){return true}function vO(e,u){if(e=oe(e),e<1||e>Dt)return [];var _=_t,I=Me(e,_t);u=Qt(u),e-=_t;for(var P=lu(I,u);++_<e;)u(_);return P}function CO(e){return ie(e)?Re(e,gn):Je(e)?[e]:Ve(Qa(_e(e)))}function SO(e){var u=++Km;return _e(e)+u}var RO=ls(function(e,u){return e+u},0),NO=Bu("ceil"),DO=ls(function(e,u){return e/u},1),bO=Bu("floor");function LO(e){return e&&e.length?es(e,qe,_u):m}function IO(e,u){return e&&e.length?es(e,Qt(u,2),_u):m}function wO(e){return jl(e,qe)}function BO(e,u){return jl(e,Qt(u,2))}function FO(e){return e&&e.length?es(e,qe,gu):m}function jO(e,u){return e&&e.length?es(e,Qt(u,2),gu):m}var KO=ls(function(e,u){return e*u},1),PO=Bu("round"),MO=ls(function(e,u){return e-u},0);function UO(e){return e&&e.length?ou(e,qe):0}function kO(e,u){return e&&e.length?ou(e,Qt(u,2)):0}return V.after=a_,V.ary=o0,V.assign=Q_,V.assignIn=O0,V.assignInWith=Os,V.assignWith=X_,V.at=J_,V.before=l0,V.bind=Wu,V.bindAll=rO,V.bindKey=a0,V.castArray=O_,V.chain=i0,V.chunk=bT,V.compact=LT,V.concat=IT,V.cond=iO,V.conforms=sO,V.constant=Zu,V.countBy=U3,V.create=Z_,V.curry=x0,V.curryRight=c0,V.debounce=h0,V.defaults=ty,V.defaultsDeep=ey,V.defer=x_,V.delay=c_,V.difference=wT,V.differenceBy=BT,V.differenceWith=FT,V.drop=jT,V.dropRight=KT,V.dropRightWhile=PT,V.dropWhile=MT,V.fill=UT,V.filter=H3,V.flatMap=z3,V.flatMapDeep=W3,V.flatMapDepth=q3,V.flatten=t0,V.flattenDeep=kT,V.flattenDepth=HT,V.flip=h_,V.flow=oO,V.flowRight=lO,V.fromPairs=GT,V.functions=ly,V.functionsIn=ay,V.groupBy=$3,V.initial=zT,V.intersection=WT,V.intersectionBy=qT,V.intersectionWith=$T,V.invert=cy,V.invertBy=hy,V.invokeMap=Q3,V.iteratee=to,V.keyBy=X3,V.keys=je,V.keysIn=We,V.map=ps,V.mapKeys=dy,V.mapValues=py,V.matches=aO,V.matchesProperty=xO,V.memoize=Es,V.merge=my,V.mergeWith=A0,V.method=cO,V.methodOf=hO,V.mixin=eo,V.negate=Ts,V.nthArg=dO,V.omit=Ey,V.omitBy=Ty,V.once=f_,V.orderBy=J3,V.over=pO,V.overArgs=d_,V.overEvery=mO,V.overSome=EO,V.partial=qu,V.partialRight=f0,V.partition=Z3,V.pick=_y,V.pickBy=g0,V.property=b0,V.propertyOf=TO,V.pull=JT,V.pullAll=n0,V.pullAllBy=ZT,V.pullAllWith=t3,V.pullAt=e3,V.range=_O,V.rangeRight=yO,V.rearg=p_,V.reject=n_,V.remove=n3,V.rest=m_,V.reverse=Vu,V.sampleSize=i_,V.set=Oy,V.setWith=Ay,V.shuffle=s_,V.slice=r3,V.sortBy=l_,V.sortedUniq=x3,V.sortedUniqBy=c3,V.split=zy,V.spread=E_,V.tail=h3,V.take=f3,V.takeRight=d3,V.takeRightWhile=p3,V.takeWhile=m3,V.tap=L3,V.throttle=T_,V.thru=ds,V.toArray=T0,V.toPairs=v0,V.toPairsIn=C0,V.toPath=CO,V.toPlainObject=y0,V.transform=gy,V.unary=__,V.union=E3,V.unionBy=T3,V.unionWith=_3,V.uniq=y3,V.uniqBy=O3,V.uniqWith=A3,V.unset=vy,V.unzip=zu,V.unzipWith=r0,V.update=Cy,V.updateWith=Sy,V.values=wr,V.valuesIn=Ry,V.without=g3,V.words=N0,V.wrap=y_,V.xor=v3,V.xorBy=C3,V.xorWith=S3,V.zip=R3,V.zipObject=N3,V.zipObjectDeep=D3,V.zipWith=b3,V.entries=v0,V.entriesIn=C0,V.extend=O0,V.extendWith=Os,eo(V,V),V.add=RO,V.attempt=D0,V.camelCase=Ly,V.capitalize=S0,V.ceil=NO,V.clamp=Ny,V.clone=A_,V.cloneDeep=v_,V.cloneDeepWith=C_,V.cloneWith=g_,V.conformsTo=S_,V.deburr=R0,V.defaultTo=uO,V.divide=DO,V.endsWith=Iy,V.eq=mn,V.escape=wy,V.escapeRegExp=By,V.every=k3,V.find=G3,V.findIndex=Ja,V.findKey=ny,V.findLast=V3,V.findLastIndex=Za,V.findLastKey=ry,V.floor=bO,V.forEach=s0,V.forEachRight=u0,V.forIn=iy,V.forInRight=sy,V.forOwn=uy,V.forOwnRight=oy,V.get=Qu,V.gt=R_,V.gte=N_,V.has=xy,V.hasIn=Xu,V.head=e0,V.identity=qe,V.includes=Y3,V.indexOf=VT,V.inRange=Dy,V.invoke=fy,V.isArguments=lr,V.isArray=ie,V.isArrayBuffer=D_,V.isArrayLike=ze,V.isArrayLikeObject=Le,V.isBoolean=b_,V.isBuffer=$n,V.isDate=L_,V.isElement=I_,V.isEmpty=w_,V.isEqual=B_,V.isEqualWith=F_,V.isError=$u,V.isFinite=j_,V.isFunction=In,V.isInteger=d0,V.isLength=_s,V.isMap=p0,V.isMatch=K_,V.isMatchWith=P_,V.isNaN=M_,V.isNative=U_,V.isNil=H_,V.isNull=k_,V.isNumber=m0,V.isObject=Ne,V.isObjectLike=be,V.isPlainObject=ai,V.isRegExp=Yu,V.isSafeInteger=G_,V.isSet=E0,V.isString=ys,V.isSymbol=Je,V.isTypedArray=Ir,V.isUndefined=V_,V.isWeakMap=z_,V.isWeakSet=W_,V.join=YT,V.kebabCase=Fy,V.last=cn,V.lastIndexOf=QT,V.lowerCase=jy,V.lowerFirst=Ky,V.lt=q_,V.lte=$_,V.max=LO,V.maxBy=IO,V.mean=wO,V.meanBy=BO,V.min=FO,V.minBy=jO,V.stubArray=ro,V.stubFalse=io,V.stubObject=OO,V.stubString=AO,V.stubTrue=gO,V.multiply=KO,V.nth=XT,V.noConflict=fO,V.noop=no,V.now=ms,V.pad=Py,V.padEnd=My,V.padStart=Uy,V.parseInt=ky,V.random=by,V.reduce=t_,V.reduceRight=e_,V.repeat=Hy,V.replace=Gy,V.result=yy,V.round=PO,V.runInContext=Et,V.sample=r_,V.size=u_,V.snakeCase=Vy,V.some=o_,V.sortedIndex=i3,V.sortedIndexBy=s3,V.sortedIndexOf=u3,V.sortedLastIndex=o3,V.sortedLastIndexBy=l3,V.sortedLastIndexOf=a3,V.startCase=Wy,V.startsWith=qy,V.subtract=MO,V.sum=UO,V.sumBy=kO,V.template=$y,V.times=vO,V.toFinite=wn,V.toInteger=oe,V.toLength=_0,V.toLower=Yy,V.toNumber=hn,V.toSafeInteger=Y_,V.toString=_e,V.toUpper=Qy,V.trim=Xy,V.trimEnd=Jy,V.trimStart=Zy,V.truncate=tO,V.unescape=eO,V.uniqueId=SO,V.upperCase=nO,V.upperFirst=Ju,V.each=s0,V.eachRight=u0,V.first=e0,eo(V,(function(){var e={};return On(V,function(u,_){ye.call(V.prototype,_)||(e[_]=u);}),e})(),{chain:false}),V.VERSION=g,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){V[e].placeholder=V;}),un(["drop","take"],function(e,u){fe.prototype[e]=function(_){_=_===m?1:Be(oe(_),0);var I=this.__filtered__&&!u?new fe(this):this.clone();return I.__filtered__?I.__takeCount__=Me(_,I.__takeCount__):I.__views__.push({size:Me(_,_t),type:e+(I.__dir__<0?"Right":"")}),I},fe.prototype[e+"Right"]=function(_){return this.reverse()[e](_).reverse()};}),un(["filter","map","takeWhile"],function(e,u){var _=u+1,I=_==J||_==ft;fe.prototype[e]=function(P){var z=this.clone();return z.__iteratees__.push({iteratee:Qt(P,3),type:_}),z.__filtered__=z.__filtered__||I,z};}),un(["head","last"],function(e,u){var _="take"+(u?"Right":"");fe.prototype[e]=function(){return this[_](1).value()[0]};}),un(["initial","tail"],function(e,u){var _="drop"+(u?"":"Right");fe.prototype[e]=function(){return this.__filtered__?new fe(this):this[_](1)};}),fe.prototype.compact=function(){return this.filter(qe)},fe.prototype.find=function(e){return this.filter(e).head()},fe.prototype.findLast=function(e){return this.reverse().find(e)},fe.prototype.invokeMap=xe(function(e,u){return typeof e=="function"?new fe(this):this.map(function(_){return ri(_,e,u)})}),fe.prototype.reject=function(e){return this.filter(Ts(Qt(e)))},fe.prototype.slice=function(e,u){e=oe(e);var _=this;return _.__filtered__&&(e>0||u<0)?new fe(_):(e<0?_=_.takeRight(-e):e&&(_=_.drop(e)),u!==m&&(u=oe(u),_=u<0?_.dropRight(-u):_.take(u-e)),_)},fe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},fe.prototype.toArray=function(){return this.take(_t)},On(fe.prototype,function(e,u){var _=/^(?:filter|find|map|reject)|While$/.test(u),I=/^(?:head|last)$/.test(u),P=V[I?"take"+(u=="last"?"Right":""):u],z=I||/^find/.test(u);P&&(V.prototype[u]=function(){var nt=this.__wrapped__,ct=I?[1]:arguments,Ot=nt instanceof fe,Lt=ct[0],It=Ot||ie(nt),wt=function(he){var de=P.apply(V,kn([he],ct));return I&&Pt?de[0]:de};It&&_&&typeof Lt=="function"&&Lt.length!=1&&(Ot=It=false);var Pt=this.__chain__,Vt=!!this.__actions__.length,Jt=z&&!Pt,le=Ot&&!Vt;if(!z&&It){nt=le?nt:new fe(this);var Zt=e.apply(nt,ct);return Zt.__actions__.push({func:ds,args:[wt],thisArg:m}),new ln(Zt,Pt)}return Jt&&le?e.apply(this,ct):(Zt=this.thru(wt),Jt?I?Zt.value()[0]:Zt.value():Zt)});}),un(["pop","push","shift","sort","splice","unshift"],function(e){var u=Ui[e],_=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",I=/^(?:pop|shift)$/.test(e);V.prototype[e]=function(){var P=arguments;if(I&&!this.__chain__){var z=this.value();return u.apply(ie(z)?z:[],P)}return this[_](function(nt){return u.apply(ie(nt)?nt:[],P)})};}),On(fe.prototype,function(e,u){var _=V[u];if(_){var I=_.name+"";ye.call(Rr,I)||(Rr[I]=[]),Rr[I].push({name:u,func:_});}}),Rr[os(m,v).name]=[{name:"wrapper",func:m}],fe.prototype.clone=eE,fe.prototype.reverse=nE,fe.prototype.value=rE,V.prototype.at=I3,V.prototype.chain=w3,V.prototype.commit=B3,V.prototype.next=F3,V.prototype.plant=K3,V.prototype.reverse=P3,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=M3,V.prototype.first=V.prototype.head,Qr&&(V.prototype[Qr]=j3),V}),Mi=Bm();Ke._=Mi,d=(function(){return Mi}).call(l,f,l,D),d!==m&&(D.exports=d);}).call(this);}),"./node_modules/math-intrinsics/abs.js":(D=>{D.exports=Math.abs;}),"./node_modules/math-intrinsics/floor.js":(D=>{D.exports=Math.floor;}),"./node_modules/math-intrinsics/isNaN.js":(D=>{D.exports=Number.isNaN||function(f){return f!==f};}),"./node_modules/math-intrinsics/max.js":(D=>{D.exports=Math.max;}),"./node_modules/math-intrinsics/min.js":(D=>{D.exports=Math.min;}),"./node_modules/math-intrinsics/pow.js":(D=>{D.exports=Math.pow;}),"./node_modules/math-intrinsics/round.js":(D=>{D.exports=Math.round;}),"./node_modules/math-intrinsics/sign.js":((D,l,f)=>{var d=f("./node_modules/math-intrinsics/isNaN.js");D.exports=function(g){return d(g)||g===0?g:g<0?-1:1};}),"./node_modules/object-is/implementation.js":(D=>{var l=function(f){return f!==f};D.exports=function(d,m){return d===0&&m===0?1/d===1/m:!!(d===m||l(d)&&l(m))};}),"./node_modules/object-is/index.js":((D,l,f)=>{var d=f("./node_modules/define-properties/index.js"),m=f("./node_modules/call-bind/index.js"),g=f("./node_modules/object-is/implementation.js"),O=f("./node_modules/object-is/polyfill.js"),T=f("./node_modules/object-is/shim.js"),h=m(O(),Object);d(h,{getPolyfill:O,implementation:g,shim:T}),D.exports=h;}),"./node_modules/object-is/polyfill.js":((D,l,f)=>{var d=f("./node_modules/object-is/implementation.js");D.exports=function(){return typeof Object.is=="function"?Object.is:d};}),"./node_modules/object-is/shim.js":((D,l,f)=>{var d=f("./node_modules/object-is/polyfill.js"),m=f("./node_modules/define-properties/index.js");D.exports=function(){var O=d();return m(Object,{is:O},{is:function(){return Object.is!==O}}),O};}),"./node_modules/object-keys/implementation.js":((D,l,f)=>{var d;if(!Object.keys){var m=Object.prototype.hasOwnProperty,g=Object.prototype.toString,O=f("./node_modules/object-keys/isArguments.js"),T=Object.prototype.propertyIsEnumerable,h=!T.call({toString:null},"toString"),s=T.call(function(){},"prototype"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=function(a){var p=a.constructor;return p&&p.prototype===a},x={$applicationCache:true,$console:true,$external:true,$frame:true,$frameElement:true,$frames:true,$innerHeight:true,$innerWidth:true,$onmozfullscreenchange:true,$onmozfullscreenerror:true,$outerHeight:true,$outerWidth:true,$pageXOffset:true,$pageYOffset:true,$parent:true,$scrollLeft:true,$scrollTop:true,$scrollX:true,$scrollY:true,$self:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$window:true},n=(function(){if(typeof window>"u")return false;for(var a in window)try{if(!x["$"+a]&&m.call(window,a)&&window[a]!==null&&typeof window[a]=="object")try{r(window[a]);}catch{return !0}}catch{return true}return false})(),c=function(a){if(typeof window>"u"||!n)return r(a);try{return r(a)}catch{return false}};d=function(p){var t=p!==null&&typeof p=="object",y=g.call(p)==="[object Function]",v=O(p),S=t&&g.call(p)==="[object String]",N=[];if(!t&&!y&&!v)throw new TypeError("Object.keys called on a non-object");var b=s&&y;if(S&&p.length>0&&!m.call(p,0))for(var U=0;U<p.length;++U)N.push(String(U));if(v&&p.length>0)for(var A=0;A<p.length;++A)N.push(String(A));else for(var w in p)!(b&&w==="prototype")&&m.call(p,w)&&N.push(String(w));if(h)for(var F=c(p),M=0;M<o.length;++M)!(F&&o[M]==="constructor")&&m.call(p,o[M])&&N.push(o[M]);return N};}D.exports=d;}),"./node_modules/object-keys/index.js":((D,l,f)=>{var d=Array.prototype.slice,m=f("./node_modules/object-keys/isArguments.js"),g=Object.keys,O=g?function(s){return g(s)}:f("./node_modules/object-keys/implementation.js"),T=Object.keys;O.shim=function(){if(Object.keys){var s=(function(){var o=Object.keys(arguments);return o&&o.length===arguments.length})(1,2);s||(Object.keys=function(r){return m(r)?T(d.call(r)):T(r)});}else Object.keys=O;return Object.keys||O},D.exports=O;}),"./node_modules/object-keys/isArguments.js":(D=>{var l=Object.prototype.toString;D.exports=function(d){var m=l.call(d),g=m==="[object Arguments]";return g||(g=m!=="[object Array]"&&d!==null&&typeof d=="object"&&typeof d.length=="number"&&d.length>=0&&l.call(d.callee)==="[object Function]"),g};}),"./node_modules/object.assign/implementation.js":((D,l,f)=>{var d=f("./node_modules/object-keys/index.js"),m=f("./node_modules/has-symbols/shams.js")(),g=f("./node_modules/call-bound/index.js"),O=f("./node_modules/es-object-atoms/index.js"),T=g("Array.prototype.push"),h=g("Object.prototype.propertyIsEnumerable"),s=m?O.getOwnPropertySymbols:null;D.exports=function(r,x){if(r==null)throw new TypeError("target must be an object");var n=O(r);if(arguments.length===1)return n;for(var c=1;c<arguments.length;++c){var a=O(arguments[c]),p=d(a),t=m&&(O.getOwnPropertySymbols||s);if(t)for(var y=t(a),v=0;v<y.length;++v){var S=y[v];h(a,S)&&T(p,S);}for(var N=0;N<p.length;++N){var b=p[N];if(h(a,b)){var U=a[b];n[b]=U;}}}return n};}),"./node_modules/object.assign/polyfill.js":((D,l,f)=>{var d=f("./node_modules/object.assign/implementation.js"),m=function(){if(!Object.assign)return false;for(var O="abcdefghijklmnopqrst",T=O.split(""),h={},s=0;s<T.length;++s)h[T[s]]=T[s];var o=Object.assign({},h),r="";for(var x in o)r+=x;return O!==r},g=function(){if(!Object.assign||!Object.preventExtensions)return false;var O=Object.preventExtensions({1:2});try{Object.assign(O,"xy");}catch{return O[1]==="y"}return false};D.exports=function(){return !Object.assign||m()||g()?d:Object.assign};}),"./node_modules/possible-typed-array-names/index.js":(D=>{D.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"];}),"./node_modules/process/browser.js":(D=>{var l=D.exports={},f,d;function m(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?f=setTimeout:f=m;}catch{f=m;}try{typeof clearTimeout=="function"?d=clearTimeout:d=g;}catch{d=g;}})();function O(p){if(f===setTimeout)return setTimeout(p,0);if((f===m||!f)&&setTimeout)return f=setTimeout,setTimeout(p,0);try{return f(p,0)}catch{try{return f.call(null,p,0)}catch{return f.call(this,p,0)}}}function T(p){if(d===clearTimeout)return clearTimeout(p);if((d===g||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(p);try{return d(p)}catch{try{return d.call(null,p)}catch{return d.call(this,p)}}}var h=[],s=false,o,r=-1;function x(){!s||!o||(s=false,o.length?h=o.concat(h):r=-1,h.length&&n());}function n(){if(!s){var p=O(x);s=true;for(var t=h.length;t;){for(o=h,h=[];++r<t;)o&&o[r].run();r=-1,t=h.length;}o=null,s=false,T(p);}}l.nextTick=function(p){var t=new Array(arguments.length-1);if(arguments.length>1)for(var y=1;y<arguments.length;y++)t[y-1]=arguments[y];h.push(new c(p,t)),h.length===1&&!s&&O(n);};function c(p,t){this.fun=p,this.array=t;}c.prototype.run=function(){this.fun.apply(null,this.array);},l.title="browser",l.browser=true,l.env={},l.argv=[],l.version="",l.versions={};function a(){}l.on=a,l.addListener=a,l.once=a,l.off=a,l.removeListener=a,l.removeAllListeners=a,l.emit=a,l.prependListener=a,l.prependOnceListener=a,l.listeners=function(p){return []},l.binding=function(p){throw new Error("process.binding is not supported")},l.cwd=function(){return "/"},l.chdir=function(p){throw new Error("process.chdir is not supported")},l.umask=function(){return 0};}),"./node_modules/safe-regex-test/index.js":((D,l,f)=>{var d=f("./node_modules/call-bound/index.js"),m=f("./node_modules/is-regex/index.js"),g=d("RegExp.prototype.exec"),O=f("./node_modules/es-errors/type.js");D.exports=function(h){if(!m(h))throw new O("`regex` must be a RegExp");return function(o){return g(h,o)!==null}};}),"./node_modules/set-function-length/index.js":((D,l,f)=>{var d=f("./node_modules/get-intrinsic/index.js"),m=f("./node_modules/define-data-property/index.js"),g=f("./node_modules/has-property-descriptors/index.js")(),O=f("./node_modules/gopd/index.js"),T=f("./node_modules/es-errors/type.js"),h=d("%Math.floor%");D.exports=function(o,r){if(typeof o!="function")throw new T("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||h(r)!==r)throw new T("`length` must be a positive 32-bit integer");var x=arguments.length>2&&!!arguments[2],n=true,c=true;if("length"in o&&O){var a=O(o,"length");a&&!a.configurable&&(n=false),a&&!a.writable&&(c=false);}return (n||c||!x)&&(g?m(o,"length",r,true,true):m(o,"length",r)),o};}),"./node_modules/util/support/isBufferBrowser.js":(D=>{D.exports=function(f){return f&&typeof f=="object"&&typeof f.copy=="function"&&typeof f.fill=="function"&&typeof f.readUInt8=="function"};}),"./node_modules/util/support/types.js":((D,l,f)=>{var d=f("./node_modules/is-arguments/index.js"),m=f("./node_modules/is-generator-function/index.js"),g=f("./node_modules/which-typed-array/index.js"),O=f("./node_modules/is-typed-array/index.js");function T(X){return X.call.bind(X)}var h=typeof BigInt<"u",s=typeof Symbol<"u",o=T(Object.prototype.toString),r=T(Number.prototype.valueOf),x=T(String.prototype.valueOf),n=T(Boolean.prototype.valueOf);if(h)var c=T(BigInt.prototype.valueOf);if(s)var a=T(Symbol.prototype.valueOf);function p(X,Ct){if(typeof X!="object")return false;try{return Ct(X),!0}catch{return false}}l.isArgumentsObject=d,l.isGeneratorFunction=m,l.isTypedArray=O;function t(X){return typeof Promise<"u"&&X instanceof Promise||X!==null&&typeof X=="object"&&typeof X.then=="function"&&typeof X.catch=="function"}l.isPromise=t;function y(X){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(X):O(X)||rt(X)}l.isArrayBufferView=y;function v(X){return g(X)==="Uint8Array"}l.isUint8Array=v;function S(X){return g(X)==="Uint8ClampedArray"}l.isUint8ClampedArray=S;function N(X){return g(X)==="Uint16Array"}l.isUint16Array=N;function b(X){return g(X)==="Uint32Array"}l.isUint32Array=b;function U(X){return g(X)==="Int8Array"}l.isInt8Array=U;function A(X){return g(X)==="Int16Array"}l.isInt16Array=A;function w(X){return g(X)==="Int32Array"}l.isInt32Array=w;function F(X){return g(X)==="Float32Array"}l.isFloat32Array=F;function M(X){return g(X)==="Float64Array"}l.isFloat64Array=M;function W(X){return g(X)==="BigInt64Array"}l.isBigInt64Array=W;function L(X){return g(X)==="BigUint64Array"}l.isBigUint64Array=L;function j(X){return o(X)==="[object Map]"}j.working=typeof Map<"u"&&j(new Map);function k(X){return typeof Map>"u"?false:j.working?j(X):X instanceof Map}l.isMap=k;function J(X){return o(X)==="[object Set]"}J.working=typeof Set<"u"&&J(new Set);function ut(X){return typeof Set>"u"?false:J.working?J(X):X instanceof Set}l.isSet=ut;function ft(X){return o(X)==="[object WeakMap]"}ft.working=typeof WeakMap<"u"&&ft(new WeakMap);function At(X){return typeof WeakMap>"u"?false:ft.working?ft(X):X instanceof WeakMap}l.isWeakMap=At;function Dt(X){return o(X)==="[object WeakSet]"}Dt.working=typeof WeakSet<"u"&&Dt(new WeakSet);function dt(X){return Dt(X)}l.isWeakSet=dt;function jt(X){return o(X)==="[object ArrayBuffer]"}jt.working=typeof ArrayBuffer<"u"&&jt(new ArrayBuffer);function _t(X){return typeof ArrayBuffer>"u"?false:jt.working?jt(X):X instanceof ArrayBuffer}l.isArrayBuffer=_t;function yt(X){return o(X)==="[object DataView]"}yt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&yt(new DataView(new ArrayBuffer(1),0,1));function rt(X){return typeof DataView>"u"?false:yt.working?yt(X):X instanceof DataView}l.isDataView=rt;var K=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function G(X){return o(X)==="[object SharedArrayBuffer]"}function Q(X){return typeof K>"u"?false:(typeof G.working>"u"&&(G.working=G(new K)),G.working?G(X):X instanceof K)}l.isSharedArrayBuffer=Q;function ot(X){return o(X)==="[object AsyncFunction]"}l.isAsyncFunction=ot;function lt(X){return o(X)==="[object Map Iterator]"}l.isMapIterator=lt;function st(X){return o(X)==="[object Set Iterator]"}l.isSetIterator=st;function ht(X){return o(X)==="[object Generator]"}l.isGeneratorObject=ht;function xt(X){return o(X)==="[object WebAssembly.Module]"}l.isWebAssemblyCompiledModule=xt;function it(X){return p(X,r)}l.isNumberObject=it;function vt(X){return p(X,x)}l.isStringObject=vt;function Z(X){return p(X,n)}l.isBooleanObject=Z;function tt(X){return h&&p(X,c)}l.isBigIntObject=tt;function q(X){return s&&p(X,a)}l.isSymbolObject=q;function Y(X){return it(X)||vt(X)||Z(X)||tt(X)||q(X)}l.isBoxedPrimitive=Y;function et(X){return typeof Uint8Array<"u"&&(_t(X)||Q(X))}l.isAnyArrayBuffer=et,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(X){Object.defineProperty(l,X,{enumerable:false,value:function(){throw new Error(X+" is not supported in userland")}});});}),"./node_modules/util/util.js":((D,l,f)=>{var d=f("./node_modules/process/browser.js"),m=Object.getOwnPropertyDescriptors||function(K){for(var G=Object.keys(K),Q={},ot=0;ot<G.length;ot++)Q[G[ot]]=Object.getOwnPropertyDescriptor(K,G[ot]);return Q},g=/%[sdj%]/g;l.format=function(rt){if(!A(rt)){for(var K=[],G=0;G<arguments.length;G++)K.push(s(arguments[G]));return K.join(" ")}for(var G=1,Q=arguments,ot=Q.length,lt=String(rt).replace(g,function(ht){if(ht==="%%")return "%";if(G>=ot)return ht;switch(ht){case "%s":return String(Q[G++]);case "%d":return Number(Q[G++]);case "%j":try{return JSON.stringify(Q[G++])}catch{return "[Circular]"}default:return ht}}),st=Q[G];G<ot;st=Q[++G])N(st)||!W(st)?lt+=" "+st:lt+=" "+s(st);return lt},l.deprecate=function(rt,K){if(typeof d<"u"&&d.noDeprecation===true)return rt;if(typeof d>"u")return function(){return l.deprecate(rt,K).apply(this,arguments)};var G=false;function Q(){if(!G){if(d.throwDeprecation)throw new Error(K);d.traceDeprecation?console.trace(K):console.error(K),G=true;}return rt.apply(this,arguments)}return Q};var O={},T=/^$/;if(d.env.NODE_DEBUG){var h=d.env.NODE_DEBUG;h=h.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),T=new RegExp("^"+h+"$","i");}l.debuglog=function(rt){if(rt=rt.toUpperCase(),!O[rt])if(T.test(rt)){var K=d.pid;O[rt]=function(){var G=l.format.apply(l,arguments);console.error("%s %d: %s",rt,K,G);};}else O[rt]=function(){};return O[rt]};function s(rt,K){var G={seen:[],stylize:r};return arguments.length>=3&&(G.depth=arguments[2]),arguments.length>=4&&(G.colors=arguments[3]),S(K)?G.showHidden=K:K&&l._extend(G,K),F(G.showHidden)&&(G.showHidden=false),F(G.depth)&&(G.depth=2),F(G.colors)&&(G.colors=false),F(G.customInspect)&&(G.customInspect=true),G.colors&&(G.stylize=o),n(G,rt,G.depth)}l.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function o(rt,K){var G=s.styles[K];return G?"\x1B["+s.colors[G][0]+"m"+rt+"\x1B["+s.colors[G][1]+"m":rt}function r(rt,K){return rt}function x(rt){var K={};return rt.forEach(function(G,Q){K[G]=true;}),K}function n(rt,K,G){if(rt.customInspect&&K&&k(K.inspect)&&K.inspect!==l.inspect&&!(K.constructor&&K.constructor.prototype===K)){var Q=K.inspect(G,rt);return A(Q)||(Q=n(rt,Q,G)),Q}var ot=c(rt,K);if(ot)return ot;var lt=Object.keys(K),st=x(lt);if(rt.showHidden&&(lt=Object.getOwnPropertyNames(K)),j(K)&&(lt.indexOf("message")>=0||lt.indexOf("description")>=0))return a(K);if(lt.length===0){if(k(K)){var ht=K.name?": "+K.name:"";return rt.stylize("[Function"+ht+"]","special")}if(M(K))return rt.stylize(RegExp.prototype.toString.call(K),"regexp");if(L(K))return rt.stylize(Date.prototype.toString.call(K),"date");if(j(K))return a(K)}var xt="",it=false,vt=["{","}"];if(v(K)&&(it=true,vt=["[","]"]),k(K)){var Z=K.name?": "+K.name:"";xt=" [Function"+Z+"]";}if(M(K)&&(xt=" "+RegExp.prototype.toString.call(K)),L(K)&&(xt=" "+Date.prototype.toUTCString.call(K)),j(K)&&(xt=" "+a(K)),lt.length===0&&(!it||K.length==0))return vt[0]+xt+vt[1];if(G<0)return M(K)?rt.stylize(RegExp.prototype.toString.call(K),"regexp"):rt.stylize("[Object]","special");rt.seen.push(K);var tt;return it?tt=p(rt,K,G,st,lt):tt=lt.map(function(q){return t(rt,K,G,st,q,it)}),rt.seen.pop(),y(tt,xt,vt)}function c(rt,K){if(F(K))return rt.stylize("undefined","undefined");if(A(K)){var G="'"+JSON.stringify(K).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return rt.stylize(G,"string")}if(U(K))return rt.stylize(""+K,"number");if(S(K))return rt.stylize(""+K,"boolean");if(N(K))return rt.stylize("null","null")}function a(rt){return "["+Error.prototype.toString.call(rt)+"]"}function p(rt,K,G,Q,ot){for(var lt=[],st=0,ht=K.length;st<ht;++st)dt(K,String(st))?lt.push(t(rt,K,G,Q,String(st),true)):lt.push("");return ot.forEach(function(xt){xt.match(/^\d+$/)||lt.push(t(rt,K,G,Q,xt,true));}),lt}function t(rt,K,G,Q,ot,lt){var st,ht,xt;if(xt=Object.getOwnPropertyDescriptor(K,ot)||{value:K[ot]},xt.get?xt.set?ht=rt.stylize("[Getter/Setter]","special"):ht=rt.stylize("[Getter]","special"):xt.set&&(ht=rt.stylize("[Setter]","special")),dt(Q,ot)||(st="["+ot+"]"),ht||(rt.seen.indexOf(xt.value)<0?(N(G)?ht=n(rt,xt.value,null):ht=n(rt,xt.value,G-1),ht.indexOf(`
98
+ `)>-1&&(lt?ht=ht.split(`
99
+ `).map(function(it){return " "+it}).join(`
100
+ `).slice(2):ht=`
101
+ `+ht.split(`
102
+ `).map(function(it){return " "+it}).join(`
103
+ `))):ht=rt.stylize("[Circular]","special")),F(st)){if(lt&&ot.match(/^\d+$/))return ht;st=JSON.stringify(""+ot),st.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(st=st.slice(1,-1),st=rt.stylize(st,"name")):(st=st.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),st=rt.stylize(st,"string"));}return st+": "+ht}function y(rt,K,G){var Q=0,ot=rt.reduce(function(lt,st){return Q++,st.indexOf(`
104
+ `)>=0&&Q++,lt+st.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ot>60?G[0]+(K===""?"":K+`
105
+ `)+" "+rt.join(`,
106
+ `)+" "+G[1]:G[0]+K+" "+rt.join(", ")+" "+G[1]}l.types=f("./node_modules/util/support/types.js");function v(rt){return Array.isArray(rt)}l.isArray=v;function S(rt){return typeof rt=="boolean"}l.isBoolean=S;function N(rt){return rt===null}l.isNull=N;function b(rt){return rt==null}l.isNullOrUndefined=b;function U(rt){return typeof rt=="number"}l.isNumber=U;function A(rt){return typeof rt=="string"}l.isString=A;function w(rt){return typeof rt=="symbol"}l.isSymbol=w;function F(rt){return rt===void 0}l.isUndefined=F;function M(rt){return W(rt)&&ut(rt)==="[object RegExp]"}l.isRegExp=M,l.types.isRegExp=M;function W(rt){return typeof rt=="object"&&rt!==null}l.isObject=W;function L(rt){return W(rt)&&ut(rt)==="[object Date]"}l.isDate=L,l.types.isDate=L;function j(rt){return W(rt)&&(ut(rt)==="[object Error]"||rt instanceof Error)}l.isError=j,l.types.isNativeError=j;function k(rt){return typeof rt=="function"}l.isFunction=k;function J(rt){return rt===null||typeof rt=="boolean"||typeof rt=="number"||typeof rt=="string"||typeof rt=="symbol"||typeof rt>"u"}l.isPrimitive=J,l.isBuffer=f("./node_modules/util/support/isBufferBrowser.js");function ut(rt){return Object.prototype.toString.call(rt)}function ft(rt){return rt<10?"0"+rt.toString(10):rt.toString(10)}var At=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Dt(){var rt=new Date,K=[ft(rt.getHours()),ft(rt.getMinutes()),ft(rt.getSeconds())].join(":");return [rt.getDate(),At[rt.getMonth()],K].join(" ")}l.log=function(){console.log("%s - %s",Dt(),l.format.apply(l,arguments));},l.inherits=f("./node_modules/inherits/inherits_browser.js"),l._extend=function(rt,K){if(!K||!W(K))return rt;for(var G=Object.keys(K),Q=G.length;Q--;)rt[G[Q]]=K[G[Q]];return rt};function dt(rt,K){return Object.prototype.hasOwnProperty.call(rt,K)}var jt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;l.promisify=function(K){if(typeof K!="function")throw new TypeError('The "original" argument must be of type Function');if(jt&&K[jt]){var G=K[jt];if(typeof G!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(G,jt,{value:G,enumerable:false,writable:false,configurable:true}),G}function G(){for(var Q,ot,lt=new Promise(function(xt,it){Q=xt,ot=it;}),st=[],ht=0;ht<arguments.length;ht++)st.push(arguments[ht]);st.push(function(xt,it){xt?ot(xt):Q(it);});try{K.apply(this,st);}catch(xt){ot(xt);}return lt}return Object.setPrototypeOf(G,Object.getPrototypeOf(K)),jt&&Object.defineProperty(G,jt,{value:G,enumerable:false,writable:false,configurable:true}),Object.defineProperties(G,m(K))},l.promisify.custom=jt;function _t(rt,K){if(!rt){var G=new Error("Promise was rejected with a falsy value");G.reason=rt,rt=G;}return K(rt)}function yt(rt){if(typeof rt!="function")throw new TypeError('The "original" argument must be of type Function');function K(){for(var G=[],Q=0;Q<arguments.length;Q++)G.push(arguments[Q]);var ot=G.pop();if(typeof ot!="function")throw new TypeError("The last argument must be of type Function");var lt=this,st=function(){return ot.apply(lt,arguments)};rt.apply(this,G).then(function(ht){d.nextTick(st.bind(null,null,ht));},function(ht){d.nextTick(_t.bind(null,ht,st));});}return Object.setPrototypeOf(K,Object.getPrototypeOf(rt)),Object.defineProperties(K,m(rt)),K}l.callbackify=yt;}),"./node_modules/which-typed-array/index.js":((D,l,f)=>{var d=f("./node_modules/for-each/index.js"),m=f("./node_modules/available-typed-arrays/index.js"),g=f("./node_modules/call-bind/index.js"),O=f("./node_modules/call-bound/index.js"),T=f("./node_modules/gopd/index.js"),h=f("./node_modules/get-proto/index.js"),s=O("Object.prototype.toString"),o=f("./node_modules/has-tostringtag/shams.js")(),r=typeof globalThis>"u"?f.g:globalThis,x=m(),n=O("String.prototype.slice"),c=O("Array.prototype.indexOf",true)||function(v,S){for(var N=0;N<v.length;N+=1)if(v[N]===S)return N;return -1},a={__proto__:null};o&&T&&h?d(x,function(y){var v=new r[y];if(Symbol.toStringTag in v&&h){var S=h(v),N=T(S,Symbol.toStringTag);if(!N&&S){var b=h(S);N=T(b,Symbol.toStringTag);}a["$"+y]=g(N.get);}}):d(x,function(y){var v=new r[y],S=v.slice||v.set;S&&(a["$"+y]=g(S));});var p=function(v){var S=false;return d(a,function(N,b){if(!S)try{"$"+N(v)===b&&(S=n(b,1));}catch{}}),S},t=function(v){var S=false;return d(a,function(N,b){if(!S)try{N(v),S=n(b,1);}catch{}}),S};D.exports=function(v){if(!v||typeof v!="object")return false;if(!o){var S=n(s(v),8,-1);return c(x,S)>-1?S:S!=="Object"?false:t(v)}return T?p(v):null};}),"./src/ForgeExprEvaluator.ts":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.NameNotFoundError=l.ForgeExprEvaluator=l.SUPPORTED_BUILTINS=void 0,l.areTupleArraysEqual=y;let d=f("./node_modules/antlr4ts/tree/AbstractParseTreeVisitor.js"),m=f("./src/forge-antlr/utils.ts"),g=f("./node_modules/lodash/lodash.js"),O=f("./src/ForgeExprFreeVariableFinder.ts"),T=f("./src/NumericConstraintOptimizer.ts");function h(W){return typeof W=="string"||typeof W=="number"||typeof W=="boolean"}function s(W){return Array.isArray(W)}function o(W){return typeof W=="boolean"}function r(W){return typeof W=="number"}function x(W){return Array.isArray(W)&&W.length===1&&Array.isArray(W[0])&&W[0].length===1&&typeof W[0][0]=="number"}function n(W){if(r(W))return W;if(x(W))return W[0][0]}function c(W){return typeof W=="string"}function a(W){return JSON.stringify(W)}function t(W,L){let j=new Set(L.map(a));return W.every(k=>j.has(a(k)))}function y(W,L){return W.length!==L.length?false:t(W,L)&&t(L,W)}function v(W){let L=new Set,j=[];for(let k of W){let J=a(k);L.has(J)||(L.add(J),j.push(k));}return j}function S(W){let L=W.map(k=>k.flat());if(L.length===0)return [[]];if(L.some(k=>k.length===0))return [];let j=[[]];for(let k of L){let J=[];for(let ut of j)for(let ft of k)J.push([...ut,ft]);j=J;}return j}function N(W){if(W.length===0)return [];W.forEach(k=>{if(k.length!==2)throw new Error("transitive closure ^ expected a relation of arity 2")});let L=new Map;for(let[k,J]of W)L.has(k)||L.set(k,new Set),L.get(k).add(J);let j=new Set;for(let k of L.keys()){let J=new Set,ut=[...L.get(k)??[]],ft=0;for(;ft<ut.length;){let At=ut[ft++];if(J.has(At))continue;J.add(At),j.add(JSON.stringify([k,At]));let Dt=L.get(At);if(Dt)for(let dt of Dt)J.has(dt)||ut.push(dt);}}return Array.from(j).map(k=>JSON.parse(k))}let U=["add","subtract","multiply","divide","remainder"],A=["abs","sign"],w=["min","max"];l.SUPPORTED_BUILTINS=U.concat(A,w);class F extends d.AbstractParseTreeVisitor{constructor(L){super(),this.cachedResults=new Map,this.relationCache=null,this.relationIndexCache=null,this.instanceData=L,this.environmentStack=[],this.freeVariableFinder=new O.ForgeExprFreeVariableFinder(L),this.freeVariables=new Map;}buildRelationCache(){if(this.relationCache!==null)return;this.relationCache=new Map,this.relationIndexCache=new Map;let L=this.instanceData.getRelations();for(let j of L){let k=j.tuples.map(ut=>ut.atoms);k=k.map(ut=>ut.map(ft=>this.isConvertibleToNumber(ft)?Number(ft):ft)),k=k.map(ut=>ut.map(ft=>this.isConvertibleToBoolean(ft)?this.convertToBoolean(ft):ft));let J=this.relationCache.get(j.name);this.relationCache.set(j.name,J?J.concat(k):k);}for(let[j,k]of this.relationCache.entries()){let J=new Map;for(let ut of k)if(ut.length>0){let ft=ut[0];J.has(ft)||J.set(ft,[]),J.get(ft).push(ut);}this.relationIndexCache.set(j,J);}}updateFreeVariables(L){if(this.freeVariables.size===0&&(this.freeVariables=L),this.freeVariables.size!==0)for(let[j,k]of L.entries()){this.freeVariables.has(j)||this.freeVariables.set(j,new Set);let J=this.freeVariables.get(j);for(let ut of k)J.add(ut);}}constructFreeVariableKey(L){let j=Object.keys(L);return j.sort(),j.map(k=>{let J=L[k],ut=Array.isArray(J)?JSON.stringify(J):String(J);return `${k}=${ut}`}).join("|")}getLabelForValue(L){if(typeof L=="number"||typeof L=="boolean")return String(L);if(typeof L=="string"){let j=this.instanceData.getAtoms().find(k=>k.id===L);if(j)return j.label!==void 0?j.label:j.id}return console.error(`No atom found for value: ${L}`),L}getLabelAsString(L){if(typeof L=="number"||typeof L=="boolean")return String(L);let j=this.getLabelForValue(L);return String(j)}getLabelAsBoolean(L){if(typeof L=="boolean")return L;if(typeof L=="number")return L!==0;let j=this.getLabelForValue(L),k=String(j).toLowerCase();if(k==="true")return true;if(k==="false")return false;let J=Number(j);return isNaN(J)?k!=="":J!==0}getLabelAsNumber(L){if(typeof L=="number")return L;let j=this.getLabelForValue(L),k=Number(j);if(isNaN(k))throw new Error(`Cannot convert label "${j}" to number`);return k}isConvertibleToNumber(L){return typeof L=="number"?true:typeof L=="string"?!isNaN(Number(L)):false}isConvertibleToBoolean(L){return typeof L=="boolean"?true:typeof L=="string"?L==="true"||L==="#t"||L==="false"||L==="#f":false}convertToBoolean(L){if(typeof L=="boolean")return L;if(L==="true"||L==="#t")return true;if(L==="false"||L==="#f")return false;throw new Error(`Cannot convert ${L} to boolean`)}dotJoin(L,j,k){let J=h(L)?[[L]]:L,ut=h(j)?[[j]]:j,ft;if(k&&this.relationIndexCache&&(ft=this.relationIndexCache.get(k)),!ft){ft=new Map;for(let Dt of ut){let dt=Dt[0];ft.has(dt)||ft.set(dt,[]),ft.get(dt).push(Dt);}}let At=[];for(let Dt of J){let dt=Dt[Dt.length-1],jt=ft.get(dt);if(jt)for(let _t of jt)At.push([...Dt.slice(0,Dt.length-1),..._t.slice(1)]);}if(At.some(Dt=>Dt.length===0))throw new Error("Join would create a relation of arity 0");return v(At)}cacheResult(L,j,k){this.cachedResults.has(L)||this.cachedResults.set(L,new Map),this.cachedResults.get(L).set(j,k);}getIden(){let L=this.instanceData.getTypes(),j=[],k=new Set;for(let J of L)J.atoms.forEach(ft=>{if(k.has(ft.id))return;k.add(ft.id);let At=ft.id;isNaN(Number(At))?At=="true"||At==="#t"?At=true:(At=="false"||At==="#f")&&(At=false):At=Number(At),j.push([At,At]);});return j}aggregateResult(L,j){if(s(L)&&L.length===0)return j;if(s(j)&&j.length===0)return L;if(h(L)){if(h(j))return j;throw new Error("Expected nextResult to be a single value")}else return h(j)?L.concat([j]):L.concat(j)}defaultResult(){return []}visitPredDecl(L){return this.visit(L.block())}visitBlock(L){let j;for(let k of L.expr()){let J=this.visit(k);if(!o(J))throw new Error("Each expr in a block must evaluate to a boolean!");j===void 0?j=J:j=j&&J;}if(j===void 0)throw new Error("Expected the block to be nonempty!");return j}visitExpr(L){let j=this.freeVariables.get(L);if(j===void 0){let Dt=this.freeVariableFinder.visit(L);this.updateFreeVariables(Dt),j=Dt.get(L);}let k=true,J={};for(let Dt of j)for(let dt=this.environmentStack.length-1;dt>=0;dt--){let jt=this.environmentStack[dt];if(jt.env[Dt]!==void 0){J[Dt]=jt.env[Dt];break}jt.type==="predArgs"&&(k=false);}let ut=this.constructFreeVariableKey(J);if(k&&this.cachedResults.has(L)&&this.cachedResults.get(L).has(ut))return this.cachedResults.get(L).get(ut);let ft;if(L.LET_TOK()&&(ft=[],ft.push(["**UNIMPLEMENTED** Let Binding (`let x = ...`)"])),L.BIND_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW** Bind Expression");if(L.quant()){if(L.quantDeclList()===void 0)throw new Error("Expected the quantifier to have a quantDeclList!");let Dt=this.freeVariableFinder.visit(L);this.updateFreeVariables(Dt);let dt=this.getQuantDeclListValues(L.quantDeclList()),jt=L.DISJ_TOK()!==void 0,_t=L.blockOrBar();if(_t===void 0)throw new Error("expected to quantify over something!");if(_t.BAR_TOK()===void 0||_t.expr()===void 0)throw new Error("Expected the quantifier to have a bar followed by an expr!");let yt=_t.expr(),rt=[],K=[];for(let xt in dt)rt.push(xt),K.push(dt[xt]);let G,Q=false;if(!jt&&rt.length>=2&&(0, T.areAllNumericSets)(K)){let xt=(0, T.detectNumericComparisonPattern)(yt,rt);xt&&xt.type!=="none"?(G=(0, T.generateOptimizedNumericCombinations)(rt,K,xt),Q=true):G=S(K);}else G=S(K);let ot=[],lt=false,st=false,ht={env:{},type:"quantDecl"};this.environmentStack.push(ht);for(let xt=0;xt<G.length;xt++){let it=G[xt];if(jt){let Z=true,tt=new Set;for(let q of it){if(tt.has(q)){Z=false;break}tt.add(q);}if(!Z)continue}for(let Z=0;Z<rt.length;Z++)ht.env[rt[Z]]=it[Z];let vt;if(Q)vt=true;else {let Z=this.visit(yt);if(!o(Z))throw new Error("Expected the expression after the bar to be a boolean!");vt=Z;}if(vt?(ot.push(it),lt=true):st=true,L.quant().ALL_TOK()&&st){this.environmentStack.pop();let Z=false;return this.cacheResult(L,ut,Z),Z}if(L.quant().NO_TOK()&&lt){this.environmentStack.pop();let Z=false;return this.cacheResult(L,ut,Z),Z}if(L.quant().mult()){let Z=L.quant().mult();if(Z.LONE_TOK()&&ot.length>1){this.environmentStack.pop();let tt=false;return this.cacheResult(L,ut,tt),tt}if(Z.SOME_TOK()&&lt){this.environmentStack.pop();let tt=true;return this.cacheResult(L,ut,tt),tt}if(Z.ONE_TOK()&&ot.length>1){this.environmentStack.pop();let tt=false;return this.cacheResult(L,ut,tt),tt}if(Z.TWO_TOK()&&ot.length>2){this.environmentStack.pop();let tt=false;return this.cacheResult(L,ut,tt),tt}}}if(this.environmentStack.pop(),L.quant().ALL_TOK()){let xt=!st;return this.cacheResult(L,ut,xt),xt}else if(L.quant().NO_TOK()){let xt=!lt;return this.cacheResult(L,ut,xt),xt}else if(L.quant().mult()){let xt=L.quant().mult();if(xt.LONE_TOK()){let it=ot.length<=1;return this.cacheResult(L,ut,it),it}else if(xt.SOME_TOK()){let it=lt;return this.cacheResult(L,ut,it),it}else if(xt.ONE_TOK()){let it=ot.length===1;return this.cacheResult(L,ut,it),it}else if(xt.TWO_TOK()){let it=ot.length===2;return this.cacheResult(L,ut,it),it}}}let At=this.visitChildren(L);if(ft===void 0)return this.cacheResult(L,ut,At),At;if(h(ft))throw new Error("Expected results to be a tuple array");return h(At)?ft.push([At]):ft=ft.concat(At),this.cacheResult(L,ut,ft),ft}visitExpr1(L){if(L.OR_TOK()){if(L.expr1_5()===void 0||L.expr1_5()===void 0)throw new Error("Expected the OR operator to have 2 operands of the right type!");let k=this.visit(L.expr1());if(!o(k))throw new Error("OR operator expected 2 boolean operands!");if(k)return k;let J=this.visit(L.expr1_5());if(!o(J))throw new Error("OR operator expected 2 boolean operands!");return J}return this.visitChildren(L)}visitExpr1_5(L){if(L.XOR_TOK()){if(L.expr1_5()===void 0||L.expr2()===void 0)throw new Error("Expected the XOR operator to have 2 operands of the right type!");let k=this.visit(L.expr1_5()),J=this.visit(L.expr2());if(!o(k)||!o(J))throw new Error("XOR operator expected 2 boolean operands!");return k!==J}return this.visitChildren(L)}visitExpr2(L){if(L.IFF_TOK()){if(L.expr2()===void 0||L.expr3()===void 0)throw new Error("Expected the IFF operator to have 2 operands of the right type!");let k=this.visit(L.expr2()),J=this.visit(L.expr3());if(!o(k)||!o(J))throw new Error("IFF operator expected 2 boolean operands!");return k===J}return this.visitChildren(L)}visitExpr3(L){if(L.IMP_TOK()){if(L.expr3()===void 0||L.expr4()===void 0)throw new Error("Expected the IMP operator to have 2 operands of the right type!");let k=this.visit(L.expr4());if(!o(k))throw new Error("IMP operator expected 2 boolean operands!");let J=L.expr3()??[],ut=J[0],ft=J[1];if(L.ELSE_TOK()){if(!ut||!ft)throw new Error("Expected the ELSE operator to have 2 operands!");let Dt=this.visit(k?ut:ft);if(!o(Dt))throw new Error("IMP operator expected 2 boolean operands!");return Dt}if(!k)return true;if(!ut)throw new Error("Expected the IMP operator to have a consequent expression!");let At=this.visit(ut);if(!o(At))throw new Error("IMP operator expected 2 boolean operands!");return At}return this.visitChildren(L)}visitExpr4(L){if(L.AND_TOK()){if(L.expr4()===void 0||L.expr4_5()===void 0)throw new Error("Expected the AND operator to have 2 operands of the right type!");let k=this.visit(L.expr4());if(!o(k))throw new Error("AND operator expected 2 boolean operands!");if(!k)return k;let J=this.visit(L.expr4_5());if(!o(J))throw new Error("AND operator expected 2 boolean operands!");return J}return this.visitChildren(L)}visitExpr4_5(L){let j=[];return L.UNTIL_TOK()?(j.push(["**UNIMPLEMENTED** Temporal Operator (`until`)"]),j):L.RELEASE_TOK()?(j.push(["**UNIMPLEMENTED** Temporal Operator (`release`)"]),j):L.SINCE_TOK()?(j.push(["**UNIMPLEMENTED** Temporal Operator (`since`)"]),j):L.TRIGGERED_TOK()?(j.push(["**UNIMPLEMENTED** Temporal Operator (`triggered`)"]),j):this.visitChildren(L)}visitExpr5(L){let j=[];if(L.expr6())return this.visit(L.expr6());if(L.expr5()===void 0)throw new Error("Expected the temporal operator to have 1 operand!");let k=this.visit(L.expr5());if(L.NEG_TOK()){if(!o(k))throw new Error("Expected the negation operator to have a boolean operand!");return !k}return L.ALWAYS_TOK()?(j.push(["**UNIMPLEMENTED** Temporal Operator (`always`)"]),j):L.EVENTUALLY_TOK()?(j.push(["**UNIMPLEMENTED** Temporal Operator (`eventually`)"]),j):L.AFTER_TOK()?(j.push(["**UNIMPLEMENTED** Temporal Operator (`after`)"]),j):L.BEFORE_TOK()?(j.push(["**UNIMPLEMENTED** Temporal Operator (`before`)"]),j):L.ONCE_TOK()?(j.push(["**UNIMPLEMENTED** Temporal Operator (`once`)"]),j):L.HISTORICALLY_TOK()?(j.push(["**UNIMPLEMENTED** Temporal Operator (`historically`)"]),j):k}visitExpr6(L){let j=[],k=false,J=false;if(L.NEG_TOK()&&(k=true),L.compareOp()){if(J=true,L.expr6()===void 0||L.expr7()===void 0)throw new Error("Expected the compareOp to have 2 operands!");let ut=this.visit(L.expr6()),ft=this.visit(L.expr7()),At=n(ut),Dt=n(ft);switch(L.compareOp()?.text){case "=":if(h(ut)&&h(ft))j=ut===ft;else if(h(ut)&&s(ft))ft.length===1&&ft[0].length===1?j=ut===ft[0][0]:j=false;else if(s(ut)&&h(ft))ut.length===1&&ut[0].length===1?j=ut[0][0]===ft:j=false;else if(s(ut)&&s(ft))j=y(ut,ft);else throw new Error("unexpected error: equality operand is not a well defined forge value!");break;case "<":if(At===void 0||Dt===void 0)throw new Error(`Expected the < operator to have 2 number operands (number or [[number]]), got ${typeof ut} and ${typeof ft}!`);j=At<Dt;break;case ">":if(At===void 0||Dt===void 0)throw new Error(`Expected the > operator to have 2 number operands (number or [[number]]), got ${typeof ut} and ${typeof ft}!`);j=At>Dt;break;case "<=":if(At===void 0||Dt===void 0)throw new Error(`Expected the <= operator to have 2 number operands (number or [[number]]), got ${typeof ut} and ${typeof ft}!`);j=At<=Dt;break;case ">=":if(At===void 0||Dt===void 0)throw new Error(`Expected the >= operator to have 2 number operands (number or [[number]]), got ${typeof ut} and ${typeof ft}!`);j=At>=Dt;break;case "in":case "ni":{let dt;s(ut)&&s(ft)?y(ut,ft)?dt=true:dt=t(ut,ft):s(ft)?dt=ft.some(jt=>jt.length===1&&jt[0]===ut):dt=false,j=L.compareOp()?.text==="ni"?!dt:dt;break}case "is":throw new Error("**NOT IMPLEMENTING FOR NOW** Type Check (`is`)");default:throw new Error(`Unexpected compare operator provided: ${L.compareOp()?.text}`)}}if(k){if(!o(j))throw new Error("Expected the negation operator to have a boolean operand!");return !j}return J?j:this.visitChildren(L)}visitExpr7(L){let k=this.visit(L.expr8());return L.SET_TOK()?k:L.ONE_TOK()?s(k)&&k.length===1:L.TWO_TOK()?s(k)&&k.length===2:L.NO_TOK()?s(k)&&k.length===0:L.SOME_TOK()?s(k)&&k.length>0:L.LONE_TOK()?s(k)&&k.length<=1:k}visitExpr8(L){if(L.PLUS_TOK()){let j=this.visit(L.expr8()),k=this.visit(L.expr10());if(h(j)&&h(k))return [[j],[k]];if(h(j)&&s(k)){if(k.length===0)return j;if(k[0].length===1)return v([[j],...k]);throw new Error("arity mismatch in set union!")}else if(s(j)&&h(k)){if(j.length===0)return k;if(j[0].length===1)return v([...j,[k]]);throw new Error("arity mismatch in set union!")}else if(s(j)&&s(k)){if(j.length===0&&k.length===0)return [];if(j.length===0)return k;if(k.length===0)return j;if(j[0].length===k[0].length)return v([...j,...k])}else throw new Error("unexpected error: expressions added are not well defined!")}if(L.MINUS_TOK()){let j=this.visit(L.expr8()),k=this.visit(L.expr10());if(h(j)&&h(k))return j===k?[]:j;if(h(j)&&s(k)){if(k.length===0)return j;if(k[0].length===1)return k.some(J=>J[0]===j)?[]:j;throw new Error("arity mismatch in set difference!")}else if(s(j)&&h(k)){if(j.length===0)return [];if(j[0].length===1)return j.filter(J=>J[0]!==k);throw new Error("arity mismatch in set difference!")}else if(s(j)&&s(k)){if(j.length===0)return [];if(k.length===0)return j;if(j[0].length===k[0].length){let J=new Set(k.map(a));return j.filter(ut=>!J.has(a(ut)))}}else throw new Error("unexpected error: expressions subtracted are not well defined!")}return this.visitChildren(L)}visitExpr9(L){let j=this.visitChildren(L);if(L.CARD_TOK()){if(!s(j))throw new Error("The cardinal operator must be applied to a set of tuples!");return j.length}return j}visitExpr10(L){if(L.PPLUS_TOK()){if(L.expr10()===void 0||L.expr11()===void 0)throw new Error("Expected the pplus operator to have 2 operands of the right type!");this.visit(L.expr10());this.visit(L.expr11());throw new Error("**NOT IMPLEMENTING FOR NOW** pplus (`++`)")}return this.visitChildren(L)}visitExpr11(L){if(L.AMP_TOK()){if(L.expr11()===void 0||L.expr12()===void 0)throw new Error("Expected the amp operator to have 2 operands of the right type!");let j=this.visit(L.expr11()),k=this.visit(L.expr12());if(h(j)&&h(k))return j===k?j:[];if(h(j)&&s(k)){if(k.length===0)return [];if(k[0].length===1)return k.some(J=>J[0]===j)?j:[];throw new Error("arity mismatch in set intersection!")}else if(s(j)&&h(k)){if(j.length===0)return [];if(j[0].length===1)return j.some(J=>J[0]===k)?k:[];throw new Error("arity mismatch in set intersection!")}else if(s(j)&&s(k)){if(j.length===0||k.length===0)return [];if(j[0].length===k[0].length){let J=new Set(k.map(a));return j.filter(ut=>J.has(a(ut)))}}else throw new Error("unexpected error: expressions intersected are not well defined!")}return this.visitChildren(L)}visitExpr12(L){if(L.arrowOp()){if(L.expr12()===void 0||L.expr13()===void 0)throw new Error("Expected the arrow operator to have 2 operands of the right type!");let j=this.visit(L.expr12()),k=this.visit(L.expr13()),J=h(j)?[[j]]:j,ut=h(k)?[[k]]:k;if(!s(J)||!s(ut))throw new Error("Arrow operator operands must be tuple arrays or single values");let ft=[];for(let At of J)for(let Dt of ut)ft.push([...At,...Dt]);return v(ft)}return this.visitChildren(L)}visitExpr13(L){if(L.SUPT_TOK()){if(L.expr13()===void 0||L.expr14()===void 0)throw new Error("Expected the supertype operator to have 2 operands of the right type!");this.visit(L.expr13());this.visit(L.expr14());throw new Error("**NOT IMPLEMENTING FOR NOW** Supertype Operator (`:>`)")}if(L.SUBT_TOK()){if(L.expr13()===void 0||L.expr14()===void 0)throw new Error("Expected the subtype operator to have 2 operands of the right type!");this.visit(L.expr13());this.visit(L.expr14());throw new Error("**NOT IMPLEMENTING FOR NOW** Subtype Operator (`<:`)")}return this.visitChildren(L)}visitExpr14(L){if(L.LEFT_SQUARE_TOK()){let k=this.visit(L.expr14()),J=this.visit(L.exprList());if(c(k)){if(U.includes(k))return this.evaluateBinaryOperation(k,J);if(A.includes(k))return this.evaluateUnaryOperation(k,J);if(w.includes(k))return this.evaluateSetOperation(k,J)}return this.dotJoin(J,k)}return this.visitChildren(L)}visitExpr15(L){let j=[];if(L.DOT_TOK()){if(L.expr15()===void 0||L.expr16()===void 0)throw new Error("Expected the dot operator to have 2 operands of the right type!");let k=this.visit(L.expr15()),J=this.visit(L.expr16()),ut;if(s(J)&&this.relationCache){for(let[ft,At]of this.relationCache.entries())if(At===J){ut=ft;break}}return this.dotJoin(k,J,ut)}if(L.LEFT_SQUARE_TOK()){this.visit(L.name());this.visit(L.exprList());return j.push(["**UNIMPLEMENTED** _[_]"]),j}return this.visitChildren(L)}visitExpr16(L){let j=[];if(L.PRIME_TOK()){this.visit(L.expr16());return j.push(["**UNIMPLEMENTED** Primed Expression _'"]),j}return this.visitChildren(L)}visitExpr17(L){if(L.GET_LABEL_TOK()||L.GET_LABEL_STR_TOK()||L.GET_LABEL_BOOL_TOK()||L.GET_LABEL_NUM_TOK()){let J=L.expr17();if(!J)throw new Error("Label operator requires an expression");let ut,ft;if(L.GET_LABEL_TOK())ut=At=>this.getLabelAsString(At),ft="@:";else if(L.GET_LABEL_STR_TOK())ut=At=>this.getLabelAsString(At),ft="@str:";else if(L.GET_LABEL_BOOL_TOK())ut=At=>this.getLabelAsBoolean(At),ft="@bool:";else if(L.GET_LABEL_NUM_TOK())ut=At=>this.getLabelAsNumber(At),ft="@num:";else throw new Error("Unknown label operator");try{let At=this.visit(J);if(s(At)&&At.length===0){let Dt=J.text;Dt.startsWith("(")&&Dt.endsWith(")")&&(Dt=Dt.slice(1,-1));try{return ut(Dt)}catch{return Dt}}if(h(At))return ut(At);if(s(At))return At.length===1&&At[0].length===1?ut(At[0][0]):At.map(Dt=>Dt.map(dt=>ut(dt)));throw new Error(`${ft} operator can only be applied to single values or tuple arrays`)}catch(At){if(At instanceof M){let Dt=J.text;Dt.startsWith("(")&&Dt.endsWith(")")&&(Dt=Dt.slice(1,-1));try{return ut(Dt)}catch{return Dt}}throw At}}let k=this.visitChildren(L);if(L.TILDE_TOK()){if(s(k)&&k.length>0&&k[0].length===2)return k.map(J=>[J[1],J[0]]);throw new Error("expected the expression provided to ~ to have arity 2; bad arity received!")}if(L.EXP_TOK()){if(s(k))return N(k);throw new Error("transitive closure ^ expected a relation of arity 2, not a singular value!")}if(L.STAR_TOK()&&s(k)){let J=N(k),ut=this.getIden(),ft=new Set;for(let At of ut)ft.add(a(At));for(let At of J)ft.add(a(At));return Array.from(ft).map(At=>JSON.parse(At))}return k}getNameListValues(L){if(L.COMMA_TOK()){let j=(0, m.getIdentifierName)(L.name()),k=this.getNameListValues(L.nameList());return [j,...k]}else return [(0, m.getIdentifierName)(L.name())]}getQuantDeclValues(L){let j=L.nameList(),k=this.getNameListValues(j),J=L.expr(),ut=this.visitExpr(J);h(ut)&&(ut=[[ut]]);let ft={};for(let At of k)ft[At]=ut;return ft}getQuantDeclListValues(L){if(L.COMMA_TOK()){let j=L.quantDecl(),k=L.quantDeclList();if(k===void 0)throw new Error("expected a quantDeclList after the comma");let J=this.getQuantDeclValues(j),ut=this.getQuantDeclListValues(k);return {...J,...ut}}else return this.getQuantDeclValues(L.quantDecl())}visitExpr18(L){let j=[];if(L.const()){let k=L.const();if(k.number()!==void 0){let J=Number(k.number().text);return k.MINUS_TOK()!==void 0?-J:J}if(k.IDEN_TOK()!==void 0){let J=this.instanceData.getAtoms(),ut=[];for(let ft of J){let At=ft.id;this.isConvertibleToNumber(At)?At=Number(At):this.isConvertibleToBoolean(At)&&(At=this.convertToBoolean(At)),ut.push([At,At]);}return ut}if(k.UNIV_TOK()!==void 0){let J=this.instanceData.getAtoms(),ut=[];for(let ft of J){let At=ft.id;this.isConvertibleToNumber(At)?At=Number(At):this.isConvertibleToBoolean(At)&&(At=this.convertToBoolean(At)),ut.push([At]);}return ut}return k.text==="true"?true:k.text==="false"?false:`${k.text}`}if(L.qualName())return this.visitQualName(L.qualName());if(L.AT_TOK())throw new Error("`@` operator is Alloy specific; it is not supported by Forge!");if(L.BACKQUOTE_TOK()){this.visitChildren(L);return j.push(["**UNIMPLEMENTED** Backquoted Name (`` `x` ``)"]),j}if(L.THIS_TOK())throw new Error("`this` is Alloy specific; it is not supported by Forge!");if(L.LEFT_CURLY_TOK()){if(L.quantDeclList()===void 0)throw new Error("expected a quantDeclList in the set comprehension!");let k=this.freeVariableFinder.visit(L);this.updateFreeVariables(k);let J=this.getQuantDeclListValues(L.quantDeclList()),ut=L.blockOrBar();if(ut===void 0)throw new Error("expected a blockOrBar in the set comprehension!");if(ut.BAR_TOK()===void 0||ut.expr()===void 0)throw new Error("expected a bar followed by an expr in the set comprehension!");let ft=ut.expr(),At=[],Dt=[];for(let rt in J)At.push(rt),Dt.push(J[rt]);let dt,jt=false;if(At.length>=2&&(0, T.areAllNumericSets)(Dt)){let rt=(0, T.detectNumericComparisonPattern)(ft,At);rt&&rt.type!=="none"?(dt=(0, T.generateOptimizedNumericCombinations)(At,Dt,rt),jt=true):dt=S(Dt);}else dt=S(Dt);let _t=[],yt={env:{},type:"quantDecl"};this.environmentStack.push(yt);for(let rt=0;rt<dt.length;rt++){let K=dt[rt];for(let Q=0;Q<At.length;Q++)yt.env[At[Q]]=K[Q];let G;if(jt)G=true;else {let Q=this.visit(ft);if(!o(Q))throw new Error("Expected the expression after the bar to be a boolean value!");G=Q;}G&&_t.push(K);}return this.environmentStack.pop(),v(_t)}if(L.LEFT_PAREN_TOK())return this.visit(L.expr());if(L.block())return this.visitBlock(L.block());if(L.sexpr())throw new Error("**NOT IMPLEMENTING FOR NOW** S-Expression");return this.visitChildren(L)}visitExprList(L){let j=[];if(L.COMMA_TOK()){let k=this.visit(L.expr());if(L.exprList()===void 0)throw new Error("exprList with a comma must have a tail!");let J=this.visit(L.exprList());return h(k)?j.push([k]):j=k,s(J)?j=j.concat(J):j.push([J]),j}return this.visitChildren(L)}visitName(L){let j=(0, m.getIdentifierName)(L);if(j==="true")return true;if(j==="false")return false;for(let dt=this.environmentStack.length-1;dt>=0;dt--){let jt=this.environmentStack[dt];if(jt.env[j]!==void 0)return jt.env[j];if(jt.type==="predArgs")break}let k;if(this.instanceData.getTypes().map(dt=>dt.id).includes(j)){let dt=this.instanceData.getTypes().find(yt=>yt.id===j)?.atoms||[],jt=new Set,_t=[];for(let yt of dt)jt.has(yt.id)||(jt.add(yt.id),_t.push(yt.id));k=_t.map(yt=>[yt]);}for(let dt of this.instanceData.getTypes())if(dt.atoms.map(_t=>_t.id).includes(j)){k=[[j]];break}this.instanceData.getTypes().map(dt=>dt.id);let ft=[j],At=new Set;for(;ft.length>0;){let dt=ft.pop();if(dt===void 0)throw new Error("unexpected error: no identifier could be searched!");if(!At.has(dt)){At.add(dt);for(let jt of this.instanceData.getTypes())if(jt.id!==dt&&jt.types&&jt.types.includes(dt)){k===void 0&&(k=[]);for(let _t of jt.atoms)k.push([_t.id]);ft.push(jt.id);}}}if(this.buildRelationCache(),this.relationCache.has(j))return this.relationCache.get(j);if(k!==void 0)return k=k.map(dt=>dt.map(jt=>this.isConvertibleToNumber(jt)?Number(jt):jt)),k=k.map(dt=>dt.map(jt=>this.isConvertibleToBoolean(jt)?this.convertToBoolean(jt):jt)),k;if(l.SUPPORTED_BUILTINS.includes(j)||/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(j))return j;throw new M(`bad name ${j} referenced!`)}visitQualName(L){if(L.INT_TOK()){let j=this.instanceData.getTypes().find(ut=>ut.id==="Int");if(!j)throw new Error('Type "Int" not found in instance data');let k=new Set,J=[];for(let ut of j.atoms)k.has(ut.id)||(k.add(ut.id),J.push([Number(ut.id)]));return J}return this.visitChildren(L)}evaluateBinaryOperation(L,j){if(h(j))throw new Error(`Expected 2 arguments for ${L}`);let k;if((0, g.isArray)(j[0])){if(!r(j[0][0]))throw new Error(`Expected a number for the first argument of ${L}`);k=j[0][0];}else {if(!r(j[0]))throw new Error(`Expected a number for the first argument of ${L}`);k=j[0];}let J;if((0, g.isArray)(j[1])){if(!r(j[1][0]))throw new Error(`Expected a number for the second argument of ${L}`);J=j[1][0];}else {if(!r(j[1]))throw new Error(`Expected a number for the second argument of ${L}`);J=j[1];}if((L==="divide"||L==="remainder")&&J===0)throw new Error("Division by zero is not allowed");let ut;switch(L){case "add":ut=k+J;break;case "subtract":ut=k-J;break;case "multiply":ut=k*J;break;case "divide":ut=Math.floor(k/J);break;case "remainder":ut=k%J;break;default:throw new Error(`Unsupported operation: ${L}`)}return ut}evaluateUnaryOperation(L,j){if(!h(j)||!r(j))throw new Error(`Expected 1 argument for ${L} that evaluates to a number.`);let k=j;if(L==="abs")return Math.abs(k);if(L==="sign")return k>0?1:k<0?-1:0;throw new Error(`Unsupported operation: ${L}`)}evaluateSetOperation(L,j){let k=[];if(h(j))if(r(j))k=[j];else throw new Error(`Expected a set of numbers for ${L}`);else if(s(j))for(let J of j){if(J.length!==1)throw new Error(`${L} expects a set of arity 1 (single column)`);let ut=J[0];if(!r(ut))throw new Error(`${L} expects all elements to be numbers, got: ${typeof ut}`);k.push(ut);}else throw new Error(`Expected a set of numbers for ${L}`);if(k.length===0)throw new Error(`${L} requires a non-empty set`);if(L==="min")return Math.min(...k);if(L==="max")return Math.max(...k);throw new Error(`Unsupported set operation: ${L}`)}}l.ForgeExprEvaluator=F;class M extends Error{constructor(L){super(L),this.name="NameNotFoundError";}}l.NameNotFoundError=M;}),"./src/ForgeExprFreeVariableFinder.ts":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.ForgeExprFreeVariableFinder=void 0;let d=f("./node_modules/antlr4ts/tree/AbstractParseTreeVisitor.js"),m=f("./src/forge-antlr/utils.ts"),g=f("./src/ForgeExprEvaluator.ts");function O(h){let s=new Set;for(let o of h.values())for(let r of o)s.add(r);return s}class T extends d.AbstractParseTreeVisitor{constructor(s){super(),this.instanceData=s;}aggregateResult(s,o){if(!s)return o;if(!o)return s;for(let[r,x]of o.entries()){s.has(r)||s.set(r,new Set);let n=s.get(r);for(let c of x)n.add(c);}return s}addCtxToFreeVariableMap(s,o,r){o.has(s)||o.set(s,O(o));let x=o.get(s);if(r!==void 0)for(let n in r)x.add(n);return o}defaultResult(){return new Map}visitPredDecl(s){let o=this.visit(s.block());return this.addCtxToFreeVariableMap(s,o)}visitBlock(s){let o=this.defaultResult();for(let r of s.expr()){let x=this.visit(r);o=this.aggregateResult(o,x);}return this.addCtxToFreeVariableMap(s,o)}getNameListValues(s){if(s.COMMA_TOK()){let o=(0, m.getIdentifierName)(s.name()),r=this.getNameListValues(s.nameList());return r.add(o),r}else return new Set([(0, m.getIdentifierName)(s.name())])}getQuantDeclVarNames(s){let o=s.nameList();return this.getNameListValues(o)}getQuantDeclListVarNames(s){if(s.COMMA_TOK()){let o=s.quantDecl(),r=s.quantDeclList();if(r===void 0)throw new Error("expected a quantDeclList after the comma");let x=this.getQuantDeclVarNames(o),n=this.getQuantDeclListVarNames(r);for(let c of x)n.add(c);return n}else return this.getQuantDeclVarNames(s.quantDecl())}visitExpr(s){if(s.LET_TOK())throw new Error("**UNIMPLEMENTED**: Let binding not yet implemented");if(s.BIND_TOK())throw new Error("**NOT IMPLEMENTING FOR NOW**: Bind Expression");if(s.quant()){if(s.quantDeclList()===void 0)throw new Error("Expected the quantifier to have a quantDeclList");let r=this.getQuantDeclListVarNames(s.quantDeclList()),x=this.visit(s.quantDeclList()),n=s.blockOrBar();if(n===void 0)throw new Error("expected to quantify over something!");if(n.BAR_TOK()===void 0||n.expr()===void 0)throw new Error("Expected the quantifier to have a bar followed by an expr!");let c;n.block()!==void 0?c=this.visit(n.block()):c=this.visit(n.expr());let a=this.aggregateResult(c,x),p=O(a),t=new Set;for(let y of p)r.has(y)||t.add(y);return a.set(s,t),a}let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr1(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr1_5(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr2(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr3(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr4(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr4_5(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr5(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr6(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr7(s){let o=this.visit(s.expr8());return this.addCtxToFreeVariableMap(s,o)}visitExpr8(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr9(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr10(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr11(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr12(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr13(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr14(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr15(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr16(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr17(s){let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExpr18(s){if(s.LEFT_CURLY_TOK()){if(s.quantDeclList()===void 0)throw new Error("expected a quantDeclList in the set comprehension!");let r=this.getQuantDeclListVarNames(s.quantDeclList()),x=s.blockOrBar();if(x===void 0)throw new Error("expected a blockOrBar in the set comprehension!");if(x.BAR_TOK()===void 0||x.expr()===void 0)throw new Error("expected a bar followed by an expr in the set comprehension!");let n;x.block()!==void 0?n=this.visit(x.block()):n=this.visit(x.expr());let c=O(n),a=new Set;for(let p of c)r.has(p)||a.add(p);return n.set(s,a),n}let o=this.visitChildren(s);return this.addCtxToFreeVariableMap(s,o)}visitExprList(s){let o=this.defaultResult();if(s.COMMA_TOK()){if(s.exprList()===void 0)throw new Error("exprList with a comma must have a tail!");let r=this.visit(s.expr()),x=this.visit(s.exprList());o=this.aggregateResult(o,r),o=this.aggregateResult(o,x);}else {let r=this.visit(s.expr());o=this.aggregateResult(o,r);}return this.addCtxToFreeVariableMap(s,o)}visitName(s){let o=(0, m.getIdentifierName)(s);if(o==="true"||o==="false")return this.defaultResult();if(this.instanceData.getTypes().map(n=>n.id).includes(o))return this.defaultResult();for(let n of this.instanceData.getTypes())if(n.atoms.map(a=>a.id).includes(o))return this.defaultResult();for(let n of this.instanceData.getRelations())if(n.name===o)return this.defaultResult();if(g.SUPPORTED_BUILTINS.includes(o))return this.defaultResult();let x=this.defaultResult();return x.set(s,new Set([o])),x}}l.ForgeExprFreeVariableFinder=T;}),"./src/ForgeExprStaticAnalyzer.ts":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.ForgeExprStaticAnalyzer=void 0;let d=f("./node_modules/antlr4ts/tree/AbstractParseTreeVisitor.js"),m=f("./src/forge-antlr/ForgeParser.ts"),g=f("./src/forge-antlr/utils.ts"),O={kind:"unknown"};class T{constructor(a){this.typesById=new Map(a.getTypes().map(p=>[p.id,p])),this.relationsByName=new Map;for(let p of a.getRelations()){let t=this.relationsByName.get(p.name);t?t.push(p):this.relationsByName.set(p.name,[p]);}}getType(a){return this.typesById.get(a)}getRelations(a){return this.relationsByName.get(a)??[]}isSubtypeOf(a,p){if(a===p)return true;let t=this.typesById.get(a);return t?t.types.includes(p):false}areDisjoint(a,p){if(a===p)return false;for(let t of this.typesById.values())if(t.types.includes(a)&&t.types.includes(p))return false;return true}}function h(c,a){return !c||!a?false:c.text===a.text}function s(c,a){if(!c)return false;let p=c;for(;p.childCount===1;)p=p.getChild(0);return p instanceof m.Expr18Context&&p.LEFT_PAREN_TOK()?s(p.expr(),a):p instanceof m.Expr8Context&&p.MINUS_TOK()?p.expr10().text===a?true:s(p.expr8(),a):false}function o(c,a){if(!c)return false;let p=c;for(;p.childCount===1;)p=p.getChild(0);return p instanceof m.Expr18Context&&p.LEFT_PAREN_TOK()?o(p.expr(),a):p instanceof m.Expr11Context&&p.AMP_TOK()?p.expr11().text===a||p.expr12().text===a?true:o(p.expr11(),a)||o(p.expr12(),a):false}function r(c,a){if(!c)return false;let p=c;for(;p.childCount===1;)p=p.getChild(0);return p instanceof m.Expr18Context&&p.LEFT_PAREN_TOK()?r(p.expr(),a):p instanceof m.Expr8Context&&p.PLUS_TOK()?p.expr8().text===a||p.expr10().text===a?true:r(p.expr8(),a)||r(p.expr10(),a):false}function x(c){if(!c)return;let a=c;for(;a.childCount===1;)a=a.getChild(0);if(a instanceof m.Expr5Context&&a.NEG_TOK()){let p=a.expr5();return p?p.text:void 0}if(a instanceof m.Expr18Context&&a.LEFT_PAREN_TOK())return x(a.expr())}class n extends d.AbstractParseTreeVisitor{constructor(a){super(),a&&(this.schema=new T(a));}collectNamesFromList(a,p){p.add((0, g.getIdentifierName)(a.name()));let t=a.nameList();t&&this.collectNamesFromList(t,p);}collectBoundNames(a,p){this.collectNamesFromList(a.quantDecl().nameList(),p);let t=a.quantDeclList();t&&this.collectBoundNames(t,p);}illTypedIfBindsReservedName(a){if(this.schema){for(let p of a)if(this.schema.getType(p)||this.schema.getRelations(p).length>0)return {kind:"ill-typed",reason:`cannot bind variable named '${p}': it is a reserved schema ${this.schema.getType(p)?"type":"relation"} name`}}}analyze(a){let p=this.visit(a);return p.kind==="bool"?p.value?{status:"tautology",reason:"expression folds to literal true"}:{status:"unsat",reason:"expression folds to literal false"}:p.kind==="empty"?{status:"empty",reason:"expression is provably the empty set"}:p.kind==="ill-typed"?{status:"ill-typed",reason:p.reason}:{status:"unknown"}}static arityOf(a){return a.kind==="typed"?a.arity:a.kind==="bool"||a.kind==="num"?1:(a.kind==="empty",-1)}defaultResult(){return O}static bailIfIllTyped(...a){for(let p of a)if(p.kind==="ill-typed")return p}aggregateResult(a,p){return a.kind==="ill-typed"?a:p.kind==="ill-typed"||a.kind==="unknown"?p:a}visitExpr(a){if(a.LET_TOK()||a.BIND_TOK())return O;let p=a.quant();return p?this.foldQuantifier(a,p):this.visitChildren(a)}foldQuantifier(a,p){let t=a.blockOrBar();if(!t)return O;let y=a.quantDeclList();if(y){let L=new Set;this.collectBoundNames(y,L);let j=this.illTypedIfBindsReservedName(L);if(j)return j}let v=false,S=a.quantDeclList();for(;S;){let L=S.quantDecl().expr(),j=this.visit(L);if(j.kind==="ill-typed")return j;if(j.kind==="empty"){v=true;break}let k=S.quantDeclList();if(!k)break;S=k;}let N=O;t.BAR_TOK()&&t.expr()&&(N=this.visit(t.expr()));let b=p.mult(),U=p.ALL_TOK()!==void 0,A=p.NO_TOK()!==void 0,w=b?.SOME_TOK()!==void 0,F=b?.ONE_TOK()!==void 0,M=b?.TWO_TOK()!==void 0,W=b?.LONE_TOK()!==void 0;if(v){if(U||A||W)return {kind:"bool",value:true};if(w||F||M)return {kind:"bool",value:false}}if(N.kind==="bool")if(N.value){if(U)return {kind:"bool",value:true}}else {if(A||W)return {kind:"bool",value:true};if(w||F||M)return {kind:"bool",value:false}}return O}visitBlock(a){let p={kind:"bool",value:true};for(let t of a.expr()){let y=this.visit(t);if(y.kind==="ill-typed"||y.kind==="bool"&&!y.value)return y;y.kind!=="bool"&&(p=O);}return p}visitExpr1(a){if(a.OR_TOK()){let p=a.expr1(),t=a.expr1_5(),y=this.visit(p),v=this.visit(t),S=n.bailIfIllTyped(y,v);if(S)return S;if(h(p,t)||y.kind==="bool"&&y.value)return y;if(v.kind==="bool"&&v.value)return v;if(y.kind==="bool"&&v.kind==="bool")return {kind:"bool",value:y.value||v.value};let N=x(p),b=x(t);return N!==void 0&&N===t.text?{kind:"bool",value:true}:b!==void 0&&b===p.text?{kind:"bool",value:true}:O}return this.visitChildren(a)}visitExpr1_5(a){if(a.XOR_TOK()){let p=a.expr1_5(),t=a.expr2(),y=this.visit(p),v=this.visit(t),S=n.bailIfIllTyped(y,v);return S||(h(p,t)?{kind:"bool",value:false}:y.kind==="bool"&&v.kind==="bool"?{kind:"bool",value:y.value!==v.value}:O)}return this.visitChildren(a)}visitExpr2(a){if(a.IFF_TOK()){let p=a.expr2(),t=a.expr3(),y=this.visit(p),v=this.visit(t),S=n.bailIfIllTyped(y,v);if(S)return S;if(h(p,t))return {kind:"bool",value:true};let N=x(p),b=x(t);return N!==void 0&&N===t.text?{kind:"bool",value:false}:b!==void 0&&b===p.text?{kind:"bool",value:false}:y.kind==="bool"&&v.kind==="bool"?{kind:"bool",value:y.value===v.value}:O}return this.visitChildren(a)}visitExpr3(a){if(a.IMP_TOK()){let p=this.visit(a.expr4()),t=a.expr3();if(a.ELSE_TOK()){let N=this.visit(t[0]),b=this.visit(t[1]),U=n.bailIfIllTyped(p,N,b);return U||(p.kind==="bool"?p.value?N:b:O)}let y=t[0],v=this.visit(y),S=n.bailIfIllTyped(p,v);return S||(p.kind==="bool"&&!p.value?{kind:"bool",value:true}:p.kind==="bool"&&p.value||v.kind==="bool"&&v.value?v:O)}return this.visitChildren(a)}visitExpr4(a){if(a.AND_TOK()){let p=a.expr4(),t=a.expr4_5(),y=this.visit(p),v=this.visit(t),S=n.bailIfIllTyped(y,v);if(S)return S;if(h(p,t)||y.kind==="bool"&&!y.value)return y;if(v.kind==="bool"&&!v.value)return v;if(y.kind==="bool"&&v.kind==="bool")return {kind:"bool",value:y.value&&v.value};let N=x(p),b=x(t);return N!==void 0&&N===t.text?{kind:"bool",value:false}:b!==void 0&&b===p.text?{kind:"bool",value:false}:O}return this.visitChildren(a)}visitExpr5(a){if(a.NEG_TOK()){let p=this.visit(a.expr5());return p.kind==="ill-typed"?p:p.kind==="bool"?{kind:"bool",value:!p.value}:O}return a.ALWAYS_TOK()||a.EVENTUALLY_TOK()||a.AFTER_TOK()||a.BEFORE_TOK()||a.ONCE_TOK()||a.HISTORICALLY_TOK()?O:this.visitChildren(a)}visitExpr6(a){let p=a.compareOp();if(!p)return this.visitChildren(a);let t=a.expr6(),y=a.expr7(),v=this.visit(t),S=this.visit(y),N=n.bailIfIllTyped(v,S);if(N)return N;let b=a.NEG_TOK()!==void 0,U=p.text,A=U==="ni",w=A?"in":U,F=L=>{let j=L;return A&&(j=!j),b&&(j=!j),{kind:"bool",value:j}};if(h(t,y))switch(w){case "=":case "<=":case ">=":case "in":return F(true);case "<":case ">":return F(false)}if(v.kind==="num"&&S.kind==="num")switch(w){case "=":return F(v.value===S.value);case "<":return F(v.value<S.value);case ">":return F(v.value>S.value);case "<=":return F(v.value<=S.value);case ">=":return F(v.value>=S.value)}if(v.kind==="bool"&&S.kind==="bool"&&w==="=")return F(v.value===S.value);let M=v.kind==="num"||v.kind==="bool",W=S.kind==="num"||S.kind==="bool";if(w==="="){if(v.kind==="empty"&&S.kind==="empty")return F(true);if(v.kind==="empty"&&W||M&&S.kind==="empty")return F(false)}if(w==="in"){if(v.kind==="empty")return F(true);if(M&&S.kind==="empty")return F(false)}if(U==="="||U==="in"||U==="ni"){let L=n.arityOf(v),j=n.arityOf(S);if(L>0&&j>0&&L!==j)return {kind:"ill-typed",reason:`arity mismatch in '${U}': left has arity ${L}, right has arity ${j}`}}if(this.schema&&v.kind==="typed"&&S.kind==="typed"){let L=v.columnTypes,j=S.columnTypes;if(L&&j&&L.length===j.length){let k=L.every((J,ut)=>this.schema.isSubtypeOf(J,j[ut]));if(w==="in"&&k)return F(true)}}return O}visitExpr7(a){let p=this.visit(a.expr8());if(p.kind==="ill-typed"||a.SET_TOK())return p;if(p.kind==="empty"){if(a.NO_TOK())return {kind:"bool",value:true};if(a.LONE_TOK())return {kind:"bool",value:true};if(a.SOME_TOK())return {kind:"bool",value:false};if(a.ONE_TOK())return {kind:"bool",value:false};if(a.TWO_TOK())return {kind:"bool",value:false}}return a.NO_TOK()||a.LONE_TOK()||a.SOME_TOK()||a.ONE_TOK()||a.TWO_TOK()?O:p}visitExpr8(a){if(a.MINUS_TOK()){let p=a.expr8(),t=a.expr10(),y=this.visit(p),v=this.visit(t),S=n.bailIfIllTyped(y,v);if(S)return S;if(h(p,t))return y.kind==="num"?{kind:"num",value:0}:{kind:"empty"};if(y.kind==="num"&&v.kind==="num")return {kind:"num",value:y.value-v.value};if(y.kind==="empty")return {kind:"empty"};if(v.kind==="empty")return y;if(o(p,t.text))return {kind:"empty"};if(r(t,p.text))return {kind:"empty"};let N=n.arityOf(y),b=n.arityOf(v);return N>0&&b>0&&N!==b?{kind:"ill-typed",reason:`arity mismatch in '-': left has arity ${N}, right has arity ${b}`}:O}if(a.PLUS_TOK()){let p=this.visit(a.expr8()),t=this.visit(a.expr10()),y=n.bailIfIllTyped(p,t);if(y)return y;if(p.kind==="num"&&t.kind==="num")return {kind:"num",value:p.value+t.value};if(p.kind==="empty"&&t.kind==="empty")return {kind:"empty"};if(p.kind==="empty")return t;if(t.kind==="empty")return p;let v=n.arityOf(p),S=n.arityOf(t);return v>0&&S>0&&v!==S?{kind:"ill-typed",reason:`arity mismatch in '+': left has arity ${v}, right has arity ${S}`}:v>0&&S>0?{kind:"typed",arity:v}:O}return this.visitChildren(a)}visitExpr9(a){if(a.CARD_TOK()){let p=this.visit(a.expr9());return p.kind==="ill-typed"?p:p.kind==="empty"?{kind:"num",value:0}:O}return this.visitChildren(a)}visitExpr12(a){if(a.arrowOp()){let p=this.visit(a.expr12()),t=this.visit(a.expr13()),y=n.bailIfIllTyped(p,t);if(y)return y;if(p.kind==="empty"||t.kind==="empty")return {kind:"empty"};if(p.kind==="typed"&&t.kind==="typed"){let N=p.columnTypes&&t.columnTypes?[...p.columnTypes,...t.columnTypes]:void 0;return {kind:"typed",arity:p.arity+t.arity,columnTypes:N}}let v=n.arityOf(p),S=n.arityOf(t);return v>0&&S>0?{kind:"typed",arity:v+S}:O}return this.visitChildren(a)}visitExpr11(a){if(a.AMP_TOK()){let p=a.expr11(),t=a.expr12(),y=this.visit(p),v=this.visit(t),S=n.bailIfIllTyped(y,v);if(S)return S;if(h(p,t))return y;if(y.kind==="empty"||v.kind==="empty")return {kind:"empty"};if(y.kind==="num"&&v.kind==="num"&&y.value!==v.value)return {kind:"empty"};if(s(t,p.text))return {kind:"empty"};if(s(p,t.text))return {kind:"empty"};let N=n.arityOf(y),b=n.arityOf(v);return N>0&&b>0&&N!==b?{kind:"ill-typed",reason:`arity mismatch in '&': left has arity ${N}, right has arity ${b}`}:this.schema&&y.kind==="typed"&&v.kind==="typed"&&y.columnTypes&&v.columnTypes&&y.columnTypes.length===v.columnTypes.length&&y.columnTypes.some((A,w)=>this.schema.areDisjoint(A,v.columnTypes[w]))?{kind:"empty"}:O}return this.visitChildren(a)}visitExpr14(a){if(a.LEFT_SQUARE_TOK()){let p=this.visit(a.expr14());if(p.kind==="ill-typed")return p;if(p.kind==="empty")return {kind:"empty"};let t=a.exprList();for(;t;){let y=this.visit(t.expr());if(y.kind==="ill-typed")return y;if(y.kind==="empty")return {kind:"empty"};t=t.exprList();}return O}return this.visitChildren(a)}visitExpr15(a){if(a.DOT_TOK()){let p=this.visit(a.expr15()),t=this.visit(a.expr16()),y=n.bailIfIllTyped(p,t);if(y)return y;if(p.kind==="empty"||t.kind==="empty")return {kind:"empty"};let v=n.arityOf(p),S=n.arityOf(t);if(v===1&&S===1)return {kind:"ill-typed",reason:"dot join of two unary expressions produces arity 0"};if(this.schema&&p.kind==="typed"&&t.kind==="typed"&&p.columnTypes&&t.columnTypes&&p.columnTypes.length>0&&t.columnTypes.length>0){let N=p.columnTypes[p.columnTypes.length-1],b=t.columnTypes[0];if(this.schema.areDisjoint(N,b))return {kind:"empty"};let U=[...p.columnTypes.slice(0,-1),...t.columnTypes.slice(1)];if(U.length>0)return {kind:"typed",arity:U.length,columnTypes:U}}return v>0&&S>0?{kind:"typed",arity:v+S-2}:O}return a.LEFT_SQUARE_TOK()?O:this.visitChildren(a)}visitExpr17(a){if(a.TILDE_TOK()||a.EXP_TOK()){let p=this.visit(a.expr17());return p.kind==="ill-typed"?p:p.kind==="empty"?{kind:"empty"}:O}return a.STAR_TOK()||a.GET_LABEL_TOK()||a.GET_LABEL_STR_TOK()||a.GET_LABEL_BOOL_TOK()||a.GET_LABEL_NUM_TOK()?O:this.visitChildren(a)}visitExpr18(a){if(a.LEFT_PAREN_TOK())return this.visit(a.expr());if(a.const()){let p=a.const();if(p.NONE_TOK())return {kind:"empty"};if(p.number()){let t=Number(p.number().text);return {kind:"num",value:p.MINUS_TOK()?-t:t}}return O}if(a.qualName())return this.visit(a.qualName());if(a.LEFT_CURLY_TOK()){let p=a.quantDeclList(),t=new Set;if(p){let S=p;for(;S;){let N=S.quantDecl().expr(),b=this.visit(N);if(b.kind==="empty")return {kind:"empty"};if(b.kind==="ill-typed")return b;this.collectNamesFromList(S.quantDecl().nameList(),t);let U=S.quantDeclList();if(!U)break;S=U;}}let y=this.illTypedIfBindsReservedName(t);if(y)return y;let v=a.blockOrBar();if(v&&v.BAR_TOK()&&v.expr()){let S=this.visit(v.expr());if(S.kind==="ill-typed")return S;if(S.kind==="bool"&&!S.value)return {kind:"empty"}}return O}return a.block()?this.visit(a.block()):O}visitName(a){let p=(0, g.getIdentifierName)(a);if(p==="true")return {kind:"bool",value:true};if(p==="false")return {kind:"bool",value:false};if(this.schema){let t=this.schema.getType(p);if(t)return {kind:"typed",arity:1,columnTypes:[t.id]};let y=this.schema.getRelations(p);if(y.length===1){let v=y[0].types;return {kind:"typed",arity:v.length,columnTypes:v}}if(y.length>1){let v=y[0].types.length;if(y.every(S=>S.types.length===v)){let S=y[0].types.map((b,U)=>y.every(A=>A.types[U]===b)?b:void 0);return S.every(b=>b!==void 0)?{kind:"typed",arity:v,columnTypes:S}:{kind:"typed",arity:v}}}}return O}}l.ForgeExprStaticAnalyzer=n;}),"./src/NumericConstraintOptimizer.ts":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.detectNumericComparisonPattern=f,l.areAllNumericSets=d,l.generateOptimizedNumericCombinations=g;function f(T,h){let s=T.text;for(let o of h)for(let r of h)if(o!==r){if(s===`${o}<${r}`)return {type:"less_than",leftVar:o,rightVar:r};if(s===`${o}>${r}`)return {type:"greater_than",leftVar:o,rightVar:r};if(s===`${o}<=${r}`)return {type:"less_equal",leftVar:o,rightVar:r};if(s===`${o}>=${r}`)return {type:"greater_equal",leftVar:o,rightVar:r};if(s===`${o}!=${r}`)return {type:"not_equal",leftVar:o,rightVar:r};if(s===`not${o}=${r}`)return {type:"not_equal",leftVar:o,rightVar:r}}return null}function d(T){for(let h of T)for(let s of h)if(s.length!==1||typeof s[0]!="number")return false;return true}function m(T){return T.map(h=>h[0])}function g(T,h,s){let o=new Map;T.forEach((v,S)=>{o.set(v,S);});let r=o.get(s.leftVar),x=o.get(s.rightVar);if(r===void 0||x===void 0)throw new Error(`Internal error: Pattern variables ${s.leftVar}, ${s.rightVar} not found in variable list`);let n=m(h[r]),c=m(h[x]),a=[],p=[];for(let v=0;v<T.length;v++)v!==r&&v!==x&&(a.push(v),p.push(m(h[v])));let t=[],y=v=>{for(let S of n)for(let N of c)if(v(S,N))if(a.length===0){let b=new Array(T.length);b[r]=S,b[x]=N,t.push(b);}else {let b=O(p);for(let U of b){let A=new Array(T.length);A[r]=S,A[x]=N;for(let w=0;w<a.length;w++)A[a[w]]=U[w];t.push(A);}}};switch(s.type){case "less_than":y((v,S)=>v<S);break;case "greater_than":y((v,S)=>v>S);break;case "less_equal":y((v,S)=>v<=S);break;case "greater_equal":y((v,S)=>v>=S);break;case "not_equal":y((v,S)=>v!==S);break;default:return []}return t}function O(T){if(T.length===0)return [[]];if(T.some(s=>s.length===0))return [];let h=[[]];for(let s of T){let o=[];for(let r of h)for(let x of s)o.push([...r,x]);h=o;}return h}}),"./src/SelectorSynthesizer.ts":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.SelectorSynthesisError=void 0,l.synthesizeSelector=v,l.synthesizeBinaryRelation=S,l.synthesizeSelectorWithWhy=b,l.synthesizeBinaryRelationWithWhy=U;let d=f("./src/index.ts");class m extends Error{}l.SelectorSynthesisError=m;function g(A){switch(A.kind){case "identifier":return A.name;case "closure":{let w=g(A.child);return `^${T(w)}`}case "reflexive-closure":{let w=g(A.child);return `*${T(w)}`}case "transpose":{let w=g(A.child);return `~${T(w)}`}case "join":{let w=O(A.left),F=O(A.right);return `${w}.${F}`}case "union":return `(${g(A.left)} + ${g(A.right)})`;case "intersection":return `(${g(A.left)} & ${g(A.right)})`;case "difference":return `(${g(A.left)} - ${g(A.right)})`;case "comprehension":return `{${A.varName}: ${g(A.domain)} | ${g(A.body)}}`;case "all":return `(all ${A.varName}: ${g(A.domain)} | ${g(A.body)})`;case "some":return `(some ${A.varName}: ${g(A.domain)} | ${g(A.body)})`;case "no":return `(no ${A.varName}: ${g(A.domain)} | ${g(A.body)})`;case "one":return `(one ${A.varName}: ${g(A.domain)} | ${g(A.body)})`;case "lone":return `(lone ${A.varName}: ${g(A.domain)} | ${g(A.body)})`;case "and":return `(${g(A.left)} and ${g(A.right)})`;case "or":return `(${g(A.left)} or ${g(A.right)})`;case "implies":return `(${g(A.left)} => ${g(A.right)})`;case "iff":return `(${g(A.left)} <=> ${g(A.right)})`;case "not":return `!${T(g(A.child))}`;case "in":return `(${g(A.left)} in ${g(A.right)})`;case "eq":return `(${g(A.left)} = ${g(A.right)})`;case "neq":return `(${g(A.left)} != ${g(A.right)})`;case "lt":return `(${g(A.left)} < ${g(A.right)})`;case "gt":return `(${g(A.left)} > ${g(A.right)})`;case "lte":return `(${g(A.left)} <= ${g(A.right)})`;case "gte":return `(${g(A.left)} >= ${g(A.right)})`;case "box-join":return `${g(A.base)}[${A.args.map(g).join(", ")}]`}}function O(A){return A.kind==="identifier"||A.kind==="closure"||A.kind==="reflexive-closure"||A.kind==="transpose"||A.kind==="box-join"?g(A):`(${g(A)})`}function T(A){return A.startsWith("(")&&A.endsWith(")")?A:`(${A})`}function h(A){if(typeof A=="string")return new Set([A]);if(!Array.isArray(A))return null;let w=A,F=new Set;for(let M of w){if(!Array.isArray(M)||M.length!==1)return null;let W=M[0];if(typeof W=="string")F.add(W);else if(typeof W=="number")F.add(String(W));else return null}return F}function s(A){if(!Array.isArray(A))return null;let w=A,F=new Set;for(let M of w){if(!Array.isArray(M)||M.length!==2)return null;let[W,L]=M,j=typeof W=="string"?W:typeof W=="number"?String(W):null,k=typeof L=="string"?L:typeof L=="number"?String(L):null;if(j===null||k===null)return null;F.add(`${j}\0${k}`);}return F}function o(A,w,F){let M=g(A),W=w.evaluateExpression(M);return F(W)}function r(A){let w=A.map(L=>{let j=L.getTypes().map(J=>J.id),k=L.getRelations().map(J=>J.name);return new Set([...j,...k])});if(w.length===0)return new Set;let[F,...M]=w,W=new Set;for(let L of F)M.every(j=>j.has(L))&&W.add(L);return W}function x(A,w){if(A.size!==w.size)return false;for(let F of A)if(!w.has(F))return false;return true}function n(A,w){if(A==="univ"||A==="iden")return "builtin";for(let F of w){if(F.getRelations().some(M=>M.name===A))return "relation";if(F.getTypes().some(M=>M.id===A))return "type"}return "other"}function c(A){let w=[],F=new Set,M=new Set,W=new Set;if(A.length===0)return w;let L=A[0];L.getRelations().forEach(j=>M.add(j.name)),L.getTypes().forEach(j=>W.add(j.id));for(let j=1;j<A.length;j++){let k=A[j],J=new Set(k.getRelations().map(ft=>ft.name)),ut=new Set(k.getTypes().map(ft=>ft.id));for(let ft of M)J.has(ft)||M.delete(ft);for(let ft of W)ut.has(ft)||W.delete(ft);}for(let j of M){let k=L.getRelations().find(ut=>ut.name===j);if(!k||k.types.length<2)continue;let J=k.types[0];for(let ut of W){let ft=L.getTypes().find(Dt=>Dt.id===ut);if(!ft)continue;if(ut===J||ft.types.includes(J)||L.getTypes().find(Dt=>Dt.id===J)?.types.includes(ut)){let Dt={kind:"join",left:{kind:"identifier",name:ut},right:{kind:"identifier",name:j}},dt=g(Dt);F.has(dt)||(F.add(dt),w.push(Dt));}}}for(let j of M){let k=L.getRelations().find(ut=>ut.name===j);if(!k||k.types.length<2)continue;let J=k.types[k.types.length-1];for(let ut of W){let ft=L.getTypes().find(Dt=>Dt.id===ut);if(!ft)continue;if(ut===J||ft.types.includes(J)||L.getTypes().find(Dt=>Dt.id===J)?.types.includes(ut)){let Dt={kind:"join",left:{kind:"identifier",name:j},right:{kind:"identifier",name:ut}},dt=g(Dt);F.has(dt)||(F.add(dt),w.push(Dt));}}}return w}function a(A){let w=r(A);return ["univ","iden"].forEach(M=>w.add(M)),Array.from(w).sort((M,W)=>{let L={relation:0,type:1,builtin:2,other:3},j=L[n(M,A)],k=L[n(W,A)];return j!==k?j-k:M.localeCompare(W)}).map(M=>({kind:"identifier",name:M}))}function p(A,w){let F=w.get(A);if(F)return F;let M=new d.SimpleGraphQueryEvaluator(A);return w.set(A,M),M}function t(A,w,F){for(let M of w){let W=o(A,M.evaluator,F);if(!W||!x(W,M.target))return false}return true}function y(A,w,F=3){if(A.length===0)throw new m("No examples provided for synthesis");let M=new Map,W=A.map(dt=>({...dt,evaluator:p(dt.datum,M)})),L=W.map(dt=>dt.datum),j=a(L);if(j.length===0)throw new m("No shared identifiers available across provided data instances");for(let dt of j)if(t(dt,W,w))return dt;let k=c(L);for(let dt of k)if(t(dt,W,w))return dt;let J=[],ut=new Set,ft=new Set,At=[...j],Dt=(dt,jt)=>{let _t=g(dt);ft.has(_t)||ut.has(_t)||(J.push({node:dt,depth:jt}),ut.add(_t));};for(let dt of k)ft.add(g(dt));for(j.forEach(dt=>Dt(dt,0));J.length>0;){let dt=J.shift(),jt=g(dt.node);if(ut.delete(jt),!ft.has(jt)){if(ft.add(jt),t(dt.node,W,w))return dt.node;if(!(dt.depth>=F)){Dt({kind:"closure",child:dt.node},dt.depth+1),Dt({kind:"reflexive-closure",child:dt.node},dt.depth+1),Dt({kind:"transpose",child:dt.node},dt.depth+1);for(let _t of At){let yt=g(dt.node),rt=g(_t),[K,G]=yt<rt?[dt.node,_t]:[_t,dt.node];Dt({kind:"union",left:K,right:G},dt.depth+1);let[Q,ot]=yt<rt?[dt.node,_t]:[_t,dt.node];Dt({kind:"intersection",left:Q,right:ot},dt.depth+1),Dt({kind:"difference",left:dt.node,right:_t},dt.depth+1),yt!==rt&&Dt({kind:"difference",left:_t,right:dt.node},dt.depth+1),Dt({kind:"join",left:dt.node,right:_t},dt.depth+1),Dt({kind:"join",left:_t,right:dt.node},dt.depth+1);}if(dt.depth+2<=F)for(let _t of At){if(_t.kind!=="identifier")continue;let yt=_t.name;if(n(yt,L)!=="type")continue;let K="v",G={kind:"identifier",name:K};Dt({kind:"comprehension",varName:K,domain:_t,body:{kind:"in",left:G,right:dt.node}},dt.depth+2);for(let Q of At){if(Q.kind!=="identifier"||n(Q.name,L)!=="relation")continue;Dt({kind:"comprehension",varName:K,domain:_t,body:{kind:"in",left:{kind:"join",left:G,right:Q},right:dt.node}},dt.depth+2);}}}}}throw new m("Unable to synthesize an expression matching all examples")}function v(A,w=3){let F=A.map(W=>({datum:W.datum,target:new Set(Array.from(W.atoms).map(L=>L.id))})),M=y(F,h,w);return g(M)}function S(A,w=3){let F=A.map(W=>{let L=new Set(Array.from(W.pairs).map(([j,k])=>`${j.id}\0${k.id}`));return {datum:W.datum,target:L}}),M=y(F,s,w);return g(M)}function N(A,w,F){let M=o(A,w,F),W={kind:A.kind,expression:g(A),result:M};switch(A.kind){case "identifier":return W;case "closure":case "reflexive-closure":case "transpose":case "not":return {...W,children:[N(A.child,w,F)]};case "join":case "union":case "intersection":case "difference":case "and":case "or":case "implies":case "iff":case "in":case "eq":case "neq":case "lt":case "gt":case "lte":case "gte":return {...W,children:[N(A.left,w,F),N(A.right,w,F)]};case "all":case "some":case "no":case "one":case "lone":case "comprehension":return {...W,children:[N(A.domain,w,F),N(A.body,w,F)]};case "box-join":return {...W,children:[N(A.base,w,F),...A.args.map(L=>N(L,w,F))]};default:return W}}function b(A,w=3){let F=A.map(k=>({datum:k.datum,target:new Set(Array.from(k.atoms).map(J=>J.id))})),M=y(F,h,w),W=g(M),L=new Map,j=F.map(k=>{let J=p(k.datum,L);return {datum:k.datum,target:k.target,result:o(M,J,h),why:N(M,J,h)}});return {expression:W,examples:j}}function U(A,w=3){let F=A.map(k=>{let J=new Set(Array.from(k.pairs).map(([ut,ft])=>`${ut.id}\0${ft.id}`));return {datum:k.datum,target:J}}),M=y(F,s,w),W=g(M),L=new Map,j=F.map(k=>{let J=p(k.datum,L);return {datum:k.datum,target:k.target,result:o(M,J,s),why:N(M,J,s)}});return {expression:W,examples:j}}}),"./src/errorListener.ts":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.ParseErrorListener=void 0;class f{syntaxError(m,g,O,T,h,s){throw new Error(`Parse error at ${O}:${T}: ${h}`)}}l.ParseErrorListener=f;}),"./src/forge-antlr/ForgeLexer.ts":(function(D,l,f){var d=this&&this.__createBinding||(Object.create?(function(x,n,c,a){a===void 0&&(a=c);var p=Object.getOwnPropertyDescriptor(n,c);(!p||("get"in p?!n.__esModule:p.writable||p.configurable))&&(p={enumerable:true,get:function(){return n[c]}}),Object.defineProperty(x,a,p);}):(function(x,n,c,a){a===void 0&&(a=c),x[a]=n[c];})),m=this&&this.__setModuleDefault||(Object.create?(function(x,n){Object.defineProperty(x,"default",{enumerable:true,value:n});}):function(x,n){x.default=n;}),g=this&&this.__importStar||(function(){var x=function(n){return x=Object.getOwnPropertyNames||function(c){var a=[];for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(a[a.length]=p);return a},x(n)};return function(n){if(n&&n.__esModule)return n;var c={};if(n!=null)for(var a=x(n),p=0;p<a.length;p++)a[p]!=="default"&&d(c,n,a[p]);return m(c,n),c}})();Object.defineProperty(l,"__esModule",{value:true}),l.ForgeLexer=void 0;let O=f("./node_modules/antlr4ts/atn/ATNDeserializer.js"),T=f("./node_modules/antlr4ts/Lexer.js"),h=f("./node_modules/antlr4ts/atn/LexerATNSimulator.js"),s=f("./node_modules/antlr4ts/VocabularyImpl.js"),o=g(f("./node_modules/antlr4ts/misc/Utils.js"));class r extends T.Lexer{get vocabulary(){return r.VOCABULARY}constructor(n){super(n),this._interp=new h.LexerATNSimulator(r._ATN,this);}get grammarFileName(){return "ForgeLexer.g4"}get ruleNames(){return r.ruleNames}get serializedATN(){return r._serializedATN}get channelNames(){return r.channelNames}get modeNames(){return r.modeNames}static get _ATN(){return r.__ATN||(r.__ATN=new O.ATNDeserializer().deserialize(o.toCharArray(r._serializedATN))),r.__ATN}}l.ForgeLexer=r,r.OPEN_TOK=1,r.LEFT_SQUARE_TOK=2,r.RIGHT_SQUARE_TOK=3,r.AS_TOK=4,r.FILE_PATH_TOK=5,r.VAR_TOK=6,r.ABSTRACT_TOK=7,r.SIG_TOK=8,r.LEFT_CURLY_TOK=9,r.RIGHT_CURLY_TOK=10,r.EXTENDS_TOK=11,r.IN_TOK=12,r.PLUS_TOK=13,r.LONE_TOK=14,r.SOME_TOK=15,r.ONE_TOK=16,r.TWO_TOK=17,r.SET_TOK=18,r.FUNC_TOK=19,r.PFUNC_TOK=20,r.DISJ_TOK=21,r.COLON_TOK=22,r.WHEAT_TOK=23,r.PRED_TOK=24,r.DOT_TOK=25,r.FUN_TOK=26,r.LEFT_PAREN_TOK=27,r.RIGHT_PAREN_TOK=28,r.ASSERT_TOK=29,r.RUN_TOK=30,r.CHECK_TOK=31,r.FOR_TOK=32,r.BUT_TOK=33,r.EXACTLY_TOK=34,r.NONE_TOK=35,r.UNIV_TOK=36,r.IDEN_TOK=37,r.MINUS_TOK=38,r.IS_TOK=39,r.SAT_TOK=40,r.UNSAT_TOK=41,r.THEOREM_TOK=42,r.FORGE_ERROR_TOK=43,r.CHECKED_TOK=44,r.TEST_TOK=45,r.EXPECT_TOK=46,r.SUITE_TOK=47,r.BAR_TOK=48,r.ALL_TOK=49,r.SUFFICIENT_TOK=50,r.NECESSARY_TOK=51,r.CONSISTENT_TOK=52,r.INCONSISTENT_TOK=53,r.WITH_TOK=54,r.LET_TOK=55,r.BIND_TOK=56,r.OR_TOK=57,r.XOR_TOK=58,r.IFF_TOK=59,r.IMP_TOK=60,r.ELSE_TOK=61,r.AND_TOK=62,r.UNTIL_TOK=63,r.RELEASE_TOK=64,r.SINCE_TOK=65,r.TRIGGERED_TOK=66,r.NEG_TOK=67,r.ALWAYS_TOK=68,r.EVENTUALLY_TOK=69,r.AFTER_TOK=70,r.BEFORE_TOK=71,r.ONCE_TOK=72,r.HISTORICALLY_TOK=73,r.CARD_TOK=74,r.PPLUS_TOK=75,r.AMP_TOK=76,r.SUBT_TOK=77,r.SUPT_TOK=78,r.PRIME_TOK=79,r.TILDE_TOK=80,r.EXP_TOK=81,r.STAR_TOK=82,r.AT_TOK=83,r.BACKQUOTE_TOK=84,r.THIS_TOK=85,r.SEXPR_TOK=86,r.INST_TOK=87,r.EVAL_TOK=88,r.EXAMPLE_TOK=89,r.ARROW_TOK=90,r.GET_LABEL_TOK=91,r.GET_LABEL_STR_TOK=92,r.GET_LABEL_BOOL_TOK=93,r.GET_LABEL_NUM_TOK=94,r.EQ_TOK=95,r.LT_TOK=96,r.GT_TOK=97,r.LEQ_TOK=98,r.GEQ_TOK=99,r.NI_TOK=100,r.NO_TOK=101,r.SUM_TOK=102,r.INT_TOK=103,r.OPTION_TOK=104,r.COMMA_TOK=105,r.SLASH_TOK=106,r.NUM_CONST_TOK=107,r.QUOTED_IDENTIFIER_TOK=108,r.IDENTIFIER_TOK=109,r.WS=110,r.CCOMMENT=111,r.COMMENT=112,r.MULTCOMMENT=113,r.LANG_DECL=114,r.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],r.modeNames=["DEFAULT_MODE"],r.ruleNames=["OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","FILE_PATH_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","UNTIL_TOK","RELEASE_TOK","SINCE_TOK","TRIGGERED_TOK","NEG_TOK","ALWAYS_TOK","EVENTUALLY_TOK","AFTER_TOK","BEFORE_TOK","ONCE_TOK","HISTORICALLY_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","PRIME_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","GET_LABEL_TOK","GET_LABEL_STR_TOK","GET_LABEL_BOOL_TOK","GET_LABEL_NUM_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","QUOTED_IDENTIFIER_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],r._LITERAL_NAMES=[void 0,"'open'","'['","']'","'as'",void 0,"'var'","'abstract'","'sig'","'{'","'}'","'extends'","'in'","'+'","'lone'","'some'","'one'","'two'","'set'","'func'","'pfunc'","'disj'","':'","'wheat'","'pred'","'.'","'fun'","'('","')'","'assert'","'run'","'check'","'for'","'but'","'exactly'","'none'","'univ'","'iden'","'-'","'is'","'sat'","'unsat'","'theorem'","'forge_error'","'checked'","'test'","'expect'","'suite'","'|'","'all'","'sufficient'","'necessary'","'consistent'","'inconsistent'","'with'","'let'","'bind'",void 0,"'xor'",void 0,void 0,"'else'",void 0,"'until'","'release'","'since'","'triggered'",void 0,"'always'","'eventually'","'after'","'before'","'once'","'historically'","'#'","'++'","'&'","'<:'","':>'","'''","'~'","'^'","'*'","'@'","'`'","'this'","'sexpr'","'inst'","'eval'","'example'","'->'","'@:'","'@str:'","'@bool:'","'@num:'","'='","'<'","'>'",void 0,"'>='","'ni'","'no'","'sum'","'Int'","'option'","','","'/'"],r._SYMBOLIC_NAMES=[void 0,"OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","FILE_PATH_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","UNTIL_TOK","RELEASE_TOK","SINCE_TOK","TRIGGERED_TOK","NEG_TOK","ALWAYS_TOK","EVENTUALLY_TOK","AFTER_TOK","BEFORE_TOK","ONCE_TOK","HISTORICALLY_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","PRIME_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","GET_LABEL_TOK","GET_LABEL_STR_TOK","GET_LABEL_BOOL_TOK","GET_LABEL_NUM_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","QUOTED_IDENTIFIER_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],r.VOCABULARY=new s.VocabularyImpl(r._LITERAL_NAMES,r._SYMBOLIC_NAMES,[]),r._serializedATNSegments=2,r._serializedATNSegment0=`\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241t\u0357\b     \x07 \x07\b \b 
107
+
108
+ \v \v\f \f\r \r             \x1B \x1B     ! !" "# #$ $% %& &' '( () )* *+ +, ,- -. ./ /0 01 12 23 34 45 56 67 78 89 9: :; ;< <= => >? ?@ @A AB BC CD DE EF FG GH HI IJ JK KL LM MN NO OP PQ QR RS ST TU UV VW WX XY YZ Z[ [\\ \\] ]^ ^_ _\` \`a ab bc cd de ef fg gh hi ij jk kl lm mn no op pq qr rs s\x07\xF8
109
+ \f\xFB\v\x07\x07\x07\x07\b\b\b\b\b\b\b\b\b    
110
+ 
111
+ \v\v\f\f\f\f\f\f\f\f\r\r\r\x1B\x1B\x1B\x1B      !!!!""""########$$$$$%%%%%&&&&&''((())))******++++++++,,,,,,,,,,,,--------.....///////00000011222233333333333444444444455555555555666666666666677777888899999:::::\u0210
112
+ :;;;;<<<<<<<\u021C
113
+ <==========\u0227
114
+ =>>>>>??????\u0233
115
+ ?@@@@@@AAAAAAAABBBBBBCCCCCCCCCCDDDDD\u0257
116
+ DEEEEEEEFFFFFFFFFFFGGGGGGHHHHHHHIIIIIJJJJJJJJJJJJJKKLLLMMNNNOOOPPQQRRSSTTUUVVVVVWWWWWWXXXXXYYYYYZZZZZZZZ[[[\\\\\\]]]]]]^^^^^^^______\`\`aabbccccc\u02E3
117
+ cdddeeefffgggghhhhiiiiiiijjkkll\u0302
118
+ l\rll\u0303lll\u0308
119
+ l\rll\u0309l\u030C
120
+ lmmmmm\u0312
121
+ m\rmm\u0313mmnn\x07n\u031A
122
+ n\fnn\u031D\vnoo\u0320
123
+ o\roo\u0321oopppp\x07p\u032A
124
+ p\fpp\u032D\vpppqqqq\x07q\u0335
125
+ q\fqq\u0338\vqqqrrrr\x07r\u0340
126
+ r\frr\u0343\vrrrrrrsssssss\x07s\u0351
127
+ s\fss\u0354\vsss\u0341t\x07 \v\x07\r\b 
128
+ \v\f\r\x1B!#%')+-/13\x1B579;= ?!A"C#E$G%I&K'M(O)Q*S+U,W-Y.[/]0_1a2c3e4g5i6k7m8o9q:s;u<w=y>{?}@\x7FA\x81B\x83C\x85D\x87E\x89F\x8BG\x8DH\x8FI\x91J\x93K\x95L\x97M\x99N\x9BO\x9DP\x9FQ\xA1R\xA3S\xA5T\xA7U\xA9V\xABW\xADX\xAFY\xB1Z\xB3[\xB5\\\xB7]\xB9^\xBB_\xBD\`\xBFa\xC1b\xC3c\xC5d\xC7e\xC9f\xCBg\xCDh\xCFi\xD1j\xD3k\xD5l\xD7m\xD9n\xDBo\xDDp\xDFq\xE1r\xE3s\xE5t $$^^2;^^bb\x07&&11C\\aac|\x07&&1;C\\aac|\v\f""\f\f\u0369\x07 \v\r\x1B!#%')+-/13579;=?ACEGIKMOQSUWY[]_acegikmoqsuwy{}\x7F\x81\x83\x85\x87\x89\x8B\x8D\x8F\x91\x93\x95\x97\x99\x9B\x9D\x9F\xA1\xA3\xA5\xA7\xA9\xAB\xAD\xAF\xB1\xB3\xB5\xB7\xB9\xBB\xBD\xBF\xC1\xC3\xC5\xC7\xC9\xCB\xCD\xCF\xD1\xD3\xD5\xD7\xD9\xDB\xDD\xDF\xE1\xE3\xE5\xE7\xEC\x07\xEE \xF0\v\xF3\r\xFE\u0102\u010B\u010F\u0111\u0113\u011B\x1B\u011E\u0120\u0125!\u012A#\u012E%\u0132'\u0136)\u013B+\u0141-\u0146/\u01481\u014E3\u01535\u01557\u01599\u015B;\u015D=\u0164?\u0168A\u016EC\u0172E\u0176G\u017EI\u0183K\u0188M\u018DO\u018FQ\u0192S\u0196U\u019CW\u01A4Y\u01B0[\u01B8]\u01BD_\u01C4a\u01CAc\u01CCe\u01D0g\u01DBi\u01E5k\u01F0m\u01FDo\u0202q\u0206s\u020Fu\u0211w\u021By\u0226{\u0228}\u0232\x7F\u0234\x81\u023A\x83\u0242\x85\u0248\x87\u0256\x89\u0258\x8B\u025F\x8D\u026A\x8F\u0270\x91\u0277\x93\u027C\x95\u0289\x97\u028B\x99\u028E\x9B\u0290\x9D\u0293\x9F\u0296\xA1\u0298\xA3\u029A\xA5\u029C\xA7\u029E\xA9\u02A0\xAB\u02A2\xAD\u02A7\xAF\u02AD\xB1\u02B2\xB3\u02B7\xB5\u02BF\xB7\u02C2\xB9\u02C5\xBB\u02CB\xBD\u02D2\xBF\u02D8\xC1\u02DA\xC3\u02DC\xC5\u02E2\xC7\u02E4\xC9\u02E7\xCB\u02EA\xCD\u02ED\xCF\u02F1\xD1\u02F5\xD3\u02FC\xD5\u02FE\xD7\u0301\xD9\u030D\xDB\u0317\xDD\u031F\xDF\u0325\xE1\u0330\xE3\u033B\xE5\u0349\xE7\xE8\x07q\xE8\xE9\x07r\xE9\xEA\x07g\xEA\xEB\x07p\xEB\xEC\xED\x07]\xED\xEE\xEF\x07_\xEF\b\xF0\xF1\x07c\xF1\xF2\x07u\xF2
129
+ \xF3\xF9\x07$\xF4\xF8
130
+ \xF5\xF6\x07^\xF6\xF8\v\xF7\xF4\xF7\xF5\xF8\xFB\xF9\xF7\xF9\xFA\xFA\xFC\xFB\xF9\xFC\xFD\x07$\xFD\f\xFE\xFF\x07x\xFF\u0100\x07c\u0100\u0101\x07t\u0101\u0102\u0103\x07c\u0103\u0104\x07d\u0104\u0105\x07u\u0105\u0106\x07v\u0106\u0107\x07t\u0107\u0108\x07c\u0108\u0109\x07e\u0109\u010A\x07v\u010A\u010B\u010C\x07u\u010C\u010D\x07k\u010D\u010E\x07i\u010E\u010F\u0110\x07}\u0110\u0111\u0112\x07\x7F\u0112\u0113\u0114\x07g\u0114\u0115\x07z\u0115\u0116\x07v\u0116\u0117\x07g\u0117\u0118\x07p\u0118\u0119\x07f\u0119\u011A\x07u\u011A\u011B\u011C\x07k\u011C\u011D\x07p\u011D\u011E\u011F\x07-\u011F\u0120\u0121\x07n\u0121\u0122\x07q\u0122\u0123\x07p\u0123\u0124\x07g\u0124\u0125\u0126\x07u\u0126\u0127\x07q\u0127\u0128\x07o\u0128\u0129\x07g\u0129 \u012A\u012B\x07q\u012B\u012C\x07p\u012C\u012D\x07g\u012D"\u012E\u012F\x07v\u012F\u0130\x07y\u0130\u0131\x07q\u0131$\u0132\u0133\x07u\u0133\u0134\x07g\u0134\u0135\x07v\u0135&\u0136\u0137\x07h\u0137\u0138\x07w\u0138\u0139\x07p\u0139\u013A\x07e\u013A(\u013B\u013C\x07r\u013C\u013D\x07h\u013D\u013E\x07w\u013E\u013F\x07p\u013F\u0140\x07e\u0140*\u0141\u0142\x07f\u0142\u0143\x07k\u0143\u0144\x07u\u0144\u0145\x07l\u0145,\u0146\u0147\x07<\u0147.\u0148\u0149\x07y\u0149\u014A\x07j\u014A\u014B\x07g\u014B\u014C\x07c\u014C\u014D\x07v\u014D0\u014E\u014F\x07r\u014F\u0150\x07t\u0150\u0151\x07g\u0151\u0152\x07f\u01522\u0153\u0154\x070\u01544\u0155\u0156\x07h\u0156\u0157\x07w\u0157\u0158\x07p\u01586\u0159\u015A\x07*\u015A8\u015B\u015C\x07+\u015C:\u015D\u015E\x07c\u015E\u015F\x07u\u015F\u0160\x07u\u0160\u0161\x07g\u0161\u0162\x07t\u0162\u0163\x07v\u0163<\u0164\u0165\x07t\u0165\u0166\x07w\u0166\u0167\x07p\u0167>\u0168\u0169\x07e\u0169\u016A\x07j\u016A\u016B\x07g\u016B\u016C\x07e\u016C\u016D\x07m\u016D@\u016E\u016F\x07h\u016F\u0170\x07q\u0170\u0171\x07t\u0171B\u0172\u0173\x07d\u0173\u0174\x07w\u0174\u0175\x07v\u0175D\u0176\u0177\x07g\u0177\u0178\x07z\u0178\u0179\x07c\u0179\u017A\x07e\u017A\u017B\x07v\u017B\u017C\x07n\u017C\u017D\x07{\u017DF\u017E\u017F\x07p\u017F\u0180\x07q\u0180\u0181\x07p\u0181\u0182\x07g\u0182H\u0183\u0184\x07w\u0184\u0185\x07p\u0185\u0186\x07k\u0186\u0187\x07x\u0187J\u0188\u0189\x07k\u0189\u018A\x07f\u018A\u018B\x07g\u018B\u018C\x07p\u018CL\u018D\u018E\x07/\u018EN\u018F\u0190\x07k\u0190\u0191\x07u\u0191P\u0192\u0193\x07u\u0193\u0194\x07c\u0194\u0195\x07v\u0195R\u0196\u0197\x07w\u0197\u0198\x07p\u0198\u0199\x07u\u0199\u019A\x07c\u019A\u019B\x07v\u019BT\u019C\u019D\x07v\u019D\u019E\x07j\u019E\u019F\x07g\u019F\u01A0\x07q\u01A0\u01A1\x07t\u01A1\u01A2\x07g\u01A2\u01A3\x07o\u01A3V\u01A4\u01A5\x07h\u01A5\u01A6\x07q\u01A6\u01A7\x07t\u01A7\u01A8\x07i\u01A8\u01A9\x07g\u01A9\u01AA\x07a\u01AA\u01AB\x07g\u01AB\u01AC\x07t\u01AC\u01AD\x07t\u01AD\u01AE\x07q\u01AE\u01AF\x07t\u01AFX\u01B0\u01B1\x07e\u01B1\u01B2\x07j\u01B2\u01B3\x07g\u01B3\u01B4\x07e\u01B4\u01B5\x07m\u01B5\u01B6\x07g\u01B6\u01B7\x07f\u01B7Z\u01B8\u01B9\x07v\u01B9\u01BA\x07g\u01BA\u01BB\x07u\u01BB\u01BC\x07v\u01BC\\\u01BD\u01BE\x07g\u01BE\u01BF\x07z\u01BF\u01C0\x07r\u01C0\u01C1\x07g\u01C1\u01C2\x07e\u01C2\u01C3\x07v\u01C3^\u01C4\u01C5\x07u\u01C5\u01C6\x07w\u01C6\u01C7\x07k\u01C7\u01C8\x07v\u01C8\u01C9\x07g\u01C9\`\u01CA\u01CB\x07~\u01CBb\u01CC\u01CD\x07c\u01CD\u01CE\x07n\u01CE\u01CF\x07n\u01CFd\u01D0\u01D1\x07u\u01D1\u01D2\x07w\u01D2\u01D3\x07h\u01D3\u01D4\x07h\u01D4\u01D5\x07k\u01D5\u01D6\x07e\u01D6\u01D7\x07k\u01D7\u01D8\x07g\u01D8\u01D9\x07p\u01D9\u01DA\x07v\u01DAf\u01DB\u01DC\x07p`,r._serializedATNSegment1=`\u01DC\u01DD\x07g\u01DD\u01DE\x07e\u01DE\u01DF\x07g\u01DF\u01E0\x07u\u01E0\u01E1\x07u\u01E1\u01E2\x07c\u01E2\u01E3\x07t\u01E3\u01E4\x07{\u01E4h\u01E5\u01E6\x07e\u01E6\u01E7\x07q\u01E7\u01E8\x07p\u01E8\u01E9\x07u\u01E9\u01EA\x07k\u01EA\u01EB\x07u\u01EB\u01EC\x07v\u01EC\u01ED\x07g\u01ED\u01EE\x07p\u01EE\u01EF\x07v\u01EFj\u01F0\u01F1\x07k\u01F1\u01F2\x07p\u01F2\u01F3\x07e\u01F3\u01F4\x07q\u01F4\u01F5\x07p\u01F5\u01F6\x07u\u01F6\u01F7\x07k\u01F7\u01F8\x07u\u01F8\u01F9\x07v\u01F9\u01FA\x07g\u01FA\u01FB\x07p\u01FB\u01FC\x07v\u01FCl\u01FD\u01FE\x07y\u01FE\u01FF\x07k\u01FF\u0200\x07v\u0200\u0201\x07j\u0201n\u0202\u0203\x07n\u0203\u0204\x07g\u0204\u0205\x07v\u0205p\u0206\u0207\x07d\u0207\u0208\x07k\u0208\u0209\x07p\u0209\u020A\x07f\u020Ar\u020B\u020C\x07~\u020C\u0210\x07~\u020D\u020E\x07q\u020E\u0210\x07t\u020F\u020B\u020F\u020D\u0210t\u0211\u0212\x07z\u0212\u0213\x07q\u0213\u0214\x07t\u0214v\u0215\u0216\x07>\u0216\u0217\x07?\u0217\u021C\x07@\u0218\u0219\x07k\u0219\u021A\x07h\u021A\u021C\x07h\u021B\u0215\u021B\u0218\u021Cx\u021D\u021E\x07k\u021E\u021F\x07o\u021F\u0220\x07r\u0220\u0221\x07n\u0221\u0222\x07k\u0222\u0223\x07g\u0223\u0227\x07u\u0224\u0225\x07?\u0225\u0227\x07@\u0226\u021D\u0226\u0224\u0227z\u0228\u0229\x07g\u0229\u022A\x07n\u022A\u022B\x07u\u022B\u022C\x07g\u022C|\u022D\u022E\x07(\u022E\u0233\x07(\u022F\u0230\x07c\u0230\u0231\x07p\u0231\u0233\x07f\u0232\u022D\u0232\u022F\u0233~\u0234\u0235\x07w\u0235\u0236\x07p\u0236\u0237\x07v\u0237\u0238\x07k\u0238\u0239\x07n\u0239\x80\u023A\u023B\x07t\u023B\u023C\x07g\u023C\u023D\x07n\u023D\u023E\x07g\u023E\u023F\x07c\u023F\u0240\x07u\u0240\u0241\x07g\u0241\x82\u0242\u0243\x07u\u0243\u0244\x07k\u0244\u0245\x07p\u0245\u0246\x07e\u0246\u0247\x07g\u0247\x84\u0248\u0249\x07v\u0249\u024A\x07t\u024A\u024B\x07k\u024B\u024C\x07i\u024C\u024D\x07i\u024D\u024E\x07g\u024E\u024F\x07t\u024F\u0250\x07g\u0250\u0251\x07f\u0251\x86\u0252\u0257\x07#\u0253\u0254\x07p\u0254\u0255\x07q\u0255\u0257\x07v\u0256\u0252\u0256\u0253\u0257\x88\u0258\u0259\x07c\u0259\u025A\x07n\u025A\u025B\x07y\u025B\u025C\x07c\u025C\u025D\x07{\u025D\u025E\x07u\u025E\x8A\u025F\u0260\x07g\u0260\u0261\x07x\u0261\u0262\x07g\u0262\u0263\x07p\u0263\u0264\x07v\u0264\u0265\x07w\u0265\u0266\x07c\u0266\u0267\x07n\u0267\u0268\x07n\u0268\u0269\x07{\u0269\x8C\u026A\u026B\x07c\u026B\u026C\x07h\u026C\u026D\x07v\u026D\u026E\x07g\u026E\u026F\x07t\u026F\x8E\u0270\u0271\x07d\u0271\u0272\x07g\u0272\u0273\x07h\u0273\u0274\x07q\u0274\u0275\x07t\u0275\u0276\x07g\u0276\x90\u0277\u0278\x07q\u0278\u0279\x07p\u0279\u027A\x07e\u027A\u027B\x07g\u027B\x92\u027C\u027D\x07j\u027D\u027E\x07k\u027E\u027F\x07u\u027F\u0280\x07v\u0280\u0281\x07q\u0281\u0282\x07t\u0282\u0283\x07k\u0283\u0284\x07e\u0284\u0285\x07c\u0285\u0286\x07n\u0286\u0287\x07n\u0287\u0288\x07{\u0288\x94\u0289\u028A\x07%\u028A\x96\u028B\u028C\x07-\u028C\u028D\x07-\u028D\x98\u028E\u028F\x07(\u028F\x9A\u0290\u0291\x07>\u0291\u0292\x07<\u0292\x9C\u0293\u0294\x07<\u0294\u0295\x07@\u0295\x9E\u0296\u0297\x07)\u0297\xA0\u0298\u0299\x07\x80\u0299\xA2\u029A\u029B\x07\`\u029B\xA4\u029C\u029D\x07,\u029D\xA6\u029E\u029F\x07B\u029F\xA8\u02A0\u02A1\x07b\u02A1\xAA\u02A2\u02A3\x07v\u02A3\u02A4\x07j\u02A4\u02A5\x07k\u02A5\u02A6\x07u\u02A6\xAC\u02A7\u02A8\x07u\u02A8\u02A9\x07g\u02A9\u02AA\x07z\u02AA\u02AB\x07r\u02AB\u02AC\x07t\u02AC\xAE\u02AD\u02AE\x07k\u02AE\u02AF\x07p\u02AF\u02B0\x07u\u02B0\u02B1\x07v\u02B1\xB0\u02B2\u02B3\x07g\u02B3\u02B4\x07x\u02B4\u02B5\x07c\u02B5\u02B6\x07n\u02B6\xB2\u02B7\u02B8\x07g\u02B8\u02B9\x07z\u02B9\u02BA\x07c\u02BA\u02BB\x07o\u02BB\u02BC\x07r\u02BC\u02BD\x07n\u02BD\u02BE\x07g\u02BE\xB4\u02BF\u02C0\x07/\u02C0\u02C1\x07@\u02C1\xB6\u02C2\u02C3\x07B\u02C3\u02C4\x07<\u02C4\xB8\u02C5\u02C6\x07B\u02C6\u02C7\x07u\u02C7\u02C8\x07v\u02C8\u02C9\x07t\u02C9\u02CA\x07<\u02CA\xBA\u02CB\u02CC\x07B\u02CC\u02CD\x07d\u02CD\u02CE\x07q\u02CE\u02CF\x07q\u02CF\u02D0\x07n\u02D0\u02D1\x07<\u02D1\xBC\u02D2\u02D3\x07B\u02D3\u02D4\x07p\u02D4\u02D5\x07w\u02D5\u02D6\x07o\u02D6\u02D7\x07<\u02D7\xBE\u02D8\u02D9\x07?\u02D9\xC0\u02DA\u02DB\x07>\u02DB\xC2\u02DC\u02DD\x07@\u02DD\xC4\u02DE\u02DF\x07>\u02DF\u02E3\x07?\u02E0\u02E1\x07?\u02E1\u02E3\x07>\u02E2\u02DE\u02E2\u02E0\u02E3\xC6\u02E4\u02E5\x07@\u02E5\u02E6\x07?\u02E6\xC8\u02E7\u02E8\x07p\u02E8\u02E9\x07k\u02E9\xCA\u02EA\u02EB\x07p\u02EB\u02EC\x07q\u02EC\xCC\u02ED\u02EE\x07u\u02EE\u02EF\x07w\u02EF\u02F0\x07o\u02F0\xCE\u02F1\u02F2\x07K\u02F2\u02F3\x07p\u02F3\u02F4\x07v\u02F4\xD0\u02F5\u02F6\x07q\u02F6\u02F7\x07r\u02F7\u02F8\x07v\u02F8\u02F9\x07k\u02F9\u02FA\x07q\u02FA\u02FB\x07p\u02FB\xD2\u02FC\u02FD\x07.\u02FD\xD4\u02FE\u02FF\x071\u02FF\xD6\u0300\u0302 \u0301\u0300\u0302\u0303\u0303\u0301\u0303\u0304\u0304\u030B\u0305\u0307\x070\u0306\u0308 \u0307\u0306\u0308\u0309\u0309\u0307\u0309\u030A\u030A\u030C\u030B\u0305\u030B\u030C\u030C\xD8\u030D\u0311\x07b\u030E\u0312
131
+ \u030F\u0310\x07^\u0310\u0312\v\u0311\u030E\u0311\u030F\u0312\u0313\u0313\u0311\u0313\u0314\u0314\u0315\u0315\u0316\x07b\u0316\xDA\u0317\u031B \u0318\u031A \u0319\u0318\u031A\u031D\u031B\u0319\u031B\u031C\u031C\xDC\u031D\u031B\u031E\u0320 \x07\u031F\u031E\u0320\u0321\u0321\u031F\u0321\u0322\u0322\u0323\u0323\u0324\bo\u0324\xDE\u0325\u0326\x071\u0326\u0327\x071\u0327\u032B\u0328\u032A
132
+ \b\u0329\u0328\u032A\u032D\u032B\u0329\u032B\u032C\u032C\u032E\u032D\u032B\u032E\u032F\bp\u032F\xE0\u0330\u0331\x07/\u0331\u0332\x07/\u0332\u0336\u0333\u0335
133
+ \b\u0334\u0333\u0335\u0338\u0336\u0334\u0336\u0337\u0337\u0339\u0338\u0336\u0339\u033A\bq\u033A\xE2\u033B\u033C\x071\u033C\u033D\x07,\u033D\u0341\u033E\u0340\v\u033F\u033E\u0340\u0343\u0341\u0342\u0341\u033F\u0342\u0344\u0343\u0341\u0344\u0345\x07,\u0345\u0346\x071\u0346\u0347\u0347\u0348\br\u0348\xE4\u0349\u034A\x07%\u034A\u034B\x07n\u034B\u034C\x07c\u034C\u034D\x07p\u034D\u034E\x07i\u034E\u0352\u034F\u0351
134
+ \b\u0350\u034F\u0351\u0354\u0352\u0350\u0352\u0353\u0353\u0355\u0354\u0352\u0355\u0356\bs\u0356\xE6\xF7\xF9\u020F\u021B\u0226\u0232\u0256\u02E2\u0303\u0309\u030B\u0311\u0313\u031B\u0321\u032B\u0336\u0341\u0352\b`,r._serializedATN=o.join([r._serializedATNSegment0,r._serializedATNSegment1],"");}),"./src/forge-antlr/ForgeListenerImpl.ts":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.ForgeListenerImpl=void 0;let d=f("./src/forge-antlr/utils.ts"),m=f("./src/forge-antlr/ForgeSyntaxConstructs.ts");function g(){return Math.random().toString(36).substring(7)}function T(r){let x=r.start.line,n=r.start.charPositionInLine,c=r.stop?r.stop.line:-1,a=r.stop?r.stop.charPositionInLine+(r.stop.text?.length||0):0;return {startLine:x,startColumn:n,endLine:c,endColumn:a}}function h(r){let{startLine:x,startColumn:n,endLine:c,endColumn:a}=T(r);return new m.Block(x,n,c,a,[])}function s(r){let{startLine:x,startColumn:n,endLine:c,endColumn:a}=T(r);return new m.Expr(x,n,c,a,"")}class o{constructor(){this._sigs=[],this._predicates=[],this._tests=[],this._assertions=[],this._examples=[],this._quantifiedAssertions=[],this._satisfiabilityAssertions=[],this._functions=[],this._consistencyAssertions=[];}get sigs(){return this._sigs}get predicates(){return this._predicates}get tests(){return this._tests}get assertions(){return this._assertions}get examples(){return this._examples}get quantifiedAssertions(){return this._quantifiedAssertions}get satisfiabilityAssertions(){return this._satisfiabilityAssertions}get functions(){return this._functions}get consistencyAssertions(){return this._consistencyAssertions}exitSigDecl(x){let{startLine:n,startColumn:c,endLine:a,endColumn:p}=T(x),t=this.getAllNames(x.nameList()),y=x.mult()?.toStringTree(),v=x.sigExt()?.toStringTree(),S=x.block(),N=S?h(S):void 0;for(let b of t){let U=new m.Sig(n,c,a,p,b,N,v,y);this._sigs.push(U);}}exitPredDecl(x){let {startLine:n,startColumn:c,endLine:a,endColumn:p}=T(x),t=(0, d.getIdentifierName)(x.name()),y=x.paraDecls(),v=y?h(y):void 0,S=x.block(),N=h(S),U=new m.Predicate(n,c,a,p,t,v,N);this._predicates.push(U);}exitFunDecl(x){let{startLine:n,startColumn:c,endLine:a,endColumn:p}=T(x),t=(0, d.getIdentifierName)(x.name()),y=new Function(n,c,a,p,t);this._functions.push(y);}exitTestDecl(x){let{startLine:n,startColumn:c,endLine:a,endColumn:p}=T(x),t=x.name(),y=t?(0, d.getIdentifierName)(t):g(),v=x.block(),S=v?h(v):void 0,N=x.scope()?.toStringTree(),b=x.bounds()?.toStringTree(),U=x.SAT_TOK()?"sat":x.UNSAT_TOK()?"unsat":x.THEOREM_TOK()?"theorem":x.FORGE_ERROR_TOK()?"forge_error":x.CHECKED_TOK()?"checked":"unknown",A=new m.Test(n,c,a,p,y,U,S,b,N);this._tests.push(A);}exitSatisfiabilityDecl(x){let{startLine:n,startColumn:c,endLine:a,endColumn:p}=T(x),t=s(x.expr()),y=x.scope()?.toStringTree(),v=x.bounds()?.toStringTree(),S=x.SAT_TOK()?"sat":x.UNSAT_TOK()?"unsat":x.FORGE_ERROR_TOK()?"forge_error":"unknown",N=new m.SatisfiabilityAssertionTest(n,c,a,p,t,S,v,y);this._satisfiabilityAssertions.push(N);}exitPropertyDecl(x){let{startLine:n,startColumn:c,endLine:a,endColumn:p}=T(x),t=x.SUFFICIENT_TOK()?"sufficient":x.NECESSARY_TOK()?"necessary":"unknown";if(t==="unknown")throw new Error("Property relation must be either necessary or sufficient.");let y=s(x.expr()),v=(0, d.getIdentifierName)(x.name()),S=x.scope()?.toStringTree(),N=x.bounds()?.toStringTree(),b=new m.AssertionTest(n,c,a,p,v,y,t,N,S);this._assertions.push(b);}exitQuantifiedPropertyDecl(x){let{startLine:n,startColumn:c,endLine:a,endColumn:p}=T(x),t=!!x.DISJ_TOK(),y=x.SUFFICIENT_TOK()?"sufficient":x.NECESSARY_TOK()?"necessary":"unknown";if(y==="unknown")throw new Error("Property relation must be either necessary or sufficient.");let N=(0, d.getIdentifierName)(x.name()),b=s(x.expr()),U=x.exprList(),A=U?h(U):void 0,w=x.scope()?.toStringTree(),F=x.bounds()?.toStringTree(),M=x.quantDeclList(),W=M?h(M):void 0,L=new m.QuantifiedAssertionTest(n,c,a,p,N,b,y,t,W,F,w,A);this._quantifiedAssertions.push(L);}exitConsistencyDecl(x){let{startLine:n,startColumn:c,endLine:a,endColumn:p}=T(x),t=x.CONSISTENT_TOK()?"consistent":x.INCONSISTENT_TOK()?"inconsistent":"unknown";if(t==="unknown")throw new Error("Consistency assertion relation must be either consistent or inconsistent.");let y=t==="consistent",v=(0, d.getIdentifierName)(x.name()),S=s(x.expr()),N=x.scope()?.toStringTree(),b=x.bounds()?.toStringTree(),U=new m.ConsistencyAssertionTest(n,c,a,p,v,S,y,b,N);this._consistencyAssertions.push(U);}exitExampleDecl(x){let{startLine:n,startColumn:c,endLine:a,endColumn:p}=T(x),t=(0, d.getIdentifierName)(x.name()),y=x.expr(),v=h(y),S=x.bounds(),N=h(S),b=new m.Example(n,c,a,p,t,v,N);this._examples.push(b);}getAllNames(x){let n=[];function c(a){a.name()&&n.push(a.name());let p=a.nameList();p&&c(p);}return c(x),n.map(a=>(0, d.getIdentifierName)(a))}}l.ForgeListenerImpl=o;}),"./src/forge-antlr/ForgeParser.ts":(function(D,l,f){var d=this&&this.__createBinding||(Object.create?(function(kt,i,R,$){$===void 0&&($=R);var gt=Object.getOwnPropertyDescriptor(i,R);(!gt||("get"in gt?!i.__esModule:gt.writable||gt.configurable))&&(gt={enumerable:true,get:function(){return i[R]}}),Object.defineProperty(kt,$,gt);}):(function(kt,i,R,$){$===void 0&&($=R),kt[$]=i[R];})),m=this&&this.__setModuleDefault||(Object.create?(function(kt,i){Object.defineProperty(kt,"default",{enumerable:true,value:i});}):function(kt,i){kt.default=i;}),g=this&&this.__importStar||(function(){var kt=function(i){return kt=Object.getOwnPropertyNames||function(R){var $=[];for(var gt in R)Object.prototype.hasOwnProperty.call(R,gt)&&($[$.length]=gt);return $},kt(i)};return function(i){if(i&&i.__esModule)return i;var R={};if(i!=null)for(var $=kt(i),gt=0;gt<$.length;gt++)$[gt]!=="default"&&d(R,i,$[gt]);return m(R,i),R}})();Object.defineProperty(l,"__esModule",{value:true}),l.Expr1Context=l.ExprContext=l.ExprListContext=l.TypescopeListContext=l.LetDeclListContext=l.ArrowDeclListContext=l.QuantDeclListContext=l.ParaDeclListContext=l.QualNameListContext=l.NameListContext=l.NameContext=l.OptionDeclContext=l.QualNameContext=l.QuantContext=l.BlockOrBarContext=l.BlockContext=l.LetDeclContext=l.CompareOpContext=l.ArrowOpContext=l.TestConstructContext=l.TestSuiteDeclContext=l.ConsistencyDeclContext=l.PropertyDeclContext=l.QuantifiedPropertyDeclContext=l.SatisfiabilityDeclContext=l.ConstContext=l.TypescopeContext=l.ScopeContext=l.TestBlockContext=l.TestExpectDeclContext=l.TestDeclContext=l.CmdDeclContext=l.AssertDeclContext=l.ParaDeclsContext=l.FunDeclContext=l.PredTypeContext=l.ArrowDeclContext=l.QuantDeclContext=l.ParaDeclContext=l.HelperMultContext=l.ArrowMultContext=l.MultContext=l.SigExtContext=l.SigDeclContext=l.ParagraphContext=l.ImportDeclContext=l.AlloyModuleContext=l.ParseExprContext=l.PredDeclContext=l.ForgeParser=void 0,l.BindRHSProductBaseContext=l.BindRHSProductContext=l.BindRHSUnionContext=l.BoundLHSContext=l.BoundContext=l.AtomNameOrNumberContext=l.BoundsContext=l.NumberContext=l.NumberListContext=l.QueryDeclContext=l.ExampleDeclContext=l.EvalDeclContext=l.EvalRelDeclContext=l.InstDeclContext=l.SexprContext=l.SexprDeclContext=l.ArrowExprContext=l.Expr18Context=l.Expr17Context=l.Expr16Context=l.Expr15Context=l.Expr14Context=l.Expr13Context=l.Expr12Context=l.Expr11Context=l.Expr10Context=l.Expr9Context=l.Expr8Context=l.Expr7Context=l.Expr6Context=l.Expr5Context=l.Expr4_5Context=l.Expr4Context=l.Expr3Context=l.Expr2Context=l.Expr1_5Context=void 0;let O=f("./node_modules/antlr4ts/atn/ATN.js"),T=f("./node_modules/antlr4ts/atn/ATNDeserializer.js"),h=f("./node_modules/antlr4ts/FailedPredicateException.js"),s=f("./node_modules/antlr4ts/NoViableAltException.js"),o=f("./node_modules/antlr4ts/Parser.js"),r=f("./node_modules/antlr4ts/ParserRuleContext.js"),x=f("./node_modules/antlr4ts/atn/ParserATNSimulator.js"),n=f("./node_modules/antlr4ts/RecognitionException.js"),c=f("./node_modules/antlr4ts/Token.js"),a=f("./node_modules/antlr4ts/VocabularyImpl.js"),p=g(f("./node_modules/antlr4ts/misc/Utils.js"));class t extends o.Parser{get vocabulary(){return t.VOCABULARY}get grammarFileName(){return "Forge.g4"}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}createFailedPredicateException(i,R){return new h.FailedPredicateException(this,i,R)}constructor(i){super(i),this._interp=new x.ParserATNSimulator(t._ATN,this);}predDecl(){let i=new y(this._ctx,this.state);this.enterRule(i,0,t.RULE_predDecl);let R;try{this.enterOuterAlt(i,1),this.state=170,this.match(t.PRED_TOK),this.state=172,this._errHandler.sync(this),R=this._input.LA(1),R===t.WHEAT_TOK&&(this.state=171,this.predType()),this.state=177,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,1,this._ctx)===1&&(this.state=174,this.qualName(),this.state=175,this.match(t.DOT_TOK)),this.state=179,this.name(),this.state=181,this._errHandler.sync(this),R=this._input.LA(1),(R===t.LEFT_SQUARE_TOK||R===t.LEFT_PAREN_TOK)&&(this.state=180,this.paraDecls()),this.state=183,this.block();}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}parseExpr(){let i=new v(this._ctx,this.state);this.enterRule(i,2,t.RULE_parseExpr);try{this.enterOuterAlt(i,1),this.state=185,this.expr(),this.state=186,this.match(t.EOF);}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}alloyModule(){let i=new S(this._ctx,this.state);this.enterRule(i,4,t.RULE_alloyModule);let R;try{switch(this.state=206,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,6,this._ctx)){case 1:this.enterOuterAlt(i,1);{for(this.state=191,this._errHandler.sync(this),R=this._input.LA(1);R===t.OPEN_TOK;)this.state=188,this.importDecl(),this.state=193,this._errHandler.sync(this),R=this._input.LA(1);for(this.state=197,this._errHandler.sync(this),R=this._input.LA(1);(R&-32)===0&&(1<<R&(1<<t.VAR_TOK|1<<t.ABSTRACT_TOK|1<<t.SIG_TOK|1<<t.LONE_TOK|1<<t.SOME_TOK|1<<t.ONE_TOK|1<<t.TWO_TOK|1<<t.PRED_TOK|1<<t.FUN_TOK|1<<t.ASSERT_TOK|1<<t.RUN_TOK|1<<t.CHECK_TOK))!==0||R===t.TEST_TOK||R===t.EXPECT_TOK||(R-86&-32)===0&&(1<<R-86&(1<<t.SEXPR_TOK-86|1<<t.INST_TOK-86|1<<t.EXAMPLE_TOK-86|1<<t.OPTION_TOK-86|1<<t.QUOTED_IDENTIFIER_TOK-86|1<<t.IDENTIFIER_TOK-86))!==0;)this.state=194,this.paragraph(),this.state=199,this._errHandler.sync(this),R=this._input.LA(1);}break;case 2:for(this.enterOuterAlt(i,2),this.state=203,this._errHandler.sync(this),R=this._input.LA(1);R===t.EVAL_TOK;)this.state=200,this.evalDecl(),this.state=205,this._errHandler.sync(this),R=this._input.LA(1);break}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}importDecl(){let i=new N(this._ctx,this.state);this.enterRule(i,6,t.RULE_importDecl);let R;try{switch(this.state=226,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,10,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=208,this.match(t.OPEN_TOK),this.state=209,this.qualName(),this.state=214,this._errHandler.sync(this),R=this._input.LA(1),R===t.LEFT_SQUARE_TOK&&(this.state=210,this.match(t.LEFT_SQUARE_TOK),this.state=211,this.qualNameList(),this.state=212,this.match(t.RIGHT_SQUARE_TOK)),this.state=218,this._errHandler.sync(this),R=this._input.LA(1),R===t.AS_TOK&&(this.state=216,this.match(t.AS_TOK),this.state=217,this.name());break;case 2:this.enterOuterAlt(i,2),this.state=220,this.match(t.OPEN_TOK),this.state=221,this.match(t.FILE_PATH_TOK),this.state=224,this._errHandler.sync(this),R=this._input.LA(1),R===t.AS_TOK&&(this.state=222,this.match(t.AS_TOK),this.state=223,this.name());break}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}paragraph(){let i=new b(this._ctx,this.state);this.enterRule(i,8,t.RULE_paragraph);try{switch(this.state=245,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,11,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=228,this.sigDecl();break;case 2:this.enterOuterAlt(i,2),this.state=229,this.predDecl();break;case 3:this.enterOuterAlt(i,3),this.state=230,this.funDecl();break;case 4:this.enterOuterAlt(i,4),this.state=231,this.assertDecl();break;case 5:this.enterOuterAlt(i,5),this.state=232,this.cmdDecl();break;case 6:this.enterOuterAlt(i,6),this.state=233,this.testExpectDecl();break;case 7:this.enterOuterAlt(i,7),this.state=234,this.sexprDecl();break;case 8:this.enterOuterAlt(i,8),this.state=235,this.queryDecl();break;case 9:this.enterOuterAlt(i,9),this.state=236,this.evalRelDecl();break;case 10:this.enterOuterAlt(i,10),this.state=237,this.optionDecl();break;case 11:this.enterOuterAlt(i,11),this.state=238,this.instDecl();break;case 12:this.enterOuterAlt(i,12),this.state=239,this.exampleDecl();break;case 13:this.enterOuterAlt(i,13),this.state=240,this.propertyDecl();break;case 14:this.enterOuterAlt(i,14),this.state=241,this.quantifiedPropertyDecl();break;case 15:this.enterOuterAlt(i,15),this.state=242,this.satisfiabilityDecl();break;case 16:this.enterOuterAlt(i,16),this.state=243,this.consistencyDecl();break;case 17:this.enterOuterAlt(i,17),this.state=244,this.testSuiteDecl();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}sigDecl(){let i=new U(this._ctx,this.state);this.enterRule(i,10,t.RULE_sigDecl);let R;try{this.enterOuterAlt(i,1),this.state=248,this._errHandler.sync(this),R=this._input.LA(1),R===t.VAR_TOK&&(this.state=247,this.match(t.VAR_TOK)),this.state=251,this._errHandler.sync(this),R=this._input.LA(1),R===t.ABSTRACT_TOK&&(this.state=250,this.match(t.ABSTRACT_TOK)),this.state=254,this._errHandler.sync(this),R=this._input.LA(1),(R&-32)===0&&(1<<R&(1<<t.LONE_TOK|1<<t.SOME_TOK|1<<t.ONE_TOK|1<<t.TWO_TOK))!==0&&(this.state=253,this.mult()),this.state=256,this.match(t.SIG_TOK),this.state=257,this.nameList(),this.state=259,this._errHandler.sync(this),R=this._input.LA(1),(R===t.EXTENDS_TOK||R===t.IN_TOK)&&(this.state=258,this.sigExt()),this.state=261,this.match(t.LEFT_CURLY_TOK),this.state=263,this._errHandler.sync(this),R=this._input.LA(1),(R===t.VAR_TOK||R===t.QUOTED_IDENTIFIER_TOK||R===t.IDENTIFIER_TOK)&&(this.state=262,this.arrowDeclList()),this.state=265,this.match(t.RIGHT_CURLY_TOK),this.state=267,this._errHandler.sync(this),R=this._input.LA(1),R===t.LEFT_CURLY_TOK&&(this.state=266,this.block());}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}sigExt(){let i=new A(this._ctx,this.state);this.enterRule(i,12,t.RULE_sigExt);let R;try{switch(this.state=280,this._errHandler.sync(this),this._input.LA(1)){case t.EXTENDS_TOK:this.enterOuterAlt(i,1),this.state=269,this.match(t.EXTENDS_TOK),this.state=270,this.qualName();break;case t.IN_TOK:for(this.enterOuterAlt(i,2),this.state=271,this.match(t.IN_TOK),this.state=272,this.qualName(),this.state=277,this._errHandler.sync(this),R=this._input.LA(1);R===t.PLUS_TOK;)this.state=273,this.match(t.PLUS_TOK),this.state=274,this.qualName(),this.state=279,this._errHandler.sync(this),R=this._input.LA(1);break;default:throw new s.NoViableAltException(this)}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}mult(){let i=new w(this._ctx,this.state);this.enterRule(i,14,t.RULE_mult);let R;try{this.enterOuterAlt(i,1),this.state=282,R=this._input.LA(1),(R&-32)===0&&(1<<R&(1<<t.LONE_TOK|1<<t.SOME_TOK|1<<t.ONE_TOK|1<<t.TWO_TOK))!==0?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this);}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}arrowMult(){let i=new F(this._ctx,this.state);this.enterRule(i,16,t.RULE_arrowMult);let R;try{this.enterOuterAlt(i,1),this.state=284,R=this._input.LA(1),(R&-32)===0&&(1<<R&(1<<t.LONE_TOK|1<<t.ONE_TOK|1<<t.TWO_TOK|1<<t.SET_TOK|1<<t.FUNC_TOK|1<<t.PFUNC_TOK))!==0?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this);}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}helperMult(){let i=new M(this._ctx,this.state);this.enterRule(i,18,t.RULE_helperMult);let R;try{this.enterOuterAlt(i,1),this.state=286,R=this._input.LA(1),(R&-32)===0&&(1<<R&(1<<t.LONE_TOK|1<<t.ONE_TOK|1<<t.SET_TOK|1<<t.FUNC_TOK|1<<t.PFUNC_TOK))!==0?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this);}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}paraDecl(){let i=new W(this._ctx,this.state);this.enterRule(i,20,t.RULE_paraDecl);let R;try{this.enterOuterAlt(i,1),this.state=289,this._errHandler.sync(this),R=this._input.LA(1),R===t.DISJ_TOK&&(this.state=288,this.match(t.DISJ_TOK)),this.state=291,this.nameList(),this.state=292,this.match(t.COLON_TOK),this.state=294,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,21,this._ctx)===1&&(this.state=293,this.helperMult()),this.state=296,this.expr();}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}quantDecl(){let i=new L(this._ctx,this.state);this.enterRule(i,22,t.RULE_quantDecl);let R;try{this.enterOuterAlt(i,1),this.state=299,this._errHandler.sync(this),R=this._input.LA(1),R===t.DISJ_TOK&&(this.state=298,this.match(t.DISJ_TOK)),this.state=301,this.nameList(),this.state=302,this.match(t.COLON_TOK),this.state=304,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,23,this._ctx)===1&&(this.state=303,this.match(t.SET_TOK)),this.state=306,this.expr();}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}arrowDecl(){let i=new j(this._ctx,this.state);this.enterRule(i,24,t.RULE_arrowDecl);let R;try{this.enterOuterAlt(i,1),this.state=309,this._errHandler.sync(this),R=this._input.LA(1),R===t.VAR_TOK&&(this.state=308,this.match(t.VAR_TOK)),this.state=311,this.nameList(),this.state=312,this.match(t.COLON_TOK),this.state=313,this.arrowMult(),this.state=314,this.arrowExpr();}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}predType(){let i=new k(this._ctx,this.state);this.enterRule(i,26,t.RULE_predType);try{this.enterOuterAlt(i,1),this.state=316,this.match(t.WHEAT_TOK);}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}funDecl(){let i=new J(this._ctx,this.state);this.enterRule(i,28,t.RULE_funDecl);let R;try{this.enterOuterAlt(i,1),this.state=318,this.match(t.FUN_TOK),this.state=322,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,25,this._ctx)===1&&(this.state=319,this.qualName(),this.state=320,this.match(t.DOT_TOK)),this.state=324,this.name(),this.state=326,this._errHandler.sync(this),R=this._input.LA(1),(R===t.LEFT_SQUARE_TOK||R===t.LEFT_PAREN_TOK)&&(this.state=325,this.paraDecls()),this.state=328,this.match(t.COLON_TOK),this.state=330,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,27,this._ctx)===1&&(this.state=329,this.helperMult()),this.state=332,this.expr(),this.state=333,this.match(t.LEFT_CURLY_TOK),this.state=334,this.expr(),this.state=335,this.match(t.RIGHT_CURLY_TOK);}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}paraDecls(){let i=new ut(this._ctx,this.state);this.enterRule(i,30,t.RULE_paraDecls);let R;try{switch(this.state=347,this._errHandler.sync(this),this._input.LA(1)){case t.LEFT_PAREN_TOK:this.enterOuterAlt(i,1),this.state=337,this.match(t.LEFT_PAREN_TOK),this.state=339,this._errHandler.sync(this),R=this._input.LA(1),(R===t.DISJ_TOK||R===t.QUOTED_IDENTIFIER_TOK||R===t.IDENTIFIER_TOK)&&(this.state=338,this.paraDeclList()),this.state=341,this.match(t.RIGHT_PAREN_TOK);break;case t.LEFT_SQUARE_TOK:this.enterOuterAlt(i,2),this.state=342,this.match(t.LEFT_SQUARE_TOK),this.state=344,this._errHandler.sync(this),R=this._input.LA(1),(R===t.DISJ_TOK||R===t.QUOTED_IDENTIFIER_TOK||R===t.IDENTIFIER_TOK)&&(this.state=343,this.paraDeclList()),this.state=346,this.match(t.RIGHT_SQUARE_TOK);break;default:throw new s.NoViableAltException(this)}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}assertDecl(){let i=new ft(this._ctx,this.state);this.enterRule(i,32,t.RULE_assertDecl);let R;try{this.enterOuterAlt(i,1),this.state=349,this.match(t.ASSERT_TOK),this.state=351,this._errHandler.sync(this),R=this._input.LA(1),(R===t.QUOTED_IDENTIFIER_TOK||R===t.IDENTIFIER_TOK)&&(this.state=350,this.name()),this.state=353,this.block();}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}cmdDecl(){let i=new At(this._ctx,this.state);this.enterRule(i,34,t.RULE_cmdDecl);let R;try{this.enterOuterAlt(i,1);{switch(this.state=358,this._errHandler.sync(this),R=this._input.LA(1),(R===t.QUOTED_IDENTIFIER_TOK||R===t.IDENTIFIER_TOK)&&(this.state=355,this.name(),this.state=356,this.match(t.COLON_TOK)),this.state=360,R=this._input.LA(1),R===t.RUN_TOK||R===t.CHECK_TOK?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=363,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,33,this._ctx)){case 1:this.state=361,this.qualName();break;case 2:this.state=362,this.block();break}this.state=366,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,34,this._ctx)===1&&(this.state=365,this.scope()),this.state=370,this._errHandler.sync(this),R=this._input.LA(1),R===t.FOR_TOK&&(this.state=368,this.match(t.FOR_TOK),this.state=369,this.bounds());}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}testDecl(){let i=new Dt(this._ctx,this.state);this.enterRule(i,36,t.RULE_testDecl);let R;try{this.enterOuterAlt(i,1);{switch(this.state=375,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,36,this._ctx)===1&&(this.state=372,this.name(),this.state=373,this.match(t.COLON_TOK)),this.state=379,this._errHandler.sync(this),this._input.LA(1)){case t.THIS_TOK:case t.SUM_TOK:case t.INT_TOK:case t.QUOTED_IDENTIFIER_TOK:case t.IDENTIFIER_TOK:this.state=377,this.qualName();break;case t.LEFT_CURLY_TOK:this.state=378,this.block();break;default:throw new s.NoViableAltException(this)}this.state=382,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,38,this._ctx)===1&&(this.state=381,this.scope()),this.state=386,this._errHandler.sync(this),R=this._input.LA(1),R===t.FOR_TOK&&(this.state=384,this.match(t.FOR_TOK),this.state=385,this.bounds()),this.state=388,this.match(t.IS_TOK),this.state=389,R=this._input.LA(1),(R-40&-32)===0&&(1<<R-40&(1<<t.SAT_TOK-40|1<<t.UNSAT_TOK-40|1<<t.THEOREM_TOK-40|1<<t.FORGE_ERROR_TOK-40|1<<t.CHECKED_TOK-40))!==0?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this);}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}testExpectDecl(){let i=new dt(this._ctx,this.state);this.enterRule(i,38,t.RULE_testExpectDecl);let R;try{this.enterOuterAlt(i,1),this.state=392,this._errHandler.sync(this),R=this._input.LA(1),R===t.TEST_TOK&&(this.state=391,this.match(t.TEST_TOK)),this.state=394,this.match(t.EXPECT_TOK),this.state=396,this._errHandler.sync(this),R=this._input.LA(1),(R===t.QUOTED_IDENTIFIER_TOK||R===t.IDENTIFIER_TOK)&&(this.state=395,this.name()),this.state=398,this.testBlock();}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}testBlock(){let i=new jt(this._ctx,this.state);this.enterRule(i,40,t.RULE_testBlock);let R;try{this.enterOuterAlt(i,1);{for(this.state=400,this.match(t.LEFT_CURLY_TOK),this.state=404,this._errHandler.sync(this),R=this._input.LA(1);R===t.LEFT_CURLY_TOK||(R-85&-32)===0&&(1<<R-85&(1<<t.THIS_TOK-85|1<<t.SUM_TOK-85|1<<t.INT_TOK-85|1<<t.QUOTED_IDENTIFIER_TOK-85|1<<t.IDENTIFIER_TOK-85))!==0;)this.state=401,this.testDecl(),this.state=406,this._errHandler.sync(this),R=this._input.LA(1);this.state=407,this.match(t.RIGHT_CURLY_TOK);}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}scope(){let i=new _t(this._ctx,this.state);this.enterRule(i,42,t.RULE_scope);let R;try{switch(this.state=417,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,44,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=409,this.match(t.FOR_TOK),this.state=410,this.number(),this.state=413,this._errHandler.sync(this),R=this._input.LA(1),R===t.BUT_TOK&&(this.state=411,this.match(t.BUT_TOK),this.state=412,this.typescopeList());break;case 2:this.enterOuterAlt(i,2),this.state=415,this.match(t.FOR_TOK),this.state=416,this.typescopeList();break}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}typescope(){let i=new yt(this._ctx,this.state);this.enterRule(i,44,t.RULE_typescope);let R;try{this.enterOuterAlt(i,1),this.state=420,this._errHandler.sync(this),R=this._input.LA(1),R===t.EXACTLY_TOK&&(this.state=419,this.match(t.EXACTLY_TOK)),this.state=422,this.number(),this.state=423,this.qualName();}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}const(){let i=new rt(this._ctx,this.state);this.enterRule(i,46,t.RULE_const);let R;try{switch(this.state=432,this._errHandler.sync(this),this._input.LA(1)){case t.NONE_TOK:this.enterOuterAlt(i,1),this.state=425,this.match(t.NONE_TOK);break;case t.UNIV_TOK:this.enterOuterAlt(i,2),this.state=426,this.match(t.UNIV_TOK);break;case t.IDEN_TOK:this.enterOuterAlt(i,3),this.state=427,this.match(t.IDEN_TOK);break;case t.MINUS_TOK:case t.NUM_CONST_TOK:this.enterOuterAlt(i,4),this.state=429,this._errHandler.sync(this),R=this._input.LA(1),R===t.MINUS_TOK&&(this.state=428,this.match(t.MINUS_TOK)),this.state=431,this.number();break;default:throw new s.NoViableAltException(this)}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}satisfiabilityDecl(){let i=new K(this._ctx,this.state);this.enterRule(i,48,t.RULE_satisfiabilityDecl);let R;try{this.enterOuterAlt(i,1),this.state=434,this.match(t.ASSERT_TOK),this.state=435,this.expr(),this.state=436,this.match(t.IS_TOK),this.state=437,R=this._input.LA(1),(R-40&-32)===0&&(1<<R-40&(1<<t.SAT_TOK-40|1<<t.UNSAT_TOK-40|1<<t.FORGE_ERROR_TOK-40))!==0?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=439,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,48,this._ctx)===1&&(this.state=438,this.scope()),this.state=443,this._errHandler.sync(this),R=this._input.LA(1),R===t.FOR_TOK&&(this.state=441,this.match(t.FOR_TOK),this.state=442,this.bounds());}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}quantifiedPropertyDecl(){let i=new G(this._ctx,this.state);this.enterRule(i,50,t.RULE_quantifiedPropertyDecl);let R;try{this.enterOuterAlt(i,1),this.state=445,this.match(t.ASSERT_TOK),this.state=446,this.match(t.ALL_TOK),this.state=448,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,50,this._ctx)===1&&(this.state=447,this.match(t.DISJ_TOK)),this.state=450,this.quantDeclList(),this.state=451,this.match(t.BAR_TOK),this.state=452,this.expr(),this.state=453,this.match(t.IS_TOK),this.state=454,R=this._input.LA(1),R===t.SUFFICIENT_TOK||R===t.NECESSARY_TOK?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=455,this.match(t.FOR_TOK),this.state=456,this.name(),this.state=461,this._errHandler.sync(this),R=this._input.LA(1),R===t.LEFT_SQUARE_TOK&&(this.state=457,this.match(t.LEFT_SQUARE_TOK),this.state=458,this.exprList(),this.state=459,this.match(t.RIGHT_SQUARE_TOK)),this.state=464,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,52,this._ctx)===1&&(this.state=463,this.scope()),this.state=468,this._errHandler.sync(this),R=this._input.LA(1),R===t.FOR_TOK&&(this.state=466,this.match(t.FOR_TOK),this.state=467,this.bounds());}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}propertyDecl(){let i=new Q(this._ctx,this.state);this.enterRule(i,52,t.RULE_propertyDecl);let R;try{this.enterOuterAlt(i,1),this.state=470,this.match(t.ASSERT_TOK),this.state=471,this.expr(),this.state=472,this.match(t.IS_TOK),this.state=473,R=this._input.LA(1),R===t.SUFFICIENT_TOK||R===t.NECESSARY_TOK?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=474,this.match(t.FOR_TOK),this.state=475,this.name(),this.state=477,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,54,this._ctx)===1&&(this.state=476,this.scope()),this.state=481,this._errHandler.sync(this),R=this._input.LA(1),R===t.FOR_TOK&&(this.state=479,this.match(t.FOR_TOK),this.state=480,this.bounds());}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}consistencyDecl(){let i=new ot(this._ctx,this.state);this.enterRule(i,54,t.RULE_consistencyDecl);let R;try{this.enterOuterAlt(i,1),this.state=483,this.match(t.ASSERT_TOK),this.state=484,this.expr(),this.state=485,this.match(t.IS_TOK),this.state=486,R=this._input.LA(1),R===t.CONSISTENT_TOK||R===t.INCONSISTENT_TOK?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=487,this.match(t.WITH_TOK),this.state=488,this.name(),this.state=490,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,56,this._ctx)===1&&(this.state=489,this.scope()),this.state=494,this._errHandler.sync(this),R=this._input.LA(1),R===t.FOR_TOK&&(this.state=492,this.match(t.FOR_TOK),this.state=493,this.bounds());}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}testSuiteDecl(){let i=new lt(this._ctx,this.state);this.enterRule(i,56,t.RULE_testSuiteDecl);let R;try{this.enterOuterAlt(i,1);{for(this.state=496,this.match(t.TEST_TOK),this.state=497,this.match(t.SUITE_TOK),this.state=498,this.match(t.FOR_TOK),this.state=499,this.name(),this.state=500,this.match(t.LEFT_CURLY_TOK),this.state=504,this._errHandler.sync(this),R=this._input.LA(1);(R-29&-32)===0&&(1<<R-29&(1<<t.ASSERT_TOK-29|1<<t.TEST_TOK-29|1<<t.EXPECT_TOK-29))!==0||R===t.EXAMPLE_TOK;)this.state=501,this.testConstruct(),this.state=506,this._errHandler.sync(this),R=this._input.LA(1);this.state=507,this.match(t.RIGHT_CURLY_TOK);}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}testConstruct(){let i=new st(this._ctx,this.state);this.enterRule(i,58,t.RULE_testConstruct);try{switch(this.state=515,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,59,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=509,this.exampleDecl();break;case 2:this.enterOuterAlt(i,2),this.state=510,this.testExpectDecl();break;case 3:this.enterOuterAlt(i,3),this.state=511,this.quantifiedPropertyDecl();break;case 4:this.enterOuterAlt(i,4),this.state=512,this.propertyDecl();break;case 5:this.enterOuterAlt(i,5),this.state=513,this.satisfiabilityDecl();break;case 6:this.enterOuterAlt(i,6),this.state=514,this.consistencyDecl();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}arrowOp(){let i=new ht(this._ctx,this.state);this.enterRule(i,60,t.RULE_arrowOp);try{this.enterOuterAlt(i,1);{switch(this.state=519,this._errHandler.sync(this),this._input.LA(1)){case t.LONE_TOK:case t.SOME_TOK:case t.ONE_TOK:case t.TWO_TOK:this.state=517,this.mult();break;case t.SET_TOK:this.state=518,this.match(t.SET_TOK);break;case t.ARROW_TOK:break;default:break}switch(this.state=521,this.match(t.ARROW_TOK),this.state=524,this._errHandler.sync(this),this._input.LA(1)){case t.LONE_TOK:case t.SOME_TOK:case t.ONE_TOK:case t.TWO_TOK:this.state=522,this.mult();break;case t.SET_TOK:this.state=523,this.match(t.SET_TOK);break;case t.LEFT_CURLY_TOK:case t.LEFT_PAREN_TOK:case t.NONE_TOK:case t.UNIV_TOK:case t.IDEN_TOK:case t.MINUS_TOK:case t.TILDE_TOK:case t.EXP_TOK:case t.STAR_TOK:case t.AT_TOK:case t.BACKQUOTE_TOK:case t.THIS_TOK:case t.SEXPR_TOK:case t.GET_LABEL_TOK:case t.GET_LABEL_STR_TOK:case t.GET_LABEL_BOOL_TOK:case t.GET_LABEL_NUM_TOK:case t.SUM_TOK:case t.INT_TOK:case t.NUM_CONST_TOK:case t.QUOTED_IDENTIFIER_TOK:case t.IDENTIFIER_TOK:break;default:break}}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}compareOp(){let i=new xt(this._ctx,this.state);this.enterRule(i,62,t.RULE_compareOp);let R;try{this.enterOuterAlt(i,1),this.state=526,R=this._input.LA(1),R===t.IN_TOK||R===t.IS_TOK||(R-95&-32)===0&&(1<<R-95&(1<<t.EQ_TOK-95|1<<t.LT_TOK-95|1<<t.GT_TOK-95|1<<t.LEQ_TOK-95|1<<t.GEQ_TOK-95|1<<t.NI_TOK-95))!==0?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this);}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}letDecl(){let i=new it(this._ctx,this.state);this.enterRule(i,64,t.RULE_letDecl);try{this.enterOuterAlt(i,1),this.state=528,this.name(),this.state=529,this.match(t.EQ_TOK),this.state=530,this.expr();}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}block(){let i=new vt(this._ctx,this.state);this.enterRule(i,66,t.RULE_block);let R;try{this.enterOuterAlt(i,1);{for(this.state=532,this.match(t.LEFT_CURLY_TOK),this.state=536,this._errHandler.sync(this),R=this._input.LA(1);(R-9&-32)===0&&(1<<R-9&(1<<t.LEFT_CURLY_TOK-9|1<<t.LONE_TOK-9|1<<t.SOME_TOK-9|1<<t.ONE_TOK-9|1<<t.TWO_TOK-9|1<<t.SET_TOK-9|1<<t.LEFT_PAREN_TOK-9|1<<t.NONE_TOK-9|1<<t.UNIV_TOK-9|1<<t.IDEN_TOK-9|1<<t.MINUS_TOK-9))!==0||(R-49&-32)===0&&(1<<R-49&(1<<t.ALL_TOK-49|1<<t.LET_TOK-49|1<<t.BIND_TOK-49|1<<t.NEG_TOK-49|1<<t.ALWAYS_TOK-49|1<<t.EVENTUALLY_TOK-49|1<<t.AFTER_TOK-49|1<<t.BEFORE_TOK-49|1<<t.ONCE_TOK-49|1<<t.HISTORICALLY_TOK-49|1<<t.CARD_TOK-49|1<<t.TILDE_TOK-49))!==0||(R-81&-32)===0&&(1<<R-81&(1<<t.EXP_TOK-81|1<<t.STAR_TOK-81|1<<t.AT_TOK-81|1<<t.BACKQUOTE_TOK-81|1<<t.THIS_TOK-81|1<<t.SEXPR_TOK-81|1<<t.GET_LABEL_TOK-81|1<<t.GET_LABEL_STR_TOK-81|1<<t.GET_LABEL_BOOL_TOK-81|1<<t.GET_LABEL_NUM_TOK-81|1<<t.NO_TOK-81|1<<t.SUM_TOK-81|1<<t.INT_TOK-81|1<<t.NUM_CONST_TOK-81|1<<t.QUOTED_IDENTIFIER_TOK-81|1<<t.IDENTIFIER_TOK-81))!==0;)this.state=533,this.expr(),this.state=538,this._errHandler.sync(this),R=this._input.LA(1);this.state=539,this.match(t.RIGHT_CURLY_TOK);}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}blockOrBar(){let i=new Z(this._ctx,this.state);this.enterRule(i,68,t.RULE_blockOrBar);try{switch(this.state=544,this._errHandler.sync(this),this._input.LA(1)){case t.LEFT_CURLY_TOK:this.enterOuterAlt(i,1),this.state=541,this.block();break;case t.BAR_TOK:this.enterOuterAlt(i,2),this.state=542,this.match(t.BAR_TOK),this.state=543,this.expr();break;default:throw new s.NoViableAltException(this)}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}quant(){let i=new tt(this._ctx,this.state);this.enterRule(i,70,t.RULE_quant);try{switch(this.state=550,this._errHandler.sync(this),this._input.LA(1)){case t.ALL_TOK:this.enterOuterAlt(i,1),this.state=546,this.match(t.ALL_TOK);break;case t.NO_TOK:this.enterOuterAlt(i,2),this.state=547,this.match(t.NO_TOK);break;case t.SUM_TOK:this.enterOuterAlt(i,3),this.state=548,this.match(t.SUM_TOK);break;case t.LONE_TOK:case t.SOME_TOK:case t.ONE_TOK:case t.TWO_TOK:this.enterOuterAlt(i,4),this.state=549,this.mult();break;default:throw new s.NoViableAltException(this)}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}qualName(){let i=new q(this._ctx,this.state);this.enterRule(i,72,t.RULE_qualName);let R;try{let $;switch(this.state=567,this._errHandler.sync(this),this._input.LA(1)){case t.THIS_TOK:case t.QUOTED_IDENTIFIER_TOK:case t.IDENTIFIER_TOK:this.enterOuterAlt(i,1);{for(this.state=554,this._errHandler.sync(this),R=this._input.LA(1),R===t.THIS_TOK&&(this.state=552,this.match(t.THIS_TOK),this.state=553,this.match(t.SLASH_TOK)),this.state=561,this._errHandler.sync(this),$=this.interpreter.adaptivePredict(this._input,66,this._ctx);$!==2&&$!==O.ATN.INVALID_ALT_NUMBER;)$===1&&(this.state=556,this.name(),this.state=557,this.match(t.SLASH_TOK)),this.state=563,this._errHandler.sync(this),$=this.interpreter.adaptivePredict(this._input,66,this._ctx);this.state=564,this.name();}break;case t.INT_TOK:this.enterOuterAlt(i,2),this.state=565,this.match(t.INT_TOK);break;case t.SUM_TOK:this.enterOuterAlt(i,3),this.state=566,this.match(t.SUM_TOK);break;default:throw new s.NoViableAltException(this)}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}optionDecl(){let i=new Y(this._ctx,this.state);this.enterRule(i,74,t.RULE_optionDecl);let R;try{switch(this.enterOuterAlt(i,1),this.state=569,this.match(t.OPTION_TOK),this.state=570,this.qualName(),this.state=577,this._errHandler.sync(this),this._input.LA(1)){case t.THIS_TOK:case t.SUM_TOK:case t.INT_TOK:case t.QUOTED_IDENTIFIER_TOK:case t.IDENTIFIER_TOK:this.state=571,this.qualName();break;case t.FILE_PATH_TOK:this.state=572,this.match(t.FILE_PATH_TOK);break;case t.MINUS_TOK:case t.NUM_CONST_TOK:this.state=574,this._errHandler.sync(this),R=this._input.LA(1),R===t.MINUS_TOK&&(this.state=573,this.match(t.MINUS_TOK)),this.state=576,this.number();break;default:throw new s.NoViableAltException(this)}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}name(){let i=new et(this._ctx,this.state);this.enterRule(i,76,t.RULE_name);let R;try{this.enterOuterAlt(i,1),this.state=579,R=this._input.LA(1),R===t.QUOTED_IDENTIFIER_TOK||R===t.IDENTIFIER_TOK?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this);}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}nameList(){let i=new X(this._ctx,this.state);this.enterRule(i,78,t.RULE_nameList);try{switch(this.state=586,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,70,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=581,this.name();break;case 2:this.enterOuterAlt(i,2),this.state=582,this.name(),this.state=583,this.match(t.COMMA_TOK),this.state=584,this.nameList();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}qualNameList(){let i=new Ct(this._ctx,this.state);this.enterRule(i,80,t.RULE_qualNameList);try{switch(this.state=593,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,71,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=588,this.qualName();break;case 2:this.enterOuterAlt(i,2),this.state=589,this.qualName(),this.state=590,this.match(t.COMMA_TOK),this.state=591,this.qualNameList();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}paraDeclList(){let i=new pt(this._ctx,this.state);this.enterRule(i,82,t.RULE_paraDeclList);try{switch(this.state=600,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,72,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=595,this.paraDecl();break;case 2:this.enterOuterAlt(i,2),this.state=596,this.paraDecl(),this.state=597,this.match(t.COMMA_TOK),this.state=598,this.paraDeclList();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}quantDeclList(){let i=new Bt(this._ctx,this.state);this.enterRule(i,84,t.RULE_quantDeclList);try{switch(this.state=607,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,73,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=602,this.quantDecl();break;case 2:this.enterOuterAlt(i,2),this.state=603,this.quantDecl(),this.state=604,this.match(t.COMMA_TOK),this.state=605,this.quantDeclList();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}arrowDeclList(){let i=new Ht(this._ctx,this.state);this.enterRule(i,86,t.RULE_arrowDeclList);try{switch(this.state=614,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,74,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=609,this.arrowDecl();break;case 2:this.enterOuterAlt(i,2),this.state=610,this.arrowDecl(),this.state=611,this.match(t.COMMA_TOK),this.state=612,this.arrowDeclList();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}letDeclList(){let i=new $t(this._ctx,this.state);this.enterRule(i,88,t.RULE_letDeclList);try{switch(this.state=621,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,75,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=616,this.letDecl();break;case 2:this.enterOuterAlt(i,2),this.state=617,this.letDecl(),this.state=618,this.match(t.COMMA_TOK),this.state=619,this.letDeclList();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}typescopeList(){let i=new Wt(this._ctx,this.state);this.enterRule(i,90,t.RULE_typescopeList);try{switch(this.state=628,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,76,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=623,this.typescope();break;case 2:this.enterOuterAlt(i,2),this.state=624,this.typescope(),this.state=625,this.match(t.COMMA_TOK),this.state=626,this.typescopeList();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}exprList(){let i=new mt(this._ctx,this.state);this.enterRule(i,92,t.RULE_exprList);try{switch(this.state=635,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,77,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=630,this.expr();break;case 2:this.enterOuterAlt(i,2),this.state=631,this.expr(),this.state=632,this.match(t.COMMA_TOK),this.state=633,this.exprList();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}expr(){let i=new Tt(this._ctx,this.state);this.enterRule(i,94,t.RULE_expr);try{switch(this.state=653,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,79,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=637,this.expr1(0);break;case 2:this.enterOuterAlt(i,2),this.state=638,this.match(t.LET_TOK),this.state=639,this.letDeclList(),this.state=640,this.blockOrBar();break;case 3:this.enterOuterAlt(i,3),this.state=642,this.match(t.BIND_TOK),this.state=643,this.letDeclList(),this.state=644,this.blockOrBar();break;case 4:this.enterOuterAlt(i,4),this.state=646,this.quant(),this.state=648,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,78,this._ctx)===1&&(this.state=647,this.match(t.DISJ_TOK)),this.state=650,this.quantDeclList(),this.state=651,this.blockOrBar();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}expr1(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new Ft(this._ctx,$),Ee=gt,pe=96;this.enterRecursionRule(gt,96,t.RULE_expr1,i);try{let St;for(this.enterOuterAlt(gt,1),this.state=656,this.expr1_5(0),this._ctx._stop=this._input.tryLT(-1),this.state=663,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,80,this._ctx);St!==2&&St!==O.ATN.INVALID_ALT_NUMBER;){if(St===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new Ft(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_expr1),this.state=658,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=659,this.match(t.OR_TOK),this.state=660,this.expr1_5(0);}}this.state=665,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,80,this._ctx);}}catch(St){if(St instanceof n.RecognitionException)gt.exception=St,this._errHandler.reportError(this,St),this._errHandler.recover(this,St);else throw St}finally{this.unrollRecursionContexts(R);}return gt}expr1_5(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new Mt(this._ctx,$),Ee=gt,pe=98;this.enterRecursionRule(gt,98,t.RULE_expr1_5,i);try{let St;for(this.enterOuterAlt(gt,1),this.state=667,this.expr2(0),this._ctx._stop=this._input.tryLT(-1),this.state=674,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,81,this._ctx);St!==2&&St!==O.ATN.INVALID_ALT_NUMBER;){if(St===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new Mt(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_expr1_5),this.state=669,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=670,this.match(t.XOR_TOK),this.state=671,this.expr2(0);}}this.state=676,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,81,this._ctx);}}catch(St){if(St instanceof n.RecognitionException)gt.exception=St,this._errHandler.reportError(this,St),this._errHandler.recover(this,St);else throw St}finally{this.unrollRecursionContexts(R);}return gt}expr2(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new Ut(this._ctx,$),Ee=gt,pe=100;this.enterRecursionRule(gt,100,t.RULE_expr2,i);try{let St;for(this.enterOuterAlt(gt,1),this.state=678,this.expr3(),this._ctx._stop=this._input.tryLT(-1),this.state=685,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,82,this._ctx);St!==2&&St!==O.ATN.INVALID_ALT_NUMBER;){if(St===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new Ut(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_expr2),this.state=680,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=681,this.match(t.IFF_TOK),this.state=682,this.expr3();}}this.state=687,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,82,this._ctx);}}catch(St){if(St instanceof n.RecognitionException)gt.exception=St,this._errHandler.reportError(this,St),this._errHandler.recover(this,St);else throw St}finally{this.unrollRecursionContexts(R);}return gt}expr3(){let i=new Xt(this._ctx,this.state);this.enterRule(i,102,t.RULE_expr3);try{switch(this.state=696,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,84,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=688,this.expr4(0);break;case 2:this.enterOuterAlt(i,2),this.state=689,this.expr4(0),this.state=690,this.match(t.IMP_TOK),this.state=691,this.expr3(),this.state=694,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,83,this._ctx)===1&&(this.state=692,this.match(t.ELSE_TOK),this.state=693,this.expr3());break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}expr4(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new qt(this._ctx,$),Ee=gt,pe=104;this.enterRecursionRule(gt,104,t.RULE_expr4,i);try{let St;for(this.enterOuterAlt(gt,1),this.state=699,this.expr4_5(),this._ctx._stop=this._input.tryLT(-1),this.state=706,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,85,this._ctx);St!==2&&St!==O.ATN.INVALID_ALT_NUMBER;){if(St===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new qt(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_expr4),this.state=701,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=702,this.match(t.AND_TOK),this.state=703,this.expr4_5();}}this.state=708,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,85,this._ctx);}}catch(St){if(St instanceof n.RecognitionException)gt.exception=St,this._errHandler.reportError(this,St),this._errHandler.recover(this,St);else throw St}finally{this.unrollRecursionContexts(R);}return gt}expr4_5(){let i=new se(this._ctx,this.state);this.enterRule(i,106,t.RULE_expr4_5);try{switch(this.state=726,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,86,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=709,this.expr5();break;case 2:this.enterOuterAlt(i,2),this.state=710,this.expr5(),this.state=711,this.match(t.UNTIL_TOK),this.state=712,this.expr5();break;case 3:this.enterOuterAlt(i,3),this.state=714,this.expr5(),this.state=715,this.match(t.RELEASE_TOK),this.state=716,this.expr5();break;case 4:this.enterOuterAlt(i,4),this.state=718,this.expr5(),this.state=719,this.match(t.SINCE_TOK),this.state=720,this.expr5();break;case 5:this.enterOuterAlt(i,5),this.state=722,this.expr5(),this.state=723,this.match(t.TRIGGERED_TOK),this.state=724,this.expr5();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}expr5(){let i=new ee(this._ctx,this.state);this.enterRule(i,108,t.RULE_expr5);try{switch(this.state=743,this._errHandler.sync(this),this._input.LA(1)){case t.LEFT_CURLY_TOK:case t.LONE_TOK:case t.SOME_TOK:case t.ONE_TOK:case t.TWO_TOK:case t.SET_TOK:case t.LEFT_PAREN_TOK:case t.NONE_TOK:case t.UNIV_TOK:case t.IDEN_TOK:case t.MINUS_TOK:case t.CARD_TOK:case t.TILDE_TOK:case t.EXP_TOK:case t.STAR_TOK:case t.AT_TOK:case t.BACKQUOTE_TOK:case t.THIS_TOK:case t.SEXPR_TOK:case t.GET_LABEL_TOK:case t.GET_LABEL_STR_TOK:case t.GET_LABEL_BOOL_TOK:case t.GET_LABEL_NUM_TOK:case t.NO_TOK:case t.SUM_TOK:case t.INT_TOK:case t.NUM_CONST_TOK:case t.QUOTED_IDENTIFIER_TOK:case t.IDENTIFIER_TOK:this.enterOuterAlt(i,1),this.state=728,this.expr6(0);break;case t.NEG_TOK:this.enterOuterAlt(i,2),this.state=729,this.match(t.NEG_TOK),this.state=730,this.expr5();break;case t.ALWAYS_TOK:this.enterOuterAlt(i,3),this.state=731,this.match(t.ALWAYS_TOK),this.state=732,this.expr5();break;case t.EVENTUALLY_TOK:this.enterOuterAlt(i,4),this.state=733,this.match(t.EVENTUALLY_TOK),this.state=734,this.expr5();break;case t.AFTER_TOK:this.enterOuterAlt(i,5),this.state=735,this.match(t.AFTER_TOK),this.state=736,this.expr5();break;case t.BEFORE_TOK:this.enterOuterAlt(i,6),this.state=737,this.match(t.BEFORE_TOK),this.state=738,this.expr5();break;case t.ONCE_TOK:this.enterOuterAlt(i,7),this.state=739,this.match(t.ONCE_TOK),this.state=740,this.expr5();break;case t.HISTORICALLY_TOK:this.enterOuterAlt(i,8),this.state=741,this.match(t.HISTORICALLY_TOK),this.state=742,this.expr5();break;default:throw new s.NoViableAltException(this)}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}expr6(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new Rt(this._ctx,$),Ee=gt,pe=110;this.enterRecursionRule(gt,110,t.RULE_expr6,i);let St;try{let te;for(this.enterOuterAlt(gt,1),this.state=746,this.expr7(),this._ctx._stop=this._input.tryLT(-1),this.state=757,this._errHandler.sync(this),te=this.interpreter.adaptivePredict(this._input,89,this._ctx);te!==2&&te!==O.ATN.INVALID_ALT_NUMBER;){if(te===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new Rt(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_expr6),this.state=748,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=750,this._errHandler.sync(this),St=this._input.LA(1),St===t.NEG_TOK&&(this.state=749,this.match(t.NEG_TOK)),this.state=752,this.compareOp(),this.state=753,this.expr7();}}this.state=759,this._errHandler.sync(this),te=this.interpreter.adaptivePredict(this._input,89,this._ctx);}}catch(te){if(te instanceof n.RecognitionException)gt.exception=te,this._errHandler.reportError(this,te),this._errHandler.recover(this,te);else throw te}finally{this.unrollRecursionContexts(R);}return gt}expr7(){let i=new Kt(this._ctx,this.state);this.enterRule(i,112,t.RULE_expr7);let R;try{switch(this.state=763,this._errHandler.sync(this),this._input.LA(1)){case t.LEFT_CURLY_TOK:case t.LEFT_PAREN_TOK:case t.NONE_TOK:case t.UNIV_TOK:case t.IDEN_TOK:case t.MINUS_TOK:case t.CARD_TOK:case t.TILDE_TOK:case t.EXP_TOK:case t.STAR_TOK:case t.AT_TOK:case t.BACKQUOTE_TOK:case t.THIS_TOK:case t.SEXPR_TOK:case t.GET_LABEL_TOK:case t.GET_LABEL_STR_TOK:case t.GET_LABEL_BOOL_TOK:case t.GET_LABEL_NUM_TOK:case t.SUM_TOK:case t.INT_TOK:case t.NUM_CONST_TOK:case t.QUOTED_IDENTIFIER_TOK:case t.IDENTIFIER_TOK:this.enterOuterAlt(i,1),this.state=760,this.expr8(0);break;case t.LONE_TOK:case t.SOME_TOK:case t.ONE_TOK:case t.TWO_TOK:case t.SET_TOK:case t.NO_TOK:this.enterOuterAlt(i,2),this.state=761,R=this._input.LA(1),(R&-32)===0&&(1<<R&(1<<t.LONE_TOK|1<<t.SOME_TOK|1<<t.ONE_TOK|1<<t.TWO_TOK|1<<t.SET_TOK))!==0||R===t.NO_TOK?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=762,this.expr8(0);break;default:throw new s.NoViableAltException(this)}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}expr8(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new zt(this._ctx,$),Ee=gt,pe=114;this.enterRecursionRule(gt,114,t.RULE_expr8,i);let St;try{let te;for(this.enterOuterAlt(gt,1),this.state=766,this.expr9(),this._ctx._stop=this._input.tryLT(-1),this.state=773,this._errHandler.sync(this),te=this.interpreter.adaptivePredict(this._input,91,this._ctx);te!==2&&te!==O.ATN.INVALID_ALT_NUMBER;){if(te===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new zt(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_expr8),this.state=768,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=769,St=this._input.LA(1),St===t.PLUS_TOK||St===t.MINUS_TOK?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=770,this.expr10(0);}}this.state=775,this._errHandler.sync(this),te=this.interpreter.adaptivePredict(this._input,91,this._ctx);}}catch(te){if(te instanceof n.RecognitionException)gt.exception=te,this._errHandler.reportError(this,te),this._errHandler.recover(this,te);else throw te}finally{this.unrollRecursionContexts(R);}return gt}expr9(){let i=new Yt(this._ctx,this.state);this.enterRule(i,116,t.RULE_expr9);try{switch(this.state=779,this._errHandler.sync(this),this._input.LA(1)){case t.LEFT_CURLY_TOK:case t.LEFT_PAREN_TOK:case t.NONE_TOK:case t.UNIV_TOK:case t.IDEN_TOK:case t.MINUS_TOK:case t.TILDE_TOK:case t.EXP_TOK:case t.STAR_TOK:case t.AT_TOK:case t.BACKQUOTE_TOK:case t.THIS_TOK:case t.SEXPR_TOK:case t.GET_LABEL_TOK:case t.GET_LABEL_STR_TOK:case t.GET_LABEL_BOOL_TOK:case t.GET_LABEL_NUM_TOK:case t.SUM_TOK:case t.INT_TOK:case t.NUM_CONST_TOK:case t.QUOTED_IDENTIFIER_TOK:case t.IDENTIFIER_TOK:this.enterOuterAlt(i,1),this.state=776,this.expr10(0);break;case t.CARD_TOK:this.enterOuterAlt(i,2),this.state=777,this.match(t.CARD_TOK),this.state=778,this.expr9();break;default:throw new s.NoViableAltException(this)}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}expr10(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new ae(this._ctx,$),Ee=gt,pe=118;this.enterRecursionRule(gt,118,t.RULE_expr10,i);try{let St;for(this.enterOuterAlt(gt,1),this.state=782,this.expr11(0),this._ctx._stop=this._input.tryLT(-1),this.state=789,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,93,this._ctx);St!==2&&St!==O.ATN.INVALID_ALT_NUMBER;){if(St===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new ae(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_expr10),this.state=784,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=785,this.match(t.PPLUS_TOK),this.state=786,this.expr11(0);}}this.state=791,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,93,this._ctx);}}catch(St){if(St instanceof n.RecognitionException)gt.exception=St,this._errHandler.reportError(this,St),this._errHandler.recover(this,St);else throw St}finally{this.unrollRecursionContexts(R);}return gt}expr11(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new Oe(this._ctx,$),Ee=gt,pe=120;this.enterRecursionRule(gt,120,t.RULE_expr11,i);try{let St;for(this.enterOuterAlt(gt,1),this.state=793,this.expr12(0),this._ctx._stop=this._input.tryLT(-1),this.state=800,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,94,this._ctx);St!==2&&St!==O.ATN.INVALID_ALT_NUMBER;){if(St===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new Oe(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_expr11),this.state=795,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=796,this.match(t.AMP_TOK),this.state=797,this.expr12(0);}}this.state=802,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,94,this._ctx);}}catch(St){if(St instanceof n.RecognitionException)gt.exception=St,this._errHandler.reportError(this,St),this._errHandler.recover(this,St);else throw St}finally{this.unrollRecursionContexts(R);}return gt}expr12(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new me(this._ctx,$),Ee=gt,pe=122;this.enterRecursionRule(gt,122,t.RULE_expr12,i);try{let St;for(this.enterOuterAlt(gt,1),this.state=804,this.expr13(0),this._ctx._stop=this._input.tryLT(-1),this.state=812,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,95,this._ctx);St!==2&&St!==O.ATN.INVALID_ALT_NUMBER;){if(St===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new me(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_expr12),this.state=806,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=807,this.arrowOp(),this.state=808,this.expr13(0);}}this.state=814,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,95,this._ctx);}}catch(St){if(St instanceof n.RecognitionException)gt.exception=St,this._errHandler.reportError(this,St),this._errHandler.recover(this,St);else throw St}finally{this.unrollRecursionContexts(R);}return gt}expr13(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new De(this._ctx,$),Ee=gt,pe=124;this.enterRecursionRule(gt,124,t.RULE_expr13,i);let St;try{let te;for(this.enterOuterAlt(gt,1),this.state=816,this.expr14(0),this._ctx._stop=this._input.tryLT(-1),this.state=823,this._errHandler.sync(this),te=this.interpreter.adaptivePredict(this._input,96,this._ctx);te!==2&&te!==O.ATN.INVALID_ALT_NUMBER;){if(te===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new De(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_expr13),this.state=818,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=819,St=this._input.LA(1),St===t.SUBT_TOK||St===t.SUPT_TOK?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=820,this.expr14(0);}}this.state=825,this._errHandler.sync(this),te=this.interpreter.adaptivePredict(this._input,96,this._ctx);}}catch(te){if(te instanceof n.RecognitionException)gt.exception=te,this._errHandler.reportError(this,te),this._errHandler.recover(this,te);else throw te}finally{this.unrollRecursionContexts(R);}return gt}expr14(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new $e(this._ctx,$),Ee=gt,pe=126;this.enterRecursionRule(gt,126,t.RULE_expr14,i);try{let St;for(this.enterOuterAlt(gt,1),this.state=827,this.expr15(0),this._ctx._stop=this._input.tryLT(-1),this.state=836,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,97,this._ctx);St!==2&&St!==O.ATN.INVALID_ALT_NUMBER;){if(St===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new $e(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_expr14),this.state=829,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=830,this.match(t.LEFT_SQUARE_TOK),this.state=831,this.exprList(),this.state=832,this.match(t.RIGHT_SQUARE_TOK);}}this.state=838,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,97,this._ctx);}}catch(St){if(St instanceof n.RecognitionException)gt.exception=St,this._errHandler.reportError(this,St),this._errHandler.recover(this,St);else throw St}finally{this.unrollRecursionContexts(R);}return gt}expr15(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new Fn(this._ctx,$),Ee=gt,pe=128;this.enterRecursionRule(gt,128,t.RULE_expr15,i);try{let St;this.enterOuterAlt(gt,1);{switch(this.state=846,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,98,this._ctx)){case 1:this.state=840,this.expr16(0);break;case 2:this.state=841,this.name(),this.state=842,this.match(t.LEFT_SQUARE_TOK),this.state=843,this.exprList(),this.state=844,this.match(t.RIGHT_SQUARE_TOK);break}for(this._ctx._stop=this._input.tryLT(-1),this.state=853,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,99,this._ctx);St!==2&&St!==O.ATN.INVALID_ALT_NUMBER;){if(St===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new Fn(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_expr15),this.state=848,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=849,this.match(t.DOT_TOK),this.state=850,this.expr16(0);}}this.state=855,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,99,this._ctx);}}}catch(St){if(St instanceof n.RecognitionException)gt.exception=St,this._errHandler.reportError(this,St),this._errHandler.recover(this,St);else throw St}finally{this.unrollRecursionContexts(R);}return gt}expr16(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new jn(this._ctx,$),Ee=gt,pe=130;this.enterRecursionRule(gt,130,t.RULE_expr16,i);try{let St;for(this.enterOuterAlt(gt,1),this.state=857,this.expr17(),this._ctx._stop=this._input.tryLT(-1),this.state=863,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,100,this._ctx);St!==2&&St!==O.ATN.INVALID_ALT_NUMBER;){if(St===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new jn(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_expr16),this.state=859,!this.precpred(this._ctx,1))throw this.createFailedPredicateException("this.precpred(this._ctx, 1)");this.state=860,this.match(t.PRIME_TOK);}}this.state=865,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,100,this._ctx);}}catch(St){if(St instanceof n.RecognitionException)gt.exception=St,this._errHandler.reportError(this,St),this._errHandler.recover(this,St);else throw St}finally{this.unrollRecursionContexts(R);}return gt}expr17(){let i=new Zn(this._ctx,this.state);this.enterRule(i,132,t.RULE_expr17);let R;try{switch(this.state=869,this._errHandler.sync(this),this._input.LA(1)){case t.LEFT_CURLY_TOK:case t.LEFT_PAREN_TOK:case t.NONE_TOK:case t.UNIV_TOK:case t.IDEN_TOK:case t.MINUS_TOK:case t.AT_TOK:case t.BACKQUOTE_TOK:case t.THIS_TOK:case t.SEXPR_TOK:case t.SUM_TOK:case t.INT_TOK:case t.NUM_CONST_TOK:case t.QUOTED_IDENTIFIER_TOK:case t.IDENTIFIER_TOK:this.enterOuterAlt(i,1),this.state=866,this.expr18();break;case t.TILDE_TOK:case t.EXP_TOK:case t.STAR_TOK:case t.GET_LABEL_TOK:case t.GET_LABEL_STR_TOK:case t.GET_LABEL_BOOL_TOK:case t.GET_LABEL_NUM_TOK:this.enterOuterAlt(i,2),this.state=867,R=this._input.LA(1),(R-80&-32)===0&&(1<<R-80&(1<<t.TILDE_TOK-80|1<<t.EXP_TOK-80|1<<t.STAR_TOK-80|1<<t.GET_LABEL_TOK-80|1<<t.GET_LABEL_STR_TOK-80|1<<t.GET_LABEL_BOOL_TOK-80|1<<t.GET_LABEL_NUM_TOK-80))!==0?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=868,this.expr17();break;default:throw new s.NoViableAltException(this)}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}expr18(){let i=new pr(this._ctx,this.state);this.enterRule(i,134,t.RULE_expr18);try{switch(this.state=889,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,102,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=871,this.const();break;case 2:this.enterOuterAlt(i,2),this.state=872,this.qualName();break;case 3:this.enterOuterAlt(i,3),this.state=873,this.match(t.AT_TOK),this.state=874,this.name();break;case 4:this.enterOuterAlt(i,4),this.state=875,this.match(t.BACKQUOTE_TOK),this.state=876,this.name();break;case 5:this.enterOuterAlt(i,5),this.state=877,this.match(t.THIS_TOK);break;case 6:this.enterOuterAlt(i,6),this.state=878,this.match(t.LEFT_CURLY_TOK),this.state=879,this.quantDeclList(),this.state=880,this.blockOrBar(),this.state=881,this.match(t.RIGHT_CURLY_TOK);break;case 7:this.enterOuterAlt(i,7),this.state=883,this.match(t.LEFT_PAREN_TOK),this.state=884,this.expr(),this.state=885,this.match(t.RIGHT_PAREN_TOK);break;case 8:this.enterOuterAlt(i,8),this.state=887,this.block();break;case 9:this.enterOuterAlt(i,9),this.state=888,this.sexpr();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}arrowExpr(){let i=new Kn(this._ctx,this.state);this.enterRule(i,136,t.RULE_arrowExpr);try{switch(this.state=896,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,103,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=891,this.qualName();break;case 2:this.enterOuterAlt(i,2),this.state=892,this.qualName(),this.state=893,this.match(t.ARROW_TOK),this.state=894,this.arrowExpr();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}sexprDecl(){let i=new Gr(this._ctx,this.state);this.enterRule(i,138,t.RULE_sexprDecl);try{this.enterOuterAlt(i,1),this.state=898,this.sexpr();}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}sexpr(){let i=new mr(this._ctx,this.state);this.enterRule(i,140,t.RULE_sexpr);try{this.enterOuterAlt(i,1),this.state=900,this.match(t.SEXPR_TOK);}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}instDecl(){let i=new tr(this._ctx,this.state);this.enterRule(i,142,t.RULE_instDecl);let R;try{this.enterOuterAlt(i,1),this.state=902,this.match(t.INST_TOK),this.state=903,this.name(),this.state=904,this.bounds(),this.state=906,this._errHandler.sync(this),R=this._input.LA(1),R===t.FOR_TOK&&(this.state=905,this.scope());}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}evalRelDecl(){let i=new Vr(this._ctx,this.state);this.enterRule(i,144,t.RULE_evalRelDecl);try{this.enterOuterAlt(i,1),this.state=908,this.arrowDecl();}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}evalDecl(){let i=new Pn(this._ctx,this.state);this.enterRule(i,146,t.RULE_evalDecl);try{this.enterOuterAlt(i,1),this.state=910,this.match(t.EVAL_TOK),this.state=911,this.expr();}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}exampleDecl(){let i=new Er(this._ctx,this.state);this.enterRule(i,148,t.RULE_exampleDecl);try{this.enterOuterAlt(i,1),this.state=913,this.match(t.EXAMPLE_TOK),this.state=914,this.name(),this.state=915,this.match(t.IS_TOK),this.state=916,this.expr(),this.state=917,this.match(t.FOR_TOK),this.state=918,this.bounds();}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}queryDecl(){let i=new zr(this._ctx,this.state);this.enterRule(i,150,t.RULE_queryDecl);try{this.enterOuterAlt(i,1),this.state=920,this.name(),this.state=921,this.match(t.COLON_TOK),this.state=922,this.arrowExpr(),this.state=923,this.match(t.EQ_TOK),this.state=924,this.expr();}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}numberList(){let i=new Tr(this._ctx,this.state);this.enterRule(i,152,t.RULE_numberList);try{switch(this.state=931,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,105,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=926,this.number();break;case 2:this.enterOuterAlt(i,2),this.state=927,this.number(),this.state=928,this.match(t.COMMA_TOK),this.state=929,this.numberList();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}number(){let i=new _n(this._ctx,this.state);this.enterRule(i,154,t.RULE_number);try{this.enterOuterAlt(i,1),this.state=933,this.match(t.NUM_CONST_TOK);}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}bounds(){let i=new rn(this._ctx,this.state);this.enterRule(i,156,t.RULE_bounds);let R;try{switch(this.state=947,this._errHandler.sync(this),this._input.LA(1)){case t.LEFT_CURLY_TOK:this.enterOuterAlt(i,1);{for(this.state=935,this.match(t.LEFT_CURLY_TOK),this.state=939,this._errHandler.sync(this),R=this._input.LA(1);R===t.MINUS_TOK||(R-74&-32)===0&&(1<<R-74&(1<<t.CARD_TOK-74|1<<t.BACKQUOTE_TOK-74|1<<t.THIS_TOK-74|1<<t.NO_TOK-74|1<<t.SUM_TOK-74|1<<t.INT_TOK-74))!==0||(R-107&-32)===0&&(1<<R-107&(1<<t.NUM_CONST_TOK-107|1<<t.QUOTED_IDENTIFIER_TOK-107|1<<t.IDENTIFIER_TOK-107))!==0;)this.state=936,this.bound(),this.state=941,this._errHandler.sync(this),R=this._input.LA(1);this.state=942,this.match(t.RIGHT_CURLY_TOK);}break;case t.EXACTLY_TOK:case t.THIS_TOK:case t.SUM_TOK:case t.INT_TOK:case t.QUOTED_IDENTIFIER_TOK:case t.IDENTIFIER_TOK:this.enterOuterAlt(i,2),this.state=944,this._errHandler.sync(this),R=this._input.LA(1),R===t.EXACTLY_TOK&&(this.state=943,this.match(t.EXACTLY_TOK)),this.state=946,this.qualName();break;default:throw new s.NoViableAltException(this)}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}atomNameOrNumber(){let i=new _r(this._ctx,this.state);this.enterRule(i,158,t.RULE_atomNameOrNumber);try{switch(this.state=954,this._errHandler.sync(this),this._input.LA(1)){case t.BACKQUOTE_TOK:this.enterOuterAlt(i,1),this.state=949,this.match(t.BACKQUOTE_TOK),this.state=950,this.name();break;case t.NUM_CONST_TOK:this.enterOuterAlt(i,2),this.state=951,this.number();break;case t.MINUS_TOK:this.enterOuterAlt(i,3),this.state=952,this.match(t.MINUS_TOK),this.state=953,this.number();break;default:throw new s.NoViableAltException(this)}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}bound(){let i=new yr(this._ctx,this.state);this.enterRule(i,160,t.RULE_bound);try{switch(this.state=963,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,110,this._ctx)){case 1:this.enterOuterAlt(i,1),this.state=956,this.boundLHS(),this.state=957,this.compareOp(),this.state=958,this.bindRHSUnion(0);break;case 2:this.enterOuterAlt(i,2),this.state=960,this.match(t.NO_TOK),this.state=961,this.boundLHS();break;case 3:this.enterOuterAlt(i,3),this.state=962,this.qualName();break}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}boundLHS(){let i=new Wr(this._ctx,this.state);this.enterRule(i,162,t.RULE_boundLHS);let R;try{switch(this.state=975,this._errHandler.sync(this),this._input.LA(1)){case t.CARD_TOK:this.enterOuterAlt(i,1),this.state=965,this.match(t.CARD_TOK),this.state=966,this.qualName();break;case t.THIS_TOK:case t.SUM_TOK:case t.INT_TOK:case t.QUOTED_IDENTIFIER_TOK:case t.IDENTIFIER_TOK:this.enterOuterAlt(i,2),this.state=967,this.qualName();break;case t.MINUS_TOK:case t.BACKQUOTE_TOK:case t.NUM_CONST_TOK:this.enterOuterAlt(i,3);{this.state=968,this.atomNameOrNumber(),this.state=971,this._errHandler.sync(this),R=this._input.LA(1);do this.state=969,this.match(t.DOT_TOK),this.state=970,this.qualName(),this.state=973,this._errHandler.sync(this),R=this._input.LA(1);while(R===t.DOT_TOK)}break;default:throw new s.NoViableAltException(this)}}catch($){if($ instanceof n.RecognitionException)i.exception=$,this._errHandler.reportError(this,$),this._errHandler.recover(this,$);else throw $}finally{this.exitRule();}return i}bindRHSUnion(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new yn(this._ctx,$),Ee=gt,pe=164;this.enterRecursionRule(gt,164,t.RULE_bindRHSUnion,i);try{let St;this.enterOuterAlt(gt,1);{switch(this.state=983,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,113,this._ctx)){case 1:this.state=978,this.bindRHSProduct(0);break;case 2:this.state=979,this.match(t.LEFT_PAREN_TOK),this.state=980,this.bindRHSUnion(0),this.state=981,this.match(t.RIGHT_PAREN_TOK);break}for(this._ctx._stop=this._input.tryLT(-1),this.state=990,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,114,this._ctx);St!==2&&St!==O.ATN.INVALID_ALT_NUMBER;){if(St===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new yn(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_bindRHSUnion),this.state=985,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=986,this.match(t.PLUS_TOK),this.state=987,this.bindRHSProduct(0);}}this.state=992,this._errHandler.sync(this),St=this.interpreter.adaptivePredict(this._input,114,this._ctx);}}}catch(St){if(St instanceof n.RecognitionException)gt.exception=St,this._errHandler.reportError(this,St),this._errHandler.recover(this,St);else throw St}finally{this.unrollRecursionContexts(R);}return gt}bindRHSProduct(i){i===void 0&&(i=0);let R=this._ctx,$=this.state,gt=new Mn(this._ctx,$),Ee=gt,pe=166;this.enterRecursionRule(gt,166,t.RULE_bindRHSProduct,i);let St;try{let te;this.enterOuterAlt(gt,1);{switch(this.state=999,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,115,this._ctx)){case 1:this.state=994,this.match(t.LEFT_PAREN_TOK),this.state=995,this.bindRHSProduct(0),this.state=996,this.match(t.RIGHT_PAREN_TOK);break;case 2:this.state=998,this.bindRHSProductBase();break}for(this._ctx._stop=this._input.tryLT(-1),this.state=1006,this._errHandler.sync(this),te=this.interpreter.adaptivePredict(this._input,116,this._ctx);te!==2&&te!==O.ATN.INVALID_ALT_NUMBER;){if(te===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),Ee=gt;{if(gt=new Mn(R,$),this.pushNewRecursionContext(gt,pe,t.RULE_bindRHSProduct),this.state=1001,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=1002,St=this._input.LA(1),St===t.ARROW_TOK||St===t.COMMA_TOK?(this._input.LA(1)===c.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=1003,this.bindRHSProductBase();}}this.state=1008,this._errHandler.sync(this),te=this.interpreter.adaptivePredict(this._input,116,this._ctx);}}}catch(te){if(te instanceof n.RecognitionException)gt.exception=te,this._errHandler.reportError(this,te),this._errHandler.recover(this,te);else throw te}finally{this.unrollRecursionContexts(R);}return gt}bindRHSProductBase(){let i=new qr(this._ctx,this.state);this.enterRule(i,168,t.RULE_bindRHSProductBase);try{switch(this.state=1015,this._errHandler.sync(this),this._input.LA(1)){case t.MINUS_TOK:case t.BACKQUOTE_TOK:case t.NUM_CONST_TOK:this.enterOuterAlt(i,1),this.state=1009,this.atomNameOrNumber();break;case t.THIS_TOK:case t.SUM_TOK:case t.INT_TOK:case t.QUOTED_IDENTIFIER_TOK:case t.IDENTIFIER_TOK:this.enterOuterAlt(i,2),this.state=1010,this.qualName();break;case t.LEFT_PAREN_TOK:this.enterOuterAlt(i,3),this.state=1011,this.match(t.LEFT_PAREN_TOK),this.state=1012,this.bindRHSUnion(0),this.state=1013,this.match(t.RIGHT_PAREN_TOK);break;default:throw new s.NoViableAltException(this)}}catch(R){if(R instanceof n.RecognitionException)i.exception=R,this._errHandler.reportError(this,R),this._errHandler.recover(this,R);else throw R}finally{this.exitRule();}return i}sempred(i,R,$){switch(R){case 48:return this.expr1_sempred(i,$);case 49:return this.expr1_5_sempred(i,$);case 50:return this.expr2_sempred(i,$);case 52:return this.expr4_sempred(i,$);case 55:return this.expr6_sempred(i,$);case 57:return this.expr8_sempred(i,$);case 59:return this.expr10_sempred(i,$);case 60:return this.expr11_sempred(i,$);case 61:return this.expr12_sempred(i,$);case 62:return this.expr13_sempred(i,$);case 63:return this.expr14_sempred(i,$);case 64:return this.expr15_sempred(i,$);case 65:return this.expr16_sempred(i,$);case 82:return this.bindRHSUnion_sempred(i,$);case 83:return this.bindRHSProduct_sempred(i,$)}return true}expr1_sempred(i,R){return R===0?this.precpred(this._ctx,1):true}expr1_5_sempred(i,R){return R===1?this.precpred(this._ctx,1):true}expr2_sempred(i,R){return R===2?this.precpred(this._ctx,1):true}expr4_sempred(i,R){return R===3?this.precpred(this._ctx,1):true}expr6_sempred(i,R){return R===4?this.precpred(this._ctx,1):true}expr8_sempred(i,R){return R===5?this.precpred(this._ctx,1):true}expr10_sempred(i,R){return R===6?this.precpred(this._ctx,1):true}expr11_sempred(i,R){return R===7?this.precpred(this._ctx,1):true}expr12_sempred(i,R){return R===8?this.precpred(this._ctx,1):true}expr13_sempred(i,R){return R===9?this.precpred(this._ctx,1):true}expr14_sempred(i,R){return R===10?this.precpred(this._ctx,1):true}expr15_sempred(i,R){return R===11?this.precpred(this._ctx,2):true}expr16_sempred(i,R){return R===12?this.precpred(this._ctx,1):true}bindRHSUnion_sempred(i,R){return R===13?this.precpred(this._ctx,2):true}bindRHSProduct_sempred(i,R){return R===14?this.precpred(this._ctx,2):true}static get _ATN(){return t.__ATN||(t.__ATN=new T.ATNDeserializer().deserialize(p.toCharArray(t._serializedATN))),t.__ATN}}l.ForgeParser=t,t.OPEN_TOK=1,t.LEFT_SQUARE_TOK=2,t.RIGHT_SQUARE_TOK=3,t.AS_TOK=4,t.FILE_PATH_TOK=5,t.VAR_TOK=6,t.ABSTRACT_TOK=7,t.SIG_TOK=8,t.LEFT_CURLY_TOK=9,t.RIGHT_CURLY_TOK=10,t.EXTENDS_TOK=11,t.IN_TOK=12,t.PLUS_TOK=13,t.LONE_TOK=14,t.SOME_TOK=15,t.ONE_TOK=16,t.TWO_TOK=17,t.SET_TOK=18,t.FUNC_TOK=19,t.PFUNC_TOK=20,t.DISJ_TOK=21,t.COLON_TOK=22,t.WHEAT_TOK=23,t.PRED_TOK=24,t.DOT_TOK=25,t.FUN_TOK=26,t.LEFT_PAREN_TOK=27,t.RIGHT_PAREN_TOK=28,t.ASSERT_TOK=29,t.RUN_TOK=30,t.CHECK_TOK=31,t.FOR_TOK=32,t.BUT_TOK=33,t.EXACTLY_TOK=34,t.NONE_TOK=35,t.UNIV_TOK=36,t.IDEN_TOK=37,t.MINUS_TOK=38,t.IS_TOK=39,t.SAT_TOK=40,t.UNSAT_TOK=41,t.THEOREM_TOK=42,t.FORGE_ERROR_TOK=43,t.CHECKED_TOK=44,t.TEST_TOK=45,t.EXPECT_TOK=46,t.SUITE_TOK=47,t.BAR_TOK=48,t.ALL_TOK=49,t.SUFFICIENT_TOK=50,t.NECESSARY_TOK=51,t.CONSISTENT_TOK=52,t.INCONSISTENT_TOK=53,t.WITH_TOK=54,t.LET_TOK=55,t.BIND_TOK=56,t.OR_TOK=57,t.XOR_TOK=58,t.IFF_TOK=59,t.IMP_TOK=60,t.ELSE_TOK=61,t.AND_TOK=62,t.UNTIL_TOK=63,t.RELEASE_TOK=64,t.SINCE_TOK=65,t.TRIGGERED_TOK=66,t.NEG_TOK=67,t.ALWAYS_TOK=68,t.EVENTUALLY_TOK=69,t.AFTER_TOK=70,t.BEFORE_TOK=71,t.ONCE_TOK=72,t.HISTORICALLY_TOK=73,t.CARD_TOK=74,t.PPLUS_TOK=75,t.AMP_TOK=76,t.SUBT_TOK=77,t.SUPT_TOK=78,t.PRIME_TOK=79,t.TILDE_TOK=80,t.EXP_TOK=81,t.STAR_TOK=82,t.AT_TOK=83,t.BACKQUOTE_TOK=84,t.THIS_TOK=85,t.SEXPR_TOK=86,t.INST_TOK=87,t.EVAL_TOK=88,t.EXAMPLE_TOK=89,t.ARROW_TOK=90,t.GET_LABEL_TOK=91,t.GET_LABEL_STR_TOK=92,t.GET_LABEL_BOOL_TOK=93,t.GET_LABEL_NUM_TOK=94,t.EQ_TOK=95,t.LT_TOK=96,t.GT_TOK=97,t.LEQ_TOK=98,t.GEQ_TOK=99,t.NI_TOK=100,t.NO_TOK=101,t.SUM_TOK=102,t.INT_TOK=103,t.OPTION_TOK=104,t.COMMA_TOK=105,t.SLASH_TOK=106,t.NUM_CONST_TOK=107,t.QUOTED_IDENTIFIER_TOK=108,t.IDENTIFIER_TOK=109,t.WS=110,t.CCOMMENT=111,t.COMMENT=112,t.MULTCOMMENT=113,t.LANG_DECL=114,t.RULE_predDecl=0,t.RULE_parseExpr=1,t.RULE_alloyModule=2,t.RULE_importDecl=3,t.RULE_paragraph=4,t.RULE_sigDecl=5,t.RULE_sigExt=6,t.RULE_mult=7,t.RULE_arrowMult=8,t.RULE_helperMult=9,t.RULE_paraDecl=10,t.RULE_quantDecl=11,t.RULE_arrowDecl=12,t.RULE_predType=13,t.RULE_funDecl=14,t.RULE_paraDecls=15,t.RULE_assertDecl=16,t.RULE_cmdDecl=17,t.RULE_testDecl=18,t.RULE_testExpectDecl=19,t.RULE_testBlock=20,t.RULE_scope=21,t.RULE_typescope=22,t.RULE_const=23,t.RULE_satisfiabilityDecl=24,t.RULE_quantifiedPropertyDecl=25,t.RULE_propertyDecl=26,t.RULE_consistencyDecl=27,t.RULE_testSuiteDecl=28,t.RULE_testConstruct=29,t.RULE_arrowOp=30,t.RULE_compareOp=31,t.RULE_letDecl=32,t.RULE_block=33,t.RULE_blockOrBar=34,t.RULE_quant=35,t.RULE_qualName=36,t.RULE_optionDecl=37,t.RULE_name=38,t.RULE_nameList=39,t.RULE_qualNameList=40,t.RULE_paraDeclList=41,t.RULE_quantDeclList=42,t.RULE_arrowDeclList=43,t.RULE_letDeclList=44,t.RULE_typescopeList=45,t.RULE_exprList=46,t.RULE_expr=47,t.RULE_expr1=48,t.RULE_expr1_5=49,t.RULE_expr2=50,t.RULE_expr3=51,t.RULE_expr4=52,t.RULE_expr4_5=53,t.RULE_expr5=54,t.RULE_expr6=55,t.RULE_expr7=56,t.RULE_expr8=57,t.RULE_expr9=58,t.RULE_expr10=59,t.RULE_expr11=60,t.RULE_expr12=61,t.RULE_expr13=62,t.RULE_expr14=63,t.RULE_expr15=64,t.RULE_expr16=65,t.RULE_expr17=66,t.RULE_expr18=67,t.RULE_arrowExpr=68,t.RULE_sexprDecl=69,t.RULE_sexpr=70,t.RULE_instDecl=71,t.RULE_evalRelDecl=72,t.RULE_evalDecl=73,t.RULE_exampleDecl=74,t.RULE_queryDecl=75,t.RULE_numberList=76,t.RULE_number=77,t.RULE_bounds=78,t.RULE_atomNameOrNumber=79,t.RULE_bound=80,t.RULE_boundLHS=81,t.RULE_bindRHSUnion=82,t.RULE_bindRHSProduct=83,t.RULE_bindRHSProductBase=84,t.ruleNames=["predDecl","parseExpr","alloyModule","importDecl","paragraph","sigDecl","sigExt","mult","arrowMult","helperMult","paraDecl","quantDecl","arrowDecl","predType","funDecl","paraDecls","assertDecl","cmdDecl","testDecl","testExpectDecl","testBlock","scope","typescope","const","satisfiabilityDecl","quantifiedPropertyDecl","propertyDecl","consistencyDecl","testSuiteDecl","testConstruct","arrowOp","compareOp","letDecl","block","blockOrBar","quant","qualName","optionDecl","name","nameList","qualNameList","paraDeclList","quantDeclList","arrowDeclList","letDeclList","typescopeList","exprList","expr","expr1","expr1_5","expr2","expr3","expr4","expr4_5","expr5","expr6","expr7","expr8","expr9","expr10","expr11","expr12","expr13","expr14","expr15","expr16","expr17","expr18","arrowExpr","sexprDecl","sexpr","instDecl","evalRelDecl","evalDecl","exampleDecl","queryDecl","numberList","number","bounds","atomNameOrNumber","bound","boundLHS","bindRHSUnion","bindRHSProduct","bindRHSProductBase"],t._LITERAL_NAMES=[void 0,"'open'","'['","']'","'as'",void 0,"'var'","'abstract'","'sig'","'{'","'}'","'extends'","'in'","'+'","'lone'","'some'","'one'","'two'","'set'","'func'","'pfunc'","'disj'","':'","'wheat'","'pred'","'.'","'fun'","'('","')'","'assert'","'run'","'check'","'for'","'but'","'exactly'","'none'","'univ'","'iden'","'-'","'is'","'sat'","'unsat'","'theorem'","'forge_error'","'checked'","'test'","'expect'","'suite'","'|'","'all'","'sufficient'","'necessary'","'consistent'","'inconsistent'","'with'","'let'","'bind'",void 0,"'xor'",void 0,void 0,"'else'",void 0,"'until'","'release'","'since'","'triggered'",void 0,"'always'","'eventually'","'after'","'before'","'once'","'historically'","'#'","'++'","'&'","'<:'","':>'","'''","'~'","'^'","'*'","'@'","'`'","'this'","'sexpr'","'inst'","'eval'","'example'","'->'","'@:'","'@str:'","'@bool:'","'@num:'","'='","'<'","'>'",void 0,"'>='","'ni'","'no'","'sum'","'Int'","'option'","','","'/'"],t._SYMBOLIC_NAMES=[void 0,"OPEN_TOK","LEFT_SQUARE_TOK","RIGHT_SQUARE_TOK","AS_TOK","FILE_PATH_TOK","VAR_TOK","ABSTRACT_TOK","SIG_TOK","LEFT_CURLY_TOK","RIGHT_CURLY_TOK","EXTENDS_TOK","IN_TOK","PLUS_TOK","LONE_TOK","SOME_TOK","ONE_TOK","TWO_TOK","SET_TOK","FUNC_TOK","PFUNC_TOK","DISJ_TOK","COLON_TOK","WHEAT_TOK","PRED_TOK","DOT_TOK","FUN_TOK","LEFT_PAREN_TOK","RIGHT_PAREN_TOK","ASSERT_TOK","RUN_TOK","CHECK_TOK","FOR_TOK","BUT_TOK","EXACTLY_TOK","NONE_TOK","UNIV_TOK","IDEN_TOK","MINUS_TOK","IS_TOK","SAT_TOK","UNSAT_TOK","THEOREM_TOK","FORGE_ERROR_TOK","CHECKED_TOK","TEST_TOK","EXPECT_TOK","SUITE_TOK","BAR_TOK","ALL_TOK","SUFFICIENT_TOK","NECESSARY_TOK","CONSISTENT_TOK","INCONSISTENT_TOK","WITH_TOK","LET_TOK","BIND_TOK","OR_TOK","XOR_TOK","IFF_TOK","IMP_TOK","ELSE_TOK","AND_TOK","UNTIL_TOK","RELEASE_TOK","SINCE_TOK","TRIGGERED_TOK","NEG_TOK","ALWAYS_TOK","EVENTUALLY_TOK","AFTER_TOK","BEFORE_TOK","ONCE_TOK","HISTORICALLY_TOK","CARD_TOK","PPLUS_TOK","AMP_TOK","SUBT_TOK","SUPT_TOK","PRIME_TOK","TILDE_TOK","EXP_TOK","STAR_TOK","AT_TOK","BACKQUOTE_TOK","THIS_TOK","SEXPR_TOK","INST_TOK","EVAL_TOK","EXAMPLE_TOK","ARROW_TOK","GET_LABEL_TOK","GET_LABEL_STR_TOK","GET_LABEL_BOOL_TOK","GET_LABEL_NUM_TOK","EQ_TOK","LT_TOK","GT_TOK","LEQ_TOK","GEQ_TOK","NI_TOK","NO_TOK","SUM_TOK","INT_TOK","OPTION_TOK","COMMA_TOK","SLASH_TOK","NUM_CONST_TOK","QUOTED_IDENTIFIER_TOK","IDENTIFIER_TOK","WS","CCOMMENT","COMMENT","MULTCOMMENT","LANG_DECL"],t.VOCABULARY=new a.VocabularyImpl(t._LITERAL_NAMES,t._SYMBOLIC_NAMES,[]),t._serializedATNSegments=2,t._serializedATNSegment0=`\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241t\u03FC     \x07 \x07\b \b 
135
+
136
+ \v \v\f \f\r \r             \x1B \x1B     ! !" "# #$ $% %& &' '( () )* *+ +, ,- -. ./ /0 01 12 23 34 45 56 67 78 89 9: :; ;< <= => >? ?@ @A AB BC CD DE EF FG GH HI IJ JK KL LM MN NO OP PQ QR RS ST TU UV V\xAF
137
+ \xB4
138
+ \xB8
139
+ \x07\xC0
140
+ \f\xC3\v\x07\xC6
141
+ \f\xC9\v\x07\xCC
142
+ \f\xCF\v\xD1
143
+ \xD9
144
+ \xDD
145
+ \xE3
146
+ \xE5
147
+ \xF8
148
+ \x07\x07\xFB
149
+ \x07\x07\x07\xFE
150
+ \x07\x07\x07\u0101
151
+ \x07\x07\x07\x07\x07\u0106
152
+ \x07\x07\x07\x07\u010A
153
+ \x07\x07\x07\x07\u010E
154
+ \x07\b\b\b\b\b\b\x07\b\u0116
155
+ \b\f\b\b\u0119\v\b\b\u011B
156
+ \b  
157
+ 
158
+ \v\v\f\f\u0124
159
+ \f\f\f\f\f\u0129
160
+ \f\f\f\r\r\u012E
161
+ \r\r\r\r\r\u0133
162
+ \r\r\r\u0138
163
+ \u0145
164
+ \u0149
165
+ \u014D
166
+ \u0156
167
+ \u015B
168
+ \u015E
169
+ \u0162
170
+ \u0169
171
+ \u016E
172
+ \u0171
173
+ \u0175
174
+ \u017A
175
+ \u017E
176
+ \u0181
177
+ \u0185
178
+ \u018B
179
+ \u018F
180
+ \x07\u0195
181
+ \f\u0198\v\u01A0
182
+ \u01A4
183
+ \u01A7
184
+ \u01B0
185
+ \u01B3
186
+ \u01BA
187
+ \u01BE
188
+ \x1B\x1B\x1B\x1B\u01C3
189
+ \x1B\x1B\x1B\x1B\x1B\x1B\x1B\x1B\x1B\x1B\x1B\x1B\x1B\u01D0
190
+ \x1B\x1B\x1B\u01D3
191
+ \x1B\x1B\x1B\x1B\u01D7
192
+ \x1B\u01E0
193
+ \u01E4
194
+ \u01ED
195
+ \u01F1
196
+ \x07\u01F9
197
+ \f\u01FC\v\u0206
198
+    \u020A
199
+     \u020F
200
+ !!""""##\x07#\u0219
201
+ #\f##\u021C\v###$$$$\u0223
202
+ $%%%%%\u0229
203
+ %&&&\u022D
204
+ &&&&\x07&\u0232
205
+ &\f&&\u0235\v&&&&&\u023A
206
+ &''''''\u0241
207
+ '''\u0244
208
+ '(())))))\u024D
209
+ )******\u0254
210
+ *++++++\u025B
211
+ +,,,,,,\u0262
212
+ ,------\u0269
213
+ -......\u0270
214
+ .//////\u0277
215
+ /000000\u027E
216
+ 0111111111111\u028B
217
+ 11111\u0290
218
+ 1222222\x072\u0298
219
+ 2\f22\u029B\v2333333\x073\u02A3
220
+ 3\f33\u02A6\v3444444\x074\u02AE
221
+ 4\f44\u02B1\v45555555\u02B9
222
+ 55\u02BB
223
+ 5666666\x076\u02C3
224
+ 6\f66\u02C6\v6777777777777777777\u02D9
225
+ 78888888888888888\u02EA
226
+ 8999999\u02F1
227
+ 9999\x079\u02F6
228
+ 9\f99\u02F9\v9::::\u02FE
229
+ :;;;;;;\x07;\u0306
230
+ ;\f;;\u0309\v;<<<<\u030E
231
+ <======\x07=\u0316
232
+ =\f==\u0319\v=>>>>>>\x07>\u0321
233
+ >\f>>\u0324\v>???????\x07?\u032D
234
+ ?\f??\u0330\v?@@@@@@\x07@\u0338
235
+ @\f@@\u033B\v@AAAAAAAA\x07A\u0345
236
+ A\fAA\u0348\vABBBBBBBB\u0351
237
+ BBBB\x07B\u0356
238
+ B\fBB\u0359\vBCCCCC\x07C\u0360
239
+ C\fCC\u0363\vCDDDD\u0368
240
+ DEEEEEEEEEEEEEEEEEEE\u037C
241
+ EFFFFFF\u0383
242
+ FGGHHIIIII\u038D
243
+ IJJKKKLLLLLLLMMMMMMNNNNNN\u03A6
244
+ NOOPP\x07P\u03AC
245
+ P\fPP\u03AF\vPPPP\u03B3
246
+ PPP\u03B6
247
+ PQQQQQQ\u03BD
248
+ QRRRRRRRR\u03C6
249
+ RSSSSSSS\u03CE
250
+ S\rSS\u03CFS\u03D2
251
+ STTTTTTT\u03DA
252
+ TTTT\x07T\u03DF
253
+ T\fTT\u03E2\vTUUUUUUU\u03EA
254
+ UUUU\x07U\u03EF
255
+ U\fUU\u03F2\vUVVVVVVV\u03FA
256
+ VVbdfjptxz|~\x80\x82\x84\xA6\xA8W\b
257
+ \f "$&(*,.02468:<>@BDFHJLNPRTVXZ\\^\`bdfhjlnprtvxz|~\x80\x82\x84\x86\x88\x8A\x8C\x8E\x90\x92\x94\x96\x98\x9A\x9C\x9E\xA0\xA2\xA4\xA6\xA8\xAA !*.*+--4567))afnogg((OPRT]\`\\\\kk\u044E\xAC\xBB\xD0\b\xE4
258
+ \xF7\f\xFA\u011A\u011C\u011E\u0120\u0123\u012D\u0137\u013E\u0140 \u015D"\u015F$\u0168&\u0179(\u018A*\u0192,\u01A3.\u01A60\u01B22\u01B44\u01BF6\u01D88\u01E5:\u01F2<\u0205>\u0209@\u0210B\u0212D\u0216F\u0222H\u0228J\u0239L\u023BN\u0245P\u024CR\u0253T\u025AV\u0261X\u0268Z\u026F\\\u0276^\u027D\`\u028Fb\u0291d\u029Cf\u02A7h\u02BAj\u02BCl\u02D8n\u02E9p\u02EBr\u02FDt\u02FFv\u030Dx\u030Fz\u031A|\u0325~\u0331\x80\u033C\x82\u0350\x84\u035A\x86\u0367\x88\u037B\x8A\u0382\x8C\u0384\x8E\u0386\x90\u0388\x92\u038E\x94\u0390\x96\u0393\x98\u039A\x9A\u03A5\x9C\u03A7\x9E\u03B5\xA0\u03BC\xA2\u03C5\xA4\u03D1\xA6\u03D9\xA8\u03E9\xAA\u03F9\xAC\xAE\x07\xAD\xAF\xAE\xAD\xAE\xAF\xAF\xB3\xB0\xB1J&\xB1\xB2\x07\x1B\xB2\xB4\xB3\xB0\xB3\xB4\xB4\xB5\xB5\xB7N(\xB6\xB8 \xB7\xB6\xB7\xB8\xB8\xB9\xB9\xBAD#\xBA\xBB\xBC\`1\xBC\xBD\x07\xBD\xBE\xC0\b\xBF\xBE\xC0\xC3\xC1\xBF\xC1\xC2\xC2\xC7\xC3\xC1\xC4\xC6
259
+ \xC5\xC4\xC6\xC9\xC7\xC5\xC7\xC8\xC8\xD1\xC9\xC7\xCA\xCC\x94K\xCB\xCA\xCC\xCF\xCD\xCB\xCD\xCE\xCE\xD1\xCF\xCD\xD0\xC1\xD0\xCD\xD1\x07\xD2\xD3\x07\xD3\xD8J&\xD4\xD5\x07\xD5\xD6R*\xD6\xD7\x07\xD7\xD9\xD8\xD4\xD8\xD9\xD9\xDC\xDA\xDB\x07\xDB\xDDN(\xDC\xDA\xDC\xDD\xDD\xE5\xDE\xDF\x07\xDF\xE2\x07\x07\xE0\xE1\x07\xE1\xE3N(\xE2\xE0\xE2\xE3\xE3\xE5\xE4\xD2\xE4\xDE\xE5 \xE6\xF8\f\x07\xE7\xF8\xE8\xF8\xE9\xF8"\xEA\xF8$\xEB\xF8(\xEC\xF8\x8CG\xED\xF8\x98M\xEE\xF8\x92J\xEF\xF8L'\xF0\xF8\x90I\xF1\xF8\x96L\xF2\xF86\xF3\xF84\x1B\xF4\xF82\xF5\xF88\xF6\xF8:\xF7\xE6\xF7\xE7\xF7\xE8\xF7\xE9\xF7\xEA\xF7\xEB\xF7\xEC\xF7\xED\xF7\xEE\xF7\xEF\xF7\xF0\xF7\xF1\xF7\xF2\xF7\xF3\xF7\xF4\xF7\xF5\xF7\xF6\xF8\v\xF9\xFB\x07\b\xFA\xF9\xFA\xFB\xFB\xFD\xFC\xFE\x07 \xFD\xFC\xFD\xFE\xFE\u0100\xFF\u0101 \u0100\xFF\u0100\u0101\u0101\u0102\u0102\u0103\x07
260
+ \u0103\u0105P)\u0104\u0106\b\u0105\u0104\u0105\u0106\u0106\u0107\u0107\u0109\x07\v\u0108\u010AX-\u0109\u0108\u0109\u010A\u010A\u010B\u010B\u010D\x07\f\u010C\u010ED#\u010D\u010C\u010D\u010E\u010E\r\u010F\u0110\x07\r\u0110\u011BJ&\u0111\u0112\x07\u0112\u0117J&\u0113\u0114\x07\u0114\u0116J&\u0115\u0113\u0116\u0119\u0117\u0115\u0117\u0118\u0118\u011B\u0119\u0117\u011A\u010F\u011A\u0111\u011B\u011C\u011D \u011D\u011E\u011F \u011F\u0120\u0121 \u0121\u0122\u0124\x07\u0123\u0122\u0123\u0124\u0124\u0125\u0125\u0126P)\u0126\u0128\x07\u0127\u0129\v\u0128\u0127\u0128\u0129\u0129\u012A\u012A\u012B\`1\u012B\u012C\u012E\x07\u012D\u012C\u012D\u012E\u012E\u012F\u012F\u0130P)\u0130\u0132\x07\u0131\u0133\x07\u0132\u0131\u0132\u0133\u0133\u0134\u0134\u0135\`1\u0135\u0136\u0138\x07\b\u0137\u0136\u0137\u0138\u0138\u0139\u0139\u013AP)\u013A\u013B\x07\u013B\u013C
261
+ \u013C\u013D\x8AF\u013D\x1B\u013E\u013F\x07\u013F\u0140\u0144\x07\u0141\u0142J&\u0142\u0143\x07\x1B\u0143\u0145\u0144\u0141\u0144\u0145\u0145\u0146\u0146\u0148N(\u0147\u0149 \u0148\u0147\u0148\u0149\u0149\u014A\u014A\u014C\x07\u014B\u014D\v\u014C\u014B\u014C\u014D\u014D\u014E\u014E\u014F\`1\u014F\u0150\x07\v\u0150\u0151\`1\u0151\u0152\x07\f\u0152\u0153\u0155\x07\u0154\u0156T+\u0155\u0154\u0155\u0156\u0156\u0157\u0157\u015E\x07\u0158\u015A\x07\u0159\u015BT+\u015A\u0159\u015A\u015B\u015B\u015C\u015C\u015E\x07\u015D\u0153\u015D\u0158\u015E!\u015F\u0161\x07\u0160\u0162N(\u0161\u0160\u0161\u0162\u0162\u0163\u0163\u0164D#\u0164#\u0165\u0166N(\u0166\u0167\x07\u0167\u0169\u0168\u0165\u0168\u0169\u0169\u016A\u016A\u016D \u016B\u016EJ&\u016C\u016ED#\u016D\u016B\u016D\u016C\u016D\u016E\u016E\u0170\u016F\u0171,\u0170\u016F\u0170\u0171\u0171\u0174\u0172\u0173\x07"\u0173\u0175\x9EP\u0174\u0172\u0174\u0175\u0175%\u0176\u0177N(\u0177\u0178\x07\u0178\u017A\u0179\u0176\u0179\u017A\u017A\u017D\u017B\u017EJ&\u017C\u017ED#\u017D\u017B\u017D\u017C\u017E\u0180\u017F\u0181,\u0180\u017F\u0180\u0181\u0181\u0184\u0182\u0183\x07"\u0183\u0185\x9EP\u0184\u0182\u0184\u0185\u0185\u0186\u0186\u0187\x07)\u0187\u0188 \u0188'\u0189\u018B\x07/\u018A\u0189\u018A\u018B\u018B\u018C\u018C\u018E\x070\u018D\u018FN(\u018E\u018D\u018E\u018F\u018F\u0190\u0190\u0191*\u0191)\u0192\u0196\x07\v\u0193\u0195&\u0194\u0193\u0195\u0198\u0196\u0194\u0196\u0197\u0197\u0199\u0198\u0196\u0199\u019A\x07\f\u019A+\u019B\u019C\x07"\u019C\u019F\x9CO\u019D\u019E\x07#\u019E\u01A0\\/\u019F\u019D\u019F\u01A0\u01A0\u01A4\u01A1\u01A2\x07"\u01A2\u01A4\\/\u01A3\u019B\u01A3\u01A1\u01A4-\u01A5\u01A7\x07$\u01A6\u01A5\u01A6\u01A7\u01A7\u01A8\u01A8\u01A9\x9CO\u01A9\u01AAJ&\u01AA/\u01AB\u01B3\x07%\u01AC\u01B3\x07&\u01AD\u01B3\x07'\u01AE\u01B0\x07(\u01AF\u01AE\u01AF\u01B0\u01B0\u01B1\u01B1\u01B3\x9CO\u01B2\u01AB\u01B2\u01AC\u01B2\u01AD\u01B2\u01AF\u01B31\u01B4\u01B5\x07\u01B5\u01B6\`1\u01B6\u01B7\x07)\u01B7\u01B9 \x07\u01B8\u01BA,\u01B9\u01B8\u01B9\u01BA\u01BA\u01BD`,t._serializedATNSegment1='\u01BB\u01BC\x07"\u01BC\u01BE\x9EP\u01BD\u01BB\u01BD\u01BE\u01BE3\u01BF\u01C0\x07\u01C0\u01C2\x073\u01C1\u01C3\x07\u01C2\u01C1\u01C2\u01C3\u01C3\u01C4\u01C4\u01C5V,\u01C5\u01C6\x072\u01C6\u01C7`1\u01C7\u01C8\x07)\u01C8\u01C9 \b\u01C9\u01CA\x07"\u01CA\u01CFN(\u01CB\u01CC\x07\u01CC\u01CD^0\u01CD\u01CE\x07\u01CE\u01D0\u01CF\u01CB\u01CF\u01D0\u01D0\u01D2\u01D1\u01D3,\u01D2\u01D1\u01D2\u01D3\u01D3\u01D6\u01D4\u01D5\x07"\u01D5\u01D7\x9EP\u01D6\u01D4\u01D6\u01D7\u01D75\u01D8\u01D9\x07\u01D9\u01DA`1\u01DA\u01DB\x07)\u01DB\u01DC \b\u01DC\u01DD\x07"\u01DD\u01DFN(\u01DE\u01E0,\u01DF\u01DE\u01DF\u01E0\u01E0\u01E3\u01E1\u01E2\x07"\u01E2\u01E4\x9EP\u01E3\u01E1\u01E3\u01E4\u01E47\u01E5\u01E6\x07\u01E6\u01E7`1\u01E7\u01E8\x07)\u01E8\u01E9 \u01E9\u01EA\x078\u01EA\u01ECN(\u01EB\u01ED,\u01EC\u01EB\u01EC\u01ED\u01ED\u01F0\u01EE\u01EF\x07"\u01EF\u01F1\x9EP\u01F0\u01EE\u01F0\u01F1\u01F19\u01F2\u01F3\x07/\u01F3\u01F4\x071\u01F4\u01F5\x07"\u01F5\u01F6N(\u01F6\u01FA\x07\v\u01F7\u01F9<\u01F8\u01F7\u01F9\u01FC\u01FA\u01F8\u01FA\u01FB\u01FB\u01FD\u01FC\u01FA\u01FD\u01FE\x07\f\u01FE;\u01FF\u0206\x96L\u0200\u0206(\u0201\u02064\x1B\u0202\u02066\u0203\u02062\u0204\u02068\u0205\u01FF\u0205\u0200\u0205\u0201\u0205\u0202\u0205\u0203\u0205\u0204\u0206=\u0207\u020A \u0208\u020A\x07\u0209\u0207\u0209\u0208\u0209\u020A\u020A\u020B\u020B\u020E\x07\\\u020C\u020F \u020D\u020F\x07\u020E\u020C\u020E\u020D\u020E\u020F\u020F?\u0210\u0211 \n\u0211A\u0212\u0213N(\u0213\u0214\x07a\u0214\u0215`1\u0215C\u0216\u021A\x07\v\u0217\u0219`1\u0218\u0217\u0219\u021C\u021A\u0218\u021A\u021B\u021B\u021D\u021C\u021A\u021D\u021E\x07\f\u021EE\u021F\u0223D#\u0220\u0221\x072\u0221\u0223`1\u0222\u021F\u0222\u0220\u0223G\u0224\u0229\x073\u0225\u0229\x07g\u0226\u0229\x07h\u0227\u0229 \u0228\u0224\u0228\u0225\u0228\u0226\u0228\u0227\u0229I\u022A\u022B\x07W\u022B\u022D\x07l\u022C\u022A\u022C\u022D\u022D\u0233\u022E\u022FN(\u022F\u0230\x07l\u0230\u0232\u0231\u022E\u0232\u0235\u0233\u0231\u0233\u0234\u0234\u0236\u0235\u0233\u0236\u023AN(\u0237\u023A\x07i\u0238\u023A\x07h\u0239\u022C\u0239\u0237\u0239\u0238\u023AK\u023B\u023C\x07j\u023C\u0243J&\u023D\u0244J&\u023E\u0244\x07\x07\u023F\u0241\x07(\u0240\u023F\u0240\u0241\u0241\u0242\u0242\u0244\x9CO\u0243\u023D\u0243\u023E\u0243\u0240\u0244M\u0245\u0246 \v\u0246O\u0247\u024DN(\u0248\u0249N(\u0249\u024A\x07k\u024A\u024BP)\u024B\u024D\u024C\u0247\u024C\u0248\u024DQ\u024E\u0254J&\u024F\u0250J&\u0250\u0251\x07k\u0251\u0252R*\u0252\u0254\u0253\u024E\u0253\u024F\u0254S\u0255\u025B\f\u0256\u0257\f\u0257\u0258\x07k\u0258\u0259T+\u0259\u025B\u025A\u0255\u025A\u0256\u025BU\u025C\u0262\r\u025D\u025E\r\u025E\u025F\x07k\u025F\u0260V,\u0260\u0262\u0261\u025C\u0261\u025D\u0262W\u0263\u0269\u0264\u0265\u0265\u0266\x07k\u0266\u0267X-\u0267\u0269\u0268\u0263\u0268\u0264\u0269Y\u026A\u0270B"\u026B\u026CB"\u026C\u026D\x07k\u026D\u026EZ.\u026E\u0270\u026F\u026A\u026F\u026B\u0270[\u0271\u0277.\u0272\u0273.\u0273\u0274\x07k\u0274\u0275\\/\u0275\u0277\u0276\u0271\u0276\u0272\u0277]\u0278\u027E`1\u0279\u027A`1\u027A\u027B\x07k\u027B\u027C^0\u027C\u027E\u027D\u0278\u027D\u0279\u027E_\u027F\u0290b2\u0280\u0281\x079\u0281\u0282Z.\u0282\u0283F$\u0283\u0290\u0284\u0285\x07:\u0285\u0286Z.\u0286\u0287F$\u0287\u0290\u0288\u028AH%\u0289\u028B\x07\u028A\u0289\u028A\u028B\u028B\u028C\u028C\u028DV,\u028D\u028EF$\u028E\u0290\u028F\u027F\u028F\u0280\u028F\u0284\u028F\u0288\u0290a\u0291\u0292\b2\u0292\u0293d3\u0293\u0299\u0294\u0295\f\u0295\u0296\x07;\u0296\u0298d3\u0297\u0294\u0298\u029B\u0299\u0297\u0299\u029A\u029Ac\u029B\u0299\u029C\u029D\b3\u029D\u029Ef4\u029E\u02A4\u029F\u02A0\f\u02A0\u02A1\x07<\u02A1\u02A3f4\u02A2\u029F\u02A3\u02A6\u02A4\u02A2\u02A4\u02A5\u02A5e\u02A6\u02A4\u02A7\u02A8\b4\u02A8\u02A9h5\u02A9\u02AF\u02AA\u02AB\f\u02AB\u02AC\x07=\u02AC\u02AEh5\u02AD\u02AA\u02AE\u02B1\u02AF\u02AD\u02AF\u02B0\u02B0g\u02B1\u02AF\u02B2\u02BBj6\u02B3\u02B4j6\u02B4\u02B5\x07>\u02B5\u02B8h5\u02B6\u02B7\x07?\u02B7\u02B9h5\u02B8\u02B6\u02B8\u02B9\u02B9\u02BB\u02BA\u02B2\u02BA\u02B3\u02BBi\u02BC\u02BD\b6\u02BD\u02BEl7\u02BE\u02C4\u02BF\u02C0\f\u02C0\u02C1\x07@\u02C1\u02C3l7\u02C2\u02BF\u02C3\u02C6\u02C4\u02C2\u02C4\u02C5\u02C5k\u02C6\u02C4\u02C7\u02D9n8\u02C8\u02C9n8\u02C9\u02CA\x07A\u02CA\u02CBn8\u02CB\u02D9\u02CC\u02CDn8\u02CD\u02CE\x07B\u02CE\u02CFn8\u02CF\u02D9\u02D0\u02D1n8\u02D1\u02D2\x07C\u02D2\u02D3n8\u02D3\u02D9\u02D4\u02D5n8\u02D5\u02D6\x07D\u02D6\u02D7n8\u02D7\u02D9\u02D8\u02C7\u02D8\u02C8\u02D8\u02CC\u02D8\u02D0\u02D8\u02D4\u02D9m\u02DA\u02EAp9\u02DB\u02DC\x07E\u02DC\u02EAn8\u02DD\u02DE\x07F\u02DE\u02EAn8\u02DF\u02E0\x07G\u02E0\u02EAn8\u02E1\u02E2\x07H\u02E2\u02EAn8\u02E3\u02E4\x07I\u02E4\u02EAn8\u02E5\u02E6\x07J\u02E6\u02EAn8\u02E7\u02E8\x07K\u02E8\u02EAn8\u02E9\u02DA\u02E9\u02DB\u02E9\u02DD\u02E9\u02DF\u02E9\u02E1\u02E9\u02E3\u02E9\u02E5\u02E9\u02E7\u02EAo\u02EB\u02EC\b9\u02EC\u02EDr:\u02ED\u02F7\u02EE\u02F0\f\u02EF\u02F1\x07E\u02F0\u02EF\u02F0\u02F1\u02F1\u02F2\u02F2\u02F3@!\u02F3\u02F4r:\u02F4\u02F6\u02F5\u02EE\u02F6\u02F9\u02F7\u02F5\u02F7\u02F8\u02F8q\u02F9\u02F7\u02FA\u02FEt;\u02FB\u02FC \f\u02FC\u02FEt;\u02FD\u02FA\u02FD\u02FB\u02FEs\u02FF\u0300\b;\u0300\u0301v<\u0301\u0307\u0302\u0303\f\u0303\u0304 \r\u0304\u0306x=\u0305\u0302\u0306\u0309\u0307\u0305\u0307\u0308\u0308u\u0309\u0307\u030A\u030Ex=\u030B\u030C\x07L\u030C\u030Ev<\u030D\u030A\u030D\u030B\u030Ew\u030F\u0310\b=\u0310\u0311z>\u0311\u0317\u0312\u0313\f\u0313\u0314\x07M\u0314\u0316z>\u0315\u0312\u0316\u0319\u0317\u0315\u0317\u0318\u0318y\u0319\u0317\u031A\u031B\b>\u031B\u031C|?\u031C\u0322\u031D\u031E\f\u031E\u031F\x07N\u031F\u0321|?\u0320\u031D\u0321\u0324\u0322\u0320\u0322\u0323\u0323{\u0324\u0322\u0325\u0326\b?\u0326\u0327~@\u0327\u032E\u0328\u0329\f\u0329\u032A> \u032A\u032B~@\u032B\u032D\u032C\u0328\u032D\u0330\u032E\u032C\u032E\u032F\u032F}\u0330\u032E\u0331\u0332\b@\u0332\u0333\x80A\u0333\u0339\u0334\u0335\f\u0335\u0336 \u0336\u0338\x80A\u0337\u0334\u0338\u033B\u0339\u0337\u0339\u033A\u033A\x7F\u033B\u0339\u033C\u033D\bA\u033D\u033E\x82B\u033E\u0346\u033F\u0340\f\u0340\u0341\x07\u0341\u0342^0\u0342\u0343\x07\u0343\u0345\u0344\u033F\u0345\u0348\u0346\u0344\u0346\u0347\u0347\x81\u0348\u0346\u0349\u034A\bB\u034A\u0351\x84C\u034B\u034CN(\u034C\u034D\x07\u034D\u034E^0\u034E\u034F\x07\u034F\u0351\u0350\u0349\u0350\u034B\u0351\u0357\u0352\u0353\f\u0353\u0354\x07\x1B\u0354\u0356\x84C\u0355\u0352\u0356\u0359\u0357\u0355\u0357\u0358\u0358\x83\u0359\u0357\u035A\u035B\bC\u035B\u035C\x86D\u035C\u0361\u035D\u035E\f\u035E\u0360\x07Q\u035F\u035D\u0360\u0363\u0361\u035F\u0361\u0362\u0362\x85\u0363\u0361\u0364\u0368\x88E\u0365\u0366 \u0366\u0368\x86D\u0367\u0364\u0367\u0365\u0368\x87\u0369\u037C0\u036A\u037CJ&\u036B\u036C\x07U\u036C\u037CN(\u036D\u036E\x07V\u036E\u037CN(\u036F\u037C\x07W\u0370\u0371\x07\v\u0371\u0372V,\u0372\u0373F$\u0373\u0374\x07\f\u0374\u037C\u0375\u0376\x07\u0376\u0377`1\u0377\u0378\x07\u0378\u037C\u0379\u037CD#\u037A\u037C\x8EH\u037B\u0369\u037B\u036A\u037B\u036B\u037B\u036D\u037B\u036F\u037B\u0370\u037B\u0375\u037B\u0379\u037B\u037A\u037C\x89\u037D\u0383J&\u037E\u037FJ&\u037F\u0380\x07\\\u0380\u0381\x8AF\u0381\u0383\u0382\u037D\u0382\u037E\u0383\x8B\u0384\u0385\x8EH\u0385\x8D\u0386\u0387\x07X\u0387\x8F\u0388\u0389\x07Y\u0389\u038AN(\u038A\u038C\x9EP\u038B\u038D,\u038C\u038B\u038C\u038D\u038D\x91\u038E\u038F\u038F\x93\u0390\u0391\x07Z\u0391\u0392`1\u0392\x95\u0393\u0394\x07[\u0394\u0395N(\u0395\u0396\x07)\u0396\u0397`1\u0397\u0398\x07"\u0398\u0399\x9EP\u0399\x97\u039A\u039BN(\u039B\u039C\x07\u039C\u039D\x8AF\u039D\u039E\x07a\u039E\u039F`1\u039F\x99\u03A0\u03A6\x9CO\u03A1\u03A2\x9CO\u03A2\u03A3\x07k\u03A3\u03A4\x9AN\u03A4\u03A6\u03A5\u03A0\u03A5\u03A1\u03A6\x9B\u03A7\u03A8\x07m\u03A8\x9D\u03A9\u03AD\x07\v\u03AA\u03AC\xA2R\u03AB\u03AA\u03AC\u03AF\u03AD\u03AB\u03AD\u03AE\u03AE\u03B0\u03AF\u03AD\u03B0\u03B6\x07\f\u03B1\u03B3\x07$\u03B2\u03B1\u03B2\u03B3\u03B3\u03B4\u03B4\u03B6J&\u03B5\u03A9\u03B5\u03B2\u03B6\x9F\u03B7\u03B8\x07V\u03B8\u03BDN(\u03B9\u03BD\x9CO\u03BA\u03BB\x07(\u03BB\u03BD\x9CO\u03BC\u03B7\u03BC\u03B9\u03BC\u03BA\u03BD\xA1\u03BE\u03BF\xA4S\u03BF\u03C0@!\u03C0\u03C1\xA6T\u03C1\u03C6\u03C2\u03C3\x07g\u03C3\u03C6\xA4S\u03C4\u03C6J&\u03C5\u03BE\u03C5\u03C2\u03C5\u03C4\u03C6\xA3\u03C7\u03C8\x07L\u03C8\u03D2J&\u03C9\u03D2J&\u03CA\u03CD\xA0Q\u03CB\u03CC\x07\x1B\u03CC\u03CEJ&\u03CD\u03CB\u03CE\u03CF\u03CF\u03CD\u03CF\u03D0\u03D0\u03D2\u03D1\u03C7\u03D1\u03C9\u03D1\u03CA\u03D2\xA5\u03D3\u03D4\bT\u03D4\u03DA\xA8U\u03D5\u03D6\x07\u03D6\u03D7\xA6T\u03D7\u03D8\x07\u03D8\u03DA\u03D9\u03D3\u03D9\u03D5\u03DA\u03E0\u03DB\u03DC\f\u03DC\u03DD\x07\u03DD\u03DF\xA8U\u03DE\u03DB\u03DF\u03E2\u03E0\u03DE\u03E0\u03E1\u03E1\xA7\u03E2\u03E0\u03E3\u03E4\bU\u03E4\u03E5\x07\u03E5\u03E6\xA8U\u03E6\u03E7\x07\u03E7\u03EA\u03E8\u03EA\xAAV\u03E9\u03E3\u03E9\u03E8\u03EA\u03F0\u03EB\u03EC\f\u03EC\u03ED \u03ED\u03EF\xAAV\u03EE\u03EB\u03EF\u03F2\u03F0\u03EE\u03F0\u03F1\u03F1\xA9\u03F2\u03F0\u03F3\u03FA\xA0Q\u03F4\u03FAJ&\u03F5\u03F6\x07\u03F6\u03F7\xA6T\u03F7\u03F8\x07\u03F8\u03FA\u03F9\u03F3\u03F9\u03F4\u03F9\u03F5\u03FA\xABx\xAE\xB3\xB7\xC1\xC7\xCD\xD0\xD8\xDC\xE2\xE4\xF7\xFA\xFD\u0100\u0105\u0109\u010D\u0117\u011A\u0123\u0128\u012D\u0132\u0137\u0144\u0148\u014C\u0155\u015A\u015D\u0161\u0168\u016D\u0170\u0174\u0179\u017D\u0180\u0184\u018A\u018E\u0196\u019F\u01A3\u01A6\u01AF\u01B2\u01B9\u01BD\u01C2\u01CF\u01D2\u01D6\u01DF\u01E3\u01EC\u01F0\u01FA\u0205\u0209\u020E\u021A\u0222\u0228\u022C\u0233\u0239\u0240\u0243\u024C\u0253\u025A\u0261\u0268\u026F\u0276\u027D\u028A\u028F\u0299\u02A4\u02AF\u02B8\u02BA\u02C4\u02D8\u02E9\u02F0\u02F7\u02FD\u0307\u030D\u0317\u0322\u032E\u0339\u0346\u0350\u0357\u0361\u0367\u037B\u0382\u038C\u03A5\u03AD\u03B2\u03B5\u03BC\u03C5\u03CF\u03D1\u03D9\u03E0\u03E9\u03F0\u03F9',t._serializedATN=p.join([t._serializedATNSegment0,t._serializedATNSegment1],"");class y extends r.ParserRuleContext{PRED_TOK(){return this.getToken(t.PRED_TOK,0)}name(){return this.getRuleContext(0,et)}block(){return this.getRuleContext(0,vt)}predType(){return this.tryGetRuleContext(0,k)}qualName(){return this.tryGetRuleContext(0,q)}DOT_TOK(){return this.tryGetToken(t.DOT_TOK,0)}paraDecls(){return this.tryGetRuleContext(0,ut)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_predDecl}enterRule(i){i.enterPredDecl&&i.enterPredDecl(this);}exitRule(i){i.exitPredDecl&&i.exitPredDecl(this);}accept(i){return i.visitPredDecl?i.visitPredDecl(this):i.visitChildren(this)}}l.PredDeclContext=y;class v extends r.ParserRuleContext{expr(){return this.getRuleContext(0,Tt)}EOF(){return this.getToken(t.EOF,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_parseExpr}enterRule(i){i.enterParseExpr&&i.enterParseExpr(this);}exitRule(i){i.exitParseExpr&&i.exitParseExpr(this);}accept(i){return i.visitParseExpr?i.visitParseExpr(this):i.visitChildren(this)}}l.ParseExprContext=v;class S extends r.ParserRuleContext{importDecl(i){return i===void 0?this.getRuleContexts(N):this.getRuleContext(i,N)}paragraph(i){return i===void 0?this.getRuleContexts(b):this.getRuleContext(i,b)}evalDecl(i){return i===void 0?this.getRuleContexts(Pn):this.getRuleContext(i,Pn)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_alloyModule}enterRule(i){i.enterAlloyModule&&i.enterAlloyModule(this);}exitRule(i){i.exitAlloyModule&&i.exitAlloyModule(this);}accept(i){return i.visitAlloyModule?i.visitAlloyModule(this):i.visitChildren(this)}}l.AlloyModuleContext=S;class N extends r.ParserRuleContext{OPEN_TOK(){return this.getToken(t.OPEN_TOK,0)}qualName(){return this.tryGetRuleContext(0,q)}LEFT_SQUARE_TOK(){return this.tryGetToken(t.LEFT_SQUARE_TOK,0)}qualNameList(){return this.tryGetRuleContext(0,Ct)}RIGHT_SQUARE_TOK(){return this.tryGetToken(t.RIGHT_SQUARE_TOK,0)}AS_TOK(){return this.tryGetToken(t.AS_TOK,0)}name(){return this.tryGetRuleContext(0,et)}FILE_PATH_TOK(){return this.tryGetToken(t.FILE_PATH_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_importDecl}enterRule(i){i.enterImportDecl&&i.enterImportDecl(this);}exitRule(i){i.exitImportDecl&&i.exitImportDecl(this);}accept(i){return i.visitImportDecl?i.visitImportDecl(this):i.visitChildren(this)}}l.ImportDeclContext=N;class b extends r.ParserRuleContext{sigDecl(){return this.tryGetRuleContext(0,U)}predDecl(){return this.tryGetRuleContext(0,y)}funDecl(){return this.tryGetRuleContext(0,J)}assertDecl(){return this.tryGetRuleContext(0,ft)}cmdDecl(){return this.tryGetRuleContext(0,At)}testExpectDecl(){return this.tryGetRuleContext(0,dt)}sexprDecl(){return this.tryGetRuleContext(0,Gr)}queryDecl(){return this.tryGetRuleContext(0,zr)}evalRelDecl(){return this.tryGetRuleContext(0,Vr)}optionDecl(){return this.tryGetRuleContext(0,Y)}instDecl(){return this.tryGetRuleContext(0,tr)}exampleDecl(){return this.tryGetRuleContext(0,Er)}propertyDecl(){return this.tryGetRuleContext(0,Q)}quantifiedPropertyDecl(){return this.tryGetRuleContext(0,G)}satisfiabilityDecl(){return this.tryGetRuleContext(0,K)}consistencyDecl(){return this.tryGetRuleContext(0,ot)}testSuiteDecl(){return this.tryGetRuleContext(0,lt)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_paragraph}enterRule(i){i.enterParagraph&&i.enterParagraph(this);}exitRule(i){i.exitParagraph&&i.exitParagraph(this);}accept(i){return i.visitParagraph?i.visitParagraph(this):i.visitChildren(this)}}l.ParagraphContext=b;class U extends r.ParserRuleContext{SIG_TOK(){return this.getToken(t.SIG_TOK,0)}nameList(){return this.getRuleContext(0,X)}LEFT_CURLY_TOK(){return this.getToken(t.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(t.RIGHT_CURLY_TOK,0)}VAR_TOK(){return this.tryGetToken(t.VAR_TOK,0)}ABSTRACT_TOK(){return this.tryGetToken(t.ABSTRACT_TOK,0)}mult(){return this.tryGetRuleContext(0,w)}sigExt(){return this.tryGetRuleContext(0,A)}arrowDeclList(){return this.tryGetRuleContext(0,Ht)}block(){return this.tryGetRuleContext(0,vt)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_sigDecl}enterRule(i){i.enterSigDecl&&i.enterSigDecl(this);}exitRule(i){i.exitSigDecl&&i.exitSigDecl(this);}accept(i){return i.visitSigDecl?i.visitSigDecl(this):i.visitChildren(this)}}l.SigDeclContext=U;class A extends r.ParserRuleContext{EXTENDS_TOK(){return this.tryGetToken(t.EXTENDS_TOK,0)}qualName(i){return i===void 0?this.getRuleContexts(q):this.getRuleContext(i,q)}IN_TOK(){return this.tryGetToken(t.IN_TOK,0)}PLUS_TOK(i){return i===void 0?this.getTokens(t.PLUS_TOK):this.getToken(t.PLUS_TOK,i)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_sigExt}enterRule(i){i.enterSigExt&&i.enterSigExt(this);}exitRule(i){i.exitSigExt&&i.exitSigExt(this);}accept(i){return i.visitSigExt?i.visitSigExt(this):i.visitChildren(this)}}l.SigExtContext=A;class w extends r.ParserRuleContext{LONE_TOK(){return this.tryGetToken(t.LONE_TOK,0)}SOME_TOK(){return this.tryGetToken(t.SOME_TOK,0)}ONE_TOK(){return this.tryGetToken(t.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(t.TWO_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_mult}enterRule(i){i.enterMult&&i.enterMult(this);}exitRule(i){i.exitMult&&i.exitMult(this);}accept(i){return i.visitMult?i.visitMult(this):i.visitChildren(this)}}l.MultContext=w;class F extends r.ParserRuleContext{LONE_TOK(){return this.tryGetToken(t.LONE_TOK,0)}SET_TOK(){return this.tryGetToken(t.SET_TOK,0)}ONE_TOK(){return this.tryGetToken(t.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(t.TWO_TOK,0)}FUNC_TOK(){return this.tryGetToken(t.FUNC_TOK,0)}PFUNC_TOK(){return this.tryGetToken(t.PFUNC_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_arrowMult}enterRule(i){i.enterArrowMult&&i.enterArrowMult(this);}exitRule(i){i.exitArrowMult&&i.exitArrowMult(this);}accept(i){return i.visitArrowMult?i.visitArrowMult(this):i.visitChildren(this)}}l.ArrowMultContext=F;class M extends r.ParserRuleContext{LONE_TOK(){return this.tryGetToken(t.LONE_TOK,0)}SET_TOK(){return this.tryGetToken(t.SET_TOK,0)}ONE_TOK(){return this.tryGetToken(t.ONE_TOK,0)}FUNC_TOK(){return this.tryGetToken(t.FUNC_TOK,0)}PFUNC_TOK(){return this.tryGetToken(t.PFUNC_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_helperMult}enterRule(i){i.enterHelperMult&&i.enterHelperMult(this);}exitRule(i){i.exitHelperMult&&i.exitHelperMult(this);}accept(i){return i.visitHelperMult?i.visitHelperMult(this):i.visitChildren(this)}}l.HelperMultContext=M;class W extends r.ParserRuleContext{nameList(){return this.getRuleContext(0,X)}COLON_TOK(){return this.getToken(t.COLON_TOK,0)}expr(){return this.getRuleContext(0,Tt)}DISJ_TOK(){return this.tryGetToken(t.DISJ_TOK,0)}helperMult(){return this.tryGetRuleContext(0,M)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_paraDecl}enterRule(i){i.enterParaDecl&&i.enterParaDecl(this);}exitRule(i){i.exitParaDecl&&i.exitParaDecl(this);}accept(i){return i.visitParaDecl?i.visitParaDecl(this):i.visitChildren(this)}}l.ParaDeclContext=W;class L extends r.ParserRuleContext{nameList(){return this.getRuleContext(0,X)}COLON_TOK(){return this.getToken(t.COLON_TOK,0)}expr(){return this.getRuleContext(0,Tt)}DISJ_TOK(){return this.tryGetToken(t.DISJ_TOK,0)}SET_TOK(){return this.tryGetToken(t.SET_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_quantDecl}enterRule(i){i.enterQuantDecl&&i.enterQuantDecl(this);}exitRule(i){i.exitQuantDecl&&i.exitQuantDecl(this);}accept(i){return i.visitQuantDecl?i.visitQuantDecl(this):i.visitChildren(this)}}l.QuantDeclContext=L;class j extends r.ParserRuleContext{nameList(){return this.getRuleContext(0,X)}COLON_TOK(){return this.getToken(t.COLON_TOK,0)}arrowMult(){return this.getRuleContext(0,F)}arrowExpr(){return this.getRuleContext(0,Kn)}VAR_TOK(){return this.tryGetToken(t.VAR_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_arrowDecl}enterRule(i){i.enterArrowDecl&&i.enterArrowDecl(this);}exitRule(i){i.exitArrowDecl&&i.exitArrowDecl(this);}accept(i){return i.visitArrowDecl?i.visitArrowDecl(this):i.visitChildren(this)}}l.ArrowDeclContext=j;class k extends r.ParserRuleContext{WHEAT_TOK(){return this.getToken(t.WHEAT_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_predType}enterRule(i){i.enterPredType&&i.enterPredType(this);}exitRule(i){i.exitPredType&&i.exitPredType(this);}accept(i){return i.visitPredType?i.visitPredType(this):i.visitChildren(this)}}l.PredTypeContext=k;class J extends r.ParserRuleContext{FUN_TOK(){return this.getToken(t.FUN_TOK,0)}name(){return this.getRuleContext(0,et)}COLON_TOK(){return this.getToken(t.COLON_TOK,0)}expr(i){return i===void 0?this.getRuleContexts(Tt):this.getRuleContext(i,Tt)}LEFT_CURLY_TOK(){return this.getToken(t.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(t.RIGHT_CURLY_TOK,0)}qualName(){return this.tryGetRuleContext(0,q)}DOT_TOK(){return this.tryGetToken(t.DOT_TOK,0)}paraDecls(){return this.tryGetRuleContext(0,ut)}helperMult(){return this.tryGetRuleContext(0,M)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_funDecl}enterRule(i){i.enterFunDecl&&i.enterFunDecl(this);}exitRule(i){i.exitFunDecl&&i.exitFunDecl(this);}accept(i){return i.visitFunDecl?i.visitFunDecl(this):i.visitChildren(this)}}l.FunDeclContext=J;class ut extends r.ParserRuleContext{LEFT_PAREN_TOK(){return this.tryGetToken(t.LEFT_PAREN_TOK,0)}RIGHT_PAREN_TOK(){return this.tryGetToken(t.RIGHT_PAREN_TOK,0)}paraDeclList(){return this.tryGetRuleContext(0,pt)}LEFT_SQUARE_TOK(){return this.tryGetToken(t.LEFT_SQUARE_TOK,0)}RIGHT_SQUARE_TOK(){return this.tryGetToken(t.RIGHT_SQUARE_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_paraDecls}enterRule(i){i.enterParaDecls&&i.enterParaDecls(this);}exitRule(i){i.exitParaDecls&&i.exitParaDecls(this);}accept(i){return i.visitParaDecls?i.visitParaDecls(this):i.visitChildren(this)}}l.ParaDeclsContext=ut;class ft extends r.ParserRuleContext{ASSERT_TOK(){return this.getToken(t.ASSERT_TOK,0)}block(){return this.getRuleContext(0,vt)}name(){return this.tryGetRuleContext(0,et)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_assertDecl}enterRule(i){i.enterAssertDecl&&i.enterAssertDecl(this);}exitRule(i){i.exitAssertDecl&&i.exitAssertDecl(this);}accept(i){return i.visitAssertDecl?i.visitAssertDecl(this):i.visitChildren(this)}}l.AssertDeclContext=ft;class At extends r.ParserRuleContext{RUN_TOK(){return this.tryGetToken(t.RUN_TOK,0)}CHECK_TOK(){return this.tryGetToken(t.CHECK_TOK,0)}name(){return this.tryGetRuleContext(0,et)}COLON_TOK(){return this.tryGetToken(t.COLON_TOK,0)}qualName(){return this.tryGetRuleContext(0,q)}block(){return this.tryGetRuleContext(0,vt)}scope(){return this.tryGetRuleContext(0,_t)}FOR_TOK(){return this.tryGetToken(t.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,rn)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_cmdDecl}enterRule(i){i.enterCmdDecl&&i.enterCmdDecl(this);}exitRule(i){i.exitCmdDecl&&i.exitCmdDecl(this);}accept(i){return i.visitCmdDecl?i.visitCmdDecl(this):i.visitChildren(this)}}l.CmdDeclContext=At;class Dt extends r.ParserRuleContext{IS_TOK(){return this.getToken(t.IS_TOK,0)}SAT_TOK(){return this.tryGetToken(t.SAT_TOK,0)}UNSAT_TOK(){return this.tryGetToken(t.UNSAT_TOK,0)}THEOREM_TOK(){return this.tryGetToken(t.THEOREM_TOK,0)}CHECKED_TOK(){return this.tryGetToken(t.CHECKED_TOK,0)}FORGE_ERROR_TOK(){return this.tryGetToken(t.FORGE_ERROR_TOK,0)}qualName(){return this.tryGetRuleContext(0,q)}block(){return this.tryGetRuleContext(0,vt)}name(){return this.tryGetRuleContext(0,et)}COLON_TOK(){return this.tryGetToken(t.COLON_TOK,0)}scope(){return this.tryGetRuleContext(0,_t)}FOR_TOK(){return this.tryGetToken(t.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,rn)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_testDecl}enterRule(i){i.enterTestDecl&&i.enterTestDecl(this);}exitRule(i){i.exitTestDecl&&i.exitTestDecl(this);}accept(i){return i.visitTestDecl?i.visitTestDecl(this):i.visitChildren(this)}}l.TestDeclContext=Dt;class dt extends r.ParserRuleContext{EXPECT_TOK(){return this.getToken(t.EXPECT_TOK,0)}testBlock(){return this.getRuleContext(0,jt)}TEST_TOK(){return this.tryGetToken(t.TEST_TOK,0)}name(){return this.tryGetRuleContext(0,et)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_testExpectDecl}enterRule(i){i.enterTestExpectDecl&&i.enterTestExpectDecl(this);}exitRule(i){i.exitTestExpectDecl&&i.exitTestExpectDecl(this);}accept(i){return i.visitTestExpectDecl?i.visitTestExpectDecl(this):i.visitChildren(this)}}l.TestExpectDeclContext=dt;class jt extends r.ParserRuleContext{LEFT_CURLY_TOK(){return this.getToken(t.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(t.RIGHT_CURLY_TOK,0)}testDecl(i){return i===void 0?this.getRuleContexts(Dt):this.getRuleContext(i,Dt)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_testBlock}enterRule(i){i.enterTestBlock&&i.enterTestBlock(this);}exitRule(i){i.exitTestBlock&&i.exitTestBlock(this);}accept(i){return i.visitTestBlock?i.visitTestBlock(this):i.visitChildren(this)}}l.TestBlockContext=jt;class _t extends r.ParserRuleContext{FOR_TOK(){return this.getToken(t.FOR_TOK,0)}number(){return this.tryGetRuleContext(0,_n)}BUT_TOK(){return this.tryGetToken(t.BUT_TOK,0)}typescopeList(){return this.tryGetRuleContext(0,Wt)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_scope}enterRule(i){i.enterScope&&i.enterScope(this);}exitRule(i){i.exitScope&&i.exitScope(this);}accept(i){return i.visitScope?i.visitScope(this):i.visitChildren(this)}}l.ScopeContext=_t;class yt extends r.ParserRuleContext{number(){return this.getRuleContext(0,_n)}qualName(){return this.getRuleContext(0,q)}EXACTLY_TOK(){return this.tryGetToken(t.EXACTLY_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_typescope}enterRule(i){i.enterTypescope&&i.enterTypescope(this);}exitRule(i){i.exitTypescope&&i.exitTypescope(this);}accept(i){return i.visitTypescope?i.visitTypescope(this):i.visitChildren(this)}}l.TypescopeContext=yt;class rt extends r.ParserRuleContext{NONE_TOK(){return this.tryGetToken(t.NONE_TOK,0)}UNIV_TOK(){return this.tryGetToken(t.UNIV_TOK,0)}IDEN_TOK(){return this.tryGetToken(t.IDEN_TOK,0)}number(){return this.tryGetRuleContext(0,_n)}MINUS_TOK(){return this.tryGetToken(t.MINUS_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_const}enterRule(i){i.enterConst&&i.enterConst(this);}exitRule(i){i.exitConst&&i.exitConst(this);}accept(i){return i.visitConst?i.visitConst(this):i.visitChildren(this)}}l.ConstContext=rt;class K extends r.ParserRuleContext{ASSERT_TOK(){return this.getToken(t.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,Tt)}IS_TOK(){return this.getToken(t.IS_TOK,0)}SAT_TOK(){return this.tryGetToken(t.SAT_TOK,0)}UNSAT_TOK(){return this.tryGetToken(t.UNSAT_TOK,0)}FORGE_ERROR_TOK(){return this.tryGetToken(t.FORGE_ERROR_TOK,0)}scope(){return this.tryGetRuleContext(0,_t)}FOR_TOK(){return this.tryGetToken(t.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,rn)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_satisfiabilityDecl}enterRule(i){i.enterSatisfiabilityDecl&&i.enterSatisfiabilityDecl(this);}exitRule(i){i.exitSatisfiabilityDecl&&i.exitSatisfiabilityDecl(this);}accept(i){return i.visitSatisfiabilityDecl?i.visitSatisfiabilityDecl(this):i.visitChildren(this)}}l.SatisfiabilityDeclContext=K;class G extends r.ParserRuleContext{ASSERT_TOK(){return this.getToken(t.ASSERT_TOK,0)}ALL_TOK(){return this.getToken(t.ALL_TOK,0)}quantDeclList(){return this.getRuleContext(0,Bt)}BAR_TOK(){return this.getToken(t.BAR_TOK,0)}expr(){return this.getRuleContext(0,Tt)}IS_TOK(){return this.getToken(t.IS_TOK,0)}FOR_TOK(i){return i===void 0?this.getTokens(t.FOR_TOK):this.getToken(t.FOR_TOK,i)}name(){return this.getRuleContext(0,et)}SUFFICIENT_TOK(){return this.tryGetToken(t.SUFFICIENT_TOK,0)}NECESSARY_TOK(){return this.tryGetToken(t.NECESSARY_TOK,0)}DISJ_TOK(){return this.tryGetToken(t.DISJ_TOK,0)}LEFT_SQUARE_TOK(){return this.tryGetToken(t.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,mt)}RIGHT_SQUARE_TOK(){return this.tryGetToken(t.RIGHT_SQUARE_TOK,0)}scope(){return this.tryGetRuleContext(0,_t)}bounds(){return this.tryGetRuleContext(0,rn)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_quantifiedPropertyDecl}enterRule(i){i.enterQuantifiedPropertyDecl&&i.enterQuantifiedPropertyDecl(this);}exitRule(i){i.exitQuantifiedPropertyDecl&&i.exitQuantifiedPropertyDecl(this);}accept(i){return i.visitQuantifiedPropertyDecl?i.visitQuantifiedPropertyDecl(this):i.visitChildren(this)}}l.QuantifiedPropertyDeclContext=G;class Q extends r.ParserRuleContext{ASSERT_TOK(){return this.getToken(t.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,Tt)}IS_TOK(){return this.getToken(t.IS_TOK,0)}FOR_TOK(i){return i===void 0?this.getTokens(t.FOR_TOK):this.getToken(t.FOR_TOK,i)}name(){return this.getRuleContext(0,et)}SUFFICIENT_TOK(){return this.tryGetToken(t.SUFFICIENT_TOK,0)}NECESSARY_TOK(){return this.tryGetToken(t.NECESSARY_TOK,0)}scope(){return this.tryGetRuleContext(0,_t)}bounds(){return this.tryGetRuleContext(0,rn)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_propertyDecl}enterRule(i){i.enterPropertyDecl&&i.enterPropertyDecl(this);}exitRule(i){i.exitPropertyDecl&&i.exitPropertyDecl(this);}accept(i){return i.visitPropertyDecl?i.visitPropertyDecl(this):i.visitChildren(this)}}l.PropertyDeclContext=Q;class ot extends r.ParserRuleContext{ASSERT_TOK(){return this.getToken(t.ASSERT_TOK,0)}expr(){return this.getRuleContext(0,Tt)}IS_TOK(){return this.getToken(t.IS_TOK,0)}WITH_TOK(){return this.getToken(t.WITH_TOK,0)}name(){return this.getRuleContext(0,et)}CONSISTENT_TOK(){return this.tryGetToken(t.CONSISTENT_TOK,0)}INCONSISTENT_TOK(){return this.tryGetToken(t.INCONSISTENT_TOK,0)}scope(){return this.tryGetRuleContext(0,_t)}FOR_TOK(){return this.tryGetToken(t.FOR_TOK,0)}bounds(){return this.tryGetRuleContext(0,rn)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_consistencyDecl}enterRule(i){i.enterConsistencyDecl&&i.enterConsistencyDecl(this);}exitRule(i){i.exitConsistencyDecl&&i.exitConsistencyDecl(this);}accept(i){return i.visitConsistencyDecl?i.visitConsistencyDecl(this):i.visitChildren(this)}}l.ConsistencyDeclContext=ot;class lt extends r.ParserRuleContext{TEST_TOK(){return this.getToken(t.TEST_TOK,0)}SUITE_TOK(){return this.getToken(t.SUITE_TOK,0)}FOR_TOK(){return this.getToken(t.FOR_TOK,0)}name(){return this.getRuleContext(0,et)}LEFT_CURLY_TOK(){return this.getToken(t.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(t.RIGHT_CURLY_TOK,0)}testConstruct(i){return i===void 0?this.getRuleContexts(st):this.getRuleContext(i,st)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_testSuiteDecl}enterRule(i){i.enterTestSuiteDecl&&i.enterTestSuiteDecl(this);}exitRule(i){i.exitTestSuiteDecl&&i.exitTestSuiteDecl(this);}accept(i){return i.visitTestSuiteDecl?i.visitTestSuiteDecl(this):i.visitChildren(this)}}l.TestSuiteDeclContext=lt;class st extends r.ParserRuleContext{exampleDecl(){return this.tryGetRuleContext(0,Er)}testExpectDecl(){return this.tryGetRuleContext(0,dt)}quantifiedPropertyDecl(){return this.tryGetRuleContext(0,G)}propertyDecl(){return this.tryGetRuleContext(0,Q)}satisfiabilityDecl(){return this.tryGetRuleContext(0,K)}consistencyDecl(){return this.tryGetRuleContext(0,ot)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_testConstruct}enterRule(i){i.enterTestConstruct&&i.enterTestConstruct(this);}exitRule(i){i.exitTestConstruct&&i.exitTestConstruct(this);}accept(i){return i.visitTestConstruct?i.visitTestConstruct(this):i.visitChildren(this)}}l.TestConstructContext=st;class ht extends r.ParserRuleContext{ARROW_TOK(){return this.getToken(t.ARROW_TOK,0)}mult(i){return i===void 0?this.getRuleContexts(w):this.getRuleContext(i,w)}SET_TOK(i){return i===void 0?this.getTokens(t.SET_TOK):this.getToken(t.SET_TOK,i)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_arrowOp}enterRule(i){i.enterArrowOp&&i.enterArrowOp(this);}exitRule(i){i.exitArrowOp&&i.exitArrowOp(this);}accept(i){return i.visitArrowOp?i.visitArrowOp(this):i.visitChildren(this)}}l.ArrowOpContext=ht;class xt extends r.ParserRuleContext{IN_TOK(){return this.tryGetToken(t.IN_TOK,0)}EQ_TOK(){return this.tryGetToken(t.EQ_TOK,0)}LT_TOK(){return this.tryGetToken(t.LT_TOK,0)}GT_TOK(){return this.tryGetToken(t.GT_TOK,0)}LEQ_TOK(){return this.tryGetToken(t.LEQ_TOK,0)}GEQ_TOK(){return this.tryGetToken(t.GEQ_TOK,0)}IS_TOK(){return this.tryGetToken(t.IS_TOK,0)}NI_TOK(){return this.tryGetToken(t.NI_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_compareOp}enterRule(i){i.enterCompareOp&&i.enterCompareOp(this);}exitRule(i){i.exitCompareOp&&i.exitCompareOp(this);}accept(i){return i.visitCompareOp?i.visitCompareOp(this):i.visitChildren(this)}}l.CompareOpContext=xt;class it extends r.ParserRuleContext{name(){return this.getRuleContext(0,et)}EQ_TOK(){return this.getToken(t.EQ_TOK,0)}expr(){return this.getRuleContext(0,Tt)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_letDecl}enterRule(i){i.enterLetDecl&&i.enterLetDecl(this);}exitRule(i){i.exitLetDecl&&i.exitLetDecl(this);}accept(i){return i.visitLetDecl?i.visitLetDecl(this):i.visitChildren(this)}}l.LetDeclContext=it;class vt extends r.ParserRuleContext{LEFT_CURLY_TOK(){return this.getToken(t.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.getToken(t.RIGHT_CURLY_TOK,0)}expr(i){return i===void 0?this.getRuleContexts(Tt):this.getRuleContext(i,Tt)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_block}enterRule(i){i.enterBlock&&i.enterBlock(this);}exitRule(i){i.exitBlock&&i.exitBlock(this);}accept(i){return i.visitBlock?i.visitBlock(this):i.visitChildren(this)}}l.BlockContext=vt;class Z extends r.ParserRuleContext{block(){return this.tryGetRuleContext(0,vt)}BAR_TOK(){return this.tryGetToken(t.BAR_TOK,0)}expr(){return this.tryGetRuleContext(0,Tt)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_blockOrBar}enterRule(i){i.enterBlockOrBar&&i.enterBlockOrBar(this);}exitRule(i){i.exitBlockOrBar&&i.exitBlockOrBar(this);}accept(i){return i.visitBlockOrBar?i.visitBlockOrBar(this):i.visitChildren(this)}}l.BlockOrBarContext=Z;class tt extends r.ParserRuleContext{ALL_TOK(){return this.tryGetToken(t.ALL_TOK,0)}NO_TOK(){return this.tryGetToken(t.NO_TOK,0)}SUM_TOK(){return this.tryGetToken(t.SUM_TOK,0)}mult(){return this.tryGetRuleContext(0,w)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_quant}enterRule(i){i.enterQuant&&i.enterQuant(this);}exitRule(i){i.exitQuant&&i.exitQuant(this);}accept(i){return i.visitQuant?i.visitQuant(this):i.visitChildren(this)}}l.QuantContext=tt;class q extends r.ParserRuleContext{name(i){return i===void 0?this.getRuleContexts(et):this.getRuleContext(i,et)}THIS_TOK(){return this.tryGetToken(t.THIS_TOK,0)}SLASH_TOK(i){return i===void 0?this.getTokens(t.SLASH_TOK):this.getToken(t.SLASH_TOK,i)}INT_TOK(){return this.tryGetToken(t.INT_TOK,0)}SUM_TOK(){return this.tryGetToken(t.SUM_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_qualName}enterRule(i){i.enterQualName&&i.enterQualName(this);}exitRule(i){i.exitQualName&&i.exitQualName(this);}accept(i){return i.visitQualName?i.visitQualName(this):i.visitChildren(this)}}l.QualNameContext=q;class Y extends r.ParserRuleContext{OPTION_TOK(){return this.getToken(t.OPTION_TOK,0)}qualName(i){return i===void 0?this.getRuleContexts(q):this.getRuleContext(i,q)}FILE_PATH_TOK(){return this.tryGetToken(t.FILE_PATH_TOK,0)}number(){return this.tryGetRuleContext(0,_n)}MINUS_TOK(){return this.tryGetToken(t.MINUS_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_optionDecl}enterRule(i){i.enterOptionDecl&&i.enterOptionDecl(this);}exitRule(i){i.exitOptionDecl&&i.exitOptionDecl(this);}accept(i){return i.visitOptionDecl?i.visitOptionDecl(this):i.visitChildren(this)}}l.OptionDeclContext=Y;class et extends r.ParserRuleContext{IDENTIFIER_TOK(){return this.tryGetToken(t.IDENTIFIER_TOK,0)}QUOTED_IDENTIFIER_TOK(){return this.tryGetToken(t.QUOTED_IDENTIFIER_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_name}enterRule(i){i.enterName&&i.enterName(this);}exitRule(i){i.exitName&&i.exitName(this);}accept(i){return i.visitName?i.visitName(this):i.visitChildren(this)}}l.NameContext=et;class X extends r.ParserRuleContext{name(){return this.getRuleContext(0,et)}COMMA_TOK(){return this.tryGetToken(t.COMMA_TOK,0)}nameList(){return this.tryGetRuleContext(0,X)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_nameList}enterRule(i){i.enterNameList&&i.enterNameList(this);}exitRule(i){i.exitNameList&&i.exitNameList(this);}accept(i){return i.visitNameList?i.visitNameList(this):i.visitChildren(this)}}l.NameListContext=X;class Ct extends r.ParserRuleContext{qualName(){return this.getRuleContext(0,q)}COMMA_TOK(){return this.tryGetToken(t.COMMA_TOK,0)}qualNameList(){return this.tryGetRuleContext(0,Ct)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_qualNameList}enterRule(i){i.enterQualNameList&&i.enterQualNameList(this);}exitRule(i){i.exitQualNameList&&i.exitQualNameList(this);}accept(i){return i.visitQualNameList?i.visitQualNameList(this):i.visitChildren(this)}}l.QualNameListContext=Ct;class pt extends r.ParserRuleContext{paraDecl(){return this.getRuleContext(0,W)}COMMA_TOK(){return this.tryGetToken(t.COMMA_TOK,0)}paraDeclList(){return this.tryGetRuleContext(0,pt)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_paraDeclList}enterRule(i){i.enterParaDeclList&&i.enterParaDeclList(this);}exitRule(i){i.exitParaDeclList&&i.exitParaDeclList(this);}accept(i){return i.visitParaDeclList?i.visitParaDeclList(this):i.visitChildren(this)}}l.ParaDeclListContext=pt;class Bt extends r.ParserRuleContext{quantDecl(){return this.getRuleContext(0,L)}COMMA_TOK(){return this.tryGetToken(t.COMMA_TOK,0)}quantDeclList(){return this.tryGetRuleContext(0,Bt)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_quantDeclList}enterRule(i){i.enterQuantDeclList&&i.enterQuantDeclList(this);}exitRule(i){i.exitQuantDeclList&&i.exitQuantDeclList(this);}accept(i){return i.visitQuantDeclList?i.visitQuantDeclList(this):i.visitChildren(this)}}l.QuantDeclListContext=Bt;class Ht extends r.ParserRuleContext{arrowDecl(){return this.getRuleContext(0,j)}COMMA_TOK(){return this.tryGetToken(t.COMMA_TOK,0)}arrowDeclList(){return this.tryGetRuleContext(0,Ht)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_arrowDeclList}enterRule(i){i.enterArrowDeclList&&i.enterArrowDeclList(this);}exitRule(i){i.exitArrowDeclList&&i.exitArrowDeclList(this);}accept(i){return i.visitArrowDeclList?i.visitArrowDeclList(this):i.visitChildren(this)}}l.ArrowDeclListContext=Ht;class $t extends r.ParserRuleContext{letDecl(){return this.getRuleContext(0,it)}COMMA_TOK(){return this.tryGetToken(t.COMMA_TOK,0)}letDeclList(){return this.tryGetRuleContext(0,$t)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_letDeclList}enterRule(i){i.enterLetDeclList&&i.enterLetDeclList(this);}exitRule(i){i.exitLetDeclList&&i.exitLetDeclList(this);}accept(i){return i.visitLetDeclList?i.visitLetDeclList(this):i.visitChildren(this)}}l.LetDeclListContext=$t;class Wt extends r.ParserRuleContext{typescope(){return this.getRuleContext(0,yt)}COMMA_TOK(){return this.tryGetToken(t.COMMA_TOK,0)}typescopeList(){return this.tryGetRuleContext(0,Wt)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_typescopeList}enterRule(i){i.enterTypescopeList&&i.enterTypescopeList(this);}exitRule(i){i.exitTypescopeList&&i.exitTypescopeList(this);}accept(i){return i.visitTypescopeList?i.visitTypescopeList(this):i.visitChildren(this)}}l.TypescopeListContext=Wt;class mt extends r.ParserRuleContext{expr(){return this.getRuleContext(0,Tt)}COMMA_TOK(){return this.tryGetToken(t.COMMA_TOK,0)}exprList(){return this.tryGetRuleContext(0,mt)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_exprList}enterRule(i){i.enterExprList&&i.enterExprList(this);}exitRule(i){i.exitExprList&&i.exitExprList(this);}accept(i){return i.visitExprList?i.visitExprList(this):i.visitChildren(this)}}l.ExprListContext=mt;class Tt extends r.ParserRuleContext{expr1(){return this.tryGetRuleContext(0,Ft)}LET_TOK(){return this.tryGetToken(t.LET_TOK,0)}letDeclList(){return this.tryGetRuleContext(0,$t)}blockOrBar(){return this.tryGetRuleContext(0,Z)}BIND_TOK(){return this.tryGetToken(t.BIND_TOK,0)}quant(){return this.tryGetRuleContext(0,tt)}quantDeclList(){return this.tryGetRuleContext(0,Bt)}DISJ_TOK(){return this.tryGetToken(t.DISJ_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr}enterRule(i){i.enterExpr&&i.enterExpr(this);}exitRule(i){i.exitExpr&&i.exitExpr(this);}accept(i){return i.visitExpr?i.visitExpr(this):i.visitChildren(this)}}l.ExprContext=Tt;class Ft extends r.ParserRuleContext{expr1_5(){return this.getRuleContext(0,Mt)}expr1(){return this.tryGetRuleContext(0,Ft)}OR_TOK(){return this.tryGetToken(t.OR_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr1}enterRule(i){i.enterExpr1&&i.enterExpr1(this);}exitRule(i){i.exitExpr1&&i.exitExpr1(this);}accept(i){return i.visitExpr1?i.visitExpr1(this):i.visitChildren(this)}}l.Expr1Context=Ft;class Mt extends r.ParserRuleContext{expr2(){return this.getRuleContext(0,Ut)}expr1_5(){return this.tryGetRuleContext(0,Mt)}XOR_TOK(){return this.tryGetToken(t.XOR_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr1_5}enterRule(i){i.enterExpr1_5&&i.enterExpr1_5(this);}exitRule(i){i.exitExpr1_5&&i.exitExpr1_5(this);}accept(i){return i.visitExpr1_5?i.visitExpr1_5(this):i.visitChildren(this)}}l.Expr1_5Context=Mt;class Ut extends r.ParserRuleContext{expr3(){return this.getRuleContext(0,Xt)}expr2(){return this.tryGetRuleContext(0,Ut)}IFF_TOK(){return this.tryGetToken(t.IFF_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr2}enterRule(i){i.enterExpr2&&i.enterExpr2(this);}exitRule(i){i.exitExpr2&&i.exitExpr2(this);}accept(i){return i.visitExpr2?i.visitExpr2(this):i.visitChildren(this)}}l.Expr2Context=Ut;class Xt extends r.ParserRuleContext{expr4(){return this.getRuleContext(0,qt)}IMP_TOK(){return this.tryGetToken(t.IMP_TOK,0)}expr3(i){return i===void 0?this.getRuleContexts(Xt):this.getRuleContext(i,Xt)}ELSE_TOK(){return this.tryGetToken(t.ELSE_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr3}enterRule(i){i.enterExpr3&&i.enterExpr3(this);}exitRule(i){i.exitExpr3&&i.exitExpr3(this);}accept(i){return i.visitExpr3?i.visitExpr3(this):i.visitChildren(this)}}l.Expr3Context=Xt;class qt extends r.ParserRuleContext{expr4_5(){return this.getRuleContext(0,se)}expr4(){return this.tryGetRuleContext(0,qt)}AND_TOK(){return this.tryGetToken(t.AND_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr4}enterRule(i){i.enterExpr4&&i.enterExpr4(this);}exitRule(i){i.exitExpr4&&i.exitExpr4(this);}accept(i){return i.visitExpr4?i.visitExpr4(this):i.visitChildren(this)}}l.Expr4Context=qt;class se extends r.ParserRuleContext{expr5(i){return i===void 0?this.getRuleContexts(ee):this.getRuleContext(i,ee)}UNTIL_TOK(){return this.tryGetToken(t.UNTIL_TOK,0)}RELEASE_TOK(){return this.tryGetToken(t.RELEASE_TOK,0)}SINCE_TOK(){return this.tryGetToken(t.SINCE_TOK,0)}TRIGGERED_TOK(){return this.tryGetToken(t.TRIGGERED_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr4_5}enterRule(i){i.enterExpr4_5&&i.enterExpr4_5(this);}exitRule(i){i.exitExpr4_5&&i.exitExpr4_5(this);}accept(i){return i.visitExpr4_5?i.visitExpr4_5(this):i.visitChildren(this)}}l.Expr4_5Context=se;class ee extends r.ParserRuleContext{expr6(){return this.tryGetRuleContext(0,Rt)}NEG_TOK(){return this.tryGetToken(t.NEG_TOK,0)}expr5(){return this.tryGetRuleContext(0,ee)}ALWAYS_TOK(){return this.tryGetToken(t.ALWAYS_TOK,0)}EVENTUALLY_TOK(){return this.tryGetToken(t.EVENTUALLY_TOK,0)}AFTER_TOK(){return this.tryGetToken(t.AFTER_TOK,0)}BEFORE_TOK(){return this.tryGetToken(t.BEFORE_TOK,0)}ONCE_TOK(){return this.tryGetToken(t.ONCE_TOK,0)}HISTORICALLY_TOK(){return this.tryGetToken(t.HISTORICALLY_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr5}enterRule(i){i.enterExpr5&&i.enterExpr5(this);}exitRule(i){i.exitExpr5&&i.exitExpr5(this);}accept(i){return i.visitExpr5?i.visitExpr5(this):i.visitChildren(this)}}l.Expr5Context=ee;class Rt extends r.ParserRuleContext{expr7(){return this.getRuleContext(0,Kt)}expr6(){return this.tryGetRuleContext(0,Rt)}compareOp(){return this.tryGetRuleContext(0,xt)}NEG_TOK(){return this.tryGetToken(t.NEG_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr6}enterRule(i){i.enterExpr6&&i.enterExpr6(this);}exitRule(i){i.exitExpr6&&i.exitExpr6(this);}accept(i){return i.visitExpr6?i.visitExpr6(this):i.visitChildren(this)}}l.Expr6Context=Rt;class Kt extends r.ParserRuleContext{expr8(){return this.getRuleContext(0,zt)}NO_TOK(){return this.tryGetToken(t.NO_TOK,0)}SOME_TOK(){return this.tryGetToken(t.SOME_TOK,0)}LONE_TOK(){return this.tryGetToken(t.LONE_TOK,0)}ONE_TOK(){return this.tryGetToken(t.ONE_TOK,0)}TWO_TOK(){return this.tryGetToken(t.TWO_TOK,0)}SET_TOK(){return this.tryGetToken(t.SET_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr7}enterRule(i){i.enterExpr7&&i.enterExpr7(this);}exitRule(i){i.exitExpr7&&i.exitExpr7(this);}accept(i){return i.visitExpr7?i.visitExpr7(this):i.visitChildren(this)}}l.Expr7Context=Kt;class zt extends r.ParserRuleContext{expr9(){return this.tryGetRuleContext(0,Yt)}expr8(){return this.tryGetRuleContext(0,zt)}expr10(){return this.tryGetRuleContext(0,ae)}PLUS_TOK(){return this.tryGetToken(t.PLUS_TOK,0)}MINUS_TOK(){return this.tryGetToken(t.MINUS_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr8}enterRule(i){i.enterExpr8&&i.enterExpr8(this);}exitRule(i){i.exitExpr8&&i.exitExpr8(this);}accept(i){return i.visitExpr8?i.visitExpr8(this):i.visitChildren(this)}}l.Expr8Context=zt;class Yt extends r.ParserRuleContext{expr10(){return this.tryGetRuleContext(0,ae)}CARD_TOK(){return this.tryGetToken(t.CARD_TOK,0)}expr9(){return this.tryGetRuleContext(0,Yt)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr9}enterRule(i){i.enterExpr9&&i.enterExpr9(this);}exitRule(i){i.exitExpr9&&i.exitExpr9(this);}accept(i){return i.visitExpr9?i.visitExpr9(this):i.visitChildren(this)}}l.Expr9Context=Yt;class ae extends r.ParserRuleContext{expr11(){return this.getRuleContext(0,Oe)}expr10(){return this.tryGetRuleContext(0,ae)}PPLUS_TOK(){return this.tryGetToken(t.PPLUS_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr10}enterRule(i){i.enterExpr10&&i.enterExpr10(this);}exitRule(i){i.exitExpr10&&i.exitExpr10(this);}accept(i){return i.visitExpr10?i.visitExpr10(this):i.visitChildren(this)}}l.Expr10Context=ae;class Oe extends r.ParserRuleContext{expr12(){return this.getRuleContext(0,me)}expr11(){return this.tryGetRuleContext(0,Oe)}AMP_TOK(){return this.tryGetToken(t.AMP_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr11}enterRule(i){i.enterExpr11&&i.enterExpr11(this);}exitRule(i){i.exitExpr11&&i.exitExpr11(this);}accept(i){return i.visitExpr11?i.visitExpr11(this):i.visitChildren(this)}}l.Expr11Context=Oe;class me extends r.ParserRuleContext{expr13(){return this.getRuleContext(0,De)}expr12(){return this.tryGetRuleContext(0,me)}arrowOp(){return this.tryGetRuleContext(0,ht)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr12}enterRule(i){i.enterExpr12&&i.enterExpr12(this);}exitRule(i){i.exitExpr12&&i.exitExpr12(this);}accept(i){return i.visitExpr12?i.visitExpr12(this):i.visitChildren(this)}}l.Expr12Context=me;class De extends r.ParserRuleContext{expr14(){return this.getRuleContext(0,$e)}expr13(){return this.tryGetRuleContext(0,De)}SUBT_TOK(){return this.tryGetToken(t.SUBT_TOK,0)}SUPT_TOK(){return this.tryGetToken(t.SUPT_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr13}enterRule(i){i.enterExpr13&&i.enterExpr13(this);}exitRule(i){i.exitExpr13&&i.exitExpr13(this);}accept(i){return i.visitExpr13?i.visitExpr13(this):i.visitChildren(this)}}l.Expr13Context=De;class $e extends r.ParserRuleContext{expr15(){return this.tryGetRuleContext(0,Fn)}expr14(){return this.tryGetRuleContext(0,$e)}LEFT_SQUARE_TOK(){return this.tryGetToken(t.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,mt)}RIGHT_SQUARE_TOK(){return this.tryGetToken(t.RIGHT_SQUARE_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr14}enterRule(i){i.enterExpr14&&i.enterExpr14(this);}exitRule(i){i.exitExpr14&&i.exitExpr14(this);}accept(i){return i.visitExpr14?i.visitExpr14(this):i.visitChildren(this)}}l.Expr14Context=$e;class Fn extends r.ParserRuleContext{expr16(){return this.tryGetRuleContext(0,jn)}expr15(){return this.tryGetRuleContext(0,Fn)}DOT_TOK(){return this.tryGetToken(t.DOT_TOK,0)}name(){return this.tryGetRuleContext(0,et)}LEFT_SQUARE_TOK(){return this.tryGetToken(t.LEFT_SQUARE_TOK,0)}exprList(){return this.tryGetRuleContext(0,mt)}RIGHT_SQUARE_TOK(){return this.tryGetToken(t.RIGHT_SQUARE_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr15}enterRule(i){i.enterExpr15&&i.enterExpr15(this);}exitRule(i){i.exitExpr15&&i.exitExpr15(this);}accept(i){return i.visitExpr15?i.visitExpr15(this):i.visitChildren(this)}}l.Expr15Context=Fn;class jn extends r.ParserRuleContext{expr17(){return this.tryGetRuleContext(0,Zn)}expr16(){return this.tryGetRuleContext(0,jn)}PRIME_TOK(){return this.tryGetToken(t.PRIME_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr16}enterRule(i){i.enterExpr16&&i.enterExpr16(this);}exitRule(i){i.exitExpr16&&i.exitExpr16(this);}accept(i){return i.visitExpr16?i.visitExpr16(this):i.visitChildren(this)}}l.Expr16Context=jn;class Zn extends r.ParserRuleContext{expr18(){return this.tryGetRuleContext(0,pr)}expr17(){return this.tryGetRuleContext(0,Zn)}TILDE_TOK(){return this.tryGetToken(t.TILDE_TOK,0)}EXP_TOK(){return this.tryGetToken(t.EXP_TOK,0)}STAR_TOK(){return this.tryGetToken(t.STAR_TOK,0)}GET_LABEL_TOK(){return this.tryGetToken(t.GET_LABEL_TOK,0)}GET_LABEL_STR_TOK(){return this.tryGetToken(t.GET_LABEL_STR_TOK,0)}GET_LABEL_BOOL_TOK(){return this.tryGetToken(t.GET_LABEL_BOOL_TOK,0)}GET_LABEL_NUM_TOK(){return this.tryGetToken(t.GET_LABEL_NUM_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr17}enterRule(i){i.enterExpr17&&i.enterExpr17(this);}exitRule(i){i.exitExpr17&&i.exitExpr17(this);}accept(i){return i.visitExpr17?i.visitExpr17(this):i.visitChildren(this)}}l.Expr17Context=Zn;class pr extends r.ParserRuleContext{const(){return this.tryGetRuleContext(0,rt)}qualName(){return this.tryGetRuleContext(0,q)}AT_TOK(){return this.tryGetToken(t.AT_TOK,0)}name(){return this.tryGetRuleContext(0,et)}BACKQUOTE_TOK(){return this.tryGetToken(t.BACKQUOTE_TOK,0)}THIS_TOK(){return this.tryGetToken(t.THIS_TOK,0)}LEFT_CURLY_TOK(){return this.tryGetToken(t.LEFT_CURLY_TOK,0)}quantDeclList(){return this.tryGetRuleContext(0,Bt)}blockOrBar(){return this.tryGetRuleContext(0,Z)}RIGHT_CURLY_TOK(){return this.tryGetToken(t.RIGHT_CURLY_TOK,0)}LEFT_PAREN_TOK(){return this.tryGetToken(t.LEFT_PAREN_TOK,0)}expr(){return this.tryGetRuleContext(0,Tt)}RIGHT_PAREN_TOK(){return this.tryGetToken(t.RIGHT_PAREN_TOK,0)}block(){return this.tryGetRuleContext(0,vt)}sexpr(){return this.tryGetRuleContext(0,mr)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_expr18}enterRule(i){i.enterExpr18&&i.enterExpr18(this);}exitRule(i){i.exitExpr18&&i.exitExpr18(this);}accept(i){return i.visitExpr18?i.visitExpr18(this):i.visitChildren(this)}}l.Expr18Context=pr;class Kn extends r.ParserRuleContext{qualName(){return this.getRuleContext(0,q)}ARROW_TOK(){return this.tryGetToken(t.ARROW_TOK,0)}arrowExpr(){return this.tryGetRuleContext(0,Kn)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_arrowExpr}enterRule(i){i.enterArrowExpr&&i.enterArrowExpr(this);}exitRule(i){i.exitArrowExpr&&i.exitArrowExpr(this);}accept(i){return i.visitArrowExpr?i.visitArrowExpr(this):i.visitChildren(this)}}l.ArrowExprContext=Kn;class Gr extends r.ParserRuleContext{sexpr(){return this.getRuleContext(0,mr)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_sexprDecl}enterRule(i){i.enterSexprDecl&&i.enterSexprDecl(this);}exitRule(i){i.exitSexprDecl&&i.exitSexprDecl(this);}accept(i){return i.visitSexprDecl?i.visitSexprDecl(this):i.visitChildren(this)}}l.SexprDeclContext=Gr;class mr extends r.ParserRuleContext{SEXPR_TOK(){return this.getToken(t.SEXPR_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_sexpr}enterRule(i){i.enterSexpr&&i.enterSexpr(this);}exitRule(i){i.exitSexpr&&i.exitSexpr(this);}accept(i){return i.visitSexpr?i.visitSexpr(this):i.visitChildren(this)}}l.SexprContext=mr;class tr extends r.ParserRuleContext{INST_TOK(){return this.getToken(t.INST_TOK,0)}name(){return this.getRuleContext(0,et)}bounds(){return this.getRuleContext(0,rn)}scope(){return this.tryGetRuleContext(0,_t)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_instDecl}enterRule(i){i.enterInstDecl&&i.enterInstDecl(this);}exitRule(i){i.exitInstDecl&&i.exitInstDecl(this);}accept(i){return i.visitInstDecl?i.visitInstDecl(this):i.visitChildren(this)}}l.InstDeclContext=tr;class Vr extends r.ParserRuleContext{arrowDecl(){return this.getRuleContext(0,j)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_evalRelDecl}enterRule(i){i.enterEvalRelDecl&&i.enterEvalRelDecl(this);}exitRule(i){i.exitEvalRelDecl&&i.exitEvalRelDecl(this);}accept(i){return i.visitEvalRelDecl?i.visitEvalRelDecl(this):i.visitChildren(this)}}l.EvalRelDeclContext=Vr;class Pn extends r.ParserRuleContext{EVAL_TOK(){return this.getToken(t.EVAL_TOK,0)}expr(){return this.getRuleContext(0,Tt)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_evalDecl}enterRule(i){i.enterEvalDecl&&i.enterEvalDecl(this);}exitRule(i){i.exitEvalDecl&&i.exitEvalDecl(this);}accept(i){return i.visitEvalDecl?i.visitEvalDecl(this):i.visitChildren(this)}}l.EvalDeclContext=Pn;class Er extends r.ParserRuleContext{EXAMPLE_TOK(){return this.getToken(t.EXAMPLE_TOK,0)}name(){return this.getRuleContext(0,et)}IS_TOK(){return this.getToken(t.IS_TOK,0)}expr(){return this.getRuleContext(0,Tt)}FOR_TOK(){return this.getToken(t.FOR_TOK,0)}bounds(){return this.getRuleContext(0,rn)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_exampleDecl}enterRule(i){i.enterExampleDecl&&i.enterExampleDecl(this);}exitRule(i){i.exitExampleDecl&&i.exitExampleDecl(this);}accept(i){return i.visitExampleDecl?i.visitExampleDecl(this):i.visitChildren(this)}}l.ExampleDeclContext=Er;class zr extends r.ParserRuleContext{name(){return this.getRuleContext(0,et)}COLON_TOK(){return this.getToken(t.COLON_TOK,0)}arrowExpr(){return this.getRuleContext(0,Kn)}EQ_TOK(){return this.getToken(t.EQ_TOK,0)}expr(){return this.getRuleContext(0,Tt)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_queryDecl}enterRule(i){i.enterQueryDecl&&i.enterQueryDecl(this);}exitRule(i){i.exitQueryDecl&&i.exitQueryDecl(this);}accept(i){return i.visitQueryDecl?i.visitQueryDecl(this):i.visitChildren(this)}}l.QueryDeclContext=zr;class Tr extends r.ParserRuleContext{number(){return this.getRuleContext(0,_n)}COMMA_TOK(){return this.tryGetToken(t.COMMA_TOK,0)}numberList(){return this.tryGetRuleContext(0,Tr)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_numberList}enterRule(i){i.enterNumberList&&i.enterNumberList(this);}exitRule(i){i.exitNumberList&&i.exitNumberList(this);}accept(i){return i.visitNumberList?i.visitNumberList(this):i.visitChildren(this)}}l.NumberListContext=Tr;class _n extends r.ParserRuleContext{NUM_CONST_TOK(){return this.getToken(t.NUM_CONST_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_number}enterRule(i){i.enterNumber&&i.enterNumber(this);}exitRule(i){i.exitNumber&&i.exitNumber(this);}accept(i){return i.visitNumber?i.visitNumber(this):i.visitChildren(this)}}l.NumberContext=_n;class rn extends r.ParserRuleContext{LEFT_CURLY_TOK(){return this.tryGetToken(t.LEFT_CURLY_TOK,0)}RIGHT_CURLY_TOK(){return this.tryGetToken(t.RIGHT_CURLY_TOK,0)}bound(i){return i===void 0?this.getRuleContexts(yr):this.getRuleContext(i,yr)}qualName(){return this.tryGetRuleContext(0,q)}EXACTLY_TOK(){return this.tryGetToken(t.EXACTLY_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_bounds}enterRule(i){i.enterBounds&&i.enterBounds(this);}exitRule(i){i.exitBounds&&i.exitBounds(this);}accept(i){return i.visitBounds?i.visitBounds(this):i.visitChildren(this)}}l.BoundsContext=rn;class _r extends r.ParserRuleContext{BACKQUOTE_TOK(){return this.tryGetToken(t.BACKQUOTE_TOK,0)}name(){return this.tryGetRuleContext(0,et)}number(){return this.tryGetRuleContext(0,_n)}MINUS_TOK(){return this.tryGetToken(t.MINUS_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_atomNameOrNumber}enterRule(i){i.enterAtomNameOrNumber&&i.enterAtomNameOrNumber(this);}exitRule(i){i.exitAtomNameOrNumber&&i.exitAtomNameOrNumber(this);}accept(i){return i.visitAtomNameOrNumber?i.visitAtomNameOrNumber(this):i.visitChildren(this)}}l.AtomNameOrNumberContext=_r;class yr extends r.ParserRuleContext{boundLHS(){return this.tryGetRuleContext(0,Wr)}compareOp(){return this.tryGetRuleContext(0,xt)}bindRHSUnion(){return this.tryGetRuleContext(0,yn)}NO_TOK(){return this.tryGetToken(t.NO_TOK,0)}qualName(){return this.tryGetRuleContext(0,q)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_bound}enterRule(i){i.enterBound&&i.enterBound(this);}exitRule(i){i.exitBound&&i.exitBound(this);}accept(i){return i.visitBound?i.visitBound(this):i.visitChildren(this)}}l.BoundContext=yr;class Wr extends r.ParserRuleContext{CARD_TOK(){return this.tryGetToken(t.CARD_TOK,0)}qualName(i){return i===void 0?this.getRuleContexts(q):this.getRuleContext(i,q)}atomNameOrNumber(){return this.tryGetRuleContext(0,_r)}DOT_TOK(i){return i===void 0?this.getTokens(t.DOT_TOK):this.getToken(t.DOT_TOK,i)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_boundLHS}enterRule(i){i.enterBoundLHS&&i.enterBoundLHS(this);}exitRule(i){i.exitBoundLHS&&i.exitBoundLHS(this);}accept(i){return i.visitBoundLHS?i.visitBoundLHS(this):i.visitChildren(this)}}l.BoundLHSContext=Wr;class yn extends r.ParserRuleContext{bindRHSProduct(){return this.tryGetRuleContext(0,Mn)}bindRHSUnion(){return this.tryGetRuleContext(0,yn)}PLUS_TOK(){return this.tryGetToken(t.PLUS_TOK,0)}LEFT_PAREN_TOK(){return this.tryGetToken(t.LEFT_PAREN_TOK,0)}RIGHT_PAREN_TOK(){return this.tryGetToken(t.RIGHT_PAREN_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_bindRHSUnion}enterRule(i){i.enterBindRHSUnion&&i.enterBindRHSUnion(this);}exitRule(i){i.exitBindRHSUnion&&i.exitBindRHSUnion(this);}accept(i){return i.visitBindRHSUnion?i.visitBindRHSUnion(this):i.visitChildren(this)}}l.BindRHSUnionContext=yn;class Mn extends r.ParserRuleContext{LEFT_PAREN_TOK(){return this.tryGetToken(t.LEFT_PAREN_TOK,0)}bindRHSProduct(){return this.tryGetRuleContext(0,Mn)}RIGHT_PAREN_TOK(){return this.tryGetToken(t.RIGHT_PAREN_TOK,0)}bindRHSProductBase(){return this.tryGetRuleContext(0,qr)}COMMA_TOK(){return this.tryGetToken(t.COMMA_TOK,0)}ARROW_TOK(){return this.tryGetToken(t.ARROW_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_bindRHSProduct}enterRule(i){i.enterBindRHSProduct&&i.enterBindRHSProduct(this);}exitRule(i){i.exitBindRHSProduct&&i.exitBindRHSProduct(this);}accept(i){return i.visitBindRHSProduct?i.visitBindRHSProduct(this):i.visitChildren(this)}}l.BindRHSProductContext=Mn;class qr extends r.ParserRuleContext{atomNameOrNumber(){return this.tryGetRuleContext(0,_r)}qualName(){return this.tryGetRuleContext(0,q)}LEFT_PAREN_TOK(){return this.tryGetToken(t.LEFT_PAREN_TOK,0)}bindRHSUnion(){return this.tryGetRuleContext(0,yn)}RIGHT_PAREN_TOK(){return this.tryGetToken(t.RIGHT_PAREN_TOK,0)}constructor(i,R){super(i,R);}get ruleIndex(){return t.RULE_bindRHSProductBase}enterRule(i){i.enterBindRHSProductBase&&i.enterBindRHSProductBase(this);}exitRule(i){i.exitBindRHSProductBase&&i.exitBindRHSProductBase(this);}accept(i){return i.visitBindRHSProductBase?i.visitBindRHSProductBase(this):i.visitChildren(this)}}l.BindRHSProductBaseContext=qr;}),"./src/forge-antlr/ForgeSyntaxConstructs.ts":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.Expr=l.ConsistencyAssertionTest=l.SatisfiabilityAssertionTest=l.Example=l.QuantifiedAssertionTest=l.AssertionTest=l.Test=l.Function=l.Predicate=l.Sig=l.Block=l.SyntaxNode=void 0;class f{constructor(p,t,y,v){this.startRow=p,this.startColumn=t,this.endRow=y,this.endColumn=v;}}l.SyntaxNode=f;class d extends f{constructor(p,t,y,v,S){super(p,t,y,v),this.statements=S;}}l.Block=d;class m extends f{constructor(p,t,y,v,S,N,b,U){super(p,t,y,v),this.name=S,this.body=N,this.inheritsFrom=b,this.annotation=U;}}l.Sig=m;class O extends f{constructor(p,t,y,v,S){super(p,t,y,v),this.expr=S;}}l.Expr=O;class T extends f{constructor(p,t,y,v,S,N,b){super(p,t,y,v),this.name=S,this.params=N,this.body=b;}}l.Predicate=T;class h extends f{constructor(p,t,y,v,S,N,b,U,A){super(p,t,y,v),this.name=S,this.check=N,this.body=b,this.bounds=U,this.scope=A;}}l.Test=h;class s extends f{constructor(p,t,y,v,S,N,b,U,A){super(p,t,y,v),this.pred=S,this.prop=N,this.check=b,this.bounds=U,this.scope=A;}}l.AssertionTest=s;class o extends f{constructor(p,t,y,v,S,N,b,U,A,w,F,M){super(p,t,y,v),this.pred=S,this.prop=N,this.check=b,this.disj=U,this.quantDecls=A,this.bounds=w,this.scope=F,this.predArgs=M;}}l.QuantifiedAssertionTest=o;class r extends f{constructor(p,t,y,v,S,N,b){super(p,t,y,v),this.name=S,this.testExpr=N,this.bounds=b;}}l.Example=r;class x extends f{constructor(p,t,y,v,S,N,b){super(p,t,y,v),this.name=S,this.params=N,this.body=b;}}l.Function=x;class n extends f{constructor(p,t,y,v,S,N,b,U){super(p,t,y,v),this.exp=S,this.check=N,this.bounds=b,this.scope=U;}}l.SatisfiabilityAssertionTest=n;class c extends f{constructor(p,t,y,v,S,N,b,U,A){super(p,t,y,v),this.pred=S,this.prop=N,this.consistent=b,this.bounds=U,this.scope=A;}}l.ConsistencyAssertionTest=c;}),"./src/forge-antlr/utils.ts":((D,l)=>{Object.defineProperty(l,"__esModule",{value:true}),l.FORGE_RESERVED_KEYWORDS=void 0,l.getIdentifierName=f,l.quoteIfReserved=d;function f(m){let g=m.IDENTIFIER_TOK();if(g)return g.text;let O=m.QUOTED_IDENTIFIER_TOK();return O?O.text.slice(1,-1).replace(/\\(.)/g,"$1"):m.text}function d(m,g){return g.has(m)?"`"+m.replace(/([`\\])/g,"\\$1")+"`":m}l.FORGE_RESERVED_KEYWORDS=new Set(["open","as","var","abstract","sig","extends","in","lone","some","one","two","set","func","pfunc","disj","wheat","pred","fun","assert","run","check","for","but","exactly","none","univ","iden","is","sat","unsat","theorem","forge_error","checked","test","expect","suite","all","sufficient","necessary","consistent","inconsistent","with","let","bind","or","xor","iff","implies","else","and","until","release","since","triggered","not","always","eventually","after","before","once","historically","this","sexpr","inst","eval","example","ni","no","sum","Int","option"]);}),"./src/index.ts":((D,l,f)=>{Object.defineProperty(l,"__esModule",{value:true}),l.FORGE_RESERVED_KEYWORDS=l.quoteIfReserved=l.getIdentifierName=l.SelectorSynthesisError=l.synthesizeSelectorWithWhy=l.synthesizeBinaryRelationWithWhy=l.synthesizeBinaryRelation=l.synthesizeSelector=l.ForgeExprStaticAnalyzer=l.SimpleGraphQueryEvaluator=void 0,l.analyzeForgeExpression=n;let d=f("./node_modules/antlr4ts/index.js"),m=f("./src/forge-antlr/ForgeParser.ts"),g=f("./src/forge-antlr/ForgeLexer.ts"),O=f("./src/forge-antlr/ForgeListenerImpl.ts"),T=f("./node_modules/antlr4ts/tree/ParseTreeWalker.js"),h=f("./src/ForgeExprEvaluator.ts"),s=f("./src/ForgeExprStaticAnalyzer.ts");Object.defineProperty(l,"ForgeExprStaticAnalyzer",{enumerable:true,get:function(){return s.ForgeExprStaticAnalyzer}});let o=f("./src/errorListener.ts");function r(p){let t=d.CharStreams.fromString(p),y=new g.ForgeLexer(t),v=new d.CommonTokenStream(y),S=new m.ForgeParser(v);return S.buildParseTree=true,S.removeErrorListeners(),S.addErrorListener(new o.ParseErrorListener),S}class x{constructor(t){this.forgeListener=new O.ForgeListenerImpl,this.walker=new T.ParseTreeWalker,this.parseTreeCache=new Map,this.cachedEvaluator=null,this.cachedEvaluatorDatum=null,this.datum=t;}invalidate(){this.cachedEvaluator=null,this.cachedEvaluatorDatum=null;}getExpressionParseTree(t){let v=r(t).parseExpr();if(!v||v.childCount===0)throw new Error(`Parse error in ${t}`);return v}evaluateExpression(t){let y;if(this.parseTreeCache.has(t))y=this.parseTreeCache.get(t);else try{let S=this.getExpressionParseTree(t);y=S instanceof m.ExprContext?S:S.getChild(0),this.parseTreeCache.set(t,y);}catch{return {error:new Error(`Error parsing expression "${t}"`)}}(this.cachedEvaluator===null||this.cachedEvaluatorDatum!==this.datum)&&(this.cachedEvaluator=new h.ForgeExprEvaluator(this.datum),this.cachedEvaluatorDatum=this.datum);let v=this.cachedEvaluator;try{return v.visit(y)}catch(S){if(this.cachedEvaluator=null,this.cachedEvaluatorDatum=null,S instanceof h.NameNotFoundError)return [];if(S instanceof Error){let N=S.stack,b=S.message;return {error:new Error(`Error evaluating expression "${t}": ${b}`),stackTrace:N}}return {error:new Error(`Error evaluating expression "${t}"`)}}}}l.SimpleGraphQueryEvaluator=x;function n(p,t){try{let v=r(p).parseExpr();return !v||v.childCount===0?{status:"unknown"}:new s.ForgeExprStaticAnalyzer(t).analyze(v)}catch{return {status:"unknown"}}}var c=f("./src/SelectorSynthesizer.ts");Object.defineProperty(l,"synthesizeSelector",{enumerable:true,get:function(){return c.synthesizeSelector}}),Object.defineProperty(l,"synthesizeBinaryRelation",{enumerable:true,get:function(){return c.synthesizeBinaryRelation}}),Object.defineProperty(l,"synthesizeBinaryRelationWithWhy",{enumerable:true,get:function(){return c.synthesizeBinaryRelationWithWhy}}),Object.defineProperty(l,"synthesizeSelectorWithWhy",{enumerable:true,get:function(){return c.synthesizeSelectorWithWhy}}),Object.defineProperty(l,"SelectorSynthesisError",{enumerable:true,get:function(){return c.SelectorSynthesisError}});var a=f("./src/forge-antlr/utils.ts");Object.defineProperty(l,"getIdentifierName",{enumerable:true,get:function(){return a.getIdentifierName}}),Object.defineProperty(l,"quoteIfReserved",{enumerable:true,get:function(){return a.quoteIfReserved}}),Object.defineProperty(l,"FORGE_RESERVED_KEYWORDS",{enumerable:true,get:function(){return a.FORGE_RESERVED_KEYWORDS}});})},C={};function B(D){var l=C[D];if(l!==void 0)return l.exports;var f=C[D]={id:D,loaded:false,exports:{}};return E[D].call(f.exports,f,f.exports,B),f.loaded=true,f.exports}B.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),B.nmd=D=>(D.paths=[],D.children||(D.children=[]),D);var H=B("./src/index.ts");return H})());});var U0=at((T7,M0)=>{function $O(){this.__data__=[],this.size=0;}M0.exports=$O;});var vs=at((_7,k0)=>{function YO(E,C){return E===C||E!==E&&C!==C}k0.exports=YO;});var pi=at((y7,H0)=>{var QO=vs();function XO(E,C){for(var B=E.length;B--;)if(QO(E[B][0],C))return B;return -1}H0.exports=XO;});var V0=at((O7,G0)=>{var JO=pi(),ZO=Array.prototype,tA=ZO.splice;function eA(E){var C=this.__data__,B=JO(C,E);if(B<0)return false;var H=C.length-1;return B==H?C.pop():tA.call(C,B,1),--this.size,true}G0.exports=eA;});var W0=at((A7,z0)=>{var nA=pi();function rA(E){var C=this.__data__,B=nA(C,E);return B<0?void 0:C[B][1]}z0.exports=rA;});var $0=at((g7,q0)=>{var iA=pi();function sA(E){return iA(this.__data__,E)>-1}q0.exports=sA;});var Q0=at((v7,Y0)=>{var uA=pi();function oA(E,C){var B=this.__data__,H=uA(B,E);return H<0?(++this.size,B.push([E,C])):B[H][1]=C,this}Y0.exports=oA;});var mi=at((C7,X0)=>{var lA=U0(),aA=V0(),xA=W0(),cA=$0(),hA=Q0();function Br(E){var C=-1,B=E==null?0:E.length;for(this.clear();++C<B;){var H=E[C];this.set(H[0],H[1]);}}Br.prototype.clear=lA;Br.prototype.delete=aA;Br.prototype.get=xA;Br.prototype.has=cA;Br.prototype.set=hA;X0.exports=Br;});var Z0=at((S7,J0)=>{var fA=mi();function dA(){this.__data__=new fA,this.size=0;}J0.exports=dA;});var ex=at((R7,tx)=>{function pA(E){var C=this.__data__,B=C.delete(E);return this.size=C.size,B}tx.exports=pA;});var rx=at((N7,nx)=>{function mA(E){return this.__data__.get(E)}nx.exports=mA;});var sx=at((D7,ix)=>{function EA(E){return this.__data__.has(E)}ix.exports=EA;});var lo=at((b7,ux)=>{var TA=typeof global=="object"&&global&&global.Object===Object&&global;ux.exports=TA;});var Tn=at((L7,ox)=>{var _A=lo(),yA=typeof self=="object"&&self&&self.Object===Object&&self,OA=_A||yA||Function("return this")();ox.exports=OA;});var xr=at((I7,lx)=>{var AA=Tn(),gA=AA.Symbol;lx.exports=gA;});var hx=at((w7,cx)=>{var ax=xr(),xx=Object.prototype,vA=xx.hasOwnProperty,CA=xx.toString,Ei=ax?ax.toStringTag:void 0;function SA(E){var C=vA.call(E,Ei),B=E[Ei];try{E[Ei]=void 0;var H=!0;}catch{}var D=CA.call(E);return H&&(C?E[Ei]=B:delete E[Ei]),D}cx.exports=SA;});var dx=at((B7,fx)=>{var RA=Object.prototype,NA=RA.toString;function DA(E){return NA.call(E)}fx.exports=DA;});var cr=at((F7,Ex)=>{var px=xr(),bA=hx(),LA=dx(),IA="[object Null]",wA="[object Undefined]",mx=px?px.toStringTag:void 0;function BA(E){return E==null?E===void 0?wA:IA:mx&&mx in Object(E)?bA(E):LA(E)}Ex.exports=BA;});var Yn=at((j7,Tx)=>{function FA(E){var C=typeof E;return E!=null&&(C=="object"||C=="function")}Tx.exports=FA;});var Ti=at((K7,_x)=>{var jA=cr(),KA=Yn(),PA="[object AsyncFunction]",MA="[object Function]",UA="[object GeneratorFunction]",kA="[object Proxy]";function HA(E){if(!KA(E))return false;var C=jA(E);return C==MA||C==UA||C==PA||C==kA}_x.exports=HA;});var Ox=at((P7,yx)=>{var GA=Tn(),VA=GA["__core-js_shared__"];yx.exports=VA;});var vx=at((M7,gx)=>{var ao=Ox(),Ax=(function(){var E=/[^.]+$/.exec(ao&&ao.keys&&ao.keys.IE_PROTO||"");return E?"Symbol(src)_1."+E:""})();function zA(E){return !!Ax&&Ax in E}gx.exports=zA;});var xo=at((U7,Cx)=>{var WA=Function.prototype,qA=WA.toString;function $A(E){if(E!=null){try{return qA.call(E)}catch{}try{return E+""}catch{}}return ""}Cx.exports=$A;});var Rx=at((k7,Sx)=>{var YA=Ti(),QA=vx(),XA=Yn(),JA=xo(),ZA=/[\\^$.*+?()[\]{}|]/g,tg=/^\[object .+?Constructor\]$/,eg=Function.prototype,ng=Object.prototype,rg=eg.toString,ig=ng.hasOwnProperty,sg=RegExp("^"+rg.call(ig).replace(ZA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ug(E){if(!XA(E)||QA(E))return false;var C=YA(E)?sg:tg;return C.test(JA(E))}Sx.exports=ug;});var Dx=at((H7,Nx)=>{function og(E,C){return E?.[C]}Nx.exports=og;});var Qn=at((G7,bx)=>{var lg=Rx(),ag=Dx();function xg(E,C){var B=ag(E,C);return lg(B)?B:void 0}bx.exports=xg;});var Cs=at((V7,Lx)=>{var cg=Qn(),hg=Tn(),fg=cg(hg,"Map");Lx.exports=fg;});var _i=at((z7,Ix)=>{var dg=Qn(),pg=dg(Object,"create");Ix.exports=pg;});var Fx=at((W7,Bx)=>{var wx=_i();function mg(){this.__data__=wx?wx(null):{},this.size=0;}Bx.exports=mg;});var Kx=at((q7,jx)=>{function Eg(E){var C=this.has(E)&&delete this.__data__[E];return this.size-=C?1:0,C}jx.exports=Eg;});var Mx=at(($7,Px)=>{var Tg=_i(),_g="__lodash_hash_undefined__",yg=Object.prototype,Og=yg.hasOwnProperty;function Ag(E){var C=this.__data__;if(Tg){var B=C[E];return B===_g?void 0:B}return Og.call(C,E)?C[E]:void 0}Px.exports=Ag;});var kx=at((Y7,Ux)=>{var gg=_i(),vg=Object.prototype,Cg=vg.hasOwnProperty;function Sg(E){var C=this.__data__;return gg?C[E]!==void 0:Cg.call(C,E)}Ux.exports=Sg;});var Gx=at((Q7,Hx)=>{var Rg=_i(),Ng="__lodash_hash_undefined__";function Dg(E,C){var B=this.__data__;return this.size+=this.has(E)?0:1,B[E]=Rg&&C===void 0?Ng:C,this}Hx.exports=Dg;});var zx=at((X7,Vx)=>{var bg=Fx(),Lg=Kx(),Ig=Mx(),wg=kx(),Bg=Gx();function Fr(E){var C=-1,B=E==null?0:E.length;for(this.clear();++C<B;){var H=E[C];this.set(H[0],H[1]);}}Fr.prototype.clear=bg;Fr.prototype.delete=Lg;Fr.prototype.get=Ig;Fr.prototype.has=wg;Fr.prototype.set=Bg;Vx.exports=Fr;});var $x=at((J7,qx)=>{var Wx=zx(),Fg=mi(),jg=Cs();function Kg(){this.size=0,this.__data__={hash:new Wx,map:new(jg||Fg),string:new Wx};}qx.exports=Kg;});var Qx=at((Z7,Yx)=>{function Pg(E){var C=typeof E;return C=="string"||C=="number"||C=="symbol"||C=="boolean"?E!=="__proto__":E===null}Yx.exports=Pg;});var yi=at((tF,Xx)=>{var Mg=Qx();function Ug(E,C){var B=E.__data__;return Mg(C)?B[typeof C=="string"?"string":"hash"]:B.map}Xx.exports=Ug;});var Zx=at((eF,Jx)=>{var kg=yi();function Hg(E){var C=kg(this,E).delete(E);return this.size-=C?1:0,C}Jx.exports=Hg;});var ec=at((nF,tc)=>{var Gg=yi();function Vg(E){return Gg(this,E).get(E)}tc.exports=Vg;});var rc=at((rF,nc)=>{var zg=yi();function Wg(E){return zg(this,E).has(E)}nc.exports=Wg;});var sc=at((iF,ic)=>{var qg=yi();function $g(E,C){var B=qg(this,E),H=B.size;return B.set(E,C),this.size+=B.size==H?0:1,this}ic.exports=$g;});var Ss=at((sF,uc)=>{var Yg=$x(),Qg=Zx(),Xg=ec(),Jg=rc(),Zg=sc();function jr(E){var C=-1,B=E==null?0:E.length;for(this.clear();++C<B;){var H=E[C];this.set(H[0],H[1]);}}jr.prototype.clear=Yg;jr.prototype.delete=Qg;jr.prototype.get=Xg;jr.prototype.has=Jg;jr.prototype.set=Zg;uc.exports=jr;});var lc=at((uF,oc)=>{var tv=mi(),ev=Cs(),nv=Ss(),rv=200;function iv(E,C){var B=this.__data__;if(B instanceof tv){var H=B.__data__;if(!ev||H.length<rv-1)return H.push([E,C]),this.size=++B.size,this;B=this.__data__=new nv(H);}return B.set(E,C),this.size=B.size,this}oc.exports=iv;});var Rs=at((oF,ac)=>{var sv=mi(),uv=Z0(),ov=ex(),lv=rx(),av=sx(),xv=lc();function Kr(E){var C=this.__data__=new sv(E);this.size=C.size;}Kr.prototype.clear=uv;Kr.prototype.delete=ov;Kr.prototype.get=lv;Kr.prototype.has=av;Kr.prototype.set=xv;ac.exports=Kr;});var Ns=at((lF,xc)=>{function cv(E,C){for(var B=-1,H=E==null?0:E.length;++B<H&&C(E[B],B,E)!==false;);return E}xc.exports=cv;});var co=at((aF,cc)=>{var hv=Qn(),fv=(function(){try{var E=hv(Object,"defineProperty");return E({},"",{}),E}catch{}})();cc.exports=fv;});var ho=at((xF,fc)=>{var hc=co();function dv(E,C,B){C=="__proto__"&&hc?hc(E,C,{configurable:true,enumerable:true,value:B,writable:true}):E[C]=B;}fc.exports=dv;});var fo=at((cF,dc)=>{var pv=ho(),mv=vs(),Ev=Object.prototype,Tv=Ev.hasOwnProperty;function _v(E,C,B){var H=E[C];(!(Tv.call(E,C)&&mv(H,B))||B===void 0&&!(C in E))&&pv(E,C,B);}dc.exports=_v;});var Oi=at((hF,pc)=>{var yv=fo(),Ov=ho();function Av(E,C,B,H){var D=!B;B||(B={});for(var l=-1,f=C.length;++l<f;){var d=C[l],m=H?H(B[d],E[d],d,B,E):void 0;m===void 0&&(m=E[d]),D?Ov(B,d,m):yv(B,d,m);}return B}pc.exports=Av;});var Ec=at((fF,mc)=>{function gv(E,C){for(var B=-1,H=Array(E);++B<E;)H[B]=C(B);return H}mc.exports=gv;});var vn=at((dF,Tc)=>{function vv(E){return E!=null&&typeof E=="object"}Tc.exports=vv;});var yc=at((pF,_c)=>{var Cv=cr(),Sv=vn(),Rv="[object Arguments]";function Nv(E){return Sv(E)&&Cv(E)==Rv}_c.exports=Nv;});var Ai=at((mF,gc)=>{var Oc=yc(),Dv=vn(),Ac=Object.prototype,bv=Ac.hasOwnProperty,Lv=Ac.propertyIsEnumerable,Iv=Oc((function(){return arguments})())?Oc:function(E){return Dv(E)&&bv.call(E,"callee")&&!Lv.call(E,"callee")};gc.exports=Iv;});var Fe=at((EF,vc)=>{var wv=Array.isArray;vc.exports=wv;});var Sc=at((TF,Cc)=>{function Bv(){return false}Cc.exports=Bv;});var Mr=at((gi,Pr)=>{var Fv=Tn(),jv=Sc(),Dc=typeof gi=="object"&&gi&&!gi.nodeType&&gi,Rc=Dc&&typeof Pr=="object"&&Pr&&!Pr.nodeType&&Pr,Kv=Rc&&Rc.exports===Dc,Nc=Kv?Fv.Buffer:void 0,Pv=Nc?Nc.isBuffer:void 0,Mv=Pv||jv;Pr.exports=Mv;});var po=at((_F,bc)=>{var Uv=9007199254740991,kv=/^(?:0|[1-9]\d*)$/;function Hv(E,C){var B=typeof E;return C=C??Uv,!!C&&(B=="number"||B!="symbol"&&kv.test(E))&&E>-1&&E%1==0&&E<C}bc.exports=Hv;});var Ds=at((yF,Lc)=>{var Gv=9007199254740991;function Vv(E){return typeof E=="number"&&E>-1&&E%1==0&&E<=Gv}Lc.exports=Vv;});var wc=at((OF,Ic)=>{var zv=cr(),Wv=Ds(),qv=vn(),$v="[object Arguments]",Yv="[object Array]",Qv="[object Boolean]",Xv="[object Date]",Jv="[object Error]",Zv="[object Function]",tC="[object Map]",eC="[object Number]",nC="[object Object]",rC="[object RegExp]",iC="[object Set]",sC="[object String]",uC="[object WeakMap]",oC="[object ArrayBuffer]",lC="[object DataView]",aC="[object Float32Array]",xC="[object Float64Array]",cC="[object Int8Array]",hC="[object Int16Array]",fC="[object Int32Array]",dC="[object Uint8Array]",pC="[object Uint8ClampedArray]",mC="[object Uint16Array]",EC="[object Uint32Array]",Se={};Se[aC]=Se[xC]=Se[cC]=Se[hC]=Se[fC]=Se[dC]=Se[pC]=Se[mC]=Se[EC]=true;Se[$v]=Se[Yv]=Se[oC]=Se[Qv]=Se[lC]=Se[Xv]=Se[Jv]=Se[Zv]=Se[tC]=Se[eC]=Se[nC]=Se[rC]=Se[iC]=Se[sC]=Se[uC]=false;function TC(E){return qv(E)&&Wv(E.length)&&!!Se[zv(E)]}Ic.exports=TC;});var bs=at((AF,Bc)=>{function _C(E){return function(C){return E(C)}}Bc.exports=_C;});var Ls=at((vi,Ur)=>{var yC=lo(),Fc=typeof vi=="object"&&vi&&!vi.nodeType&&vi,Ci=Fc&&typeof Ur=="object"&&Ur&&!Ur.nodeType&&Ur,OC=Ci&&Ci.exports===Fc,mo=OC&&yC.process,AC=(function(){try{var E=Ci&&Ci.require&&Ci.require("util").types;return E||mo&&mo.binding&&mo.binding("util")}catch{}})();Ur.exports=AC;});var Si=at((gF,Pc)=>{var gC=wc(),vC=bs(),jc=Ls(),Kc=jc&&jc.isTypedArray,CC=Kc?vC(Kc):gC;Pc.exports=CC;});var Eo=at((vF,Mc)=>{var SC=Ec(),RC=Ai(),NC=Fe(),DC=Mr(),bC=po(),LC=Si(),IC=Object.prototype,wC=IC.hasOwnProperty;function BC(E,C){var B=NC(E),H=!B&&RC(E),D=!B&&!H&&DC(E),l=!B&&!H&&!D&&LC(E),f=B||H||D||l,d=f?SC(E.length,String):[],m=d.length;for(var g in E)(C||wC.call(E,g))&&!(f&&(g=="length"||D&&(g=="offset"||g=="parent")||l&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||bC(g,m)))&&d.push(g);return d}Mc.exports=BC;});var Ri=at((CF,Uc)=>{var FC=Object.prototype;function jC(E){var C=E&&E.constructor,B=typeof C=="function"&&C.prototype||FC;return E===B}Uc.exports=jC;});var To=at((SF,kc)=>{function KC(E,C){return function(B){return E(C(B))}}kc.exports=KC;});var Gc=at((RF,Hc)=>{var PC=To(),MC=PC(Object.keys,Object);Hc.exports=MC;});var Is=at((NF,Vc)=>{var UC=Ri(),kC=Gc(),HC=Object.prototype,GC=HC.hasOwnProperty;function VC(E){if(!UC(E))return kC(E);var C=[];for(var B in Object(E))GC.call(E,B)&&B!="constructor"&&C.push(B);return C}Vc.exports=VC;});var Xn=at((DF,zc)=>{var zC=Ti(),WC=Ds();function qC(E){return E!=null&&WC(E.length)&&!zC(E)}zc.exports=qC;});var Jn=at((bF,Wc)=>{var $C=Eo(),YC=Is(),QC=Xn();function XC(E){return QC(E)?$C(E):YC(E)}Wc.exports=XC;});var $c=at((LF,qc)=>{var JC=Oi(),ZC=Jn();function tS(E,C){return E&&JC(C,ZC(C),E)}qc.exports=tS;});var Qc=at((IF,Yc)=>{function eS(E){var C=[];if(E!=null)for(var B in Object(E))C.push(B);return C}Yc.exports=eS;});var Jc=at((wF,Xc)=>{var nS=Yn(),rS=Ri(),iS=Qc(),sS=Object.prototype,uS=sS.hasOwnProperty;function oS(E){if(!nS(E))return iS(E);var C=rS(E),B=[];for(var H in E)H=="constructor"&&(C||!uS.call(E,H))||B.push(H);return B}Xc.exports=oS;});var ws=at((BF,Zc)=>{var lS=Eo(),aS=Jc(),xS=Xn();function cS(E){return xS(E)?lS(E,true):aS(E)}Zc.exports=cS;});var eh=at((FF,th)=>{var hS=Oi(),fS=ws();function dS(E,C){return E&&hS(C,fS(C),E)}th.exports=dS;});var uh=at((Ni,kr)=>{var pS=Tn(),sh=typeof Ni=="object"&&Ni&&!Ni.nodeType&&Ni,nh=sh&&typeof kr=="object"&&kr&&!kr.nodeType&&kr,mS=nh&&nh.exports===sh,rh=mS?pS.Buffer:void 0,ih=rh?rh.allocUnsafe:void 0;function ES(E,C){if(C)return E.slice();var B=E.length,H=ih?ih(B):new E.constructor(B);return E.copy(H),H}kr.exports=ES;});var lh=at((jF,oh)=>{function TS(E,C){var B=-1,H=E.length;for(C||(C=Array(H));++B<H;)C[B]=E[B];return C}oh.exports=TS;});var _o=at((KF,ah)=>{function _S(E,C){for(var B=-1,H=E==null?0:E.length,D=0,l=[];++B<H;){var f=E[B];C(f,B,E)&&(l[D++]=f);}return l}ah.exports=_S;});var yo=at((PF,xh)=>{function yS(){return []}xh.exports=yS;});var Bs=at((MF,hh)=>{var OS=_o(),AS=yo(),gS=Object.prototype,vS=gS.propertyIsEnumerable,ch=Object.getOwnPropertySymbols,CS=ch?function(E){return E==null?[]:(E=Object(E),OS(ch(E),function(C){return vS.call(E,C)}))}:AS;hh.exports=CS;});var dh=at((UF,fh)=>{var SS=Oi(),RS=Bs();function NS(E,C){return SS(E,RS(E),C)}fh.exports=NS;});var Fs=at((kF,ph)=>{function DS(E,C){for(var B=-1,H=C.length,D=E.length;++B<H;)E[D+B]=C[B];return E}ph.exports=DS;});var js=at((HF,mh)=>{var bS=To(),LS=bS(Object.getPrototypeOf,Object);mh.exports=LS;});var Oo=at((GF,Eh)=>{var IS=Fs(),wS=js(),BS=Bs(),FS=yo(),jS=Object.getOwnPropertySymbols,KS=jS?function(E){for(var C=[];E;)IS(C,BS(E)),E=wS(E);return C}:FS;Eh.exports=KS;});var _h=at((VF,Th)=>{var PS=Oi(),MS=Oo();function US(E,C){return PS(E,MS(E),C)}Th.exports=US;});var Ao=at((zF,yh)=>{var kS=Fs(),HS=Fe();function GS(E,C,B){var H=C(E);return HS(E)?H:kS(H,B(E))}yh.exports=GS;});var go=at((WF,Oh)=>{var VS=Ao(),zS=Bs(),WS=Jn();function qS(E){return VS(E,WS,zS)}Oh.exports=qS;});var gh=at((qF,Ah)=>{var $S=Ao(),YS=Oo(),QS=ws();function XS(E){return $S(E,QS,YS)}Ah.exports=XS;});var Ch=at(($F,vh)=>{var JS=Qn(),ZS=Tn(),tR=JS(ZS,"DataView");vh.exports=tR;});var Rh=at((YF,Sh)=>{var eR=Qn(),nR=Tn(),rR=eR(nR,"Promise");Sh.exports=rR;});var vo=at((QF,Nh)=>{var iR=Qn(),sR=Tn(),uR=iR(sR,"Set");Nh.exports=uR;});var bh=at((XF,Dh)=>{var oR=Qn(),lR=Tn(),aR=oR(lR,"WeakMap");Dh.exports=aR;});var fr=at((JF,Kh)=>{var Co=Ch(),So=Cs(),Ro=Rh(),No=vo(),Do=bh(),jh=cr(),Hr=xo(),Lh="[object Map]",xR="[object Object]",Ih="[object Promise]",wh="[object Set]",Bh="[object WeakMap]",Fh="[object DataView]",cR=Hr(Co),hR=Hr(So),fR=Hr(Ro),dR=Hr(No),pR=Hr(Do),hr=jh;(Co&&hr(new Co(new ArrayBuffer(1)))!=Fh||So&&hr(new So)!=Lh||Ro&&hr(Ro.resolve())!=Ih||No&&hr(new No)!=wh||Do&&hr(new Do)!=Bh)&&(hr=function(E){var C=jh(E),B=C==xR?E.constructor:void 0,H=B?Hr(B):"";if(H)switch(H){case cR:return Fh;case hR:return Lh;case fR:return Ih;case dR:return wh;case pR:return Bh}return C});Kh.exports=hr;});var Mh=at((ZF,Ph)=>{var mR=Object.prototype,ER=mR.hasOwnProperty;function TR(E){var C=E.length,B=new E.constructor(C);return C&&typeof E[0]=="string"&&ER.call(E,"index")&&(B.index=E.index,B.input=E.input),B}Ph.exports=TR;});var bo=at((tj,Uh)=>{var _R=Tn(),yR=_R.Uint8Array;Uh.exports=yR;});var Ks=at((ej,Hh)=>{var kh=bo();function OR(E){var C=new E.constructor(E.byteLength);return new kh(C).set(new kh(E)),C}Hh.exports=OR;});var Vh=at((nj,Gh)=>{var AR=Ks();function gR(E,C){var B=C?AR(E.buffer):E.buffer;return new E.constructor(B,E.byteOffset,E.byteLength)}Gh.exports=gR;});var Wh=at((rj,zh)=>{var vR=/\w*$/;function CR(E){var C=new E.constructor(E.source,vR.exec(E));return C.lastIndex=E.lastIndex,C}zh.exports=CR;});var Xh=at((ij,Qh)=>{var qh=xr(),$h=qh?qh.prototype:void 0,Yh=$h?$h.valueOf:void 0;function SR(E){return Yh?Object(Yh.call(E)):{}}Qh.exports=SR;});var Zh=at((sj,Jh)=>{var RR=Ks();function NR(E,C){var B=C?RR(E.buffer):E.buffer;return new E.constructor(B,E.byteOffset,E.length)}Jh.exports=NR;});var ef=at((uj,tf)=>{var DR=Ks(),bR=Vh(),LR=Wh(),IR=Xh(),wR=Zh(),BR="[object Boolean]",FR="[object Date]",jR="[object Map]",KR="[object Number]",PR="[object RegExp]",MR="[object Set]",UR="[object String]",kR="[object Symbol]",HR="[object ArrayBuffer]",GR="[object DataView]",VR="[object Float32Array]",zR="[object Float64Array]",WR="[object Int8Array]",qR="[object Int16Array]",$R="[object Int32Array]",YR="[object Uint8Array]",QR="[object Uint8ClampedArray]",XR="[object Uint16Array]",JR="[object Uint32Array]";function ZR(E,C,B){var H=E.constructor;switch(C){case HR:return DR(E);case BR:case FR:return new H(+E);case GR:return bR(E,B);case VR:case zR:case WR:case qR:case $R:case YR:case QR:case XR:case JR:return wR(E,B);case jR:return new H;case KR:case UR:return new H(E);case PR:return LR(E);case MR:return new H;case kR:return IR(E)}}tf.exports=ZR;});var Lo=at((oj,rf)=>{var tN=Yn(),nf=Object.create,eN=(function(){function E(){}return function(C){if(!tN(C))return {};if(nf)return nf(C);E.prototype=C;var B=new E;return E.prototype=void 0,B}})();rf.exports=eN;});var uf=at((lj,sf)=>{var nN=Lo(),rN=js(),iN=Ri();function sN(E){return typeof E.constructor=="function"&&!iN(E)?nN(rN(E)):{}}sf.exports=sN;});var lf=at((aj,of)=>{var uN=fr(),oN=vn(),lN="[object Map]";function aN(E){return oN(E)&&uN(E)==lN}of.exports=aN;});var hf=at((xj,cf)=>{var xN=lf(),cN=bs(),af=Ls(),xf=af&&af.isMap,hN=xf?cN(xf):xN;cf.exports=hN;});var df=at((cj,ff)=>{var fN=fr(),dN=vn(),pN="[object Set]";function mN(E){return dN(E)&&fN(E)==pN}ff.exports=mN;});var Tf=at((hj,Ef)=>{var EN=df(),TN=bs(),pf=Ls(),mf=pf&&pf.isSet,_N=mf?TN(mf):EN;Ef.exports=_N;});var gf=at((fj,Af)=>{var yN=Rs(),ON=Ns(),AN=fo(),gN=$c(),vN=eh(),CN=uh(),SN=lh(),RN=dh(),NN=_h(),DN=go(),bN=gh(),LN=fr(),IN=Mh(),wN=ef(),BN=uf(),FN=Fe(),jN=Mr(),KN=hf(),PN=Yn(),MN=Tf(),UN=Jn(),kN=ws(),HN=1,GN=2,VN=4,_f="[object Arguments]",zN="[object Array]",WN="[object Boolean]",qN="[object Date]",$N="[object Error]",yf="[object Function]",YN="[object GeneratorFunction]",QN="[object Map]",XN="[object Number]",Of="[object Object]",JN="[object RegExp]",ZN="[object Set]",tD="[object String]",eD="[object Symbol]",nD="[object WeakMap]",rD="[object ArrayBuffer]",iD="[object DataView]",sD="[object Float32Array]",uD="[object Float64Array]",oD="[object Int8Array]",lD="[object Int16Array]",aD="[object Int32Array]",xD="[object Uint8Array]",cD="[object Uint8ClampedArray]",hD="[object Uint16Array]",fD="[object Uint32Array]",ve={};ve[_f]=ve[zN]=ve[rD]=ve[iD]=ve[WN]=ve[qN]=ve[sD]=ve[uD]=ve[oD]=ve[lD]=ve[aD]=ve[QN]=ve[XN]=ve[Of]=ve[JN]=ve[ZN]=ve[tD]=ve[eD]=ve[xD]=ve[cD]=ve[hD]=ve[fD]=true;ve[$N]=ve[yf]=ve[nD]=false;function Ps(E,C,B,H,D,l){var f,d=C&HN,m=C&GN,g=C&VN;if(B&&(f=D?B(E,H,D,l):B(E)),f!==void 0)return f;if(!PN(E))return E;var O=FN(E);if(O){if(f=IN(E),!d)return SN(E,f)}else {var T=LN(E),h=T==yf||T==YN;if(jN(E))return CN(E,d);if(T==Of||T==_f||h&&!D){if(f=m||h?{}:BN(E),!d)return m?NN(E,vN(f,E)):RN(E,gN(f,E))}else {if(!ve[T])return D?E:{};f=wN(E,T,d);}}l||(l=new yN);var s=l.get(E);if(s)return s;l.set(E,f),MN(E)?E.forEach(function(x){f.add(Ps(x,C,B,x,E,l));}):KN(E)&&E.forEach(function(x,n){f.set(n,Ps(x,C,B,n,E,l));});var o=g?m?bN:DN:m?kN:UN,r=O?void 0:o(E);return ON(r||E,function(x,n){r&&(n=x,x=E[n]),AN(f,n,Ps(x,C,B,n,E,l));}),f}Af.exports=Ps;});var Cf=at((dj,vf)=>{var dD=gf(),pD=4;function mD(E){return dD(E,pD)}vf.exports=mD;});var Io=at((pj,Sf)=>{function ED(E){return function(){return E}}Sf.exports=ED;});var Nf=at((mj,Rf)=>{function TD(E){return function(C,B,H){for(var D=-1,l=Object(C),f=H(C),d=f.length;d--;){var m=f[E?d:++D];if(B(l[m],m,l)===false)break}return C}}Rf.exports=TD;});var bf=at((Ej,Df)=>{var _D=Nf(),yD=_D();Df.exports=yD;});var wo=at((Tj,Lf)=>{var OD=bf(),AD=Jn();function gD(E,C){return E&&OD(E,C,AD)}Lf.exports=gD;});var wf=at((_j,If)=>{var vD=Xn();function CD(E,C){return function(B,H){if(B==null)return B;if(!vD(B))return E(B,H);for(var D=B.length,l=C?D:-1,f=Object(B);(C?l--:++l<D)&&H(f[l],l,f)!==false;);return B}}If.exports=CD;});var Di=at((yj,Bf)=>{var SD=wo(),RD=wf(),ND=RD(SD);Bf.exports=ND;});var bi=at((Oj,Ff)=>{function DD(E){return E}Ff.exports=DD;});var Kf=at((Aj,jf)=>{var bD=bi();function LD(E){return typeof E=="function"?E:bD}jf.exports=LD;});var Mf=at((gj,Pf)=>{var ID=Ns(),wD=Di(),BD=Kf(),FD=Fe();function jD(E,C){var B=FD(E)?ID:wD;return B(E,BD(C))}Pf.exports=jD;});var kf=at((vj,Uf)=>{Uf.exports=Mf();});var Gf=at((Cj,Hf)=>{var KD=Di();function PD(E,C){var B=[];return KD(E,function(H,D,l){C(H,D,l)&&B.push(H);}),B}Hf.exports=PD;});var zf=at((Sj,Vf)=>{var MD="__lodash_hash_undefined__";function UD(E){return this.__data__.set(E,MD),this}Vf.exports=UD;});var qf=at((Rj,Wf)=>{function kD(E){return this.__data__.has(E)}Wf.exports=kD;});var Bo=at((Nj,$f)=>{var HD=Ss(),GD=zf(),VD=qf();function Ms(E){var C=-1,B=E==null?0:E.length;for(this.__data__=new HD;++C<B;)this.add(E[C]);}Ms.prototype.add=Ms.prototype.push=GD;Ms.prototype.has=VD;$f.exports=Ms;});var Qf=at((Dj,Yf)=>{function zD(E,C){for(var B=-1,H=E==null?0:E.length;++B<H;)if(C(E[B],B,E))return true;return false}Yf.exports=zD;});var Fo=at((bj,Xf)=>{function WD(E,C){return E.has(C)}Xf.exports=WD;});var jo=at((Lj,Jf)=>{var qD=Bo(),$D=Qf(),YD=Fo(),QD=1,XD=2;function JD(E,C,B,H,D,l){var f=B&QD,d=E.length,m=C.length;if(d!=m&&!(f&&m>d))return false;var g=l.get(E),O=l.get(C);if(g&&O)return g==C&&O==E;var T=-1,h=true,s=B&XD?new qD:void 0;for(l.set(E,C),l.set(C,E);++T<d;){var o=E[T],r=C[T];if(H)var x=f?H(r,o,T,C,E,l):H(o,r,T,E,C,l);if(x!==void 0){if(x)continue;h=false;break}if(s){if(!$D(C,function(n,c){if(!YD(s,c)&&(o===n||D(o,n,B,H,l)))return s.push(c)})){h=false;break}}else if(!(o===r||D(o,r,B,H,l))){h=false;break}}return l.delete(E),l.delete(C),h}Jf.exports=JD;});var td=at((Ij,Zf)=>{function ZD(E){var C=-1,B=Array(E.size);return E.forEach(function(H,D){B[++C]=[D,H];}),B}Zf.exports=ZD;});var Us=at((wj,ed)=>{function tb(E){var C=-1,B=Array(E.size);return E.forEach(function(H){B[++C]=H;}),B}ed.exports=tb;});var ud=at((Bj,sd)=>{var nd=xr(),rd=bo(),eb=vs(),nb=jo(),rb=td(),ib=Us(),sb=1,ub=2,ob="[object Boolean]",lb="[object Date]",ab="[object Error]",xb="[object Map]",cb="[object Number]",hb="[object RegExp]",fb="[object Set]",db="[object String]",pb="[object Symbol]",mb="[object ArrayBuffer]",Eb="[object DataView]",id=nd?nd.prototype:void 0,Ko=id?id.valueOf:void 0;function Tb(E,C,B,H,D,l,f){switch(B){case Eb:if(E.byteLength!=C.byteLength||E.byteOffset!=C.byteOffset)return false;E=E.buffer,C=C.buffer;case mb:return !(E.byteLength!=C.byteLength||!l(new rd(E),new rd(C)));case ob:case lb:case cb:return eb(+E,+C);case ab:return E.name==C.name&&E.message==C.message;case hb:case db:return E==C+"";case xb:var d=rb;case fb:var m=H&sb;if(d||(d=ib),E.size!=C.size&&!m)return false;var g=f.get(E);if(g)return g==C;H|=ub,f.set(E,C);var O=nb(d(E),d(C),H,D,l,f);return f.delete(E),O;case pb:if(Ko)return Ko.call(E)==Ko.call(C)}return false}sd.exports=Tb;});var ad=at((Fj,ld)=>{var od=go(),_b=1,yb=Object.prototype,Ob=yb.hasOwnProperty;function Ab(E,C,B,H,D,l){var f=B&_b,d=od(E),m=d.length,g=od(C),O=g.length;if(m!=O&&!f)return false;for(var T=m;T--;){var h=d[T];if(!(f?h in C:Ob.call(C,h)))return false}var s=l.get(E),o=l.get(C);if(s&&o)return s==C&&o==E;var r=true;l.set(E,C),l.set(C,E);for(var x=f;++T<m;){h=d[T];var n=E[h],c=C[h];if(H)var a=f?H(c,n,h,C,E,l):H(n,c,h,E,C,l);if(!(a===void 0?n===c||D(n,c,B,H,l):a)){r=false;break}x||(x=h=="constructor");}if(r&&!x){var p=E.constructor,t=C.constructor;p!=t&&"constructor"in E&&"constructor"in C&&!(typeof p=="function"&&p instanceof p&&typeof t=="function"&&t instanceof t)&&(r=false);}return l.delete(E),l.delete(C),r}ld.exports=Ab;});var Ed=at((jj,md)=>{var Po=Rs(),gb=jo(),vb=ud(),Cb=ad(),xd=fr(),cd=Fe(),hd=Mr(),Sb=Si(),Rb=1,fd="[object Arguments]",dd="[object Array]",ks="[object Object]",Nb=Object.prototype,pd=Nb.hasOwnProperty;function Db(E,C,B,H,D,l){var f=cd(E),d=cd(C),m=f?dd:xd(E),g=d?dd:xd(C);m=m==fd?ks:m,g=g==fd?ks:g;var O=m==ks,T=g==ks,h=m==g;if(h&&hd(E)){if(!hd(C))return false;f=true,O=false;}if(h&&!O)return l||(l=new Po),f||Sb(E)?gb(E,C,B,H,D,l):vb(E,C,m,B,H,D,l);if(!(B&Rb)){var s=O&&pd.call(E,"__wrapped__"),o=T&&pd.call(C,"__wrapped__");if(s||o){var r=s?E.value():E,x=o?C.value():C;return l||(l=new Po),D(r,x,B,H,l)}}return h?(l||(l=new Po),Cb(E,C,B,H,D,l)):false}md.exports=Db;});var Mo=at((Kj,yd)=>{var bb=Ed(),Td=vn();function _d(E,C,B,H,D){return E===C?true:E==null||C==null||!Td(E)&&!Td(C)?E!==E&&C!==C:bb(E,C,B,H,_d,D)}yd.exports=_d;});var Ad=at((Pj,Od)=>{var Lb=Rs(),Ib=Mo(),wb=1,Bb=2;function Fb(E,C,B,H){var D=B.length,l=D,f=!H;if(E==null)return !l;for(E=Object(E);D--;){var d=B[D];if(f&&d[2]?d[1]!==E[d[0]]:!(d[0]in E))return false}for(;++D<l;){d=B[D];var m=d[0],g=E[m],O=d[1];if(f&&d[2]){if(g===void 0&&!(m in E))return false}else {var T=new Lb;if(H)var h=H(g,O,m,E,C,T);if(!(h===void 0?Ib(O,g,wb|Bb,H,T):h))return false}}return true}Od.exports=Fb;});var Uo=at((Mj,gd)=>{var jb=Yn();function Kb(E){return E===E&&!jb(E)}gd.exports=Kb;});var Cd=at((Uj,vd)=>{var Pb=Uo(),Mb=Jn();function Ub(E){for(var C=Mb(E),B=C.length;B--;){var H=C[B],D=E[H];C[B]=[H,D,Pb(D)];}return C}vd.exports=Ub;});var ko=at((kj,Sd)=>{function kb(E,C){return function(B){return B==null?false:B[E]===C&&(C!==void 0||E in Object(B))}}Sd.exports=kb;});var Nd=at((Hj,Rd)=>{var Hb=Ad(),Gb=Cd(),Vb=ko();function zb(E){var C=Gb(E);return C.length==1&&C[0][2]?Vb(C[0][0],C[0][1]):function(B){return B===E||Hb(B,E,C)}}Rd.exports=zb;});var Hs=at((Gj,Dd)=>{var Wb=cr(),qb=vn(),$b="[object Symbol]";function Yb(E){return typeof E=="symbol"||qb(E)&&Wb(E)==$b}Dd.exports=Yb;});var Gs=at((Vj,bd)=>{var Qb=Fe(),Xb=Hs(),Jb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zb=/^\w*$/;function tL(E,C){if(Qb(E))return false;var B=typeof E;return B=="number"||B=="symbol"||B=="boolean"||E==null||Xb(E)?true:Zb.test(E)||!Jb.test(E)||C!=null&&E in Object(C)}bd.exports=tL;});var wd=at((zj,Id)=>{var Ld=Ss(),eL="Expected a function";function Ho(E,C){if(typeof E!="function"||C!=null&&typeof C!="function")throw new TypeError(eL);var B=function(){var H=arguments,D=C?C.apply(this,H):H[0],l=B.cache;if(l.has(D))return l.get(D);var f=E.apply(this,H);return B.cache=l.set(D,f)||l,f};return B.cache=new(Ho.Cache||Ld),B}Ho.Cache=Ld;Id.exports=Ho;});var Fd=at((Wj,Bd)=>{var nL=wd(),rL=500;function iL(E){var C=nL(E,function(H){return B.size===rL&&B.clear(),H}),B=C.cache;return C}Bd.exports=iL;});var Kd=at((qj,jd)=>{var sL=Fd(),uL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oL=/\\(\\)?/g,lL=sL(function(E){var C=[];return E.charCodeAt(0)===46&&C.push(""),E.replace(uL,function(B,H,D,l){C.push(D?l.replace(oL,"$1"):H||B);}),C});jd.exports=lL;});var Vs=at(($j,Pd)=>{function aL(E,C){for(var B=-1,H=E==null?0:E.length,D=Array(H);++B<H;)D[B]=C(E[B],B,E);return D}Pd.exports=aL;});var Vd=at((Yj,Gd)=>{var Md=xr(),xL=Vs(),cL=Fe(),hL=Hs(),Ud=Md?Md.prototype:void 0,kd=Ud?Ud.toString:void 0;function Hd(E){if(typeof E=="string")return E;if(cL(E))return xL(E,Hd)+"";if(hL(E))return kd?kd.call(E):"";var C=E+"";return C=="0"&&1/E==-Infinity?"-0":C}Gd.exports=Hd;});var Wd=at((Qj,zd)=>{var dL=Vd();function pL(E){return E==null?"":dL(E)}zd.exports=pL;});var Go=at((Xj,qd)=>{var mL=Fe(),EL=Gs(),TL=Kd(),_L=Wd();function yL(E,C){return mL(E)?E:EL(E,C)?[E]:TL(_L(E))}qd.exports=yL;});var Li=at((Jj,$d)=>{var OL=Hs();function gL(E){if(typeof E=="string"||OL(E))return E;var C=E+"";return C=="0"&&1/E==-Infinity?"-0":C}$d.exports=gL;});var Vo=at((Zj,Yd)=>{var vL=Go(),CL=Li();function SL(E,C){C=vL(C,E);for(var B=0,H=C.length;E!=null&&B<H;)E=E[CL(C[B++])];return B&&B==H?E:void 0}Yd.exports=SL;});var Xd=at((tK,Qd)=>{var RL=Vo();function NL(E,C,B){var H=E==null?void 0:RL(E,C);return H===void 0?B:H}Qd.exports=NL;});var Zd=at((eK,Jd)=>{function DL(E,C){return E!=null&&C in Object(E)}Jd.exports=DL;});var zo=at((nK,t2)=>{var bL=Go(),LL=Ai(),IL=Fe(),wL=po(),BL=Ds(),FL=Li();function jL(E,C,B){C=bL(C,E);for(var H=-1,D=C.length,l=false;++H<D;){var f=FL(C[H]);if(!(l=E!=null&&B(E,f)))break;E=E[f];}return l||++H!=D?l:(D=E==null?0:E.length,!!D&&BL(D)&&wL(f,D)&&(IL(E)||LL(E)))}t2.exports=jL;});var n2=at((rK,e2)=>{var KL=Zd(),PL=zo();function ML(E,C){return E!=null&&PL(E,C,KL)}e2.exports=ML;});var i2=at((iK,r2)=>{var UL=Mo(),kL=Xd(),HL=n2(),GL=Gs(),VL=Uo(),zL=ko(),WL=Li(),qL=1,$L=2;function YL(E,C){return GL(E)&&VL(C)?zL(WL(E),C):function(B){var H=kL(B,E);return H===void 0&&H===C?HL(B,E):UL(C,H,qL|$L)}}r2.exports=YL;});var Wo=at((sK,s2)=>{function QL(E){return function(C){return C?.[E]}}s2.exports=QL;});var o2=at((uK,u2)=>{var XL=Vo();function JL(E){return function(C){return XL(C,E)}}u2.exports=JL;});var a2=at((oK,l2)=>{var ZL=Wo(),tI=o2(),eI=Gs(),nI=Li();function rI(E){return eI(E)?ZL(nI(E)):tI(E)}l2.exports=rI;});var Ii=at((lK,x2)=>{var iI=Nd(),sI=i2(),uI=bi(),oI=Fe(),lI=a2();function aI(E){return typeof E=="function"?E:E==null?uI:typeof E=="object"?oI(E)?sI(E[0],E[1]):iI(E):lI(E)}x2.exports=aI;});var h2=at((aK,c2)=>{var xI=_o(),cI=Gf(),hI=Ii(),fI=Fe();function dI(E,C){var B=fI(E)?xI:cI;return B(E,hI(C,3))}c2.exports=dI;});var d2=at((xK,f2)=>{var pI=Object.prototype,mI=pI.hasOwnProperty;function EI(E,C){return E!=null&&mI.call(E,C)}f2.exports=EI;});var m2=at((cK,p2)=>{var TI=d2(),_I=zo();function yI(E,C){return E!=null&&_I(E,C,TI)}p2.exports=yI;});var T2=at((hK,E2)=>{var OI=Is(),AI=fr(),gI=Ai(),vI=Fe(),CI=Xn(),SI=Mr(),RI=Ri(),NI=Si(),DI="[object Map]",bI="[object Set]",LI=Object.prototype,II=LI.hasOwnProperty;function wI(E){if(E==null)return true;if(CI(E)&&(vI(E)||typeof E=="string"||typeof E.splice=="function"||SI(E)||NI(E)||gI(E)))return !E.length;var C=AI(E);if(C==DI||C==bI)return !E.size;if(RI(E))return !OI(E).length;for(var B in E)if(II.call(E,B))return false;return true}E2.exports=wI;});var y2=at((fK,_2)=>{function BI(E){return E===void 0}_2.exports=BI;});var A2=at((dK,O2)=>{var FI=Di(),jI=Xn();function KI(E,C){var B=-1,H=jI(E)?Array(E.length):[];return FI(E,function(D,l,f){H[++B]=C(D,l,f);}),H}O2.exports=KI;});var v2=at((pK,g2)=>{var PI=Vs(),MI=Ii(),UI=A2(),kI=Fe();function HI(E,C){var B=kI(E)?PI:UI;return B(E,MI(C,3))}g2.exports=HI;});var S2=at((mK,C2)=>{function GI(E,C,B,H){var D=-1,l=E==null?0:E.length;for(H&&l&&(B=E[++D]);++D<l;)B=C(B,E[D],D,E);return B}C2.exports=GI;});var N2=at((EK,R2)=>{function VI(E,C,B,H,D){return D(E,function(l,f,d){B=H?(H=false,l):C(B,l,f,d);}),B}R2.exports=VI;});var b2=at((TK,D2)=>{var zI=S2(),WI=Di(),qI=Ii(),$I=N2(),YI=Fe();function QI(E,C,B){var H=YI(E)?zI:$I,D=arguments.length<3;return H(E,qI(C,4),B,D,WI)}D2.exports=QI;});var I2=at((_K,L2)=>{var XI=cr(),JI=Fe(),ZI=vn(),t4="[object String]";function e4(E){return typeof E=="string"||!JI(E)&&ZI(E)&&XI(E)==t4}L2.exports=e4;});var B2=at((yK,w2)=>{var n4=Wo(),r4=n4("length");w2.exports=r4;});var j2=at((OK,F2)=>{var i4="\\ud800-\\udfff",s4="\\u0300-\\u036f",u4="\\ufe20-\\ufe2f",o4="\\u20d0-\\u20ff",l4=s4+u4+o4,a4="\\ufe0e\\ufe0f",x4="\\u200d",c4=RegExp("["+x4+i4+l4+a4+"]");function h4(E){return c4.test(E)}F2.exports=h4;});var z2=at((AK,V2)=>{var P2="\\ud800-\\udfff",f4="\\u0300-\\u036f",d4="\\ufe20-\\ufe2f",p4="\\u20d0-\\u20ff",m4=f4+d4+p4,E4="\\ufe0e\\ufe0f",T4="["+P2+"]",qo="["+m4+"]",$o="\\ud83c[\\udffb-\\udfff]",_4="(?:"+qo+"|"+$o+")",M2="[^"+P2+"]",U2="(?:\\ud83c[\\udde6-\\uddff]){2}",k2="[\\ud800-\\udbff][\\udc00-\\udfff]",y4="\\u200d",H2=_4+"?",G2="["+E4+"]?",O4="(?:"+y4+"(?:"+[M2,U2,k2].join("|")+")"+G2+H2+")*",A4=G2+H2+O4,g4="(?:"+[M2+qo+"?",qo,U2,k2,T4].join("|")+")",K2=RegExp($o+"(?="+$o+")|"+g4+A4,"g");function v4(E){for(var C=K2.lastIndex=0;K2.test(E);)++C;return C}V2.exports=v4;});var q2=at((gK,W2)=>{var C4=B2(),S4=j2(),R4=z2();function N4(E){return S4(E)?R4(E):C4(E)}W2.exports=N4;});var Y2=at((vK,$2)=>{var D4=Is(),b4=fr(),L4=Xn(),I4=I2(),w4=q2(),B4="[object Map]",F4="[object Set]";function j4(E){if(E==null)return 0;if(L4(E))return I4(E)?w4(E):E.length;var C=b4(E);return C==B4||C==F4?E.size:D4(E).length}$2.exports=j4;});var X2=at((CK,Q2)=>{var K4=Ns(),P4=Lo(),M4=wo(),U4=Ii(),k4=js(),H4=Fe(),G4=Mr(),V4=Ti(),z4=Yn(),W4=Si();function q4(E,C,B){var H=H4(E),D=H||G4(E)||W4(E);if(C=U4(C,4),B==null){var l=E&&E.constructor;D?B=H?new l:[]:z4(E)?B=V4(l)?P4(k4(E)):{}:B={};}return (D?K4:M4)(E,function(f,d,m){return C(B,f,d,m)}),B}Q2.exports=q4;});var ep=at((SK,tp)=>{var J2=xr(),$4=Ai(),Y4=Fe(),Z2=J2?J2.isConcatSpreadable:void 0;function Q4(E){return Y4(E)||$4(E)||!!(Z2&&E&&E[Z2])}tp.exports=Q4;});var ip=at((RK,rp)=>{var X4=Fs(),J4=ep();function np(E,C,B,H,D){var l=-1,f=E.length;for(B||(B=J4),D||(D=[]);++l<f;){var d=E[l];C>0&&B(d)?C>1?np(d,C-1,B,H,D):X4(D,d):H||(D[D.length]=d);}return D}rp.exports=np;});var up=at((NK,sp)=>{function Z4(E,C,B){switch(B.length){case 0:return E.call(C);case 1:return E.call(C,B[0]);case 2:return E.call(C,B[0],B[1]);case 3:return E.call(C,B[0],B[1],B[2])}return E.apply(C,B)}sp.exports=Z4;});var ap=at((DK,lp)=>{var tw=up(),op=Math.max;function ew(E,C,B){return C=op(C===void 0?E.length-1:C,0),function(){for(var H=arguments,D=-1,l=op(H.length-C,0),f=Array(l);++D<l;)f[D]=H[C+D];D=-1;for(var d=Array(C+1);++D<C;)d[D]=H[D];return d[C]=B(f),tw(E,this,d)}}lp.exports=ew;});var hp=at((bK,cp)=>{var nw=Io(),xp=co(),rw=bi(),iw=xp?function(E,C){return xp(E,"toString",{configurable:true,enumerable:false,value:nw(C),writable:true})}:rw;cp.exports=iw;});var dp=at((LK,fp)=>{var sw=800,uw=16,ow=Date.now;function lw(E){var C=0,B=0;return function(){var H=ow(),D=uw-(H-B);if(B=H,D>0){if(++C>=sw)return arguments[0]}else C=0;return E.apply(void 0,arguments)}}fp.exports=lw;});var mp=at((IK,pp)=>{var aw=hp(),xw=dp(),cw=xw(aw);pp.exports=cw;});var Tp=at((wK,Ep)=>{var hw=bi(),fw=ap(),dw=mp();function pw(E,C){return dw(fw(E,C,hw),E+"")}Ep.exports=pw;});var yp=at((BK,_p)=>{function mw(E,C,B,H){for(var D=E.length,l=B+(H?1:-1);H?l--:++l<D;)if(C(E[l],l,E))return l;return -1}_p.exports=mw;});var Ap=at((FK,Op)=>{function Ew(E){return E!==E}Op.exports=Ew;});var vp=at((jK,gp)=>{function Tw(E,C,B){for(var H=B-1,D=E.length;++H<D;)if(E[H]===C)return H;return -1}gp.exports=Tw;});var Sp=at((KK,Cp)=>{var _w=yp(),yw=Ap(),Ow=vp();function Aw(E,C,B){return C===C?Ow(E,C,B):_w(E,yw,B)}Cp.exports=Aw;});var Np=at((PK,Rp)=>{var gw=Sp();function vw(E,C){var B=E==null?0:E.length;return !!B&&gw(E,C,0)>-1}Rp.exports=vw;});var bp=at((MK,Dp)=>{function Cw(E,C,B){for(var H=-1,D=E==null?0:E.length;++H<D;)if(B(C,E[H]))return true;return false}Dp.exports=Cw;});var Ip=at((UK,Lp)=>{function Sw(){}Lp.exports=Sw;});var Bp=at((kK,wp)=>{var Yo=vo(),Rw=Ip(),Nw=Us(),Dw=1/0,bw=Yo&&1/Nw(new Yo([,-0]))[1]==Dw?function(E){return new Yo(E)}:Rw;wp.exports=bw;});var jp=at((HK,Fp)=>{var Lw=Bo(),Iw=Np(),ww=bp(),Bw=Fo(),Fw=Bp(),jw=Us(),Kw=200;function Pw(E,C,B){var H=-1,D=Iw,l=E.length,f=true,d=[],m=d;if(B)f=false,D=ww;else if(l>=Kw){var g=C?null:Fw(E);if(g)return jw(g);f=false,D=Bw,m=new Lw;}else m=C?[]:d;t:for(;++H<l;){var O=E[H],T=C?C(O):O;if(O=B||O!==0?O:0,f&&T===T){for(var h=m.length;h--;)if(m[h]===T)continue t;C&&m.push(T),d.push(O);}else D(m,T,B)||(m!==d&&m.push(T),d.push(O));}return d}Fp.exports=Pw;});var Pp=at((GK,Kp)=>{var Mw=Xn(),Uw=vn();function kw(E){return Uw(E)&&Mw(E)}Kp.exports=kw;});var Up=at((VK,Mp)=>{var Hw=ip(),Gw=Tp(),Vw=jp(),zw=Pp(),Ww=Gw(function(E){return Vw(Hw(E,1,zw,true))});Mp.exports=Ww;});var Hp=at((zK,kp)=>{var qw=Vs();function $w(E,C){return qw(C,function(B){return E[B]})}kp.exports=$w;});var Vp=at((WK,Gp)=>{var Yw=Hp(),Qw=Jn();function Xw(E){return E==null?[]:Yw(E,Qw(E))}Gp.exports=Xw;});var nn=at((qK,zp)=>{var zs;if(typeof w0=="function")try{zs={clone:Cf(),constant:Io(),each:kf(),filter:h2(),has:m2(),isArray:Fe(),isEmpty:T2(),isFunction:Ti(),isUndefined:y2(),keys:Jn(),map:v2(),reduce:b2(),size:Y2(),transform:X2(),union:Up(),values:Vp()};}catch{}zs||(zs=window._);zp.exports=zs;});var Ws=at((YK,Yp)=>{var re=nn();Yp.exports=ce;var Jw="\0",dr="\0",Wp="";function ce(E){this._isDirected=re.has(E,"directed")?E.directed:true,this._isMultigraph=re.has(E,"multigraph")?E.multigraph:false,this._isCompound=re.has(E,"compound")?E.compound:false,this._label=void 0,this._defaultNodeLabelFn=re.constant(void 0),this._defaultEdgeLabelFn=re.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[dr]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={};}ce.prototype._nodeCount=0;ce.prototype._edgeCount=0;ce.prototype.isDirected=function(){return this._isDirected};ce.prototype.isMultigraph=function(){return this._isMultigraph};ce.prototype.isCompound=function(){return this._isCompound};ce.prototype.setGraph=function(E){return this._label=E,this};ce.prototype.graph=function(){return this._label};ce.prototype.setDefaultNodeLabel=function(E){return re.isFunction(E)||(E=re.constant(E)),this._defaultNodeLabelFn=E,this};ce.prototype.nodeCount=function(){return this._nodeCount};ce.prototype.nodes=function(){return re.keys(this._nodes)};ce.prototype.sources=function(){var E=this;return re.filter(this.nodes(),function(C){return re.isEmpty(E._in[C])})};ce.prototype.sinks=function(){var E=this;return re.filter(this.nodes(),function(C){return re.isEmpty(E._out[C])})};ce.prototype.setNodes=function(E,C){var B=arguments,H=this;return re.each(E,function(D){B.length>1?H.setNode(D,C):H.setNode(D);}),this};ce.prototype.setNode=function(E,C){return re.has(this._nodes,E)?(arguments.length>1&&(this._nodes[E]=C),this):(this._nodes[E]=arguments.length>1?C:this._defaultNodeLabelFn(E),this._isCompound&&(this._parent[E]=dr,this._children[E]={},this._children[dr][E]=true),this._in[E]={},this._preds[E]={},this._out[E]={},this._sucs[E]={},++this._nodeCount,this)};ce.prototype.node=function(E){return this._nodes[E]};ce.prototype.hasNode=function(E){return re.has(this._nodes,E)};ce.prototype.removeNode=function(E){var C=this;if(re.has(this._nodes,E)){var B=function(H){C.removeEdge(C._edgeObjs[H]);};delete this._nodes[E],this._isCompound&&(this._removeFromParentsChildList(E),delete this._parent[E],re.each(this.children(E),function(H){C.setParent(H);}),delete this._children[E]),re.each(re.keys(this._in[E]),B),delete this._in[E],delete this._preds[E],re.each(re.keys(this._out[E]),B),delete this._out[E],delete this._sucs[E],--this._nodeCount;}return this};ce.prototype.setParent=function(E,C){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(re.isUndefined(C))C=dr;else {C+="";for(var B=C;!re.isUndefined(B);B=this.parent(B))if(B===E)throw new Error("Setting "+C+" as parent of "+E+" would create a cycle");this.setNode(C);}return this.setNode(E),this._removeFromParentsChildList(E),this._parent[E]=C,this._children[C][E]=true,this};ce.prototype._removeFromParentsChildList=function(E){delete this._children[this._parent[E]][E];};ce.prototype.parent=function(E){if(this._isCompound){var C=this._parent[E];if(C!==dr)return C}};ce.prototype.children=function(E){if(re.isUndefined(E)&&(E=dr),this._isCompound){var C=this._children[E];if(C)return re.keys(C)}else {if(E===dr)return this.nodes();if(this.hasNode(E))return []}};ce.prototype.predecessors=function(E){var C=this._preds[E];if(C)return re.keys(C)};ce.prototype.successors=function(E){var C=this._sucs[E];if(C)return re.keys(C)};ce.prototype.neighbors=function(E){var C=this.predecessors(E);if(C)return re.union(C,this.successors(E))};ce.prototype.isLeaf=function(E){var C;return this.isDirected()?C=this.successors(E):C=this.neighbors(E),C.length===0};ce.prototype.filterNodes=function(E){var C=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});C.setGraph(this.graph());var B=this;re.each(this._nodes,function(l,f){E(f)&&C.setNode(f,l);}),re.each(this._edgeObjs,function(l){C.hasNode(l.v)&&C.hasNode(l.w)&&C.setEdge(l,B.edge(l));});var H={};function D(l){var f=B.parent(l);return f===void 0||C.hasNode(f)?(H[l]=f,f):f in H?H[f]:D(f)}return this._isCompound&&re.each(C.nodes(),function(l){C.setParent(l,D(l));}),C};ce.prototype.setDefaultEdgeLabel=function(E){return re.isFunction(E)||(E=re.constant(E)),this._defaultEdgeLabelFn=E,this};ce.prototype.edgeCount=function(){return this._edgeCount};ce.prototype.edges=function(){return re.values(this._edgeObjs)};ce.prototype.setPath=function(E,C){var B=this,H=arguments;return re.reduce(E,function(D,l){return H.length>1?B.setEdge(D,l,C):B.setEdge(D,l),l}),this};ce.prototype.setEdge=function(){var E,C,B,H,D=false,l=arguments[0];typeof l=="object"&&l!==null&&"v"in l?(E=l.v,C=l.w,B=l.name,arguments.length===2&&(H=arguments[1],D=true)):(E=l,C=arguments[1],B=arguments[3],arguments.length>2&&(H=arguments[2],D=true)),E=""+E,C=""+C,re.isUndefined(B)||(B=""+B);var f=wi(this._isDirected,E,C,B);if(re.has(this._edgeLabels,f))return D&&(this._edgeLabels[f]=H),this;if(!re.isUndefined(B)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(E),this.setNode(C),this._edgeLabels[f]=D?H:this._defaultEdgeLabelFn(E,C,B);var d=Zw(this._isDirected,E,C,B);return E=d.v,C=d.w,Object.freeze(d),this._edgeObjs[f]=d,qp(this._preds[C],E),qp(this._sucs[E],C),this._in[C][f]=d,this._out[E][f]=d,this._edgeCount++,this};ce.prototype.edge=function(E,C,B){var H=arguments.length===1?Qo(this._isDirected,arguments[0]):wi(this._isDirected,E,C,B);return this._edgeLabels[H]};ce.prototype.hasEdge=function(E,C,B){var H=arguments.length===1?Qo(this._isDirected,arguments[0]):wi(this._isDirected,E,C,B);return re.has(this._edgeLabels,H)};ce.prototype.removeEdge=function(E,C,B){var H=arguments.length===1?Qo(this._isDirected,arguments[0]):wi(this._isDirected,E,C,B),D=this._edgeObjs[H];return D&&(E=D.v,C=D.w,delete this._edgeLabels[H],delete this._edgeObjs[H],$p(this._preds[C],E),$p(this._sucs[E],C),delete this._in[C][H],delete this._out[E][H],this._edgeCount--),this};ce.prototype.inEdges=function(E,C){var B=this._in[E];if(B){var H=re.values(B);return C?re.filter(H,function(D){return D.v===C}):H}};ce.prototype.outEdges=function(E,C){var B=this._out[E];if(B){var H=re.values(B);return C?re.filter(H,function(D){return D.w===C}):H}};ce.prototype.nodeEdges=function(E,C){var B=this.inEdges(E,C);if(B)return B.concat(this.outEdges(E,C))};function qp(E,C){E[C]?E[C]++:E[C]=1;}function $p(E,C){--E[C]||delete E[C];}function wi(E,C,B,H){var D=""+C,l=""+B;if(!E&&D>l){var f=D;D=l,l=f;}return D+Wp+l+Wp+(re.isUndefined(H)?Jw:H)}function Zw(E,C,B,H){var D=""+C,l=""+B;if(!E&&D>l){var f=D;D=l,l=f;}var d={v:D,w:l};return H&&(d.name=H),d}function Qo(E,C){return wi(E,C.v,C.w,C.name)}});var Xp=at((QK,Qp)=>{Qp.exports="2.1.8";});var Zp=at((XK,Jp)=>{Jp.exports={Graph:Ws(),version:Xp()};});var e1=at((JK,t1)=>{var Cn=nn(),tB=Ws();t1.exports={write:eB,read:iB};function eB(E){var C={options:{directed:E.isDirected(),multigraph:E.isMultigraph(),compound:E.isCompound()},nodes:nB(E),edges:rB(E)};return Cn.isUndefined(E.graph())||(C.value=Cn.clone(E.graph())),C}function nB(E){return Cn.map(E.nodes(),function(C){var B=E.node(C),H=E.parent(C),D={v:C};return Cn.isUndefined(B)||(D.value=B),Cn.isUndefined(H)||(D.parent=H),D})}function rB(E){return Cn.map(E.edges(),function(C){var B=E.edge(C),H={v:C.v,w:C.w};return Cn.isUndefined(C.name)||(H.name=C.name),Cn.isUndefined(B)||(H.value=B),H})}function iB(E){var C=new tB(E.options).setGraph(E.value);return Cn.each(E.nodes,function(B){C.setNode(B.v,B.value),B.parent&&C.setParent(B.v,B.parent);}),Cn.each(E.edges,function(B){C.setEdge({v:B.v,w:B.w,name:B.name},B.value);}),C}});var r1=at((ZK,n1)=>{var qs=nn();n1.exports=sB;function sB(E){var C={},B=[],H;function D(l){qs.has(C,l)||(C[l]=true,H.push(l),qs.each(E.successors(l),D),qs.each(E.predecessors(l),D));}return qs.each(E.nodes(),function(l){H=[],D(l),H.length&&B.push(H);}),B}});var Xo=at((tP,s1)=>{var i1=nn();s1.exports=fn;function fn(){this._arr=[],this._keyIndices={};}fn.prototype.size=function(){return this._arr.length};fn.prototype.keys=function(){return this._arr.map(function(E){return E.key})};fn.prototype.has=function(E){return i1.has(this._keyIndices,E)};fn.prototype.priority=function(E){var C=this._keyIndices[E];if(C!==void 0)return this._arr[C].priority};fn.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key};fn.prototype.add=function(E,C){var B=this._keyIndices;if(E=String(E),!i1.has(B,E)){var H=this._arr,D=H.length;return B[E]=D,H.push({key:E,priority:C}),this._decrease(D),true}return false};fn.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var E=this._arr.pop();return delete this._keyIndices[E.key],this._heapify(0),E.key};fn.prototype.decrease=function(E,C){var B=this._keyIndices[E];if(C>this._arr[B].priority)throw new Error("New priority is greater than current priority. Key: "+E+" Old: "+this._arr[B].priority+" New: "+C);this._arr[B].priority=C,this._decrease(B);};fn.prototype._heapify=function(E){var C=this._arr,B=2*E,H=B+1,D=E;B<C.length&&(D=C[B].priority<C[D].priority?B:D,H<C.length&&(D=C[H].priority<C[D].priority?H:D),D!==E&&(this._swap(E,D),this._heapify(D)));};fn.prototype._decrease=function(E){for(var C=this._arr,B=C[E].priority,H;E!==0&&(H=E>>1,!(C[H].priority<B));)this._swap(E,H),E=H;};fn.prototype._swap=function(E,C){var B=this._arr,H=this._keyIndices,D=B[E],l=B[C];B[E]=l,B[C]=D,H[l.key]=E,H[D.key]=C;};});var Jo=at((eP,u1)=>{var uB=nn(),oB=Xo();u1.exports=aB;var lB=uB.constant(1);function aB(E,C,B,H){return xB(E,String(C),B||lB,H||function(D){return E.outEdges(D)})}function xB(E,C,B,H){var D={},l=new oB,f,d,m=function(g){var O=g.v!==f?g.v:g.w,T=D[O],h=B(g),s=d.distance+h;if(h<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+g+" Weight: "+h);s<T.distance&&(T.distance=s,T.predecessor=f,l.decrease(O,s));};for(E.nodes().forEach(function(g){var O=g===C?0:Number.POSITIVE_INFINITY;D[g]={distance:O},l.add(g,O);});l.size()>0&&(f=l.removeMin(),d=D[f],d.distance!==Number.POSITIVE_INFINITY);)H(f).forEach(m);return D}});var l1=at((nP,o1)=>{var cB=Jo(),hB=nn();o1.exports=fB;function fB(E,C,B){return hB.transform(E.nodes(),function(H,D){H[D]=cB(E,D,C,B);},{})}});var Zo=at((rP,x1)=>{var a1=nn();x1.exports=dB;function dB(E){var C=0,B=[],H={},D=[];function l(f){var d=H[f]={onStack:true,lowlink:C,index:C++};if(B.push(f),E.successors(f).forEach(function(O){a1.has(H,O)?H[O].onStack&&(d.lowlink=Math.min(d.lowlink,H[O].index)):(l(O),d.lowlink=Math.min(d.lowlink,H[O].lowlink));}),d.lowlink===d.index){var m=[],g;do g=B.pop(),H[g].onStack=false,m.push(g);while(f!==g);D.push(m);}}return E.nodes().forEach(function(f){a1.has(H,f)||l(f);}),D}});var h1=at((iP,c1)=>{var pB=nn(),mB=Zo();c1.exports=EB;function EB(E){return pB.filter(mB(E),function(C){return C.length>1||C.length===1&&E.hasEdge(C[0],C[0])})}});var d1=at((sP,f1)=>{var TB=nn();f1.exports=yB;var _B=TB.constant(1);function yB(E,C,B){return OB(E,C||_B,B||function(H){return E.outEdges(H)})}function OB(E,C,B){var H={},D=E.nodes();return D.forEach(function(l){H[l]={},H[l][l]={distance:0},D.forEach(function(f){l!==f&&(H[l][f]={distance:Number.POSITIVE_INFINITY});}),B(l).forEach(function(f){var d=f.v===l?f.w:f.v,m=C(f);H[l][d]={distance:m,predecessor:l};});}),D.forEach(function(l){var f=H[l];D.forEach(function(d){var m=H[d];D.forEach(function(g){var O=m[l],T=f[g],h=m[g],s=O.distance+T.distance;s<h.distance&&(h.distance=s,h.predecessor=T.predecessor);});});}),H}});var tl=at((uP,m1)=>{var Bi=nn();m1.exports=p1;p1.CycleException=$s;function p1(E){var C={},B={},H=[];function D(l){if(Bi.has(B,l))throw new $s;Bi.has(C,l)||(B[l]=true,C[l]=true,Bi.each(E.predecessors(l),D),delete B[l],H.push(l));}if(Bi.each(E.sinks(),D),Bi.size(C)!==E.nodeCount())throw new $s;return H}function $s(){}$s.prototype=new Error;});var _1=at((oP,T1)=>{var E1=tl();T1.exports=AB;function AB(E){try{E1(E);}catch(C){if(C instanceof E1.CycleException)return false;throw C}return true}});var el=at((lP,O1)=>{var Ys=nn();O1.exports=gB;function gB(E,C,B){Ys.isArray(C)||(C=[C]);var H=(E.isDirected()?E.successors:E.neighbors).bind(E),D=[],l={};return Ys.each(C,function(f){if(!E.hasNode(f))throw new Error("Graph does not have node: "+f);y1(E,f,B==="post",l,H,D);}),D}function y1(E,C,B,H,D,l){Ys.has(H,C)||(H[C]=true,B||l.push(C),Ys.each(D(C),function(f){y1(E,f,B,H,D,l);}),B&&l.push(C));}});var g1=at((aP,A1)=>{var vB=el();A1.exports=CB;function CB(E,C){return vB(E,C,"post")}});var C1=at((xP,v1)=>{var SB=el();v1.exports=RB;function RB(E,C){return SB(E,C,"pre")}});var N1=at((cP,R1)=>{var S1=nn(),NB=Ws(),DB=Xo();R1.exports=bB;function bB(E,C){var B=new NB,H={},D=new DB,l;function f(m){var g=m.v===l?m.w:m.v,O=D.priority(g);if(O!==void 0){var T=C(m);T<O&&(H[g]=l,D.decrease(g,T));}}if(E.nodeCount()===0)return B;S1.each(E.nodes(),function(m){D.add(m,Number.POSITIVE_INFINITY),B.setNode(m);}),D.decrease(E.nodes()[0],0);for(var d=false;D.size()>0;){if(l=D.removeMin(),S1.has(H,l))B.setEdge(l,H[l]);else {if(d)throw new Error("Input graph is not connected: "+E);d=true;}E.nodeEdges(l).forEach(f);}return B}});var b1=at((hP,D1)=>{D1.exports={components:r1(),dijkstra:Jo(),dijkstraAll:l1(),findCycles:h1(),floydWarshall:d1(),isAcyclic:_1(),postorder:g1(),preorder:C1(),prim:N1(),tarjan:Zo(),topsort:tl()};});var w1=at((fP,I1)=>{var L1=Zp();I1.exports={Graph:L1.Graph,json:e1(),alg:b1(),version:L1.version};});var j1=B0(P0());var B1=B0(w1()),nl=class E{constructor(C,B={}){this.atoms=[];this.relations=[];this.types=[];this.errors=[];this.eventListeners=new Map;try{let H=typeof C=="string"?JSON.parse(C):C;if(!H||typeof H!="object")throw new Error("Invalid data: expected object with atoms and relations");if(!Array.isArray(H.atoms))throw new Error("Invalid data: atoms must be an array");if(!Array.isArray(H.relations))throw new Error("Invalid data: relations must be an array");let D=rl.normalize(H,B);this.atoms=D.atoms,this.relations=D.relations,this.types=D.types,this.errors=D.errors;}catch(H){throw new Error(`Failed to create JSONDataInstance: ${H instanceof Error?H.message:String(H)}`)}}addEventListener(C,B){this.eventListeners.has(C)||this.eventListeners.set(C,new Set),this.eventListeners.get(C).add(B);}removeEventListener(C,B){let H=this.eventListeners.get(C);H&&H.delete(B);}emitEvent(C){let B=this.eventListeners.get(C.type);B&&B.forEach(H=>{try{H(C);}catch(D){console.error("Error in data instance event listener:",D);}});}isAtomBuiltin(C){return false}getAtomType(C){let B=this.atoms.find(D=>D.id===C);if(!B)throw new Error(`Atom with ID '${C}' not found`);let H=this.types.find(D=>D.id===B.type);if(!H)throw new Error(`Type '${B.type}' not found for atom '${C}'`);return H}getTypes(){return this.types}getAtoms(){return this.atoms}getRelations(){return this.relations}getTopLevelTypeId(C){let B=this.types.find(H=>H.id===C);return B&&B.types.length>0?B.types[B.types.length-1]:C}typeIsOfType(C,B){let H=this.types.find(D=>D.id===C);return H?H.types.includes(B):C===B}applyProjections(C){if(C.length===0)return this.clone();let B={};for(let g of C){let O=this.atoms.find(h=>h.id===g);if(!O)throw new Error(`Cannot project over atom '${g}': atom not found`);let T=this.getTopLevelTypeId(O.type);if(B[T])throw new Error(`Cannot project over '${g}' and '${B[T]}'. Both are of type '${T}'`);B[T]=g;}let H=Object.keys(B),D=Object.values(B),l=new Set(D),f=this.types.map(g=>{let O=H.some(T=>this.typeIsOfType(g.id,T));return {...g,atoms:O?[]:g.atoms.filter(T=>!l.has(T.id))}}),d=this.relations.map(g=>{if(!g.types.some(o=>H.some(r=>this.typeIsOfType(o,r))))return g;let T=[];g.types.forEach((o,r)=>{H.some(x=>this.typeIsOfType(o,x))&&T.push(r);});let h=g.tuples.filter(o=>T.every(r=>{let x=o.atoms[r],n=g.types[r],c=H.find(p=>this.typeIsOfType(n,p));if(!c)return true;let a=B[c];return x===a})).map(o=>({atoms:o.atoms.filter((r,x)=>!T.includes(x)),types:o.types.filter((r,x)=>!T.includes(x))})).filter(o=>o.atoms.length>0),s=g.types.filter((o,r)=>!T.includes(r));return {...g,types:s,tuples:h}}).filter(g=>g.tuples.length>0||g.types.length>0),m=this.atoms.filter(g=>{let O=this.getTopLevelTypeId(g.type);return !H.includes(O)});return new E({atoms:m,relations:d,types:f})}generateGraph(C=false,B=false){let H=new B1.Graph({directed:true,multigraph:true});if(this.atoms.forEach(D=>{H.setNode(D.id,{id:D.id,label:D.label,type:D.type,isBuiltin:this.isAtomBuiltin(D)});}),this.relations.forEach(D=>{D.tuples.forEach((l,f)=>{if(l.atoms.length>=2){let d=l.atoms[0],m=l.atoms[l.atoms.length-1],g=l.atoms.slice(1,-1),O=D.name;if(g.length>0){let h=g.map(s=>{let o=this.atoms.find(r=>r.id===s);return o?o.label:s});O=`${D.name}[${h.join(", ")}]`;}let T=`${D.id}_${f}`;H.setEdge(d,m,O,T);}else if(l.atoms.length===1){let d=l.atoms[0],m=`${D.id}_${f}`;H.setEdge(d,d,D.name,m);}});}),C||B){let D=[];H.nodes().forEach(l=>{let f=H.inEdges(l)||[],d=H.outEdges(l)||[];if(f.length===0&&d.length===0){let O=H.node(l)?.isBuiltin||false;(C||O&&B)&&D.push(l);}}),D.forEach(l=>{H.removeNode(l);});}return H}addAtom(C){if(this.atoms.some(H=>H.id===C.id))throw new Error(`Atom with ID '${C.id}' already exists`);this.atoms.push(C);let B=this.types.find(H=>H.id===C.type);B||(B={id:C.type,types:[C.type],atoms:[],isBuiltin:false},this.types.push(B)),B.atoms.push(C),this.emitEvent({type:"atomAdded",data:{atom:C}});}addRelationTuple(C,B){for(let D of B.atoms)if(!this.atoms.some(l=>l.id===D))throw new Error(`Cannot add tuple: referenced atom '${D}' does not exist`);let H=this.relations.find(D=>D.id===C||D.name===C);if(!H)H={id:C,name:C,types:[...B.types],tuples:[]},this.relations.push(H);else {let D=new Set(H.types);for(let l of B.types)D.has(l)||H.types.push(l);}H.tuples.push(B),this.emitEvent({type:"relationTupleAdded",data:{relationId:C,tuple:B}});}removeAtom(C){let B=this.atoms.findIndex(l=>l.id===C);if(B===-1)throw new Error(`Cannot remove atom: atom with ID '${C}' not found`);let H=this.atoms[B];this.atoms.splice(B,1);let D=this.types.find(l=>l.id===H.type);D&&(D.atoms=D.atoms.filter(l=>l.id!==C));for(let l of this.relations)l.tuples=l.tuples.filter(f=>!f.atoms.includes(C));this.emitEvent({type:"atomRemoved",data:{atomId:C}});}removeRelationTuple(C,B){let H=this.relations.find(f=>f.id===C||f.name===C);if(!H)throw new Error(`Cannot remove tuple: relation '${C}' not found`);let D=(f,d)=>f.atoms.length!==d.atoms.length?false:f.atoms.every((m,g)=>m===d.atoms[g]),l=H.tuples.length;if(H.tuples=H.tuples.filter(f=>!D(f,B)),H.tuples.length===l)throw new Error(`Tuple not found in relation '${C}'`);this.emitEvent({type:"relationTupleRemoved",data:{relationId:C,tuple:B}});}reify(){return {atoms:[...this.atoms],relations:this.relations.map(C=>({...C,tuples:[...C.tuples]})),types:this.types.map(C=>({...C,atoms:[...C.atoms]}))}}addFromDataInstance(C,B){if(!C)return false;let H=new Map;return C.getAtoms().forEach(D=>{let l=this.isAtomBuiltin(D);if(B&&l){let m=this.atoms.find(g=>g.type===D.type&&g.label===D.label);if(m){H.set(D.id,m.id);return}}let f=`atom_${this.atoms.length+1}`;H.set(D.id,f);let d={...D,id:f};this.addAtom(d);}),C.getRelations().forEach(D=>{let l=D.tuples.map(d=>({atoms:d.atoms.map(m=>H.get(m)||m),types:d.types})),f=this.relations.find(d=>d.id===D.id||d.name===D.name);if(f){let d=new Set(f.tuples.map(m=>JSON.stringify(m)));l.forEach(m=>{let g=JSON.stringify(m);d.has(g)||(f.tuples.push(m),d.add(g));});}else this.relations.push({...D,tuples:l});}),C.getTypes().forEach(D=>{let l=this.types.find(f=>f.id===D.id);if(!l)this.types.push({...D,atoms:D.atoms.map(f=>({...f,id:H.get(f.id)||f.id}))});else {let f=new Set(l.atoms.map(d=>d.id));D.atoms.forEach(d=>{let m=H.get(d.id)||d.id;f.has(m)||(l.atoms.push({...d,id:m}),f.add(m));});}}),true}getErrors(){return [...this.errors]}isValid(){return this.errors.length===0}getStatistics(){return {atomCount:this.atoms.length,relationCount:this.relations.length,typeCount:this.types.length,tupleCount:this.relations.reduce((C,B)=>C+B.tuples.length,0),errorCount:this.errors.length,hasBuiltinTypes:this.types.some(C=>C.isBuiltin)}}clone(){return new E(this.reify())}},rl=class E{static mergeRelations(C){let B=new Map;for(let H of C){let D=B.get(H.name);if(D){let l=new Set(D.tuples.map(d=>JSON.stringify(d)));for(let d of H.tuples){let m=JSON.stringify(d);l.has(m)||(D.tuples.push(d),l.add(m));}let f=new Set(D.types);for(let d of H.types)f.has(d)||(D.types.push(d),f.add(d));}else B.set(H.name,{id:H.id||H.name,name:H.name,types:[...H.types],tuples:[...H.tuples]});}return Array.from(B.values())}static inferTypes(C){let B=new Map;for(let H of C)B.has(H.type)||B.set(H.type,{id:H.type,types:[H.type],atoms:[],isBuiltin:E.isBuiltinType(H.type)}),B.get(H.type).atoms.push(H);return Array.from(B.values())}static isBuiltinType(C){return new Set(["String","Int","Bool","seq/Int","univ","none","Entity","Object","Node","Edge","Atom"]).has(C)}static deduplicateAtoms(C){let B=new Map,H=new Set;for(let D of C)B.has(D.id)?H.add(D.id):B.set(D.id,D);return H.size>0&&console.warn(`Found duplicate atoms with IDs: ${Array.from(H).join(", ")}`),Array.from(B.values())}static validateReferences(C,B){let H=new Set(C.map(l=>l.id)),D=[];for(let l of B)for(let f=0;f<l.tuples.length;f++){let d=l.tuples[f];for(let m=0;m<d.atoms.length;m++){let g=d.atoms[m];H.has(g)||D.push(`Relation "${l.name}" tuple ${f} position ${m}: references unknown atom "${g}"`);}}return {isValid:D.length===0,errors:D}}static normalize(C,B={}){let H={mergeRelations:true,inferTypes:true,validateReferences:true,deduplicateAtoms:true,...B},D=C.atoms||[],l=C.relations||[],f=C.types||[],d=[];if(H.deduplicateAtoms&&D.length>0){let m=D.length;D=this.deduplicateAtoms(D),D.length<m&&d.push(`Removed ${m-D.length} duplicate atoms`);}if(H.mergeRelations&&l.length>0){let m=l.length;l=this.mergeRelations(l),l.length<m&&d.push(`Merged ${m-l.length} duplicate relations`);}if(H.inferTypes&&f.length===0&&D.length>0&&(f=this.inferTypes(D),d.push(`Inferred ${f.length} types from atoms`)),H.validateReferences){let m=this.validateReferences(D,l);d.push(...m.errors);}return {atoms:D,relations:l,types:f,errors:d}}};function LB(E){return E.getAtoms!==void 0&&E.getRelations!==void 0&&E.getTypes!==void 0&&E.applyProjections!==void 0&&E.generateGraph!==void 0}function IB(E){return E.error!==void 0}function wB(E){return typeof E=="string"||typeof E=="number"||typeof E=="boolean"}function il(E){if(typeof E=="string")return E;if(typeof E=="number")return E.toString();if(typeof E=="boolean")return E?"true":"false";throw new Error("Invalid SingleValue type")}var sl=class{constructor(C,B){this.isErrorResult=false;this.isSingletonResult=false;this.result=C,this.expr=B,this.isErrorResult=IB(C),this.isSingletonResult=wB(C);}isError(){return this.isErrorResult}isSingleton(){return this.isSingletonResult}getExpression(){return this.expr}noResult(){return !this.isErrorResult&&Array.isArray(this.result)&&this.result.length===0}getRawResult(){return this.isErrorResult?{error:{message:this.result.error.message,code:"FORGE_ERROR"}}:this.isSingletonResult?this.result:this.result}prettyPrint(){if(typeof this.result=="string")return this.result;if(typeof this.result=="number")return this.result.toString();if(typeof this.result=="boolean")return this.result?"true":"false";if(this.isErrorResult)return `Error: ${this.result.error.message}`;{let C=[],B=this.result;for(let D=0;D<B.length;D++){let f=B[D].join("->");C.push(f);}return C.join(" , ")}}singleResult(){if(!this.isSingletonResult){let C=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to a single value. Instead:${C}`)}return this.result}selectedAtoms(){if(this.isSingletonResult||this.isErrorResult){let l=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 1. Instead: ${l}`)}let B=this.result.filter(l=>l.length>0);if(B.length===0)return [];B=B.filter(l=>l.length===1);let H=B.flat().map(l=>il(l));return Array.from(new Set(H))}selectedTwoples(){if(this.isSingletonResult||this.isErrorResult){let D=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2. Instead:${D}`)}let B=this.result.filter(D=>D.length>1);return B.length===0?[]:B.map(D=>[D[0],D[D.length-1]]).map(D=>D.map(l=>il(l)))}maxArity(){if(this.isSingletonResult||this.isErrorResult)return 0;let C=this.result;return C.length===0?0:Math.max(...C.map(B=>B.length))}selectedTuplesAll(){if(this.isSingletonResult||this.isErrorResult){let D=this.prettyPrint();throw new Error(`Expected selector ${this.expr} to evaluate to values of arity 2. Instead:${D}`)}let B=this.result.filter(D=>D.length>1);return B.length===0?[]:B.map(D=>D.map(l=>il(l)))}},F1=class{constructor(){this.evaluatorCache=new Map;this.MAX_CACHE_SIZE=1e3;this.ready=false;}initialize(C){if(this.context=C,!C.sourceData||!LB(C.sourceData))throw new Error("Invalid context.sourceData: Expected an instance of IDataInstance");let B=C.sourceData;this.eval=new j1.SimpleGraphQueryEvaluator(B),this.ready=true,this.evaluatorCache.clear();}isReady(){return this.ready}evaluate(C,B){if(!this.isReady())throw new Error("Evaluator not initialized");let H=B?.instanceIndex??0,D=JSON.stringify({expression:C,instanceIndex:H});if(this.evaluatorCache.has(D)){let d=this.evaluatorCache.get(D);return this.evaluatorCache.delete(D),this.evaluatorCache.set(D,d),d}let l=this.eval.evaluateExpression(C),f=new sl(l,C);if(this.evaluatorCache.size>=this.MAX_CACHE_SIZE){let d=this.evaluatorCache.keys().next().value;d!==void 0&&this.evaluatorCache.delete(d);}return this.evaluatorCache.set(D,f),f}dispose(){this.evaluatorCache.clear();}getMemoryStats(){return {cacheSize:this.evaluatorCache.size,maxCacheSize:this.MAX_CACHE_SIZE,hasDataInstance:false}}};/*! Bundled license information:
262
+
263
+ simple-graph-query/dist/simple-graph-query.bundle.js:
264
+ (*!
265
+ * Copyright 2016 The ANTLR Project. All rights reserved.
266
+ * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
267
+ *)
268
+ (*!
269
+ * The buffer module from node.js, for the browser.
270
+ *
271
+ * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
272
+ * @license MIT
273
+ *)
274
+ (**
275
+ * @license
276
+ * Lodash <https://lodash.com/>
277
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
278
+ * Released under MIT license <https://lodash.com/license>
279
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
280
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
281
+ *)
282
+ */exports.JSONDataInstance=nl;exports.SGQEvaluatorResult=sl;exports.SGraphQueryEvaluator=F1;//# sourceMappingURL=evaluator.js.map
2
283
  //# sourceMappingURL=evaluator.js.map