@guihz/trading-vue-editor-tes 0.0.263 → 0.0.265

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ var um=Object.defineProperty;var zm=(eo,wn,Ut)=>wn in eo?um(eo,wn,{enumerable:!0
8
8
  `+a.toString(W,C))}return R}},{key:"addDFAState",value:function(a,p){if(p===nr.ERROR)return p;var _=a.states.get(p);return _!==null?(this.trace_atn_sim&&console.log("addDFAState "+p+" exists"),_):(p.stateNumber=a.states.length,p.configs.readOnly||(p.configs.optimizeConfigs(this),p.configs.setReadonly(!0)),this.trace_atn_sim&&console.log("addDFAState new "+p),a.states.add(p),this.debug&&console.log("adding new DFA state: "+p),p)}},{key:"reportAttemptingFullContext",value:function(a,p,_,R,W){if(this.debug||this.retry_debug){var C=new X0(R,W+1);console.log("reportAttemptingFullContext decision="+a.decision+":"+_+", input="+this.parser.getTokenStream().getText(C))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,a,R,W,p,_)}},{key:"reportContextSensitivity",value:function(a,p,_,R,W){if(this.debug||this.retry_debug){var C=new X0(R,W+1);console.log("reportContextSensitivity decision="+a.decision+":"+_+", input="+this.parser.getTokenStream().getText(C))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,a,R,W,p,_)}},{key:"reportAmbiguity",value:function(a,p,_,R,W,C,r0){if(this.debug||this.retry_debug){var E0=new X0(_,R+1);console.log("reportAmbiguity "+C+":"+r0+", input="+this.parser.getTokenStream().getText(E0))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,a,_,R,W,C,r0)}}],l&&C5(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),f}(nr);function ea(u){return ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ea(u)}function B5(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(ea(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(ea(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),ea(O)==="symbol"?O:String(O)),c)}var O}var Xl=function(){function u(){(function(c,O){if(!(c instanceof O))throw new TypeError("Cannot call a class as a function")})(this,u),this.cache=new xr}var o,l;return o=u,(l=[{key:"add",value:function(c){if(c===u1.EMPTY)return u1.EMPTY;var O=this.cache.get(c)||null;return O!==null?O:(this.cache.set(c,c),c)}},{key:"get",value:function(c){return this.cache.get(c)||null}},{key:"length",get:function(){return this.cache.length}}])&&B5(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),u}();const x5={ATN:Ee,ATNDeserializer:_M,LexerATNSimulator:Xi,ParserATNSimulator:Il,PredictionMode:it,PredictionContextCache:Xl};function ta(u){return ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ta(u)}function D5(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(ta(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(ta(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),ta(O)==="symbol"?O:String(O)),c)}var O}var VM=function(){function u(c,O,M){(function(f,a){if(!(f instanceof a))throw new TypeError("Cannot call a class as a function")})(this,u),this.dfa=c,this.literalNames=O||[],this.symbolicNames=M||[]}var o,l;return o=u,(l=[{key:"toString",value:function(){if(this.dfa.s0===null)return null;for(var c="",O=this.dfa.sortedStates(),M=0;M<O.length;M++){var f=O[M];if(f.edges!==null)for(var a=f.edges.length,p=0;p<a;p++){var _=f.edges[p]||null;_!==null&&_.stateNumber!==2147483647&&(c=(c=(c=(c=(c=(c=c.concat(this.getStateString(f))).concat("-")).concat(this.getEdgeLabel(p))).concat("->")).concat(this.getStateString(_))).concat(`
9
9
  `))}}return c.length===0?null:c}},{key:"getEdgeLabel",value:function(c){return c===0?"EOF":this.literalNames!==null||this.symbolicNames!==null?this.literalNames[c-1]||this.symbolicNames[c-1]:String.fromCharCode(c-1)}},{key:"getStateString",value:function(c){var O=(c.isAcceptState?":":"")+"s"+c.stateNumber+(c.requiresFullContext?"^":"");return c.isAcceptState?c.predicates!==null?O+"=>"+k(c.predicates):O+"=>"+c.prediction.toString():O}}])&&D5(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),u}();function Ui(u){return Ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ui(u)}function k5(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(Ui(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(Ui(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),Ui(O)==="symbol"?O:String(O)),c)}var O}function jM(u,o){return jM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},jM(u,o)}function ds(u){return ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},ds(u)}var Fl=function(u){(function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),p&&jM(a,p)})(f,u);var o,l,c,O,M=(c=f,O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,p=ds(c);if(O){var _=ds(this).constructor;a=Reflect.construct(p,arguments,_)}else a=p.apply(this,arguments);return function(R,W){if(W&&(Ui(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(R)}(this,a)});function f(a){return function(p,_){if(!(p instanceof _))throw new TypeError("Cannot call a class as a function")}(this,f),M.call(this,a,null)}return o=f,(l=[{key:"getEdgeLabel",value:function(a){return"'"+String.fromCharCode(a)+"'"}}])&&k5(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),f}(VM);function na(u){return na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},na(u)}function w5(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(na(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(na(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),na(O)==="symbol"?O:String(O)),c)}var O}var Ul=function(){function u(c,O){if(function(f,a){if(!(f instanceof a))throw new TypeError("Cannot call a class as a function")}(this,u),O===void 0&&(O=0),this.atnStartState=c,this.decision=O,this._states=new d,this.s0=null,this.precedenceDfa=!1,c instanceof So&&c.isPrecedenceDecision){this.precedenceDfa=!0;var M=new No(null,new nn);M.edges=[],M.isAcceptState=!1,M.requiresFullContext=!1,this.s0=M}}var o,l;return o=u,(l=[{key:"getPrecedenceStartState",value:function(c){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return c<0||c>=this.s0.edges.length?null:this.s0.edges[c]||null}},{key:"setPrecedenceStartState",value:function(c,O){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";c<0||(this.s0.edges[c]=O)}},{key:"setPrecedenceDfa",value:function(c){if(this.precedenceDfa!==c){if(this._states=new d,c){var O=new No(null,new nn);O.edges=[],O.isAcceptState=!1,O.requiresFullContext=!1,this.s0=O}else this.s0=null;this.precedenceDfa=c}}},{key:"sortedStates",value:function(){return this._states.values().sort(function(c,O){return c.stateNumber-O.stateNumber})}},{key:"toString",value:function(c,O){return c=c||null,O=O||null,this.s0===null?"":new VM(this,c,O).toString()}},{key:"toLexerString",value:function(){return this.s0===null?"":new Fl(this).toString()}},{key:"states",get:function(){return this._states}}])&&w5(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),u}();const P5={DFA:Ul,DFASerializer:VM,LexerDFASerializer:Fl,PredPrediction:Pl},I5={PredictionContext:u1},X5={Interval:X0,IntervalSet:b0};function ra(u){return ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ra(u)}function F5(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(ra(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(ra(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),ra(O)==="symbol"?O:String(O)),c)}var O}var HM=function(){function u(){(function(c,O){if(!(c instanceof O))throw new TypeError("Cannot call a class as a function")})(this,u)}var o,l;return o=u,(l=[{key:"visitTerminal",value:function(c){}},{key:"visitErrorNode",value:function(c){}},{key:"enterEveryRule",value:function(c){}},{key:"exitEveryRule",value:function(c){}}])&&F5(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),u}();function oa(u){return oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},oa(u)}function U5(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(oa(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(oa(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),oa(O)==="symbol"?O:String(O)),c)}var O}var Vl=function(){function u(){(function(c,O){if(!(c instanceof O))throw new TypeError("Cannot call a class as a function")})(this,u)}var o,l;return o=u,(l=[{key:"visit",value:function(c){return Array.isArray(c)?c.map(function(O){return O.accept(this)},this):c.accept(this)}},{key:"visitChildren",value:function(c){return c.children?this.visit(c.children):null}},{key:"visitTerminal",value:function(c){}},{key:"visitErrorNode",value:function(c){}}])&&U5(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),u}();function ia(u){return ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ia(u)}function V5(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(ia(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(ia(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),ia(O)==="symbol"?O:String(O)),c)}var O}var hs=function(){function u(){(function(c,O){if(!(c instanceof O))throw new TypeError("Cannot call a class as a function")})(this,u)}var o,l;return o=u,(l=[{key:"walk",value:function(c,O){if(O instanceof ln||O.isErrorNode!==void 0&&O.isErrorNode())c.visitErrorNode(O);else if(O instanceof le)c.visitTerminal(O);else{this.enterRule(c,O);for(var M=0;M<O.getChildCount();M++){var f=O.getChild(M);this.walk(c,f)}this.exitRule(c,O)}}},{key:"enterRule",value:function(c,O){var M=O.ruleContext;c.enterEveryRule(M),M.enterRule(c)}},{key:"exitRule",value:function(c,O){var M=O.ruleContext;M.exitRule(c),c.exitEveryRule(M)}}])&&V5(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),u}();hs.DEFAULT=new hs;const j5={Trees:Rc,RuleNode:C0,ErrorNode:ln,TerminalNode:le,ParseTreeListener:HM,ParseTreeVisitor:Vl,ParseTreeWalker:hs};function $M(u){return $M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},$M(u)}function GM(u,o){return GM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},GM(u,o)}function qs(u){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},qs(u)}var aa=function(u){(function(f,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),a&&GM(f,a)})(M,u);var o,l,c,O=(l=M,c=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var f,a=qs(l);if(c){var p=qs(this).constructor;f=Reflect.construct(a,arguments,p)}else f=a.apply(this,arguments);return function(_,R){if(R&&($M(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(W){if(W===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}(_)}(this,f)});function M(f){var a;return function(p,_){if(!(p instanceof _))throw new TypeError("Cannot call a class as a function")}(this,M),(a=O.call(this,{message:"",recognizer:f,input:f.getInputStream(),ctx:f._ctx})).offendingToken=f.getCurrentToken(),a}return o=M,Object.defineProperty(o,"prototype",{writable:!1}),o}(Lo);function KM(u){return KM=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},KM(u)}function YM(u,o){return YM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},YM(u,o)}function ms(u){return ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},ms(u)}var QM=function(u){(function(f,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),a&&YM(f,a)})(M,u);var o,l,c,O=(l=M,c=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var f,a=ms(l);if(c){var p=ms(this).constructor;f=Reflect.construct(a,arguments,p)}else f=a.apply(this,arguments);return function(_,R){if(R&&(KM(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(W){if(W===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}(_)}(this,f)});function M(f,a,p){var _;(function(W,C){if(!(W instanceof C))throw new TypeError("Cannot call a class as a function")})(this,M),_=O.call(this,{message:H5(a,p||null),recognizer:f,input:f.getInputStream(),ctx:f._ctx});var R=f._interp.atn.states[f.state].transitions[0];return R instanceof ql?(_.ruleIndex=R.ruleIndex,_.predicateIndex=R.predIndex):(_.ruleIndex=0,_.predicateIndex=0),_.predicate=a,_.offendingToken=f.getCurrentToken(),_}return o=M,Object.defineProperty(o,"prototype",{writable:!1}),o}(Lo);function H5(u,o){return o!==null?o:"failed predicate: {"+u+"}?"}function Vi(u){return Vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Vi(u)}function $5(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(Vi(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(Vi(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),Vi(O)==="symbol"?O:String(O)),c)}var O}function JM(u,o){return JM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},JM(u,o)}function _s(u){return _s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_s(u)}var jl=function(u){(function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),p&&JM(a,p)})(f,u);var o,l,c,O,M=(c=f,O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,p=_s(c);if(O){var _=_s(this).constructor;a=Reflect.construct(p,arguments,_)}else a=p.apply(this,arguments);return function(R,W){if(W&&(Vi(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(R)}(this,a)});function f(a){var p;return function(_,R){if(!(_ instanceof R))throw new TypeError("Cannot call a class as a function")}(this,f),a=a||!0,(p=M.call(this)).exactOnly=a,p}return o=f,l=[{key:"reportAmbiguity",value:function(a,p,_,R,W,C,r0){if(!this.exactOnly||W){var E0="reportAmbiguity d="+this.getDecisionDescription(a,p)+": ambigAlts="+this.getConflictingAlts(C,r0)+", input='"+a.getTokenStream().getText(new X0(_,R))+"'";a.notifyErrorListeners(E0)}}},{key:"reportAttemptingFullContext",value:function(a,p,_,R,W,C){var r0="reportAttemptingFullContext d="+this.getDecisionDescription(a,p)+", input='"+a.getTokenStream().getText(new X0(_,R))+"'";a.notifyErrorListeners(r0)}},{key:"reportContextSensitivity",value:function(a,p,_,R,W,C){var r0="reportContextSensitivity d="+this.getDecisionDescription(a,p)+", input='"+a.getTokenStream().getText(new X0(_,R))+"'";a.notifyErrorListeners(r0)}},{key:"getDecisionDescription",value:function(a,p){var _=p.decision,R=p.atnStartState.ruleIndex,W=a.ruleNames;if(R<0||R>=W.length)return""+_;var C=W[R]||null;return C===null||C.length===0?""+_:"".concat(_," (").concat(C,")")}},{key:"getConflictingAlts",value:function(a,p){if(a!==null)return a;for(var _=new tn,R=0;R<p.items.length;R++)_.add(p.items[R].alt);return"{".concat(_.values().join(", "),"}")}}],l&&$5(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),f}(F2);function ZM(u){return ZM=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ZM(u)}function Hl(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function eu(u){var o=typeof Map=="function"?new Map:void 0;return eu=function(l){if(l===null||(c=l,Function.toString.call(c).indexOf("[native code]")===-1))return l;var c;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(o!==void 0){if(o.has(l))return o.get(l);o.set(l,O)}function O(){return tu(l,arguments,sa(this).constructor)}return O.prototype=Object.create(l.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),ca(O,l)},eu(u)}function tu(u,o,l){return tu=$l()?Reflect.construct.bind():function(c,O,M){var f=[null];f.push.apply(f,O);var a=new(Function.bind.apply(c,f));return M&&ca(a,M.prototype),a},tu.apply(null,arguments)}function $l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ca(u,o){return ca=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},ca(u,o)}function sa(u){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},sa(u)}var G5=function(u){(function(f,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),a&&ca(f,a)})(M,u);var o,l,c,O=(l=M,c=$l(),function(){var f,a=sa(l);if(c){var p=sa(this).constructor;f=Reflect.construct(a,arguments,p)}else f=a.apply(this,arguments);return function(_,R){if(R&&(ZM(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hl(_)}(this,f)});function M(){var f;return function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")}(this,M),f=O.call(this),Error.captureStackTrace(Hl(f),M),f}return o=M,Object.defineProperty(o,"prototype",{writable:!1}),o}(eu(Error));function pa(u){return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},pa(u)}function K5(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(pa(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(pa(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),pa(O)==="symbol"?O:String(O)),c)}var O}function ji(u){return ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ji(u)}function Y5(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(ji(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(ji(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),ji(O)==="symbol"?O:String(O)),c)}var O}function nu(u,o){return nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},nu(u,o)}function ys(u){return ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},ys(u)}var ru=function(u){(function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),p&&nu(a,p)})(f,u);var o,l,c,O,M=(c=f,O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,p=ys(c);if(O){var _=ys(this).constructor;a=Reflect.construct(p,arguments,_)}else a=p.apply(this,arguments);return function(R,W){if(W&&(ji(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(R)}(this,a)});function f(){var a;return function(p,_){if(!(p instanceof _))throw new TypeError("Cannot call a class as a function")}(this,f),(a=M.call(this)).errorRecoveryMode=!1,a.lastErrorIndex=-1,a.lastErrorStates=null,a.nextTokensContext=null,a.nextTokenState=0,a}return o=f,l=[{key:"reset",value:function(a){this.endErrorCondition(a)}},{key:"beginErrorCondition",value:function(a){this.errorRecoveryMode=!0}},{key:"inErrorRecoveryMode",value:function(a){return this.errorRecoveryMode}},{key:"endErrorCondition",value:function(a){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}},{key:"reportMatch",value:function(a){this.endErrorCondition(a)}},{key:"reportError",value:function(a,p){this.inErrorRecoveryMode(a)||(this.beginErrorCondition(a),p instanceof fs?this.reportNoViableAlternative(a,p):p instanceof aa?this.reportInputMismatch(a,p):p instanceof QM?this.reportFailedPredicate(a,p):(console.log("unknown recognition error type: "+p.constructor.name),console.log(p.stack),a.notifyErrorListeners(p.getOffendingToken(),p.getMessage(),p)))}},{key:"recover",value:function(a,p){this.lastErrorIndex===a.getInputStream().index&&this.lastErrorStates!==null&&this.lastErrorStates.indexOf(a.state)>=0&&a.consume(),this.lastErrorIndex=a._input.index,this.lastErrorStates===null&&(this.lastErrorStates=[]),this.lastErrorStates.push(a.state);var _=this.getErrorRecoverySet(a);this.consumeUntil(a,_)}},{key:"sync",value:function(a){if(!this.inErrorRecoveryMode(a)){var p=a._interp.atn.states[a.state],_=a.getTokenStream().LA(1),R=a.atn.nextTokens(p);if(R.contains(_))return this.nextTokensContext=null,void(this.nextTokenState=A0.INVALID_STATE_NUMBER);if(R.contains(n.EPSILON))this.nextTokensContext===null&&(this.nextTokensContext=a._ctx,this.nextTokensState=a._stateNumber);else switch(p.stateType){case A0.BLOCK_START:case A0.STAR_BLOCK_START:case A0.PLUS_BLOCK_START:case A0.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(a)!==null)return;throw new aa(a);case A0.PLUS_LOOP_BACK:case A0.STAR_LOOP_BACK:this.reportUnwantedToken(a);var W=new b0;W.addSet(a.getExpectedTokens());var C=W.addSet(this.getErrorRecoverySet(a));this.consumeUntil(a,C)}}}},{key:"reportNoViableAlternative",value:function(a,p){var _,R=a.getTokenStream();_=R!==null?p.startToken.type===n.EOF?"<EOF>":R.getText(new X0(p.startToken.tokenIndex,p.offendingToken.tokenIndex)):"<unknown input>";var W="no viable alternative at input "+this.escapeWSAndQuote(_);a.notifyErrorListeners(W,p.offendingToken,p)}},{key:"reportInputMismatch",value:function(a,p){var _="mismatched input "+this.getTokenErrorDisplay(p.offendingToken)+" expecting "+p.getExpectedTokens().toString(a.literalNames,a.symbolicNames);a.notifyErrorListeners(_,p.offendingToken,p)}},{key:"reportFailedPredicate",value:function(a,p){var _="rule "+a.ruleNames[a._ctx.ruleIndex]+" "+p.message;a.notifyErrorListeners(_,p.offendingToken,p)}},{key:"reportUnwantedToken",value:function(a){if(!this.inErrorRecoveryMode(a)){this.beginErrorCondition(a);var p=a.getCurrentToken(),_="extraneous input "+this.getTokenErrorDisplay(p)+" expecting "+this.getExpectedTokens(a).toString(a.literalNames,a.symbolicNames);a.notifyErrorListeners(_,p,null)}}},{key:"reportMissingToken",value:function(a){if(!this.inErrorRecoveryMode(a)){this.beginErrorCondition(a);var p=a.getCurrentToken(),_="missing "+this.getExpectedTokens(a).toString(a.literalNames,a.symbolicNames)+" at "+this.getTokenErrorDisplay(p);a.notifyErrorListeners(_,p,null)}}},{key:"recoverInline",value:function(a){var p=this.singleTokenDeletion(a);if(p!==null)return a.consume(),p;if(this.singleTokenInsertion(a))return this.getMissingSymbol(a);throw new aa(a)}},{key:"singleTokenInsertion",value:function(a){var p=a.getTokenStream().LA(1),_=a._interp.atn,R=_.states[a.state].transitions[0].target;return!!_.nextTokens(R,a._ctx).contains(p)&&(this.reportMissingToken(a),!0)}},{key:"singleTokenDeletion",value:function(a){var p=a.getTokenStream().LA(2);if(this.getExpectedTokens(a).contains(p)){this.reportUnwantedToken(a),a.consume();var _=a.getCurrentToken();return this.reportMatch(a),_}return null}},{key:"getMissingSymbol",value:function(a){var p,_=a.getCurrentToken(),R=this.getExpectedTokens(a).first();p=R===n.EOF?"<missing EOF>":"<missing "+a.literalNames[R]+">";var W=_,C=a.getTokenStream().LT(-1);return W.type===n.EOF&&C!==null&&(W=C),a.getTokenFactory().create(W.source,R,p,n.DEFAULT_CHANNEL,-1,-1,W.line,W.column)}},{key:"getExpectedTokens",value:function(a){return a.getExpectedTokens()}},{key:"getTokenErrorDisplay",value:function(a){if(a===null)return"<no token>";var p=a.text;return p===null&&(p=a.type===n.EOF?"<EOF>":"<"+a.type+">"),this.escapeWSAndQuote(p)}},{key:"escapeWSAndQuote",value:function(a){return"'"+(a=(a=(a=a.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}},{key:"getErrorRecoverySet",value:function(a){for(var p=a._interp.atn,_=a._ctx,R=new b0;_!==null&&_.invokingState>=0;){var W=p.states[_.invokingState].transitions[0],C=p.nextTokens(W.followState);R.addSet(C),_=_.parentCtx}return R.removeOne(n.EPSILON),R}},{key:"consumeUntil",value:function(a,p){for(var _=a.getTokenStream().LA(1);_!==n.EOF&&!p.contains(_);)a.consume(),_=a.getTokenStream().LA(1)}}],l&&Y5(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),f}(function(){function u(){(function(c,O){if(!(c instanceof O))throw new TypeError("Cannot call a class as a function")})(this,u)}var o,l;return o=u,(l=[{key:"reset",value:function(c){}},{key:"recoverInline",value:function(c){}},{key:"recover",value:function(c,O){}},{key:"sync",value:function(c){}},{key:"inErrorRecoveryMode",value:function(c){}},{key:"reportError",value:function(c){}}])&&K5(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),u}());function Hi(u){return Hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Hi(u)}function Q5(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(Hi(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(Hi(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),Hi(O)==="symbol"?O:String(O)),c)}var O}function ou(u,o){return ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},ou(u,o)}function Ws(u){return Ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},Ws(u)}var Gl=function(u){(function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),p&&ou(a,p)})(f,u);var o,l,c,O,M=(c=f,O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,p=Ws(c);if(O){var _=Ws(this).constructor;a=Reflect.construct(p,arguments,_)}else a=p.apply(this,arguments);return function(R,W){if(W&&(Hi(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(R)}(this,a)});function f(){return function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")}(this,f),M.call(this)}return o=f,l=[{key:"recover",value:function(a,p){for(var _=a._ctx;_!==null;)_.exception=p,_=_.parentCtx;throw new G5(p)}},{key:"recoverInline",value:function(a){this.recover(a,new aa(a))}},{key:"sync",value:function(a){}}],l&&Q5(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),f}(ru);const J5={RecognitionException:Lo,NoViableAltException:fs,LexerNoViableAltException:NM,InputMismatchException:aa,FailedPredicateException:QM,DiagnosticErrorListener:jl,BailErrorStrategy:Gl,DefaultErrorStrategy:ru,ErrorListener:F2};function ba(u){return ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ba(u)}function Z5(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(ba(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(ba(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),ba(O)==="symbol"?O:String(O)),c)}var O}var Ma=function(){function u(c,O){if(function(p,_){if(!(p instanceof _))throw new TypeError("Cannot call a class as a function")}(this,u),this.name="<empty>",this.strdata=c,this.decodeToUnicodeCodePoints=O||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(var M=0;M<this.strdata.length;){var f=this.strdata.codePointAt(M);this.data.push(f),M+=f<=65535?1:2}else{this.data=new Array(this.strdata.length);for(var a=0;a<this.strdata.length;a++)this.data[a]=this.strdata.charCodeAt(a)}this._size=this.data.length}var o,l;return o=u,(l=[{key:"reset",value:function(){this._index=0}},{key:"consume",value:function(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1}},{key:"LA",value:function(c){if(c===0)return 0;c<0&&(c+=1);var O=this._index+c-1;return O<0||O>=this._size?n.EOF:this.data[O]}},{key:"LT",value:function(c){return this.LA(c)}},{key:"mark",value:function(){return-1}},{key:"release",value:function(c){}},{key:"seek",value:function(c){c<=this._index?this._index=c:this._index=Math.min(c,this._size)}},{key:"getText",value:function(c,O){if(O>=this._size&&(O=this._size-1),c>=this._size)return"";if(this.decodeToUnicodeCodePoints){for(var M="",f=c;f<=O;f++)M+=String.fromCodePoint(this.data[f]);return M}return this.strdata.slice(c,O+1)}},{key:"toString",value:function(){return this.strdata}},{key:"index",get:function(){return this._index}},{key:"size",get:function(){return this._size}}])&&Z5(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),u}();function iu(u){return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},iu(u)}function au(u,o){return au=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},au(u,o)}function gs(u){return gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},gs(u)}var ua=function(u){(function(f,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),a&&au(f,a)})(M,u);var o,l,c,O=(l=M,c=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var f,a=gs(l);if(c){var p=gs(this).constructor;f=Reflect.construct(a,arguments,p)}else f=a.apply(this,arguments);return function(_,R){if(R&&(iu(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(W){if(W===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}(_)}(this,f)});function M(f,a){return function(p,_){if(!(p instanceof _))throw new TypeError("Cannot call a class as a function")}(this,M),O.call(this,f,a)}return o=M,Object.defineProperty(o,"prototype",{writable:!1}),o}(Ma),Kl=Ut(92);function $i(u){return $i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},$i(u)}function em(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if($i(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if($i(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),$i(O)==="symbol"?O:String(O)),c)}var O}function cu(u,o){return cu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},cu(u,o)}function Rs(u){return Rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},Rs(u)}var Yl=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Ql=function(u){(function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),p&&cu(a,p)})(f,u);var o,l,c,O,M=(c=f,O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,p=Rs(c);if(O){var _=Rs(this).constructor;a=Reflect.construct(p,arguments,_)}else a=p.apply(this,arguments);return function(R,W){if(W&&($i(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(R)}(this,a)});function f(a,p,_){var R;if(function(C,r0){if(!(C instanceof r0))throw new TypeError("Cannot call a class as a function")}(this,f),!Yl)throw new Error("FileStream is only available when running in Node!");var W=Kl.readFileSync(a,p||"utf-8");return(R=M.call(this,W,_)).fileName=a,R}return o=f,l=[{key:"fromPath",value:function(a,p,_){if(!Yl)throw new Error("FileStream is only available when running in Node!");Kl.readFile(a,p,function(R,W){var C=null;W!==null&&(C=new Ma(W,!0)),_(R,C)})}}],l&&em(o,l),Object.defineProperty(o,"prototype",{writable:!1}),f}(ua);const Jl={fromString:function(u){return new Ma(u,!0)},fromBlob:function(u,o,l,c){var O=new window.FileReader;O.onload=function(M){var f=new Ma(M.target.result,!0);l(f)},O.onerror=c,O.readAsText(u,o)},fromBuffer:function(u,o){return new Ma(u.toString(o),!0)},fromPath:function(u,o,l){Ql.fromPath(u,o,l)},fromPathSync:function(u,o){return new Ql(u,o)}},tm={arrayToString:k,stringToCharArray:function(u){for(var o=new Uint16Array(u.length),l=0;l<u.length;l++)o[l]=u.charCodeAt(l);return o}};function za(u){return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},za(u)}function Zl(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(za(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(za(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),za(O)==="symbol"?O:String(O)),c)}var O}function nm(u,o,l){return o&&Zl(u.prototype,o),l&&Zl(u,l),Object.defineProperty(u,"prototype",{writable:!1}),u}function Gi(u){return Gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Gi(u)}function rm(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(Gi(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(Gi(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),Gi(O)==="symbol"?O:String(O)),c)}var O}function su(u,o){return su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},su(u,o)}function Es(u){return Es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},Es(u)}var e3=function(u){(function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),p&&su(a,p)})(f,u);var o,l,c,O,M=(c=f,O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,p=Es(c);if(O){var _=Es(this).constructor;a=Reflect.construct(p,arguments,_)}else a=p.apply(this,arguments);return function(R,W){if(W&&(Gi(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(R)}(this,a)});function f(a){var p;return function(_,R){if(!(_ instanceof R))throw new TypeError("Cannot call a class as a function")}(this,f),(p=M.call(this)).tokenSource=a,p.tokens=[],p.index=-1,p.fetchedEOF=!1,p}return o=f,(l=[{key:"mark",value:function(){return 0}},{key:"release",value:function(a){}},{key:"reset",value:function(){this.seek(0)}},{key:"seek",value:function(a){this.lazyInit(),this.index=this.adjustSeekIndex(a)}},{key:"size",get:function(){return this.tokens.length}},{key:"get",value:function(a){return this.lazyInit(),this.tokens[a]}},{key:"consume",value:function(){if(!(this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length))&&this.LA(1)===n.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}},{key:"sync",value:function(a){var p=a-this.tokens.length+1;return!(p>0)||this.fetch(p)>=p}},{key:"fetch",value:function(a){if(this.fetchedEOF)return 0;for(var p=0;p<a;p++){var _=this.tokenSource.nextToken();if(_.tokenIndex=this.tokens.length,this.tokens.push(_),_.type===n.EOF)return this.fetchedEOF=!0,p+1}return a}},{key:"getTokens",value:function(a,p,_){if(_===void 0&&(_=null),a<0||p<0)return null;this.lazyInit();var R=[];p>=this.tokens.length&&(p=this.tokens.length-1);for(var W=a;W<p;W++){var C=this.tokens[W];if(C.type===n.EOF)break;(_===null||_.contains(C.type))&&R.push(C)}return R}},{key:"LA",value:function(a){return this.LT(a).type}},{key:"LB",value:function(a){return this.index-a<0?null:this.tokens[this.index-a]}},{key:"LT",value:function(a){if(this.lazyInit(),a===0)return null;if(a<0)return this.LB(-a);var p=this.index+a-1;return this.sync(p),p>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[p]}},{key:"adjustSeekIndex",value:function(a){return a}},{key:"lazyInit",value:function(){this.index===-1&&this.setup()}},{key:"setup",value:function(){this.sync(0),this.index=this.adjustSeekIndex(0)}},{key:"setTokenSource",value:function(a){this.tokenSource=a,this.tokens=[],this.index=-1,this.fetchedEOF=!1}},{key:"nextTokenOnChannel",value:function(a,p){if(this.sync(a),a>=this.tokens.length)return-1;for(var _=this.tokens[a];_.channel!==this.channel;){if(_.type===n.EOF)return-1;a+=1,this.sync(a),_=this.tokens[a]}return a}},{key:"previousTokenOnChannel",value:function(a,p){for(;a>=0&&this.tokens[a].channel!==p;)a-=1;return a}},{key:"getHiddenTokensToRight",value:function(a,p){if(p===void 0&&(p=-1),this.lazyInit(),a<0||a>=this.tokens.length)throw a+" not in 0.."+this.tokens.length-1;var _=this.nextTokenOnChannel(a+1,mt.DEFAULT_TOKEN_CHANNEL),R=a+1,W=_===-1?this.tokens.length-1:_;return this.filterForChannel(R,W,p)}},{key:"getHiddenTokensToLeft",value:function(a,p){if(p===void 0&&(p=-1),this.lazyInit(),a<0||a>=this.tokens.length)throw a+" not in 0.."+this.tokens.length-1;var _=this.previousTokenOnChannel(a-1,mt.DEFAULT_TOKEN_CHANNEL);if(_===a-1)return null;var R=_+1,W=a-1;return this.filterForChannel(R,W,p)}},{key:"filterForChannel",value:function(a,p,_){for(var R=[],W=a;W<p+1;W++){var C=this.tokens[W];_===-1?C.channel!==mt.DEFAULT_TOKEN_CHANNEL&&R.push(C):C.channel===_&&R.push(C)}return R.length===0?null:R}},{key:"getSourceName",value:function(){return this.tokenSource.getSourceName()}},{key:"getText",value:function(a){this.lazyInit(),this.fill(),a||(a=new X0(0,this.tokens.length-1));var p=a.start;p instanceof n&&(p=p.tokenIndex);var _=a.stop;if(_ instanceof n&&(_=_.tokenIndex),p===null||_===null||p<0||_<0)return"";_>=this.tokens.length&&(_=this.tokens.length-1);for(var R="",W=p;W<_+1;W++){var C=this.tokens[W];if(C.type===n.EOF)break;R+=C.text}return R}},{key:"fill",value:function(){for(this.lazyInit();this.fetch(1e3)===1e3;);}}])&&rm(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),f}(nm(function u(){(function(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")})(this,u)}));function Ki(u){return Ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ki(u)}function om(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(Ki(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(Ki(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),Ki(O)==="symbol"?O:String(O)),c)}var O}function pu(u,o){return pu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},pu(u,o)}function vs(u){return vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},vs(u)}Object.defineProperty(e3,"size",{get:function(){return this.tokens.length}});var t3=function(u){(function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),p&&pu(a,p)})(f,u);var o,l,c,O,M=(c=f,O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,p=vs(c);if(O){var _=vs(this).constructor;a=Reflect.construct(p,arguments,_)}else a=p.apply(this,arguments);return function(R,W){if(W&&(Ki(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(R)}(this,a)});function f(a,p){var _;return function(R,W){if(!(R instanceof W))throw new TypeError("Cannot call a class as a function")}(this,f),(_=M.call(this,a)).channel=p===void 0?n.DEFAULT_CHANNEL:p,_}return o=f,(l=[{key:"adjustSeekIndex",value:function(a){return this.nextTokenOnChannel(a,this.channel)}},{key:"LB",value:function(a){if(a===0||this.index-a<0)return null;for(var p=this.index,_=1;_<=a;)p=this.previousTokenOnChannel(p-1,this.channel),_+=1;return p<0?null:this.tokens[p]}},{key:"LT",value:function(a){if(this.lazyInit(),a===0)return null;if(a<0)return this.LB(-a);for(var p=this.index,_=1;_<a;)this.sync(p+1)&&(p=this.nextTokenOnChannel(p+1,this.channel)),_+=1;return this.tokens[p]}},{key:"getNumberOfOnChannelTokens",value:function(){var a=0;this.fill();for(var p=0;p<this.tokens.length;p++){var _=this.tokens[p];if(_.channel===this.channel&&(a+=1),_.type===n.EOF)break}return a}}])&&om(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),f}(e3);function Yi(u){return Yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Yi(u)}function im(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(Yi(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(Yi(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),Yi(O)==="symbol"?O:String(O)),c)}var O}function bu(u,o){return bu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},bu(u,o)}function Ts(u){return Ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},Ts(u)}var am=function(u){(function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),p&&bu(a,p)})(f,u);var o,l,c,O,M=(c=f,O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,p=Ts(c);if(O){var _=Ts(this).constructor;a=Reflect.construct(p,arguments,_)}else a=p.apply(this,arguments);return function(R,W){if(W&&(Yi(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(R)}(this,a)});function f(a){var p;return function(_,R){if(!(_ instanceof R))throw new TypeError("Cannot call a class as a function")}(this,f),(p=M.call(this)).parser=a,p}return o=f,(l=[{key:"enterEveryRule",value:function(a){console.log("enter "+this.parser.ruleNames[a.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}},{key:"visitTerminal",value:function(a){console.log("consume "+a.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}},{key:"exitEveryRule",value:function(a){console.log("exit "+this.parser.ruleNames[a.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}])&&im(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),f}(HM);function Qi(u){return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Qi(u)}function cm(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(Qi(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(Qi(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),Qi(O)==="symbol"?O:String(O)),c)}var O}function Mu(u,o){return Mu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},Mu(u,o)}function Ss(u){return Ss=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},Ss(u)}var uu=function(u){(function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),p&&Mu(a,p)})(f,u);var o,l,c,O,M=(c=f,O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,p=Ss(c);if(O){var _=Ss(this).constructor;a=Reflect.construct(p,arguments,_)}else a=p.apply(this,arguments);return function(R,W){if(W&&(Qi(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(R)}(this,a)});function f(a){var p;return function(_,R){if(!(_ instanceof R))throw new TypeError("Cannot call a class as a function")}(this,f),(p=M.call(this))._input=null,p._errHandler=new ru,p._precedenceStack=[],p._precedenceStack.push(0),p._ctx=null,p.buildParseTrees=!0,p._tracer=null,p._parseListeners=null,p._syntaxErrors=0,p.setInputStream(a),p}return o=f,l=[{key:"reset",value:function(){this._input!==null&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),this._interp!==null&&this._interp.reset()}},{key:"match",value:function(a){var p=this.getCurrentToken();return p.type===a?(this._errHandler.reportMatch(this),this.consume()):(p=this._errHandler.recoverInline(this),this.buildParseTrees&&p.tokenIndex===-1&&this._ctx.addErrorNode(p)),p}},{key:"matchWildcard",value:function(){var a=this.getCurrentToken();return a.type>0?(this._errHandler.reportMatch(this),this.consume()):(a=this._errHandler.recoverInline(this),this.buildParseTrees&&a.tokenIndex===-1&&this._ctx.addErrorNode(a)),a}},{key:"getParseListeners",value:function(){return this._parseListeners||[]}},{key:"addParseListener",value:function(a){if(a===null)throw"listener";this._parseListeners===null&&(this._parseListeners=[]),this._parseListeners.push(a)}},{key:"removeParseListener",value:function(a){if(this._parseListeners!==null){var p=this._parseListeners.indexOf(a);p>=0&&this._parseListeners.splice(p,1),this._parseListeners.length===0&&(this._parseListeners=null)}}},{key:"removeParseListeners",value:function(){this._parseListeners=null}},{key:"triggerEnterRuleEvent",value:function(){if(this._parseListeners!==null){var a=this._ctx;this._parseListeners.forEach(function(p){p.enterEveryRule(a),a.enterRule(p)})}}},{key:"triggerExitRuleEvent",value:function(){if(this._parseListeners!==null){var a=this._ctx;this._parseListeners.slice(0).reverse().forEach(function(p){a.exitRule(p),p.exitEveryRule(a)})}}},{key:"getTokenFactory",value:function(){return this._input.tokenSource._factory}},{key:"setTokenFactory",value:function(a){this._input.tokenSource._factory=a}},{key:"getATNWithBypassAlts",value:function(){var a=this.getSerializedATN();if(a===null)throw"The current parser does not support an ATN with bypass alternatives.";var p=this.bypassAltsAtnCache[a];if(p===null){var _=new w2;_.generateRuleBypassTransitions=!0,p=new _M(_).deserialize(a),this.bypassAltsAtnCache[a]=p}return p}},{key:"getInputStream",value:function(){return this.getTokenStream()}},{key:"setInputStream",value:function(a){this.setTokenStream(a)}},{key:"getTokenStream",value:function(){return this._input}},{key:"setTokenStream",value:function(a){this._input=null,this.reset(),this._input=a}},{key:"syntaxErrorsCount",get:function(){return this._syntaxErrors}},{key:"getCurrentToken",value:function(){return this._input.LT(1)}},{key:"notifyErrorListeners",value:function(a,p,_){_=_||null,(p=p||null)===null&&(p=this.getCurrentToken()),this._syntaxErrors+=1;var R=p.line,W=p.column;this.getErrorListenerDispatch().syntaxError(this,p,R,W,a,_)}},{key:"consume",value:function(){var a=this.getCurrentToken();a.type!==n.EOF&&this.getInputStream().consume();var p,_=this._parseListeners!==null&&this._parseListeners.length>0;return(this.buildParseTrees||_)&&((p=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(a):this._ctx.addTokenNode(a)).invokingState=this.state,_&&this._parseListeners.forEach(function(R){p instanceof ln||p.isErrorNode!==void 0&&p.isErrorNode()?R.visitErrorNode(p):p instanceof le&&R.visitTerminal(p)})),a}},{key:"addContextToParseTree",value:function(){this._ctx.parentCtx!==null&&this._ctx.parentCtx.addChild(this._ctx)}},{key:"enterRule",value:function(a,p,_){this.state=p,this._ctx=a,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}},{key:"exitRule",value:function(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}},{key:"enterOuterAlt",value:function(a,p){a.setAltNumber(p),this.buildParseTrees&&this._ctx!==a&&this._ctx.parentCtx!==null&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(a)),this._ctx=a}},{key:"getPrecedence",value:function(){return this._precedenceStack.length===0?-1:this._precedenceStack[this._precedenceStack.length-1]}},{key:"enterRecursionRule",value:function(a,p,_,R){this.state=p,this._precedenceStack.push(R),this._ctx=a,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}},{key:"pushNewRecursionContext",value:function(a,p,_){var R=this._ctx;R.parentCtx=a,R.invokingState=p,R.stop=this._input.LT(-1),this._ctx=a,this._ctx.start=R.start,this.buildParseTrees&&this._ctx.addChild(R),this.triggerEnterRuleEvent()}},{key:"unrollRecursionContexts",value:function(a){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);var p=this._ctx,_=this.getParseListeners();if(_!==null&&_.length>0)for(;this._ctx!==a;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=a;p.parentCtx=a,this.buildParseTrees&&a!==null&&a.addChild(p)}},{key:"getInvokingContext",value:function(a){for(var p=this._ctx;p!==null;){if(p.ruleIndex===a)return p;p=p.parentCtx}return null}},{key:"precpred",value:function(a,p){return p>=this._precedenceStack[this._precedenceStack.length-1]}},{key:"inContext",value:function(a){return!1}},{key:"isExpectedToken",value:function(a){var p=this._interp.atn,_=this._ctx,R=p.states[this.state],W=p.nextTokens(R);if(W.contains(a))return!0;if(!W.contains(n.EPSILON))return!1;for(;_!==null&&_.invokingState>=0&&W.contains(n.EPSILON);){var C=p.states[_.invokingState].transitions[0];if((W=p.nextTokens(C.followState)).contains(a))return!0;_=_.parentCtx}return!(!W.contains(n.EPSILON)||a!==n.EOF)}},{key:"getExpectedTokens",value:function(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}},{key:"getExpectedTokensWithinCurrentRule",value:function(){var a=this._interp.atn,p=a.states[this.state];return a.nextTokens(p)}},{key:"getRuleIndex",value:function(a){var p=this.getRuleIndexMap()[a];return p!==null?p:-1}},{key:"getRuleInvocationStack",value:function(a){(a=a||null)===null&&(a=this._ctx);for(var p=[];a!==null;){var _=a.ruleIndex;_<0?p.push("n/a"):p.push(this.ruleNames[_]),a=a.parentCtx}return p}},{key:"getDFAStrings",value:function(){return this._interp.decisionToDFA.toString()}},{key:"dumpDFA",value:function(){for(var a=!1,p=0;p<this._interp.decisionToDFA.length;p++){var _=this._interp.decisionToDFA[p];_.states.length>0&&(a&&console.log(),this.printer.println("Decision "+_.decision+":"),this.printer.print(_.toString(this.literalNames,this.symbolicNames)),a=!0)}}},{key:"getSourceName",value:function(){return this._input.sourceName}},{key:"setTrace",value:function(a){a?(this._tracer!==null&&this.removeParseListener(this._tracer),this._tracer=new am(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}],l&&cm(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),f}(cs);function Ji(u){return Ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ji(u)}function sm(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(Ji(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(Ji(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),Ji(O)==="symbol"?O:String(O)),c)}var O}function zu(u,o){return zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},zu(u,o)}function Ls(u){return Ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},Ls(u)}uu.bypassAltsAtnCache={};var n3=function(u){(function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),p&&zu(a,p)})(f,u);var o,l,c,O,M=(c=f,O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,p=Ls(c);if(O){var _=Ls(this).constructor;a=Reflect.construct(p,arguments,_)}else a=p.apply(this,arguments);return function(R,W){if(W&&(Ji(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(R)}(this,a)});function f(a){var p;return function(_,R){if(!(_ instanceof R))throw new TypeError("Cannot call a class as a function")}(this,f),(p=M.call(this)).parentCtx=null,p.symbol=a,p}return o=f,(l=[{key:"getChild",value:function(a){return null}},{key:"getSymbol",value:function(){return this.symbol}},{key:"getParent",value:function(){return this.parentCtx}},{key:"getPayload",value:function(){return this.symbol}},{key:"getSourceInterval",value:function(){if(this.symbol===null)return X0.INVALID_INTERVAL;var a=this.symbol.tokenIndex;return new X0(a,a)}},{key:"getChildCount",value:function(){return 0}},{key:"accept",value:function(a){return a.visitTerminal(this)}},{key:"getText",value:function(){return this.symbol.text}},{key:"toString",value:function(){return this.symbol.type===n.EOF?"<EOF>":this.symbol.text}}])&&sm(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),f}(le);function Zi(u){return Zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Zi(u)}function pm(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(Zi(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(Zi(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),Zi(O)==="symbol"?O:String(O)),c)}var O}function Ou(u,o){return Ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},Ou(u,o)}function Ns(u){return Ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},Ns(u)}var r3=function(u){(function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),p&&Ou(a,p)})(f,u);var o,l,c,O,M=(c=f,O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,p=Ns(c);if(O){var _=Ns(this).constructor;a=Reflect.construct(p,arguments,_)}else a=p.apply(this,arguments);return function(R,W){if(W&&(Zi(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(R)}(this,a)});function f(a){return function(p,_){if(!(p instanceof _))throw new TypeError("Cannot call a class as a function")}(this,f),M.call(this,a)}return o=f,(l=[{key:"isErrorNode",value:function(){return!0}},{key:"accept",value:function(a){return a.visitErrorNode(this)}}])&&pm(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),f}(n3);function e2(u){return e2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},e2(u)}function bm(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,(O=function(M,f){if(e2(M)!=="object"||M===null)return M;var a=M[Symbol.toPrimitive];if(a!==void 0){var p=a.call(M,"string");if(e2(p)!=="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(c.key),e2(O)==="symbol"?O:String(O)),c)}var O}function lu(u,o){return lu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},lu(u,o)}function Cs(u){return Cs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},Cs(u)}var fu=function(u){(function(a,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),p&&lu(a,p)})(f,u);var o,l,c,O,M=(c=f,O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,p=Cs(c);if(O){var _=Cs(this).constructor;a=Reflect.construct(p,arguments,_)}else a=p.apply(this,arguments);return function(R,W){if(W&&(e2(W)==="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(R)}(this,a)});function f(a,p){var _;return function(R,W){if(!(R instanceof W))throw new TypeError("Cannot call a class as a function")}(this,f),(_=M.call(this,a,p)).children=null,_.start=null,_.stop=null,_.exception=null,_}return o=f,(l=[{key:"copyFrom",value:function(a){this.parentCtx=a.parentCtx,this.invokingState=a.invokingState,this.children=null,this.start=a.start,this.stop=a.stop,a.children&&(this.children=[],a.children.map(function(p){p instanceof r3&&(this.children.push(p),p.parentCtx=this)},this))}},{key:"enterRule",value:function(a){}},{key:"exitRule",value:function(a){}},{key:"addChild",value:function(a){return this.children===null&&(this.children=[]),this.children.push(a),a}},{key:"removeLastChild",value:function(){this.children!==null&&this.children.pop()}},{key:"addTokenNode",value:function(a){var p=new n3(a);return this.addChild(p),p.parentCtx=this,p}},{key:"addErrorNode",value:function(a){var p=new r3(a);return this.addChild(p),p.parentCtx=this,p}},{key:"getChild",value:function(a,p){if(p=p||null,this.children===null||a<0||a>=this.children.length)return null;if(p===null)return this.children[a];for(var _=0;_<this.children.length;_++){var R=this.children[_];if(R instanceof p){if(a===0)return R;a-=1}}return null}},{key:"getToken",value:function(a,p){if(this.children===null||p<0||p>=this.children.length)return null;for(var _=0;_<this.children.length;_++){var R=this.children[_];if(R instanceof le&&R.symbol.type===a){if(p===0)return R;p-=1}}return null}},{key:"getTokens",value:function(a){if(this.children===null)return[];for(var p=[],_=0;_<this.children.length;_++){var R=this.children[_];R instanceof le&&R.symbol.type===a&&p.push(R)}return p}},{key:"getTypedRuleContext",value:function(a,p){return this.getChild(p,a)}},{key:"getTypedRuleContexts",value:function(a){if(this.children===null)return[];for(var p=[],_=0;_<this.children.length;_++){var R=this.children[_];R instanceof a&&p.push(R)}return p}},{key:"getChildCount",value:function(){return this.children===null?0:this.children.length}},{key:"getSourceInterval",value:function(){return this.start===null||this.stop===null?X0.INVALID_INTERVAL:new X0(this.start.tokenIndex,this.stop.tokenIndex)}}])&&bm(o.prototype,l),Object.defineProperty(o,"prototype",{writable:!1}),f}(Br);function Au(u,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(o&&o.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),o&&du(u,o)}function du(u,o){return du=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,c){return l.__proto__=c,l},du(u,o)}function hu(u){var o=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var l,c=Bs(u);if(o){var O=Bs(this).constructor;l=Reflect.construct(c,arguments,O)}else l=c.apply(this,arguments);return function(M,f){if(f&&(t2(f)==="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}(M)}(this,l)}}function Bs(u){return Bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},Bs(u)}function t2(u){return t2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t2(u)}function n2(u,o){var l=typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(!l){if(Array.isArray(u)||(l=function(p,_){if(p){if(typeof p=="string")return o3(p,_);var R=Object.prototype.toString.call(p).slice(8,-1);return R==="Object"&&p.constructor&&(R=p.constructor.name),R==="Map"||R==="Set"?Array.from(p):R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R)?o3(p,_):void 0}}(u))||o&&u&&typeof u.length=="number"){l&&(u=l);var c=0,O=function(){};return{s:O,n:function(){return c>=u.length?{done:!0}:{done:!1,value:u[c++]}},e:function(p){throw p},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
10
10
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,f=!0,a=!1;return{s:function(){l=l.call(u)},n:function(){var p=l.next();return f=p.done,p},e:function(p){a=!0,M=p},f:function(){try{f||l.return==null||l.return()}finally{if(a)throw M}}}}function o3(u,o){(o==null||o>u.length)&&(o=u.length);for(var l=0,c=new Array(o);l<o;l++)c[l]=u[l];return c}function Oa(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}function i3(u,o){for(var l=0;l<o.length;l++){var c=o[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,a3(c.key),c)}}function la(u,o,l){return o&&i3(u.prototype,o),l&&i3(u,l),Object.defineProperty(u,"prototype",{writable:!1}),u}function a3(u){var o=function(l,c){if(t2(l)!=="object"||l===null)return l;var O=l[Symbol.toPrimitive];if(O!==void 0){var M=O.call(l,"string");if(t2(M)!=="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(u);return t2(o)==="symbol"?o:String(o)}Br.EMPTY=new fu;var xs,Ds,qu,c3=function(){function u(o){Oa(this,u),this.tokens=o,this.programs=new Map}return la(u,[{key:"getTokenStream",value:function(){return this.tokens}},{key:"insertAfter",value:function(o,l){var c,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.DEFAULT_PROGRAM_NAME;c=typeof o=="number"?o:o.tokenIndex;var M=this.getProgram(O),f=new p3(this.tokens,c,M.length,l);M.push(f)}},{key:"insertBefore",value:function(o,l){var c,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.DEFAULT_PROGRAM_NAME;c=typeof o=="number"?o:o.tokenIndex;var M=this.getProgram(O),f=new r2(this.tokens,c,M.length,l);M.push(f)}},{key:"replaceSingle",value:function(o,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.DEFAULT_PROGRAM_NAME;this.replace(o,o,l,c)}},{key:"replace",value:function(o,l,c){var O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:u.DEFAULT_PROGRAM_NAME;if(typeof o!="number"&&(o=o.tokenIndex),typeof l!="number"&&(l=l.tokenIndex),o>l||o<0||l<0||l>=this.tokens.size)throw new RangeError("replace: range invalid: ".concat(o,"..").concat(l,"(size=").concat(this.tokens.size,")"));var M=this.getProgram(O),f=new ks(this.tokens,o,l,M.length,c);M.push(f)}},{key:"delete",value:function(o,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.DEFAULT_PROGRAM_NAME;l===void 0&&(l=o),this.replace(o,l,null,c)}},{key:"getProgram",value:function(o){var l=this.programs.get(o);return l==null&&(l=this.initializeProgram(o)),l}},{key:"initializeProgram",value:function(o){var l=[];return this.programs.set(o,l),l}},{key:"getText",value:function(o){var l,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.DEFAULT_PROGRAM_NAME;l=o instanceof X0?o:new X0(0,this.tokens.size-1),typeof o=="string"&&(c=o);var O=this.programs.get(c),M=l.start,f=l.stop;if(f>this.tokens.size-1&&(f=this.tokens.size-1),M<0&&(M=0),O==null||O.length===0)return this.tokens.getText(new X0(M,f));for(var a=[],p=this.reduceToSingleOperationPerIndex(O),_=M;_<=f&&_<this.tokens.size;){var R=p.get(_);p.delete(_);var W=this.tokens.get(_);R==null?(W.type!==n.EOF&&a.push(String(W.text)),_++):_=R.execute(a)}if(f===this.tokens.size-1){var C,r0=n2(p.values());try{for(r0.s();!(C=r0.n()).done;){var E0=C.value;E0.index>=this.tokens.size-1&&a.push(E0.text.toString())}}catch(R0){r0.e(R0)}finally{r0.f()}}return a.join("")}},{key:"reduceToSingleOperationPerIndex",value:function(o){for(var l=0;l<o.length;l++){var c=o[l];if(c!=null&&c instanceof ks){var O,M=c,f=n2(this.getKindOfOps(o,r2,l));try{for(f.s();!(O=f.n()).done;){var a=O.value;a.index===M.index?(o[a.instructionIndex]=void 0,M.text=a.text.toString()+(M.text!=null?M.text.toString():"")):a.index>M.index&&a.index<=M.lastIndex&&(o[a.instructionIndex]=void 0)}}catch(Ft){f.e(Ft)}finally{f.f()}var p,_=n2(this.getKindOfOps(o,ks,l));try{for(_.s();!(p=_.n()).done;){var R=p.value;if(R.index>=M.index&&R.lastIndex<=M.lastIndex)o[R.instructionIndex]=void 0;else{var W=R.lastIndex<M.index||R.index>M.lastIndex;if(R.text!=null||M.text!=null||W){if(!W)throw new Error("replace op boundaries of ".concat(M," overlap with previous ").concat(R))}else o[R.instructionIndex]=void 0,M.index=Math.min(R.index,M.index),M.lastIndex=Math.max(R.lastIndex,M.lastIndex)}}}catch(Ft){_.e(Ft)}finally{_.f()}}}for(var C=0;C<o.length;C++){var r0=o[C];if(r0!=null&&r0 instanceof r2){var E0,R0=r0,H0=n2(this.getKindOfOps(o,r2,C));try{for(H0.s();!(E0=H0.n()).done;){var O1=E0.value;O1.index===R0.index&&(O1 instanceof p3?(R0.text=this.catOpText(O1.text,R0.text),o[O1.instructionIndex]=void 0):O1 instanceof r2&&(R0.text=this.catOpText(R0.text,O1.text),o[O1.instructionIndex]=void 0))}}catch(Ft){H0.e(Ft)}finally{H0.f()}var K0,ve=n2(this.getKindOfOps(o,ks,C));try{for(ve.s();!(K0=ve.n()).done;){var ye=K0.value;if(R0.index!==ye.index){if(R0.index>=ye.index&&R0.index<=ye.lastIndex)throw new Error("insert op ".concat(R0," within boundaries of previous ").concat(ye))}else ye.text=this.catOpText(R0.text,ye.text),o[C]=void 0}}catch(Ft){ve.e(Ft)}finally{ve.f()}}}var at,rn=new Map,ir=n2(o);try{for(ir.s();!(at=ir.n()).done;){var ar=at.value;if(ar!=null){if(rn.get(ar.index)!=null)throw new Error("should only be one op per index");rn.set(ar.index,ar)}}}catch(Ft){ir.e(Ft)}finally{ir.f()}return rn}},{key:"catOpText",value:function(o,l){var c="",O="";return o!=null&&(c=o.toString()),l!=null&&(O=l.toString()),c+O}},{key:"getKindOfOps",value:function(o,l,c){return o.slice(0,c).filter(function(O){return O&&O instanceof l})}}]),u}();xs=c3,qu="default",(Ds=a3(Ds="DEFAULT_PROGRAM_NAME"))in xs?Object.defineProperty(xs,Ds,{value:qu,enumerable:!0,configurable:!0,writable:!0}):xs[Ds]=qu;var s3=function(){function u(o,l,c,O){Oa(this,u),this.tokens=o,this.instructionIndex=c,this.index=l,this.text=O===void 0?"":O}return la(u,[{key:"toString",value:function(){var o=this.constructor.name,l=o.indexOf("$");return"<"+(o=o.substring(l+1,o.length))+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}]),u}(),r2=function(u){Au(l,u);var o=hu(l);function l(c,O,M,f){return Oa(this,l),o.call(this,c,O,M,f)}return la(l,[{key:"execute",value:function(c){return this.text&&c.push(this.text.toString()),this.tokens.get(this.index).type!==n.EOF&&c.push(String(this.tokens.get(this.index).text)),this.index+1}}]),l}(s3),p3=function(u){Au(l,u);var o=hu(l);function l(c,O,M,f){return Oa(this,l),o.call(this,c,O+1,M,f)}return la(l)}(r2),ks=function(u){Au(l,u);var o=hu(l);function l(c,O,M,f,a){var p;return Oa(this,l),(p=o.call(this,c,O,f,a)).lastIndex=M,p}return la(l,[{key:"execute",value:function(c){return this.text&&c.push(this.text.toString()),this.lastIndex+1}},{key:"toString",value:function(){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+'">'}}]),l}(s3);const Mm={atn:x5,dfa:P5,context:I5,misc:X5,tree:j5,error:J5,Token:n,CommonToken:V2,CharStreams:Jl,CharStream:ua,InputStream:ua,CommonTokenStream:t3,Lexer:mt,Parser:uu,ParserRuleContext:fu,Interval:X0,IntervalSet:b0,LL1Analyzer:To,Utils:tm,TokenStreamRewriter:c3}})();var Vt=D1.dx,mu=D1.q2;D1.FO,D1.xf,D1.Gy;var b3=D1.s4,M3=D1.c7,_u=D1._7;D1.gp;var u3=D1.cK,z3=D1.zs,O3=D1.AV;D1.Xp,D1.VS,D1.ul;var l3=D1.hW,f3=D1.x1,Pn=D1.z5;D1.oN;var A3=D1.TB;D1.u1;var d3=D1._b,h3=D1.$F,n1=D1._T,yu=D1.db,q3=D1.Zx,r1=D1._x;D1.r8,D1.JI,D1.TP;var Wu=D1.WU;D1.Nj,D1.ZP;const w=class w extends d3{get grammarFileName(){return"tccScriptParser.g4"}get literalNames(){return w.literalNames}get symbolicNames(){return w.symbolicNames}get ruleNames(){return w.ruleNames}get serializedATN(){return w._serializedATN}createFailedPredicateException(e,n){return new z3(this,e,n)}constructor(e){super(e),this._interp=new h3(this,w._ATN,w.DecisionsToDFA,new yu)}program(){let e=new m3(this,this._ctx,this.state);this.enterRule(e,0,w.RULE_program);let n;try{this.enterOuterAlt(e,1);{for(this.state=106,this._errHandler.sync(this),n=this._input.LA(1);n===4||n===6||!(n-36&-32)&&1<<n-36&38635767;){switch(this.state=104,this._errHandler.sync(this),this._input.LA(1)){case 61:this.state=102,this.match(w.NEWLINE);break;case 4:case 6:case 36:case 37:case 38:case 40:case 41:case 42:case 43:case 47:case 51:case 52:case 54:case 55:case 58:this.state=103,this.globalStmt();break;default:throw new Pn(this)}this.state=108,this._errHandler.sync(this),n=this._input.LA(1)}this.state=109,this.match(w.EOF)}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}globalStmt(){let e=new ws(this,this._ctx,this.state);this.enterRule(e,2,w.RULE_globalStmt);let n;try{switch(this.state=123,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,3,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=111,this.variableDeclarationStmt(),this.state=113,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=112,this.match(w.Comma)),this.state=115,this.match(w.NEWLINE);break;case 2:this.enterOuterAlt(e,2),this.state=117,this.blockStmt();break;case 3:this.enterOuterAlt(e,3),this.state=118,this.importStmt();break;case 4:this.enterOuterAlt(e,4),this.state=119,this.arrowFunction();break;case 5:this.enterOuterAlt(e,5),this.state=120,this.arrowMethod();break;case 6:this.enterOuterAlt(e,6),this.state=121,this.typeStatement();break;case 7:this.enterOuterAlt(e,7),this.state=122,this.enumStatement();break}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}blockStmt(){let e=new gu(this,this._ctx,this.state);this.enterRule(e,4,w.RULE_blockStmt);try{let n;this.enterOuterAlt(e,1);{for(this.state=130,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,4,this._ctx);n!==2&&n!==Vt.INVALID_ALT_NUMBER;)n===1&&(this.state=125,this.variableDeclarationStmt(),this.state=126,this.match(w.Comma)),this.state=132,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,4,this._ctx);switch(this.state=135,this._errHandler.sync(this),this._input.LA(1)){case 4:case 6:case 38:case 40:case 47:case 51:case 54:case 55:case 58:this.state=133,this.varBlockStmt();break;case 37:case 41:case 42:case 43:this.state=134,this.blockExpression();break;default:throw new Pn(this)}}}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}stmt(){let e=new Ps(this,this._ctx,this.state);this.enterRule(e,6,w.RULE_stmt);let n;try{switch(this.state=144,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=137,this.simpleStmt(),this.state=139,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=138,this.match(w.Comma)),this.state=141,this.match(w.NEWLINE);break;case 2:this.enterOuterAlt(e,2),this.state=143,this.expressionBlockSequence();break}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}simpleStmt(){let e=new Is(this,this._ctx,this.state);this.enterRule(e,8,w.RULE_simpleStmt);try{switch(this.state=150,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,8,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=146,this.expressionSequence();break;case 2:this.enterOuterAlt(e,2),this.state=147,this.blockSequence();break;case 3:this.enterOuterAlt(e,3),this.state=148,this.brackethesized();break;case 4:this.enterOuterAlt(e,4),this.state=149,this.flowStmt();break}}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}flowStmt(){let e=new Ru(this,this._ctx,this.state);this.enterRule(e,10,w.RULE_flowStmt);let n;try{this.enterOuterAlt(e,1),this.state=152,n=this._input.LA(1),n===34||n===39?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}block(){let e=new o2(this,this._ctx,this.state);this.enterRule(e,12,w.RULE_block);let n;try{switch(this.state=161,this._errHandler.sync(this),this._input.LA(1)){case 4:case 6:case 12:case 13:case 31:case 32:case 33:case 34:case 38:case 39:case 40:case 46:case 47:case 51:case 54:case 55:case 56:case 57:case 58:this.enterOuterAlt(e,1),this.state=154,this.simpleStmt(),this.state=156,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=155,this.match(w.Comma)),this.state=158,this.match(w.NEWLINE);break;case 61:this.enterOuterAlt(e,2),this.state=160,this.blockLine();break;default:throw new Pn(this)}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}blockLine(){let e=new to(this,this._ctx,this.state);this.enterRule(e,14,w.RULE_blockLine);let n;try{this.enterOuterAlt(e,1);{this.state=163,this.match(w.NEWLINE),this.state=164,this.match(w.INDENT),this.state=166,this._errHandler.sync(this),n=this._input.LA(1);do this.state=165,this.stmt(),this.state=168,this._errHandler.sync(this),n=this._input.LA(1);while(!(n&-32)&&1<<n&2147496016||!(n-32&-32)&&1<<n-32&130600935);this.state=170,this.match(w.DEDENT)}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}variableDeclarationStmt(){let e=new fa(this,this._ctx,this.state);this.enterRule(e,16,w.RULE_variableDeclarationStmt);try{let n;this.enterOuterAlt(e,1);{switch(this.state=174,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,12,this._ctx)){case 1:this.state=172,this.methodStmt();break;case 2:this.state=173,this.variableDeclarationList();break}for(this.state=183,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,14,this._ctx);n!==2&&n!==Vt.INVALID_ALT_NUMBER;){if(n===1)switch(this.state=176,this.match(w.Comma),this.state=179,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,13,this._ctx)){case 1:this.state=177,this.methodStmt();break;case 2:this.state=178,this.variableDeclarationList();break}this.state=185,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,14,this._ctx)}}}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}variableDeclarationList(){let e=new cr(this,this._ctx,this.state);this.enterRule(e,18,w.RULE_variableDeclarationList);try{switch(this.state=194,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,15,this._ctx)){case 1:e=new y3(this,e),this.enterOuterAlt(e,1),this.state=186,this.varArrayDeclaration(),this.state=187,this.match(w.Assign),this.state=188,this.singleExpression(0);break;case 2:e=new _3(this,e),this.enterOuterAlt(e,2),this.state=190,this.name(),this.state=191,this.assignmentOperator(),this.state=192,this.singleExpression(0);break}}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}varModifier(){let e=new Xs(this,this._ctx,this.state);this.enterRule(e,20,w.RULE_varModifier);let n;try{this.enterOuterAlt(e,1),this.state=196,n=this._input.LA(1),n===38||n===40?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}blockSequence(){let e=new Eu(this,this._ctx,this.state);this.enterRule(e,22,w.RULE_blockSequence);try{let n;this.enterOuterAlt(e,1);{switch(this.state=200,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,16,this._ctx)){case 1:this.state=198,this.singleExpression(0);break;case 2:this.state=199,this.variableDeclarationList();break}for(this.state=209,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,18,this._ctx);n!==2&&n!==Vt.INVALID_ALT_NUMBER;){if(n===1)switch(this.state=202,this.match(w.Comma),this.state=205,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,17,this._ctx)){case 1:this.state=203,this.singleExpression(0);break;case 2:this.state=204,this.variableDeclarationList();break}this.state=211,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,18,this._ctx)}}}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}expressionSequence(){let e=new Fs(this,this._ctx,this.state);this.enterRule(e,24,w.RULE_expressionSequence);try{let n;for(this.enterOuterAlt(e,1),this.state=212,this.singleExpression(0),this.state=217,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,19,this._ctx);n!==2&&n!==Vt.INVALID_ALT_NUMBER;)n===1&&(this.state=213,this.match(w.Comma),this.state=214,this.singleExpression(0)),this.state=219,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,19,this._ctx)}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}expressionBlockSequence(){let e=new vu(this,this._ctx,this.state);this.enterRule(e,26,w.RULE_expressionBlockSequence);try{let n;this.enterOuterAlt(e,1);{for(this.state=228,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,21,this._ctx);n!==2&&n!==Vt.INVALID_ALT_NUMBER;){if(n===1){switch(this.state=222,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,20,this._ctx)){case 1:this.state=220,this.singleExpression(0);break;case 2:this.state=221,this.variableDeclarationList();break}this.state=224,this.match(w.Comma)}this.state=230,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,21,this._ctx)}switch(this.state=233,this._errHandler.sync(this),this._input.LA(1)){case 4:case 6:case 38:case 40:case 47:case 51:case 54:case 55:case 58:this.state=231,this.varBlockStmt();break;case 37:case 41:case 42:case 43:this.state=232,this.blockExpression();break;default:throw new Pn(this)}}}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}varBlockStmt(){let e=new Us(this,this._ctx,this.state);this.enterRule(e,28,w.RULE_varBlockStmt);try{this.enterOuterAlt(e,1);{switch(this.state=241,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,23,this._ctx)){case 1:this.state=235,this.varArrayDeclaration(),this.state=236,this.match(w.Assign);break;case 2:this.state=238,this.name(),this.state=239,this.assignmentOperator();break}this.state=243,this.blockExpression()}}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}varArrayDeclaration(){let e=new i2(this,this._ctx,this.state);this.enterRule(e,30,w.RULE_varArrayDeclaration);let n;try{switch(this.state=263,this._errHandler.sync(this),this._input.LA(1)){case 38:case 40:case 47:case 51:case 54:case 55:case 58:e=new g3(this,e),this.enterOuterAlt(e,1);{switch(this.state=246,this._errHandler.sync(this),n=this._input.LA(1),(n===38||n===40)&&(this.state=245,this.varModifier()),this.state=249,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,25,this._ctx)){case 1:this.state=248,this.typeGather();break}this.state=251,this.identifier()}break;case 4:e=new W3(this,e),this.enterOuterAlt(e,2);{for(this.state=252,this.match(w.OpenBracket),this.state=253,this.identifier(),this.state=258,this._errHandler.sync(this),n=this._input.LA(1);n===8;)this.state=254,this.match(w.Comma),this.state=255,this.identifier(),this.state=260,this._errHandler.sync(this),n=this._input.LA(1);this.state=261,this.match(w.CloseBracket)}break;default:throw new Pn(this)}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}blockExpression(){let e=new Aa(this,this._ctx,this.state);this.enterRule(e,32,w.RULE_blockExpression);try{switch(this.state=269,this._errHandler.sync(this),this._input.LA(1)){case 43:this.enterOuterAlt(e,1),this.state=265,this.ifStatement();break;case 37:this.enterOuterAlt(e,2),this.state=266,this.forStatement();break;case 42:this.enterOuterAlt(e,3),this.state=267,this.whileStatement();break;case 41:this.enterOuterAlt(e,4),this.state=268,this.switchStatement();break;default:throw new Pn(this)}}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}singleExpression(e){e===void 0&&(e=0);let n=this._ctx,r=this.state,i=new F0(this,this._ctx,r),s=i,b=34;this.enterRecursionRule(i,34,w.RULE_singleExpression,e);let z;try{let q;this.enterOuterAlt(i,1);{switch(this.state=283,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,29,this._ctx)){case 1:i=new k3(this,i),this._ctx=i,s=i,this.state=272,this.methodStmt();break;case 2:i=new B3(this,i),this._ctx=i,s=i,this.state=273,z=this._input.LA(1),z===12||z===13?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=274,this.singleExpression(12);break;case 3:i=new x3(this,i),this._ctx=i,s=i,this.state=275,this.match(w.Not),this.state=276,this.singleExpression(11);break;case 4:i=new L3(this,i),this._ctx=i,s=i,this.state=277,this.name();break;case 5:i=new N3(this,i),this._ctx=i,s=i,this.state=278,this.literal();break;case 6:i=new R3(this,i),this._ctx=i,s=i,this.state=279,this.match(w.OpenParen),this.state=280,this.singleExpression(0),this.state=281,this.match(w.CloseParen);break}for(this._ctx.stop=this._input.LT(-1),this.state=316,this._errHandler.sync(this),q=this._interp.adaptivePredict(this._input,31,this._ctx);q!==2&&q!==Vt.INVALID_ALT_NUMBER;){if(q===1)switch(this._parseListeners!=null&&this.triggerExitRuleEvent(),s=i,this.state=314,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,30,this._ctx)){case 1:{if(i=new P3(this,new F0(this,n,r)),this.pushNewRecursionContext(i,b,w.RULE_singleExpression),this.state=285,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=286,z=this._input.LA(1),!(z&-32)&&1<<z&114688?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=287,this.singleExpression(11)}break;case 2:{if(i=new E3(this,new F0(this,n,r)),this.pushNewRecursionContext(i,b,w.RULE_singleExpression),this.state=288,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=289,z=this._input.LA(1),z===12||z===13?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=290,this.singleExpression(10)}break;case 3:{if(i=new v3(this,new F0(this,n,r)),this.pushNewRecursionContext(i,b,w.RULE_singleExpression),this.state=291,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=292,z=this._input.LA(1),!(z&-32)&&1<<z&3932160?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=293,this.singleExpression(9)}break;case 4:{if(i=new w3(this,new F0(this,n,r)),this.pushNewRecursionContext(i,b,w.RULE_singleExpression),this.state=294,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=295,z=this._input.LA(1),z===22||z===23?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=296,this.singleExpression(8)}break;case 5:{if(i=new S3(this,new F0(this,n,r)),this.pushNewRecursionContext(i,b,w.RULE_singleExpression),this.state=297,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=298,this.match(w.And),this.state=299,this.singleExpression(7)}break;case 6:{if(i=new C3(this,new F0(this,n,r)),this.pushNewRecursionContext(i,b,w.RULE_singleExpression),this.state=300,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=301,this.match(w.Or),this.state=302,this.singleExpression(6)}break;case 7:{if(i=new T3(this,new F0(this,n,r)),this.pushNewRecursionContext(i,b,w.RULE_singleExpression),this.state=303,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=304,this.match(w.QuestionMark),this.state=305,this.singleExpression(0),this.state=306,this.match(w.Colon),this.state=307,this.singleExpression(4)}break;case 8:{if(i=new D3(this,new F0(this,n,r)),this.pushNewRecursionContext(i,b,w.RULE_singleExpression),this.state=309,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=310,this.match(w.OpenBracket),this.state=311,this.singleExpression(0),this.state=312,this.match(w.CloseBracket)}break}this.state=318,this._errHandler.sync(this),q=this._interp.adaptivePredict(this._input,31,this._ctx)}}}catch(q){if(q instanceof r1)i.exception=q,this._errHandler.reportError(this,q),this._errHandler.recover(this,q);else throw q}finally{this.unrollRecursionContexts(n)}return i}brackethesized(){let e=new Vs(this,this._ctx,this.state);this.enterRule(e,36,w.RULE_brackethesized);try{this.enterOuterAlt(e,1),this.state=319,this.match(w.OpenBracket),this.state=320,this.expressionSequence(),this.state=321,this.match(w.CloseBracket)}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}arguments(){let e=new Tu(this,this._ctx,this.state);this.enterRule(e,38,w.RULE_arguments);let n;try{let r;this.enterOuterAlt(e,1);{if(this.state=323,this.match(w.OpenParen),this.state=335,this._errHandler.sync(this),n=this._input.LA(1),!(n&-32)&&1<<n&2147496016||!(n-32&-32)&&1<<n-32&130596867){for(this.state=324,this.argument(),this.state=329,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,32,this._ctx);r!==2&&r!==Vt.INVALID_ALT_NUMBER;)r===1&&(this.state=325,this.match(w.Comma),this.state=326,this.argument()),this.state=331,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,32,this._ctx);this.state=333,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=332,this.match(w.Comma))}this.state=337,this.match(w.CloseParen)}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}argument(){let e=new js(this,this._ctx,this.state);this.enterRule(e,40,w.RULE_argument);try{this.enterOuterAlt(e,1);{switch(this.state=342,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,35,this._ctx)){case 1:this.state=339,this.identifier(),this.state=340,this.match(w.Assign);break}switch(this.state=346,this._errHandler.sync(this),this._input.LA(1)){case 6:case 12:case 13:case 31:case 32:case 33:case 46:case 47:case 51:case 54:case 55:case 56:case 57:case 58:this.state=344,this.singleExpression(0);break;case 4:this.state=345,this.brackethesized();break;default:throw new Pn(this)}}}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}ifStatement(){let e=new Su(this,this._ctx,this.state);this.enterRule(e,42,w.RULE_ifStatement);let n;try{let r;this.enterOuterAlt(e,1);{for(this.state=348,this.match(w.If),this.state=349,this.singleExpression(0),this.state=350,this.blockLine(),this.state=358,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,37,this._ctx);r!==2&&r!==Vt.INVALID_ALT_NUMBER;)r===1&&(this.state=351,this.match(w.Else),this.state=352,this.match(w.If),this.state=353,this.singleExpression(0),this.state=354,this.blockLine()),this.state=360,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,37,this._ctx);this.state=363,this._errHandler.sync(this),n=this._input.LA(1),n===48&&(this.state=361,this.match(w.Else),this.state=362,this.blockLine())}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}forStatement(){let e=new da(this,this._ctx,this.state);this.enterRule(e,44,w.RULE_forStatement);let n;try{switch(this.state=397,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,43,this._ctx)){case 1:e=new I3(this,e),this.enterOuterAlt(e,1);{switch(this.state=365,this.match(w.For),this.state=367,this._errHandler.sync(this),n=this._input.LA(1),(n===38||n===40)&&(this.state=366,this.varModifier()),this.state=370,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,40,this._ctx)){case 1:this.state=369,this.typeGather();break}this.state=372,this.identifier(),this.state=373,this.match(w.Assign),this.state=374,this.singleExpression(0),this.state=375,this.match(w.To),this.state=376,this.singleExpression(0),this.state=379,this._errHandler.sync(this),n=this._input.LA(1),n===50&&(this.state=377,this.match(w.By),this.state=378,this.singleExpression(0)),this.state=381,this.blockLine()}break;case 2:e=new X3(this,e),this.enterOuterAlt(e,2);{switch(this.state=383,this.match(w.For),this.state=391,this._errHandler.sync(this),this._input.LA(1)){case 47:case 51:case 54:case 55:case 58:this.state=384,this.identifier();break;case 4:this.state=385,this.match(w.OpenBracket),this.state=386,this.identifier(),this.state=387,this.match(w.Comma),this.state=388,this.identifier(),this.state=389,this.match(w.CloseBracket);break;default:throw new Pn(this)}this.state=393,this.match(w.In),this.state=394,this.singleExpression(0),this.state=395,this.blockLine()}break}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}switchStatement(){let e=new Lu(this,this._ctx,this.state);this.enterRule(e,46,w.RULE_switchStatement);let n;try{this.enterOuterAlt(e,1);{switch(this.state=399,this.match(w.Switch),this.state=401,this._errHandler.sync(this),n=this._input.LA(1),(!(n&-32)&&1<<n&2147496e3||!(n-32&-32)&&1<<n-32&130596867)&&(this.state=400,this.singleExpression(0)),this.state=403,this.match(w.NEWLINE),this.state=404,this.match(w.INDENT),this.state=417,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,47,this._ctx)){case 1:{this.state=406,this._errHandler.sync(this),n=this._input.LA(1);do this.state=405,this.caseClause(),this.state=408,this._errHandler.sync(this),n=this._input.LA(1);while(!(n&-32)&&1<<n&2147496e3||!(n-32&-32)&&1<<n-32&130596867)}break;case 2:{for(this.state=413,this._errHandler.sync(this),n=this._input.LA(1);!(n&-32)&&1<<n&2147496e3||!(n-32&-32)&&1<<n-32&130596867;)this.state=410,this.caseClause(),this.state=415,this._errHandler.sync(this),n=this._input.LA(1);this.state=416,this.defaultCaluse()}break}this.state=419,this.match(w.DEDENT)}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}caseClause(){let e=new Hs(this,this._ctx,this.state);this.enterRule(e,48,w.RULE_caseClause);try{this.enterOuterAlt(e,1),this.state=421,this.singleExpression(0),this.state=422,this.match(w.ARROW),this.state=423,this.block()}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}defaultCaluse(){let e=new Nu(this,this._ctx,this.state);this.enterRule(e,50,w.RULE_defaultCaluse);try{this.enterOuterAlt(e,1),this.state=425,this.match(w.ARROW),this.state=426,this.block()}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}whileStatement(){let e=new Cu(this,this._ctx,this.state);this.enterRule(e,52,w.RULE_whileStatement);try{this.enterOuterAlt(e,1),this.state=428,this.match(w.While),this.state=429,this.singleExpression(0),this.state=430,this.blockLine()}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}importStmt(){let e=new Bu(this,this._ctx,this.state);this.enterRule(e,54,w.RULE_importStmt);let n;try{let r;this.enterOuterAlt(e,1);{for(this.state=432,this.importElement(),this.state=437,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,48,this._ctx);r!==2&&r!==Vt.INVALID_ALT_NUMBER;)r===1&&(this.state=433,this.match(w.Comma),this.state=434,this.importElement()),this.state=439,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,48,this._ctx);this.state=441,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=440,this.match(w.Comma)),this.state=443,this.match(w.NEWLINE)}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}importElement(){let e=new $s(this,this._ctx,this.state);this.enterRule(e,56,w.RULE_importElement);let n;try{this.enterOuterAlt(e,1),this.state=445,this.match(w.Import),this.state=446,this.identifier(),this.state=447,this.match(w.Divide),this.state=448,this.identifier(),this.state=449,this.match(w.Divide),this.state=450,this.match(w.IntegerLiteral),this.state=453,this._errHandler.sync(this),n=this._input.LA(1),n===53&&(this.state=451,this.match(w.As),this.state=452,this.identifier())}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}literal(){let e=new xu(this,this._ctx,this.state);this.enterRule(e,58,w.RULE_literal);let n;try{this.enterOuterAlt(e,1),this.state=455,n=this._input.LA(1),!(n-31&-32)&&1<<n-31&100663303?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}methodStmt(){let e=new ha(this,this._ctx,this.state);this.enterRule(e,60,w.RULE_methodStmt);try{let n;for(this.enterOuterAlt(e,1),this.state=457,this.methodElement(),this.state=462,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,51,this._ctx);n!==2&&n!==Vt.INVALID_ALT_NUMBER;)n===1&&(this.state=458,this.match(w.Point),this.state=459,this.methodElement()),this.state=464,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,51,this._ctx)}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}methodElement(){let e=new a2(this,this._ctx,this.state);this.enterRule(e,62,w.RULE_methodElement);try{this.enterOuterAlt(e,1),this.state=465,this.methodName(),this.state=466,this.arguments()}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}methodName(){let e=new Du(this,this._ctx,this.state);this.enterRule(e,64,w.RULE_methodName);let n;try{let r;this.enterOuterAlt(e,1);{switch(this.state=481,this._errHandler.sync(this),this._input.LA(1)){case 47:case 51:case 54:case 55:case 58:for(this.state=473,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,52,this._ctx);r!==2&&r!==Vt.INVALID_ALT_NUMBER;)r===1&&(this.state=468,this.identifier(),this.state=469,this.match(w.Point)),this.state=475,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,52,this._ctx);break;case 6:this.state=476,this.match(w.OpenParen),this.state=477,this.singleExpression(0),this.state=478,this.match(w.CloseParen),this.state=479,this.match(w.Point);break;default:throw new Pn(this)}this.state=483,this.identifier(),this.state=492,this._errHandler.sync(this),n=this._input.LA(1),n===18&&(this.state=484,this.match(w.LessThan),this.state=485,this.typeName(),this.state=488,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=486,this.match(w.Comma),this.state=487,this.typeName()),this.state=490,this.match(w.MoreThan))}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}arrowFunction(){let e=new ku(this,this._ctx,this.state);this.enterRule(e,66,w.RULE_arrowFunction);let n;try{this.enterOuterAlt(e,1),this.state=495,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=494,this.match(w.Export)),this.state=497,this.identifier(),this.state=498,this.arrowFunctionParameters(),this.state=499,this.match(w.ARROW),this.state=500,this.block()}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}arrowFunctionParameters(){let e=new wu(this,this._ctx,this.state);this.enterRule(e,68,w.RULE_arrowFunctionParameters);let n;try{this.enterOuterAlt(e,1),this.state=502,this.match(w.OpenParen),this.state=504,this._errHandler.sync(this),n=this._input.LA(1),!(n-47&-32)&&1<<n-47&2449&&(this.state=503,this.formalParameterList()),this.state=506,this.match(w.CloseParen)}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}formalParameterList(){let e=new Gs(this,this._ctx,this.state);this.enterRule(e,70,w.RULE_formalParameterList);let n;try{for(this.enterOuterAlt(e,1),this.state=508,this.formalParameterArg(),this.state=513,this._errHandler.sync(this),n=this._input.LA(1);n===8;)this.state=509,this.match(w.Comma),this.state=510,this.formalParameterArg(),this.state=515,this._errHandler.sync(this),n=this._input.LA(1)}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}formalParameterArg(){let e=new Ks(this,this._ctx,this.state);this.enterRule(e,72,w.RULE_formalParameterArg);let n;try{this.enterOuterAlt(e,1);{switch(this.state=517,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,59,this._ctx)){case 1:this.state=516,this.typeGather();break}this.state=519,this.identifier(),this.state=522,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=520,this.match(w.Assign),this.state=521,this.singleExpression(0))}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}arrowMethod(){let e=new Pu(this,this._ctx,this.state);this.enterRule(e,74,w.RULE_arrowMethod);let n;try{this.enterOuterAlt(e,1),this.state=525,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=524,this.match(w.Export)),this.state=527,this.match(w.Method),this.state=528,this.identifier(),this.state=529,this.arrowMethodParameters(),this.state=530,this.match(w.ARROW),this.state=531,this.block()}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}arrowMethodParameters(){let e=new Iu(this,this._ctx,this.state);this.enterRule(e,76,w.RULE_arrowMethodParameters);let n;try{this.enterOuterAlt(e,1),this.state=533,this.match(w.OpenParen),this.state=534,this.typeGather(),this.state=535,this.identifier(),this.state=538,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=536,this.match(w.Assign),this.state=537,this.singleExpression(0)),this.state=542,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=540,this.match(w.Comma),this.state=541,this.formalParameterList()),this.state=544,this.match(w.CloseParen)}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}typeStatement(){let e=new Xu(this,this._ctx,this.state);this.enterRule(e,78,w.RULE_typeStatement);let n;try{this.enterOuterAlt(e,1);{this.state=547,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=546,this.match(w.Export)),this.state=549,this.match(w.Type),this.state=550,this.identifier(),this.state=551,this.match(w.NEWLINE),this.state=552,this.match(w.INDENT),this.state=554,this._errHandler.sync(this),n=this._input.LA(1);do this.state=553,this.typeElement(),this.state=556,this._errHandler.sync(this),n=this._input.LA(1);while(!(n-40&-32)&&1<<n-40&313473);this.state=558,this.match(w.DEDENT)}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}typeElement(){let e=new Ys(this,this._ctx,this.state);this.enterRule(e,80,w.RULE_typeElement);let n;try{this.enterOuterAlt(e,1);{switch(this.state=561,this._errHandler.sync(this),n=this._input.LA(1),n===40&&(this.state=560,this.match(w.Varip)),this.state=564,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,67,this._ctx)){case 1:this.state=563,this.typeGather();break}this.state=566,this.identifier(),this.state=569,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=567,this.match(w.Assign),this.state=568,this.singleExpression(0)),this.state=571,this.match(w.NEWLINE)}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}assignmentOperator(){let e=new Qs(this,this._ctx,this.state);this.enterRule(e,82,w.RULE_assignmentOperator);let n;try{this.enterOuterAlt(e,1),this.state=573,n=this._input.LA(1),!(n&-32)&&1<<n&1593835520?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}typeMap(){let e=new Js(this,this._ctx,this.state);this.enterRule(e,84,w.RULE_typeMap);try{this.enterOuterAlt(e,1),this.state=575,this.match(w.Map),this.state=576,this.match(w.LessThan),this.state=577,this.typeName(),this.state=578,this.match(w.Comma),this.state=579,this.typeName(),this.state=580,this.match(w.MoreThan)}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}typeSeries(){let e=new Fu(this,this._ctx,this.state);this.enterRule(e,86,w.RULE_typeSeries);try{switch(this.enterOuterAlt(e,1),this.state=582,this.typeName(),this.state=586,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,69,this._ctx)){case 1:this.state=583,this.typeName();break;case 2:this.state=584,this.typeArray();break;case 3:this.state=585,this.typeMap();break}}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}typeArray(){let e=new Zs(this,this._ctx,this.state);this.enterRule(e,88,w.RULE_typeArray);try{switch(this.state=597,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,70,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=588,this.typeName(),this.state=589,this.match(w.LessThan),this.state=590,this.typeName(),this.state=591,this.match(w.MoreThan);break;case 2:this.enterOuterAlt(e,2),this.state=593,this.typeName(),this.state=594,this.match(w.OpenBracket),this.state=595,this.match(w.CloseBracket);break}}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}typeGather(){let e=new Co(this,this._ctx,this.state);this.enterRule(e,90,w.RULE_typeGather);try{switch(this.state=603,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,71,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=599,this.typeName();break;case 2:this.enterOuterAlt(e,2),this.state=600,this.typeArray();break;case 3:this.enterOuterAlt(e,3),this.state=601,this.typeMap();break;case 4:this.enterOuterAlt(e,4),this.state=602,this.typeSeries();break}}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}identifier(){let e=new Te(this,this._ctx,this.state);this.enterRule(e,92,w.RULE_identifier);let n;try{this.enterOuterAlt(e,1),this.state=605,n=this._input.LA(1),!(n-47&-32)&&1<<n-47&2449?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}typeName(){let e=new In(this,this._ctx,this.state);this.enterRule(e,94,w.RULE_typeName);let n;try{this.enterOuterAlt(e,1),this.state=607,this.identifier(),this.state=610,this._errHandler.sync(this),n=this._input.LA(1),n===3&&(this.state=608,this.match(w.Point),this.state=609,this.identifier())}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}name(){let e=new qa(this,this._ctx,this.state);this.enterRule(e,96,w.RULE_name);try{let n;switch(this.state=633,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,76,this._ctx)){case 1:this.enterOuterAlt(e,1);{for(this.state=620,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,74,this._ctx);n!==2&&n!==Vt.INVALID_ALT_NUMBER;){if(n===1){switch(this.state=614,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,73,this._ctx)){case 1:this.state=612,this.identifier();break;case 2:this.state=613,this.methodElement();break}this.state=616,this.match(w.Point)}this.state=622,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,74,this._ctx)}this.state=623,this.identifier()}break;case 2:this.enterOuterAlt(e,2);{this.state=624,this.match(w.OpenParen),this.state=625,this.singleExpression(0),this.state=626,this.match(w.CloseParen),this.state=629,this._errHandler.sync(this),n=1;do{switch(n){case 1:this.state=627,this.match(w.Point),this.state=628,this.identifier();break;default:throw new Pn(this)}this.state=631,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,75,this._ctx)}while(n!==2&&n!==Vt.INVALID_ALT_NUMBER)}break}}catch(n){if(n instanceof r1)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}enumStatement(){let e=new Uu(this,this._ctx,this.state);this.enterRule(e,98,w.RULE_enumStatement);let n;try{this.enterOuterAlt(e,1);{this.state=636,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=635,this.match(w.Export)),this.state=638,this.match(w.Enum),this.state=639,this.identifier(),this.state=640,this.match(w.NEWLINE),this.state=641,this.match(w.INDENT),this.state=643,this._errHandler.sync(this),n=this._input.LA(1);do this.state=642,this.enumElement(),this.state=645,this._errHandler.sync(this),n=this._input.LA(1);while(!(n-47&-32)&&1<<n-47&2449);this.state=647,this.match(w.DEDENT)}}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}enumElement(){let e=new ep(this,this._ctx,this.state);this.enterRule(e,100,w.RULE_enumElement);let n;try{this.enterOuterAlt(e,1),this.state=649,this.identifier(),this.state=652,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=650,this.match(w.Assign),this.state=651,this.match(w.StringLiteral)),this.state=654,this.match(w.NEWLINE)}catch(r){if(r instanceof r1)e.exception=r,this._errHandler.reportError(this,r),this._errHandler.recover(this,r);else throw r}finally{this.exitRule()}return e}sempred(e,n,r){switch(n){case 17:return this.singleExpression_sempred(e,r)}return!0}singleExpression_sempred(e,n){switch(n){case 0:return this.precpred(this._ctx,10);case 1:return this.precpred(this._ctx,9);case 2:return this.precpred(this._ctx,8);case 3:return this.precpred(this._ctx,7);case 4:return this.precpred(this._ctx,6);case 5:return this.precpred(this._ctx,5);case 6:return this.precpred(this._ctx,4);case 7:return this.precpred(this._ctx,13)}return!0}static get _ATN(){return w.__ATN||(w.__ATN=new mu().deserialize(w._serializedATN)),w.__ATN}};T(w,"INDENT",1),T(w,"DEDENT",2),T(w,"Point",3),T(w,"OpenBracket",4),T(w,"CloseBracket",5),T(w,"OpenParen",6),T(w,"CloseParen",7),T(w,"Comma",8),T(w,"Assign",9),T(w,"QuestionMark",10),T(w,"Colon",11),T(w,"Plus",12),T(w,"Minus",13),T(w,"Multiply",14),T(w,"Divide",15),T(w,"Modulus",16),T(w,"Hashtag",17),T(w,"LessThan",18),T(w,"MoreThan",19),T(w,"LessThanEquals",20),T(w,"GreaterThanEquals",21),T(w,"Equals_",22),T(w,"NotEquals",23),T(w,"MultiplyAssign",24),T(w,"DivideAssign",25),T(w,"ModulusAssign",26),T(w,"PlusAssign",27),T(w,"MinusAssign",28),T(w,"ARROW",29),T(w,"ColonEquals",30),T(w,"BooleanLiteral",31),T(w,"IntegerLiteral",32),T(w,"DecimalLiteral",33),T(w,"Break",34),T(w,"And",35),T(w,"Export",36),T(w,"For",37),T(w,"Var",38),T(w,"Continue",39),T(w,"Varip",40),T(w,"Switch",41),T(w,"While",42),T(w,"If",43),T(w,"In",44),T(w,"Or",45),T(w,"Not",46),T(w,"Method",47),T(w,"Else",48),T(w,"To",49),T(w,"By",50),T(w,"Type",51),T(w,"Import",52),T(w,"As",53),T(w,"Enum",54),T(w,"Map",55),T(w,"ColorLiteral",56),T(w,"StringLiteral",57),T(w,"Identifier",58),T(w,"HIDDEN_",59),T(w,"COMMENT_",60),T(w,"NEWLINE",61),T(w,"EOF",Wu.EOF),T(w,"RULE_program",0),T(w,"RULE_globalStmt",1),T(w,"RULE_blockStmt",2),T(w,"RULE_stmt",3),T(w,"RULE_simpleStmt",4),T(w,"RULE_flowStmt",5),T(w,"RULE_block",6),T(w,"RULE_blockLine",7),T(w,"RULE_variableDeclarationStmt",8),T(w,"RULE_variableDeclarationList",9),T(w,"RULE_varModifier",10),T(w,"RULE_blockSequence",11),T(w,"RULE_expressionSequence",12),T(w,"RULE_expressionBlockSequence",13),T(w,"RULE_varBlockStmt",14),T(w,"RULE_varArrayDeclaration",15),T(w,"RULE_blockExpression",16),T(w,"RULE_singleExpression",17),T(w,"RULE_brackethesized",18),T(w,"RULE_arguments",19),T(w,"RULE_argument",20),T(w,"RULE_ifStatement",21),T(w,"RULE_forStatement",22),T(w,"RULE_switchStatement",23),T(w,"RULE_caseClause",24),T(w,"RULE_defaultCaluse",25),T(w,"RULE_whileStatement",26),T(w,"RULE_importStmt",27),T(w,"RULE_importElement",28),T(w,"RULE_literal",29),T(w,"RULE_methodStmt",30),T(w,"RULE_methodElement",31),T(w,"RULE_methodName",32),T(w,"RULE_arrowFunction",33),T(w,"RULE_arrowFunctionParameters",34),T(w,"RULE_formalParameterList",35),T(w,"RULE_formalParameterArg",36),T(w,"RULE_arrowMethod",37),T(w,"RULE_arrowMethodParameters",38),T(w,"RULE_typeStatement",39),T(w,"RULE_typeElement",40),T(w,"RULE_assignmentOperator",41),T(w,"RULE_typeMap",42),T(w,"RULE_typeSeries",43),T(w,"RULE_typeArray",44),T(w,"RULE_typeGather",45),T(w,"RULE_identifier",46),T(w,"RULE_typeName",47),T(w,"RULE_name",48),T(w,"RULE_enumStatement",49),T(w,"RULE_enumElement",50),T(w,"literalNames",[null,null,null,"'.'","'['","']'","'('","')'","','","'='","'?'","':'","'+'","'-'","'*'","'/'","'%'","'#'","'<'","'>'","'<='","'>='","'=='","'!='","'*='","'/='","'%='","'+='","'-='","'=>'","':='",null,null,null,"'break'","'and'","'export'","'for'","'var'","'continue'","'varip'","'switch'","'while'","'if'","'in'","'or'","'not'","'method'","'else'","'to'","'by'","'type'","'import'","'as'","'enum'","'map'"]),T(w,"symbolicNames",[null,"INDENT","DEDENT","Point","OpenBracket","CloseBracket","OpenParen","CloseParen","Comma","Assign","QuestionMark","Colon","Plus","Minus","Multiply","Divide","Modulus","Hashtag","LessThan","MoreThan","LessThanEquals","GreaterThanEquals","Equals_","NotEquals","MultiplyAssign","DivideAssign","ModulusAssign","PlusAssign","MinusAssign","ARROW","ColonEquals","BooleanLiteral","IntegerLiteral","DecimalLiteral","Break","And","Export","For","Var","Continue","Varip","Switch","While","If","In","Or","Not","Method","Else","To","By","Type","Import","As","Enum","Map","ColorLiteral","StringLiteral","Identifier","HIDDEN_","COMMENT_","NEWLINE"]),T(w,"ruleNames",["program","globalStmt","blockStmt","stmt","simpleStmt","flowStmt","block","blockLine","variableDeclarationStmt","variableDeclarationList","varModifier","blockSequence","expressionSequence","expressionBlockSequence","varBlockStmt","varArrayDeclaration","blockExpression","singleExpression","brackethesized","arguments","argument","ifStatement","forStatement","switchStatement","caseClause","defaultCaluse","whileStatement","importStmt","importElement","literal","methodStmt","methodElement","methodName","arrowFunction","arrowFunctionParameters","formalParameterList","formalParameterArg","arrowMethod","arrowMethodParameters","typeStatement","typeElement","assignmentOperator","typeMap","typeSeries","typeArray","typeGather","identifier","typeName","name","enumStatement","enumElement"]),T(w,"_serializedATN",[4,1,61,657,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,1,0,1,0,5,0,105,8,0,10,0,12,0,108,9,0,1,0,1,0,1,1,1,1,3,1,114,8,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,124,8,1,1,2,1,2,1,2,5,2,129,8,2,10,2,12,2,132,9,2,1,2,1,2,3,2,136,8,2,1,3,1,3,3,3,140,8,3,1,3,1,3,1,3,3,3,145,8,3,1,4,1,4,1,4,1,4,3,4,151,8,4,1,5,1,5,1,6,1,6,3,6,157,8,6,1,6,1,6,1,6,3,6,162,8,6,1,7,1,7,1,7,4,7,167,8,7,11,7,12,7,168,1,7,1,7,1,8,1,8,3,8,175,8,8,1,8,1,8,1,8,3,8,180,8,8,5,8,182,8,8,10,8,12,8,185,9,8,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,3,9,195,8,9,1,10,1,10,1,11,1,11,3,11,201,8,11,1,11,1,11,1,11,3,11,206,8,11,5,11,208,8,11,10,11,12,11,211,9,11,1,12,1,12,1,12,5,12,216,8,12,10,12,12,12,219,9,12,1,13,1,13,3,13,223,8,13,1,13,1,13,5,13,227,8,13,10,13,12,13,230,9,13,1,13,1,13,3,13,234,8,13,1,14,1,14,1,14,1,14,1,14,1,14,3,14,242,8,14,1,14,1,14,1,15,3,15,247,8,15,1,15,3,15,250,8,15,1,15,1,15,1,15,1,15,1,15,5,15,257,8,15,10,15,12,15,260,9,15,1,15,1,15,3,15,264,8,15,1,16,1,16,1,16,1,16,3,16,270,8,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,3,17,284,8,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,5,17,315,8,17,10,17,12,17,318,9,17,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,5,19,328,8,19,10,19,12,19,331,9,19,1,19,3,19,334,8,19,3,19,336,8,19,1,19,1,19,1,20,1,20,1,20,3,20,343,8,20,1,20,1,20,3,20,347,8,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,5,21,357,8,21,10,21,12,21,360,9,21,1,21,1,21,3,21,364,8,21,1,22,1,22,3,22,368,8,22,1,22,3,22,371,8,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,380,8,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,392,8,22,1,22,1,22,1,22,1,22,3,22,398,8,22,1,23,1,23,3,23,402,8,23,1,23,1,23,1,23,4,23,407,8,23,11,23,12,23,408,1,23,5,23,412,8,23,10,23,12,23,415,9,23,1,23,3,23,418,8,23,1,23,1,23,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,27,1,27,1,27,5,27,436,8,27,10,27,12,27,439,9,27,1,27,3,27,442,8,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,3,28,454,8,28,1,29,1,29,1,30,1,30,1,30,5,30,461,8,30,10,30,12,30,464,9,30,1,31,1,31,1,31,1,32,1,32,1,32,5,32,472,8,32,10,32,12,32,475,9,32,1,32,1,32,1,32,1,32,1,32,3,32,482,8,32,1,32,1,32,1,32,1,32,1,32,3,32,489,8,32,1,32,1,32,3,32,493,8,32,1,33,3,33,496,8,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,3,34,505,8,34,1,34,1,34,1,35,1,35,1,35,5,35,512,8,35,10,35,12,35,515,9,35,1,36,3,36,518,8,36,1,36,1,36,1,36,3,36,523,8,36,1,37,3,37,526,8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,3,38,539,8,38,1,38,1,38,3,38,543,8,38,1,38,1,38,1,39,3,39,548,8,39,1,39,1,39,1,39,1,39,1,39,4,39,555,8,39,11,39,12,39,556,1,39,1,39,1,40,3,40,562,8,40,1,40,3,40,565,8,40,1,40,1,40,1,40,3,40,570,8,40,1,40,1,40,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,3,43,587,8,43,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,598,8,44,1,45,1,45,1,45,1,45,3,45,604,8,45,1,46,1,46,1,47,1,47,1,47,3,47,611,8,47,1,48,1,48,3,48,615,8,48,1,48,1,48,5,48,619,8,48,10,48,12,48,622,9,48,1,48,1,48,1,48,1,48,1,48,1,48,4,48,630,8,48,11,48,12,48,631,3,48,634,8,48,1,49,3,49,637,8,49,1,49,1,49,1,49,1,49,1,49,4,49,644,8,49,11,49,12,49,645,1,49,1,49,1,50,1,50,1,50,3,50,653,8,50,1,50,1,50,1,50,0,1,34,51,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,0,9,2,0,34,34,39,39,2,0,38,38,40,40,1,0,12,13,1,0,14,16,1,0,18,21,1,0,22,23,2,0,31,33,56,57,2,0,24,28,30,30,4,0,47,47,51,51,54,55,58,58,707,0,106,1,0,0,0,2,123,1,0,0,0,4,130,1,0,0,0,6,144,1,0,0,0,8,150,1,0,0,0,10,152,1,0,0,0,12,161,1,0,0,0,14,163,1,0,0,0,16,174,1,0,0,0,18,194,1,0,0,0,20,196,1,0,0,0,22,200,1,0,0,0,24,212,1,0,0,0,26,228,1,0,0,0,28,241,1,0,0,0,30,263,1,0,0,0,32,269,1,0,0,0,34,283,1,0,0,0,36,319,1,0,0,0,38,323,1,0,0,0,40,342,1,0,0,0,42,348,1,0,0,0,44,397,1,0,0,0,46,399,1,0,0,0,48,421,1,0,0,0,50,425,1,0,0,0,52,428,1,0,0,0,54,432,1,0,0,0,56,445,1,0,0,0,58,455,1,0,0,0,60,457,1,0,0,0,62,465,1,0,0,0,64,481,1,0,0,0,66,495,1,0,0,0,68,502,1,0,0,0,70,508,1,0,0,0,72,517,1,0,0,0,74,525,1,0,0,0,76,533,1,0,0,0,78,547,1,0,0,0,80,561,1,0,0,0,82,573,1,0,0,0,84,575,1,0,0,0,86,582,1,0,0,0,88,597,1,0,0,0,90,603,1,0,0,0,92,605,1,0,0,0,94,607,1,0,0,0,96,633,1,0,0,0,98,636,1,0,0,0,100,649,1,0,0,0,102,105,5,61,0,0,103,105,3,2,1,0,104,102,1,0,0,0,104,103,1,0,0,0,105,108,1,0,0,0,106,104,1,0,0,0,106,107,1,0,0,0,107,109,1,0,0,0,108,106,1,0,0,0,109,110,5,0,0,1,110,1,1,0,0,0,111,113,3,16,8,0,112,114,5,8,0,0,113,112,1,0,0,0,113,114,1,0,0,0,114,115,1,0,0,0,115,116,5,61,0,0,116,124,1,0,0,0,117,124,3,4,2,0,118,124,3,54,27,0,119,124,3,66,33,0,120,124,3,74,37,0,121,124,3,78,39,0,122,124,3,98,49,0,123,111,1,0,0,0,123,117,1,0,0,0,123,118,1,0,0,0,123,119,1,0,0,0,123,120,1,0,0,0,123,121,1,0,0,0,123,122,1,0,0,0,124,3,1,0,0,0,125,126,3,16,8,0,126,127,5,8,0,0,127,129,1,0,0,0,128,125,1,0,0,0,129,132,1,0,0,0,130,128,1,0,0,0,130,131,1,0,0,0,131,135,1,0,0,0,132,130,1,0,0,0,133,136,3,28,14,0,134,136,3,32,16,0,135,133,1,0,0,0,135,134,1,0,0,0,136,5,1,0,0,0,137,139,3,8,4,0,138,140,5,8,0,0,139,138,1,0,0,0,139,140,1,0,0,0,140,141,1,0,0,0,141,142,5,61,0,0,142,145,1,0,0,0,143,145,3,26,13,0,144,137,1,0,0,0,144,143,1,0,0,0,145,7,1,0,0,0,146,151,3,24,12,0,147,151,3,22,11,0,148,151,3,36,18,0,149,151,3,10,5,0,150,146,1,0,0,0,150,147,1,0,0,0,150,148,1,0,0,0,150,149,1,0,0,0,151,9,1,0,0,0,152,153,7,0,0,0,153,11,1,0,0,0,154,156,3,8,4,0,155,157,5,8,0,0,156,155,1,0,0,0,156,157,1,0,0,0,157,158,1,0,0,0,158,159,5,61,0,0,159,162,1,0,0,0,160,162,3,14,7,0,161,154,1,0,0,0,161,160,1,0,0,0,162,13,1,0,0,0,163,164,5,61,0,0,164,166,5,1,0,0,165,167,3,6,3,0,166,165,1,0,0,0,167,168,1,0,0,0,168,166,1,0,0,0,168,169,1,0,0,0,169,170,1,0,0,0,170,171,5,2,0,0,171,15,1,0,0,0,172,175,3,60,30,0,173,175,3,18,9,0,174,172,1,0,0,0,174,173,1,0,0,0,175,183,1,0,0,0,176,179,5,8,0,0,177,180,3,60,30,0,178,180,3,18,9,0,179,177,1,0,0,0,179,178,1,0,0,0,180,182,1,0,0,0,181,176,1,0,0,0,182,185,1,0,0,0,183,181,1,0,0,0,183,184,1,0,0,0,184,17,1,0,0,0,185,183,1,0,0,0,186,187,3,30,15,0,187,188,5,9,0,0,188,189,3,34,17,0,189,195,1,0,0,0,190,191,3,96,48,0,191,192,3,82,41,0,192,193,3,34,17,0,193,195,1,0,0,0,194,186,1,0,0,0,194,190,1,0,0,0,195,19,1,0,0,0,196,197,7,1,0,0,197,21,1,0,0,0,198,201,3,34,17,0,199,201,3,18,9,0,200,198,1,0,0,0,200,199,1,0,0,0,201,209,1,0,0,0,202,205,5,8,0,0,203,206,3,34,17,0,204,206,3,18,9,0,205,203,1,0,0,0,205,204,1,0,0,0,206,208,1,0,0,0,207,202,1,0,0,0,208,211,1,0,0,0,209,207,1,0,0,0,209,210,1,0,0,0,210,23,1,0,0,0,211,209,1,0,0,0,212,217,3,34,17,0,213,214,5,8,0,0,214,216,3,34,17,0,215,213,1,0,0,0,216,219,1,0,0,0,217,215,1,0,0,0,217,218,1,0,0,0,218,25,1,0,0,0,219,217,1,0,0,0,220,223,3,34,17,0,221,223,3,18,9,0,222,220,1,0,0,0,222,221,1,0,0,0,223,224,1,0,0,0,224,225,5,8,0,0,225,227,1,0,0,0,226,222,1,0,0,0,227,230,1,0,0,0,228,226,1,0,0,0,228,229,1,0,0,0,229,233,1,0,0,0,230,228,1,0,0,0,231,234,3,28,14,0,232,234,3,32,16,0,233,231,1,0,0,0,233,232,1,0,0,0,234,27,1,0,0,0,235,236,3,30,15,0,236,237,5,9,0,0,237,242,1,0,0,0,238,239,3,96,48,0,239,240,3,82,41,0,240,242,1,0,0,0,241,235,1,0,0,0,241,238,1,0,0,0,242,243,1,0,0,0,243,244,3,32,16,0,244,29,1,0,0,0,245,247,3,20,10,0,246,245,1,0,0,0,246,247,1,0,0,0,247,249,1,0,0,0,248,250,3,90,45,0,249,248,1,0,0,0,249,250,1,0,0,0,250,251,1,0,0,0,251,264,3,92,46,0,252,253,5,4,0,0,253,258,3,92,46,0,254,255,5,8,0,0,255,257,3,92,46,0,256,254,1,0,0,0,257,260,1,0,0,0,258,256,1,0,0,0,258,259,1,0,0,0,259,261,1,0,0,0,260,258,1,0,0,0,261,262,5,5,0,0,262,264,1,0,0,0,263,246,1,0,0,0,263,252,1,0,0,0,264,31,1,0,0,0,265,270,3,42,21,0,266,270,3,44,22,0,267,270,3,52,26,0,268,270,3,46,23,0,269,265,1,0,0,0,269,266,1,0,0,0,269,267,1,0,0,0,269,268,1,0,0,0,270,33,1,0,0,0,271,272,6,17,-1,0,272,284,3,60,30,0,273,274,7,2,0,0,274,284,3,34,17,12,275,276,5,46,0,0,276,284,3,34,17,11,277,284,3,96,48,0,278,284,3,58,29,0,279,280,5,6,0,0,280,281,3,34,17,0,281,282,5,7,0,0,282,284,1,0,0,0,283,271,1,0,0,0,283,273,1,0,0,0,283,275,1,0,0,0,283,277,1,0,0,0,283,278,1,0,0,0,283,279,1,0,0,0,284,316,1,0,0,0,285,286,10,10,0,0,286,287,7,3,0,0,287,315,3,34,17,11,288,289,10,9,0,0,289,290,7,2,0,0,290,315,3,34,17,10,291,292,10,8,0,0,292,293,7,4,0,0,293,315,3,34,17,9,294,295,10,7,0,0,295,296,7,5,0,0,296,315,3,34,17,8,297,298,10,6,0,0,298,299,5,35,0,0,299,315,3,34,17,7,300,301,10,5,0,0,301,302,5,45,0,0,302,315,3,34,17,6,303,304,10,4,0,0,304,305,5,10,0,0,305,306,3,34,17,0,306,307,5,11,0,0,307,308,3,34,17,4,308,315,1,0,0,0,309,310,10,13,0,0,310,311,5,4,0,0,311,312,3,34,17,0,312,313,5,5,0,0,313,315,1,0,0,0,314,285,1,0,0,0,314,288,1,0,0,0,314,291,1,0,0,0,314,294,1,0,0,0,314,297,1,0,0,0,314,300,1,0,0,0,314,303,1,0,0,0,314,309,1,0,0,0,315,318,1,0,0,0,316,314,1,0,0,0,316,317,1,0,0,0,317,35,1,0,0,0,318,316,1,0,0,0,319,320,5,4,0,0,320,321,3,24,12,0,321,322,5,5,0,0,322,37,1,0,0,0,323,335,5,6,0,0,324,329,3,40,20,0,325,326,5,8,0,0,326,328,3,40,20,0,327,325,1,0,0,0,328,331,1,0,0,0,329,327,1,0,0,0,329,330,1,0,0,0,330,333,1,0,0,0,331,329,1,0,0,0,332,334,5,8,0,0,333,332,1,0,0,0,333,334,1,0,0,0,334,336,1,0,0,0,335,324,1,0,0,0,335,336,1,0,0,0,336,337,1,0,0,0,337,338,5,7,0,0,338,39,1,0,0,0,339,340,3,92,46,0,340,341,5,9,0,0,341,343,1,0,0,0,342,339,1,0,0,0,342,343,1,0,0,0,343,346,1,0,0,0,344,347,3,34,17,0,345,347,3,36,18,0,346,344,1,0,0,0,346,345,1,0,0,0,347,41,1,0,0,0,348,349,5,43,0,0,349,350,3,34,17,0,350,358,3,14,7,0,351,352,5,48,0,0,352,353,5,43,0,0,353,354,3,34,17,0,354,355,3,14,7,0,355,357,1,0,0,0,356,351,1,0,0,0,357,360,1,0,0,0,358,356,1,0,0,0,358,359,1,0,0,0,359,363,1,0,0,0,360,358,1,0,0,0,361,362,5,48,0,0,362,364,3,14,7,0,363,361,1,0,0,0,363,364,1,0,0,0,364,43,1,0,0,0,365,367,5,37,0,0,366,368,3,20,10,0,367,366,1,0,0,0,367,368,1,0,0,0,368,370,1,0,0,0,369,371,3,90,45,0,370,369,1,0,0,0,370,371,1,0,0,0,371,372,1,0,0,0,372,373,3,92,46,0,373,374,5,9,0,0,374,375,3,34,17,0,375,376,5,49,0,0,376,379,3,34,17,0,377,378,5,50,0,0,378,380,3,34,17,0,379,377,1,0,0,0,379,380,1,0,0,0,380,381,1,0,0,0,381,382,3,14,7,0,382,398,1,0,0,0,383,391,5,37,0,0,384,392,3,92,46,0,385,386,5,4,0,0,386,387,3,92,46,0,387,388,5,8,0,0,388,389,3,92,46,0,389,390,5,5,0,0,390,392,1,0,0,0,391,384,1,0,0,0,391,385,1,0,0,0,392,393,1,0,0,0,393,394,5,44,0,0,394,395,3,34,17,0,395,396,3,14,7,0,396,398,1,0,0,0,397,365,1,0,0,0,397,383,1,0,0,0,398,45,1,0,0,0,399,401,5,41,0,0,400,402,3,34,17,0,401,400,1,0,0,0,401,402,1,0,0,0,402,403,1,0,0,0,403,404,5,61,0,0,404,417,5,1,0,0,405,407,3,48,24,0,406,405,1,0,0,0,407,408,1,0,0,0,408,406,1,0,0,0,408,409,1,0,0,0,409,418,1,0,0,0,410,412,3,48,24,0,411,410,1,0,0,0,412,415,1,0,0,0,413,411,1,0,0,0,413,414,1,0,0,0,414,416,1,0,0,0,415,413,1,0,0,0,416,418,3,50,25,0,417,406,1,0,0,0,417,413,1,0,0,0,418,419,1,0,0,0,419,420,5,2,0,0,420,47,1,0,0,0,421,422,3,34,17,0,422,423,5,29,0,0,423,424,3,12,6,0,424,49,1,0,0,0,425,426,5,29,0,0,426,427,3,12,6,0,427,51,1,0,0,0,428,429,5,42,0,0,429,430,3,34,17,0,430,431,3,14,7,0,431,53,1,0,0,0,432,437,3,56,28,0,433,434,5,8,0,0,434,436,3,56,28,0,435,433,1,0,0,0,436,439,1,0,0,0,437,435,1,0,0,0,437,438,1,0,0,0,438,441,1,0,0,0,439,437,1,0,0,0,440,442,5,8,0,0,441,440,1,0,0,0,441,442,1,0,0,0,442,443,1,0,0,0,443,444,5,61,0,0,444,55,1,0,0,0,445,446,5,52,0,0,446,447,3,92,46,0,447,448,5,15,0,0,448,449,3,92,46,0,449,450,5,15,0,0,450,453,5,32,0,0,451,452,5,53,0,0,452,454,3,92,46,0,453,451,1,0,0,0,453,454,1,0,0,0,454,57,1,0,0,0,455,456,7,6,0,0,456,59,1,0,0,0,457,462,3,62,31,0,458,459,5,3,0,0,459,461,3,62,31,0,460,458,1,0,0,0,461,464,1,0,0,0,462,460,1,0,0,0,462,463,1,0,0,0,463,61,1,0,0,0,464,462,1,0,0,0,465,466,3,64,32,0,466,467,3,38,19,0,467,63,1,0,0,0,468,469,3,92,46,0,469,470,5,3,0,0,470,472,1,0,0,0,471,468,1,0,0,0,472,475,1,0,0,0,473,471,1,0,0,0,473,474,1,0,0,0,474,482,1,0,0,0,475,473,1,0,0,0,476,477,5,6,0,0,477,478,3,34,17,0,478,479,5,7,0,0,479,480,5,3,0,0,480,482,1,0,0,0,481,473,1,0,0,0,481,476,1,0,0,0,482,483,1,0,0,0,483,492,3,92,46,0,484,485,5,18,0,0,485,488,3,94,47,0,486,487,5,8,0,0,487,489,3,94,47,0,488,486,1,0,0,0,488,489,1,0,0,0,489,490,1,0,0,0,490,491,5,19,0,0,491,493,1,0,0,0,492,484,1,0,0,0,492,493,1,0,0,0,493,65,1,0,0,0,494,496,5,36,0,0,495,494,1,0,0,0,495,496,1,0,0,0,496,497,1,0,0,0,497,498,3,92,46,0,498,499,3,68,34,0,499,500,5,29,0,0,500,501,3,12,6,0,501,67,1,0,0,0,502,504,5,6,0,0,503,505,3,70,35,0,504,503,1,0,0,0,504,505,1,0,0,0,505,506,1,0,0,0,506,507,5,7,0,0,507,69,1,0,0,0,508,513,3,72,36,0,509,510,5,8,0,0,510,512,3,72,36,0,511,509,1,0,0,0,512,515,1,0,0,0,513,511,1,0,0,0,513,514,1,0,0,0,514,71,1,0,0,0,515,513,1,0,0,0,516,518,3,90,45,0,517,516,1,0,0,0,517,518,1,0,0,0,518,519,1,0,0,0,519,522,3,92,46,0,520,521,5,9,0,0,521,523,3,34,17,0,522,520,1,0,0,0,522,523,1,0,0,0,523,73,1,0,0,0,524,526,5,36,0,0,525,524,1,0,0,0,525,526,1,0,0,0,526,527,1,0,0,0,527,528,5,47,0,0,528,529,3,92,46,0,529,530,3,76,38,0,530,531,5,29,0,0,531,532,3,12,6,0,532,75,1,0,0,0,533,534,5,6,0,0,534,535,3,90,45,0,535,538,3,92,46,0,536,537,5,9,0,0,537,539,3,34,17,0,538,536,1,0,0,0,538,539,1,0,0,0,539,542,1,0,0,0,540,541,5,8,0,0,541,543,3,70,35,0,542,540,1,0,0,0,542,543,1,0,0,0,543,544,1,0,0,0,544,545,5,7,0,0,545,77,1,0,0,0,546,548,5,36,0,0,547,546,1,0,0,0,547,548,1,0,0,0,548,549,1,0,0,0,549,550,5,51,0,0,550,551,3,92,46,0,551,552,5,61,0,0,552,554,5,1,0,0,553,555,3,80,40,0,554,553,1,0,0,0,555,556,1,0,0,0,556,554,1,0,0,0,556,557,1,0,0,0,557,558,1,0,0,0,558,559,5,2,0,0,559,79,1,0,0,0,560,562,5,40,0,0,561,560,1,0,0,0,561,562,1,0,0,0,562,564,1,0,0,0,563,565,3,90,45,0,564,563,1,0,0,0,564,565,1,0,0,0,565,566,1,0,0,0,566,569,3,92,46,0,567,568,5,9,0,0,568,570,3,34,17,0,569,567,1,0,0,0,569,570,1,0,0,0,570,571,1,0,0,0,571,572,5,61,0,0,572,81,1,0,0,0,573,574,7,7,0,0,574,83,1,0,0,0,575,576,5,55,0,0,576,577,5,18,0,0,577,578,3,94,47,0,578,579,5,8,0,0,579,580,3,94,47,0,580,581,5,19,0,0,581,85,1,0,0,0,582,586,3,94,47,0,583,587,3,94,47,0,584,587,3,88,44,0,585,587,3,84,42,0,586,583,1,0,0,0,586,584,1,0,0,0,586,585,1,0,0,0,587,87,1,0,0,0,588,589,3,94,47,0,589,590,5,18,0,0,590,591,3,94,47,0,591,592,5,19,0,0,592,598,1,0,0,0,593,594,3,94,47,0,594,595,5,4,0,0,595,596,5,5,0,0,596,598,1,0,0,0,597,588,1,0,0,0,597,593,1,0,0,0,598,89,1,0,0,0,599,604,3,94,47,0,600,604,3,88,44,0,601,604,3,84,42,0,602,604,3,86,43,0,603,599,1,0,0,0,603,600,1,0,0,0,603,601,1,0,0,0,603,602,1,0,0,0,604,91,1,0,0,0,605,606,7,8,0,0,606,93,1,0,0,0,607,610,3,92,46,0,608,609,5,3,0,0,609,611,3,92,46,0,610,608,1,0,0,0,610,611,1,0,0,0,611,95,1,0,0,0,612,615,3,92,46,0,613,615,3,62,31,0,614,612,1,0,0,0,614,613,1,0,0,0,615,616,1,0,0,0,616,617,5,3,0,0,617,619,1,0,0,0,618,614,1,0,0,0,619,622,1,0,0,0,620,618,1,0,0,0,620,621,1,0,0,0,621,623,1,0,0,0,622,620,1,0,0,0,623,634,3,92,46,0,624,625,5,6,0,0,625,626,3,34,17,0,626,629,5,7,0,0,627,628,5,3,0,0,628,630,3,92,46,0,629,627,1,0,0,0,630,631,1,0,0,0,631,629,1,0,0,0,631,632,1,0,0,0,632,634,1,0,0,0,633,620,1,0,0,0,633,624,1,0,0,0,634,97,1,0,0,0,635,637,5,36,0,0,636,635,1,0,0,0,636,637,1,0,0,0,637,638,1,0,0,0,638,639,5,54,0,0,639,640,3,92,46,0,640,641,5,61,0,0,641,643,5,1,0,0,642,644,3,100,50,0,643,642,1,0,0,0,644,645,1,0,0,0,645,643,1,0,0,0,645,646,1,0,0,0,646,647,1,0,0,0,647,648,5,2,0,0,648,99,1,0,0,0,649,652,3,92,46,0,650,651,5,9,0,0,651,653,5,57,0,0,652,650,1,0,0,0,652,653,1,0,0,0,653,654,1,0,0,0,654,655,5,61,0,0,655,101,1,0,0,0,80,104,106,113,123,130,135,139,144,150,156,161,168,174,179,183,194,200,205,209,217,222,228,233,241,246,249,258,263,269,283,314,316,329,333,335,342,346,358,363,367,370,379,391,397,401,408,413,417,437,441,453,462,473,481,488,492,495,504,513,517,522,525,538,542,547,556,561,564,569,586,597,603,610,614,620,631,633,636,645,652]),T(w,"__ATN"),T(w,"DecisionsToDFA",w._ATN.decisionToState.map((e,n)=>new _u(e,n)));let x=w;class m3 extends n1{constructor(e,n,r){super(n,r),this.parser=e}EOF(){return this.getToken(x.EOF,0)}NEWLINE_list(){return this.getTokens(x.NEWLINE)}NEWLINE(e){return this.getToken(x.NEWLINE,e)}globalStmt_list(){return this.getTypedRuleContexts(ws)}globalStmt(e){return this.getTypedRuleContext(ws,e)}get ruleIndex(){return x.RULE_program}accept(e){return e.visitProgram?e.visitProgram(this):e.visitChildren(this)}}class ws extends n1{constructor(e,n,r){super(n,r),this.parser=e}variableDeclarationStmt(){return this.getTypedRuleContext(fa,0)}NEWLINE(){return this.getToken(x.NEWLINE,0)}Comma(){return this.getToken(x.Comma,0)}blockStmt(){return this.getTypedRuleContext(gu,0)}importStmt(){return this.getTypedRuleContext(Bu,0)}arrowFunction(){return this.getTypedRuleContext(ku,0)}arrowMethod(){return this.getTypedRuleContext(Pu,0)}typeStatement(){return this.getTypedRuleContext(Xu,0)}enumStatement(){return this.getTypedRuleContext(Uu,0)}get ruleIndex(){return x.RULE_globalStmt}accept(e){return e.visitGlobalStmt?e.visitGlobalStmt(this):e.visitChildren(this)}}class gu extends n1{constructor(e,n,r){super(n,r),this.parser=e}varBlockStmt(){return this.getTypedRuleContext(Us,0)}blockExpression(){return this.getTypedRuleContext(Aa,0)}variableDeclarationStmt_list(){return this.getTypedRuleContexts(fa)}variableDeclarationStmt(e){return this.getTypedRuleContext(fa,e)}Comma_list(){return this.getTokens(x.Comma)}Comma(e){return this.getToken(x.Comma,e)}get ruleIndex(){return x.RULE_blockStmt}accept(e){return e.visitBlockStmt?e.visitBlockStmt(this):e.visitChildren(this)}}class Ps extends n1{constructor(e,n,r){super(n,r),this.parser=e}simpleStmt(){return this.getTypedRuleContext(Is,0)}NEWLINE(){return this.getToken(x.NEWLINE,0)}Comma(){return this.getToken(x.Comma,0)}expressionBlockSequence(){return this.getTypedRuleContext(vu,0)}get ruleIndex(){return x.RULE_stmt}accept(e){return e.visitStmt?e.visitStmt(this):e.visitChildren(this)}}class Is extends n1{constructor(e,n,r){super(n,r),this.parser=e}expressionSequence(){return this.getTypedRuleContext(Fs,0)}blockSequence(){return this.getTypedRuleContext(Eu,0)}brackethesized(){return this.getTypedRuleContext(Vs,0)}flowStmt(){return this.getTypedRuleContext(Ru,0)}get ruleIndex(){return x.RULE_simpleStmt}accept(e){return e.visitSimpleStmt?e.visitSimpleStmt(this):e.visitChildren(this)}}class Ru extends n1{constructor(e,n,r){super(n,r),this.parser=e}Break(){return this.getToken(x.Break,0)}Continue(){return this.getToken(x.Continue,0)}get ruleIndex(){return x.RULE_flowStmt}accept(e){return e.visitFlowStmt?e.visitFlowStmt(this):e.visitChildren(this)}}class o2 extends n1{constructor(e,n,r){super(n,r),this.parser=e}simpleStmt(){return this.getTypedRuleContext(Is,0)}NEWLINE(){return this.getToken(x.NEWLINE,0)}Comma(){return this.getToken(x.Comma,0)}blockLine(){return this.getTypedRuleContext(to,0)}get ruleIndex(){return x.RULE_block}accept(e){return e.visitBlock?e.visitBlock(this):e.visitChildren(this)}}class to extends n1{constructor(e,n,r){super(n,r),this.parser=e}NEWLINE(){return this.getToken(x.NEWLINE,0)}INDENT(){return this.getToken(x.INDENT,0)}DEDENT(){return this.getToken(x.DEDENT,0)}stmt_list(){return this.getTypedRuleContexts(Ps)}stmt(e){return this.getTypedRuleContext(Ps,e)}get ruleIndex(){return x.RULE_blockLine}accept(e){return e.visitBlockLine?e.visitBlockLine(this):e.visitChildren(this)}}class fa extends n1{constructor(e,n,r){super(n,r),this.parser=e}methodStmt_list(){return this.getTypedRuleContexts(ha)}methodStmt(e){return this.getTypedRuleContext(ha,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(cr)}variableDeclarationList(e){return this.getTypedRuleContext(cr,e)}Comma_list(){return this.getTokens(x.Comma)}Comma(e){return this.getToken(x.Comma,e)}get ruleIndex(){return x.RULE_variableDeclarationStmt}accept(e){return e.visitVariableDeclarationStmt?e.visitVariableDeclarationStmt(this):e.visitChildren(this)}}class cr extends n1{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return x.RULE_variableDeclarationList}copyFrom(e){super.copyFrom(e)}}class _3 extends cr{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}name(){return this.getTypedRuleContext(qa,0)}assignmentOperator(){return this.getTypedRuleContext(Qs,0)}singleExpression(){return this.getTypedRuleContext(F0,0)}accept(e){return e.visitAgainAssign?e.visitAgainAssign(this):e.visitChildren(this)}}class y3 extends cr{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}varArrayDeclaration(){return this.getTypedRuleContext(i2,0)}Assign(){return this.getToken(x.Assign,0)}singleExpression(){return this.getTypedRuleContext(F0,0)}accept(e){return e.visitDeclareAssign?e.visitDeclareAssign(this):e.visitChildren(this)}}class Xs extends n1{constructor(e,n,r){super(n,r),this.parser=e}Var(){return this.getToken(x.Var,0)}Varip(){return this.getToken(x.Varip,0)}get ruleIndex(){return x.RULE_varModifier}accept(e){return e.visitVarModifier?e.visitVarModifier(this):e.visitChildren(this)}}class Eu extends n1{constructor(e,n,r){super(n,r),this.parser=e}singleExpression_list(){return this.getTypedRuleContexts(F0)}singleExpression(e){return this.getTypedRuleContext(F0,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(cr)}variableDeclarationList(e){return this.getTypedRuleContext(cr,e)}Comma_list(){return this.getTokens(x.Comma)}Comma(e){return this.getToken(x.Comma,e)}get ruleIndex(){return x.RULE_blockSequence}accept(e){return e.visitBlockSequence?e.visitBlockSequence(this):e.visitChildren(this)}}class Fs extends n1{constructor(e,n,r){super(n,r),this.parser=e}singleExpression_list(){return this.getTypedRuleContexts(F0)}singleExpression(e){return this.getTypedRuleContext(F0,e)}Comma_list(){return this.getTokens(x.Comma)}Comma(e){return this.getToken(x.Comma,e)}get ruleIndex(){return x.RULE_expressionSequence}accept(e){return e.visitExpressionSequence?e.visitExpressionSequence(this):e.visitChildren(this)}}class vu extends n1{constructor(e,n,r){super(n,r),this.parser=e}varBlockStmt(){return this.getTypedRuleContext(Us,0)}blockExpression(){return this.getTypedRuleContext(Aa,0)}Comma_list(){return this.getTokens(x.Comma)}Comma(e){return this.getToken(x.Comma,e)}singleExpression_list(){return this.getTypedRuleContexts(F0)}singleExpression(e){return this.getTypedRuleContext(F0,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(cr)}variableDeclarationList(e){return this.getTypedRuleContext(cr,e)}get ruleIndex(){return x.RULE_expressionBlockSequence}accept(e){return e.visitExpressionBlockSequence?e.visitExpressionBlockSequence(this):e.visitChildren(this)}}class Us extends n1{constructor(e,n,r){super(n,r),this.parser=e}blockExpression(){return this.getTypedRuleContext(Aa,0)}varArrayDeclaration(){return this.getTypedRuleContext(i2,0)}Assign(){return this.getToken(x.Assign,0)}name(){return this.getTypedRuleContext(qa,0)}assignmentOperator(){return this.getTypedRuleContext(Qs,0)}get ruleIndex(){return x.RULE_varBlockStmt}accept(e){return e.visitVarBlockStmt?e.visitVarBlockStmt(this):e.visitChildren(this)}}class i2 extends n1{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return x.RULE_varArrayDeclaration}copyFrom(e){super.copyFrom(e)}}class W3 extends i2{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}OpenBracket(){return this.getToken(x.OpenBracket,0)}identifier_list(){return this.getTypedRuleContexts(Te)}identifier(e){return this.getTypedRuleContext(Te,e)}CloseBracket(){return this.getToken(x.CloseBracket,0)}Comma_list(){return this.getTokens(x.Comma)}Comma(e){return this.getToken(x.Comma,e)}accept(e){return e.visitVarMultiple?e.visitVarMultiple(this):e.visitChildren(this)}}class g3 extends i2{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}identifier(){return this.getTypedRuleContext(Te,0)}varModifier(){return this.getTypedRuleContext(Xs,0)}typeGather(){return this.getTypedRuleContext(Co,0)}accept(e){return e.visitVarSingle?e.visitVarSingle(this):e.visitChildren(this)}}class Aa extends n1{constructor(e,n,r){super(n,r),this.parser=e}ifStatement(){return this.getTypedRuleContext(Su,0)}forStatement(){return this.getTypedRuleContext(da,0)}whileStatement(){return this.getTypedRuleContext(Cu,0)}switchStatement(){return this.getTypedRuleContext(Lu,0)}get ruleIndex(){return x.RULE_blockExpression}accept(e){return e.visitBlockExpression?e.visitBlockExpression(this):e.visitChildren(this)}}class F0 extends n1{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return x.RULE_singleExpression}copyFrom(e){super.copyFrom(e)}}class R3 extends F0{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}OpenParen(){return this.getToken(x.OpenParen,0)}singleExpression(){return this.getTypedRuleContext(F0,0)}CloseParen(){return this.getToken(x.CloseParen,0)}accept(e){return e.visitParenthesizedExpression?e.visitParenthesizedExpression(this):e.visitChildren(this)}}class E3 extends F0{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(F0)}singleExpression(e){return this.getTypedRuleContext(F0,e)}Plus(){return this.getToken(x.Plus,0)}Minus(){return this.getToken(x.Minus,0)}accept(e){return e.visitAdditiveExpression?e.visitAdditiveExpression(this):e.visitChildren(this)}}class v3 extends F0{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(F0)}singleExpression(e){return this.getTypedRuleContext(F0,e)}LessThan(){return this.getToken(x.LessThan,0)}MoreThan(){return this.getToken(x.MoreThan,0)}LessThanEquals(){return this.getToken(x.LessThanEquals,0)}GreaterThanEquals(){return this.getToken(x.GreaterThanEquals,0)}accept(e){return e.visitRelationalExpression?e.visitRelationalExpression(this):e.visitChildren(this)}}class T3 extends F0{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(F0)}singleExpression(e){return this.getTypedRuleContext(F0,e)}QuestionMark(){return this.getToken(x.QuestionMark,0)}Colon(){return this.getToken(x.Colon,0)}accept(e){return e.visitTernaryExpression?e.visitTernaryExpression(this):e.visitChildren(this)}}class S3 extends F0{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(F0)}singleExpression(e){return this.getTypedRuleContext(F0,e)}And(){return this.getToken(x.And,0)}accept(e){return e.visitLogicalAndExpression?e.visitLogicalAndExpression(this):e.visitChildren(this)}}class L3 extends F0{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}name(){return this.getTypedRuleContext(qa,0)}accept(e){return e.visitNameExpression?e.visitNameExpression(this):e.visitChildren(this)}}class N3 extends F0{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}literal(){return this.getTypedRuleContext(xu,0)}accept(e){return e.visitLiteralExpression?e.visitLiteralExpression(this):e.visitChildren(this)}}class C3 extends F0{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(F0)}singleExpression(e){return this.getTypedRuleContext(F0,e)}Or(){return this.getToken(x.Or,0)}accept(e){return e.visitLogicalOrExpression?e.visitLogicalOrExpression(this):e.visitChildren(this)}}class B3 extends F0{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression(){return this.getTypedRuleContext(F0,0)}Minus(){return this.getToken(x.Minus,0)}Plus(){return this.getToken(x.Plus,0)}accept(e){return e.visitUnaryExpression?e.visitUnaryExpression(this):e.visitChildren(this)}}class x3 extends F0{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}Not(){return this.getToken(x.Not,0)}singleExpression(){return this.getTypedRuleContext(F0,0)}accept(e){return e.visitNotExpression?e.visitNotExpression(this):e.visitChildren(this)}}class D3 extends F0{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(F0)}singleExpression(e){return this.getTypedRuleContext(F0,e)}OpenBracket(){return this.getToken(x.OpenBracket,0)}CloseBracket(){return this.getToken(x.CloseBracket,0)}accept(e){return e.visitMemberIndexExpression?e.visitMemberIndexExpression(this):e.visitChildren(this)}}class k3 extends F0{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}methodStmt(){return this.getTypedRuleContext(ha,0)}accept(e){return e.visitMethodExpression?e.visitMethodExpression(this):e.visitChildren(this)}}class w3 extends F0{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(F0)}singleExpression(e){return this.getTypedRuleContext(F0,e)}Equals_(){return this.getToken(x.Equals_,0)}NotEquals(){return this.getToken(x.NotEquals,0)}accept(e){return e.visitEqualityExpression?e.visitEqualityExpression(this):e.visitChildren(this)}}class P3 extends F0{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(F0)}singleExpression(e){return this.getTypedRuleContext(F0,e)}Multiply(){return this.getToken(x.Multiply,0)}Divide(){return this.getToken(x.Divide,0)}Modulus(){return this.getToken(x.Modulus,0)}accept(e){return e.visitMultiplicativeExpression?e.visitMultiplicativeExpression(this):e.visitChildren(this)}}class Vs extends n1{constructor(e,n,r){super(n,r),this.parser=e}OpenBracket(){return this.getToken(x.OpenBracket,0)}expressionSequence(){return this.getTypedRuleContext(Fs,0)}CloseBracket(){return this.getToken(x.CloseBracket,0)}get ruleIndex(){return x.RULE_brackethesized}accept(e){return e.visitBrackethesized?e.visitBrackethesized(this):e.visitChildren(this)}}class Tu extends n1{constructor(e,n,r){super(n,r),this.parser=e}OpenParen(){return this.getToken(x.OpenParen,0)}CloseParen(){return this.getToken(x.CloseParen,0)}argument_list(){return this.getTypedRuleContexts(js)}argument(e){return this.getTypedRuleContext(js,e)}Comma_list(){return this.getTokens(x.Comma)}Comma(e){return this.getToken(x.Comma,e)}get ruleIndex(){return x.RULE_arguments}accept(e){return e.visitArguments?e.visitArguments(this):e.visitChildren(this)}}class js extends n1{constructor(e,n,r){super(n,r),this.parser=e}singleExpression(){return this.getTypedRuleContext(F0,0)}brackethesized(){return this.getTypedRuleContext(Vs,0)}identifier(){return this.getTypedRuleContext(Te,0)}Assign(){return this.getToken(x.Assign,0)}get ruleIndex(){return x.RULE_argument}accept(e){return e.visitArgument?e.visitArgument(this):e.visitChildren(this)}}class Su extends n1{constructor(e,n,r){super(n,r),this.parser=e}If_list(){return this.getTokens(x.If)}If(e){return this.getToken(x.If,e)}singleExpression_list(){return this.getTypedRuleContexts(F0)}singleExpression(e){return this.getTypedRuleContext(F0,e)}blockLine_list(){return this.getTypedRuleContexts(to)}blockLine(e){return this.getTypedRuleContext(to,e)}Else_list(){return this.getTokens(x.Else)}Else(e){return this.getToken(x.Else,e)}get ruleIndex(){return x.RULE_ifStatement}accept(e){return e.visitIfStatement?e.visitIfStatement(this):e.visitChildren(this)}}class da extends n1{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return x.RULE_forStatement}copyFrom(e){super.copyFrom(e)}}class I3 extends da{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}For(){return this.getToken(x.For,0)}identifier(){return this.getTypedRuleContext(Te,0)}Assign(){return this.getToken(x.Assign,0)}singleExpression_list(){return this.getTypedRuleContexts(F0)}singleExpression(e){return this.getTypedRuleContext(F0,e)}To(){return this.getToken(x.To,0)}blockLine(){return this.getTypedRuleContext(to,0)}varModifier(){return this.getTypedRuleContext(Xs,0)}typeGather(){return this.getTypedRuleContext(Co,0)}By(){return this.getToken(x.By,0)}accept(e){return e.visitForToStatement?e.visitForToStatement(this):e.visitChildren(this)}}class X3 extends da{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}For(){return this.getToken(x.For,0)}In(){return this.getToken(x.In,0)}singleExpression(){return this.getTypedRuleContext(F0,0)}blockLine(){return this.getTypedRuleContext(to,0)}identifier_list(){return this.getTypedRuleContexts(Te)}identifier(e){return this.getTypedRuleContext(Te,e)}OpenBracket(){return this.getToken(x.OpenBracket,0)}Comma(){return this.getToken(x.Comma,0)}CloseBracket(){return this.getToken(x.CloseBracket,0)}accept(e){return e.visitForInStatement?e.visitForInStatement(this):e.visitChildren(this)}}class Lu extends n1{constructor(e,n,r){super(n,r),this.parser=e}Switch(){return this.getToken(x.Switch,0)}NEWLINE(){return this.getToken(x.NEWLINE,0)}INDENT(){return this.getToken(x.INDENT,0)}DEDENT(){return this.getToken(x.DEDENT,0)}singleExpression(){return this.getTypedRuleContext(F0,0)}defaultCaluse(){return this.getTypedRuleContext(Nu,0)}caseClause_list(){return this.getTypedRuleContexts(Hs)}caseClause(e){return this.getTypedRuleContext(Hs,e)}get ruleIndex(){return x.RULE_switchStatement}accept(e){return e.visitSwitchStatement?e.visitSwitchStatement(this):e.visitChildren(this)}}class Hs extends n1{constructor(e,n,r){super(n,r),this.parser=e}singleExpression(){return this.getTypedRuleContext(F0,0)}ARROW(){return this.getToken(x.ARROW,0)}block(){return this.getTypedRuleContext(o2,0)}get ruleIndex(){return x.RULE_caseClause}accept(e){return e.visitCaseClause?e.visitCaseClause(this):e.visitChildren(this)}}class Nu extends n1{constructor(e,n,r){super(n,r),this.parser=e}ARROW(){return this.getToken(x.ARROW,0)}block(){return this.getTypedRuleContext(o2,0)}get ruleIndex(){return x.RULE_defaultCaluse}accept(e){return e.visitDefaultCaluse?e.visitDefaultCaluse(this):e.visitChildren(this)}}class Cu extends n1{constructor(e,n,r){super(n,r),this.parser=e}While(){return this.getToken(x.While,0)}singleExpression(){return this.getTypedRuleContext(F0,0)}blockLine(){return this.getTypedRuleContext(to,0)}get ruleIndex(){return x.RULE_whileStatement}accept(e){return e.visitWhileStatement?e.visitWhileStatement(this):e.visitChildren(this)}}class Bu extends n1{constructor(e,n,r){super(n,r),this.parser=e}importElement_list(){return this.getTypedRuleContexts($s)}importElement(e){return this.getTypedRuleContext($s,e)}NEWLINE(){return this.getToken(x.NEWLINE,0)}Comma_list(){return this.getTokens(x.Comma)}Comma(e){return this.getToken(x.Comma,e)}get ruleIndex(){return x.RULE_importStmt}accept(e){return e.visitImportStmt?e.visitImportStmt(this):e.visitChildren(this)}}class $s extends n1{constructor(e,n,r){super(n,r),this.parser=e}Import(){return this.getToken(x.Import,0)}identifier_list(){return this.getTypedRuleContexts(Te)}identifier(e){return this.getTypedRuleContext(Te,e)}Divide_list(){return this.getTokens(x.Divide)}Divide(e){return this.getToken(x.Divide,e)}IntegerLiteral(){return this.getToken(x.IntegerLiteral,0)}As(){return this.getToken(x.As,0)}get ruleIndex(){return x.RULE_importElement}accept(e){return e.visitImportElement?e.visitImportElement(this):e.visitChildren(this)}}class xu extends n1{constructor(e,n,r){super(n,r),this.parser=e}BooleanLiteral(){return this.getToken(x.BooleanLiteral,0)}ColorLiteral(){return this.getToken(x.ColorLiteral,0)}StringLiteral(){return this.getToken(x.StringLiteral,0)}IntegerLiteral(){return this.getToken(x.IntegerLiteral,0)}DecimalLiteral(){return this.getToken(x.DecimalLiteral,0)}get ruleIndex(){return x.RULE_literal}accept(e){return e.visitLiteral?e.visitLiteral(this):e.visitChildren(this)}}class ha extends n1{constructor(e,n,r){super(n,r),this.parser=e}methodElement_list(){return this.getTypedRuleContexts(a2)}methodElement(e){return this.getTypedRuleContext(a2,e)}Point_list(){return this.getTokens(x.Point)}Point(e){return this.getToken(x.Point,e)}get ruleIndex(){return x.RULE_methodStmt}accept(e){return e.visitMethodStmt?e.visitMethodStmt(this):e.visitChildren(this)}}class a2 extends n1{constructor(e,n,r){super(n,r),this.parser=e}methodName(){return this.getTypedRuleContext(Du,0)}arguments(){return this.getTypedRuleContext(Tu,0)}get ruleIndex(){return x.RULE_methodElement}accept(e){return e.visitMethodElement?e.visitMethodElement(this):e.visitChildren(this)}}class Du extends n1{constructor(e,n,r){super(n,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(Te)}identifier(e){return this.getTypedRuleContext(Te,e)}OpenParen(){return this.getToken(x.OpenParen,0)}singleExpression(){return this.getTypedRuleContext(F0,0)}CloseParen(){return this.getToken(x.CloseParen,0)}Point_list(){return this.getTokens(x.Point)}Point(e){return this.getToken(x.Point,e)}LessThan(){return this.getToken(x.LessThan,0)}typeName_list(){return this.getTypedRuleContexts(In)}typeName(e){return this.getTypedRuleContext(In,e)}MoreThan(){return this.getToken(x.MoreThan,0)}Comma(){return this.getToken(x.Comma,0)}get ruleIndex(){return x.RULE_methodName}accept(e){return e.visitMethodName?e.visitMethodName(this):e.visitChildren(this)}}class ku extends n1{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(Te,0)}arrowFunctionParameters(){return this.getTypedRuleContext(wu,0)}ARROW(){return this.getToken(x.ARROW,0)}block(){return this.getTypedRuleContext(o2,0)}Export(){return this.getToken(x.Export,0)}get ruleIndex(){return x.RULE_arrowFunction}accept(e){return e.visitArrowFunction?e.visitArrowFunction(this):e.visitChildren(this)}}class wu extends n1{constructor(e,n,r){super(n,r),this.parser=e}OpenParen(){return this.getToken(x.OpenParen,0)}CloseParen(){return this.getToken(x.CloseParen,0)}formalParameterList(){return this.getTypedRuleContext(Gs,0)}get ruleIndex(){return x.RULE_arrowFunctionParameters}accept(e){return e.visitArrowFunctionParameters?e.visitArrowFunctionParameters(this):e.visitChildren(this)}}class Gs extends n1{constructor(e,n,r){super(n,r),this.parser=e}formalParameterArg_list(){return this.getTypedRuleContexts(Ks)}formalParameterArg(e){return this.getTypedRuleContext(Ks,e)}Comma_list(){return this.getTokens(x.Comma)}Comma(e){return this.getToken(x.Comma,e)}get ruleIndex(){return x.RULE_formalParameterList}accept(e){return e.visitFormalParameterList?e.visitFormalParameterList(this):e.visitChildren(this)}}class Ks extends n1{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(Te,0)}typeGather(){return this.getTypedRuleContext(Co,0)}Assign(){return this.getToken(x.Assign,0)}singleExpression(){return this.getTypedRuleContext(F0,0)}get ruleIndex(){return x.RULE_formalParameterArg}accept(e){return e.visitFormalParameterArg?e.visitFormalParameterArg(this):e.visitChildren(this)}}class Pu extends n1{constructor(e,n,r){super(n,r),this.parser=e}Method(){return this.getToken(x.Method,0)}identifier(){return this.getTypedRuleContext(Te,0)}arrowMethodParameters(){return this.getTypedRuleContext(Iu,0)}ARROW(){return this.getToken(x.ARROW,0)}block(){return this.getTypedRuleContext(o2,0)}Export(){return this.getToken(x.Export,0)}get ruleIndex(){return x.RULE_arrowMethod}accept(e){return e.visitArrowMethod?e.visitArrowMethod(this):e.visitChildren(this)}}class Iu extends n1{constructor(e,n,r){super(n,r),this.parser=e}OpenParen(){return this.getToken(x.OpenParen,0)}typeGather(){return this.getTypedRuleContext(Co,0)}identifier(){return this.getTypedRuleContext(Te,0)}CloseParen(){return this.getToken(x.CloseParen,0)}Assign(){return this.getToken(x.Assign,0)}singleExpression(){return this.getTypedRuleContext(F0,0)}Comma(){return this.getToken(x.Comma,0)}formalParameterList(){return this.getTypedRuleContext(Gs,0)}get ruleIndex(){return x.RULE_arrowMethodParameters}accept(e){return e.visitArrowMethodParameters?e.visitArrowMethodParameters(this):e.visitChildren(this)}}class Xu extends n1{constructor(e,n,r){super(n,r),this.parser=e}Type(){return this.getToken(x.Type,0)}identifier(){return this.getTypedRuleContext(Te,0)}NEWLINE(){return this.getToken(x.NEWLINE,0)}INDENT(){return this.getToken(x.INDENT,0)}DEDENT(){return this.getToken(x.DEDENT,0)}Export(){return this.getToken(x.Export,0)}typeElement_list(){return this.getTypedRuleContexts(Ys)}typeElement(e){return this.getTypedRuleContext(Ys,e)}get ruleIndex(){return x.RULE_typeStatement}accept(e){return e.visitTypeStatement?e.visitTypeStatement(this):e.visitChildren(this)}}class Ys extends n1{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(Te,0)}NEWLINE(){return this.getToken(x.NEWLINE,0)}Varip(){return this.getToken(x.Varip,0)}typeGather(){return this.getTypedRuleContext(Co,0)}Assign(){return this.getToken(x.Assign,0)}singleExpression(){return this.getTypedRuleContext(F0,0)}get ruleIndex(){return x.RULE_typeElement}accept(e){return e.visitTypeElement?e.visitTypeElement(this):e.visitChildren(this)}}class Qs extends n1{constructor(e,n,r){super(n,r),this.parser=e}ColonEquals(){return this.getToken(x.ColonEquals,0)}MultiplyAssign(){return this.getToken(x.MultiplyAssign,0)}DivideAssign(){return this.getToken(x.DivideAssign,0)}ModulusAssign(){return this.getToken(x.ModulusAssign,0)}PlusAssign(){return this.getToken(x.PlusAssign,0)}MinusAssign(){return this.getToken(x.MinusAssign,0)}get ruleIndex(){return x.RULE_assignmentOperator}accept(e){return e.visitAssignmentOperator?e.visitAssignmentOperator(this):e.visitChildren(this)}}class Js extends n1{constructor(e,n,r){super(n,r),this.parser=e}Map(){return this.getToken(x.Map,0)}LessThan(){return this.getToken(x.LessThan,0)}Comma(){return this.getToken(x.Comma,0)}typeName_list(){return this.getTypedRuleContexts(In)}typeName(e){return this.getTypedRuleContext(In,e)}MoreThan(){return this.getToken(x.MoreThan,0)}get ruleIndex(){return x.RULE_typeMap}accept(e){return e.visitTypeMap?e.visitTypeMap(this):e.visitChildren(this)}}class Fu extends n1{constructor(e,n,r){super(n,r),this.parser=e}typeName_list(){return this.getTypedRuleContexts(In)}typeName(e){return this.getTypedRuleContext(In,e)}typeArray(){return this.getTypedRuleContext(Zs,0)}typeMap(){return this.getTypedRuleContext(Js,0)}get ruleIndex(){return x.RULE_typeSeries}accept(e){return e.visitTypeSeries?e.visitTypeSeries(this):e.visitChildren(this)}}class Zs extends n1{constructor(e,n,r){super(n,r),this.parser=e}typeName_list(){return this.getTypedRuleContexts(In)}typeName(e){return this.getTypedRuleContext(In,e)}LessThan(){return this.getToken(x.LessThan,0)}MoreThan(){return this.getToken(x.MoreThan,0)}OpenBracket(){return this.getToken(x.OpenBracket,0)}CloseBracket(){return this.getToken(x.CloseBracket,0)}get ruleIndex(){return x.RULE_typeArray}accept(e){return e.visitTypeArray?e.visitTypeArray(this):e.visitChildren(this)}}class Co extends n1{constructor(e,n,r){super(n,r),this.parser=e}typeName(){return this.getTypedRuleContext(In,0)}typeArray(){return this.getTypedRuleContext(Zs,0)}typeMap(){return this.getTypedRuleContext(Js,0)}typeSeries(){return this.getTypedRuleContext(Fu,0)}get ruleIndex(){return x.RULE_typeGather}accept(e){return e.visitTypeGather?e.visitTypeGather(this):e.visitChildren(this)}}class Te extends n1{constructor(e,n,r){super(n,r),this.parser=e}Identifier(){return this.getToken(x.Identifier,0)}Map(){return this.getToken(x.Map,0)}Type(){return this.getToken(x.Type,0)}Enum(){return this.getToken(x.Enum,0)}Method(){return this.getToken(x.Method,0)}get ruleIndex(){return x.RULE_identifier}accept(e){return e.visitIdentifier?e.visitIdentifier(this):e.visitChildren(this)}}class In extends n1{constructor(e,n,r){super(n,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(Te)}identifier(e){return this.getTypedRuleContext(Te,e)}Point(){return this.getToken(x.Point,0)}get ruleIndex(){return x.RULE_typeName}accept(e){return e.visitTypeName?e.visitTypeName(this):e.visitChildren(this)}}class qa extends n1{constructor(e,n,r){super(n,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(Te)}identifier(e){return this.getTypedRuleContext(Te,e)}Point_list(){return this.getTokens(x.Point)}Point(e){return this.getToken(x.Point,e)}methodElement_list(){return this.getTypedRuleContexts(a2)}methodElement(e){return this.getTypedRuleContext(a2,e)}OpenParen(){return this.getToken(x.OpenParen,0)}singleExpression(){return this.getTypedRuleContext(F0,0)}CloseParen(){return this.getToken(x.CloseParen,0)}get ruleIndex(){return x.RULE_name}accept(e){return e.visitName?e.visitName(this):e.visitChildren(this)}}class Uu extends n1{constructor(e,n,r){super(n,r),this.parser=e}Enum(){return this.getToken(x.Enum,0)}identifier(){return this.getTypedRuleContext(Te,0)}NEWLINE(){return this.getToken(x.NEWLINE,0)}INDENT(){return this.getToken(x.INDENT,0)}DEDENT(){return this.getToken(x.DEDENT,0)}Export(){return this.getToken(x.Export,0)}enumElement_list(){return this.getTypedRuleContexts(ep)}enumElement(e){return this.getTypedRuleContext(ep,e)}get ruleIndex(){return x.RULE_enumStatement}accept(e){return e.visitEnumStatement?e.visitEnumStatement(this):e.visitChildren(this)}}class ep extends n1{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(Te,0)}NEWLINE(){return this.getToken(x.NEWLINE,0)}Assign(){return this.getToken(x.Assign,0)}StringLiteral(){return this.getToken(x.StringLiteral,0)}get ruleIndex(){return x.RULE_enumElement}accept(e){return e.visitEnumElement?e.visitEnumElement(this):e.visitChildren(this)}}class F3 extends l3{constructor(n){super(n);T(this,"tokens");T(this,"indents");T(this,"opened");this.tokens=[],this.indents=[],this.opened=0}reset(){this.tokens=[],this.indents=[],this.opened=0,super.reset()}emitToken(n){super.emitToken(n),this.tokens.push(n)}nextToken(){if(this._input.LA(1)===x.EOF&&this.indents.length){for(this.tokens=this.tokens.filter(function(r){return r.type!==x.EOF}),this.emitToken(this.commonToken(x.NEWLINE,`
11
- `));this.indents.length;)this.emitToken(this.createDedent()),this.indents.pop();this.emitToken(this.commonToken(x.EOF,"<EOF>"))}const n=super.nextToken();return this.tokens.length?this.tokens.shift():n}createDedent(){return this.commonToken(x.DEDENT,"")}getCharIndex(){return this._input.index}commonToken(n,r){const i=this.getCharIndex()-1,s=r.length?i-r.length+1:i;return new b3([this,this._input],n,0,s,i)}getIndentationCount(n){let r=0;for(let i=0;i<n.length;i++)n[i]===" "?r+=4-r%4:r++;return r}atStartOfInput(){return this.getCharIndex()===0}openBrace(){this.opened++}closeBrace(){this.opened--}onNewLine(){const n=this.text.replace(/[^\r\n]+/g,""),r=this.text.replace(/[\r\n]+/g,""),i=this._input.LA(1),s=this._input.LA(2),b=this.getIndentationCount(r);if(this.opened>0||s!=-1&&(i===13||i===10||i===47&&s===47||b%4))this.skip();else{this.emitToken(this.commonToken(x.NEWLINE,n));const z=this.indents.length?this.indents[this.indents.length-1]:0;if(b===z)this.skip();else if(b>z)this.indents.push(b),this.emitToken(this.commonToken(x.INDENT,r));else for(;this.indents.length&&this.indents[this.indents.length-1]>b;)this.emitToken(this.createDedent()),this.indents.pop()}}}const v0=class v0 extends F3{constructor(e){super(e),this._interp=new f3(this,v0._ATN,v0.DecisionsToDFA,new yu)}get grammarFileName(){return"tccScriptLexer.g4"}get literalNames(){return v0.literalNames}get symbolicNames(){return v0.symbolicNames}get ruleNames(){return v0.ruleNames}get serializedATN(){return v0._serializedATN}get channelNames(){return v0.channelNames}get modeNames(){return v0.modeNames}action(e,n,r){switch(n){case 1:this.OpenBracket_action(e,r);break;case 2:this.CloseBracket_action(e,r);break;case 3:this.OpenParen_action(e,r);break;case 4:this.CloseParen_action(e,r);break;case 58:this.NEWLINE_action(e,r);break}}OpenBracket_action(e,n){switch(n){case 0:this.openBrace();break}}CloseBracket_action(e,n){switch(n){case 1:this.closeBrace();break}}OpenParen_action(e,n){switch(n){case 2:this.openBrace();break}}CloseParen_action(e,n){switch(n){case 3:this.closeBrace();break}}NEWLINE_action(e,n){switch(n){case 4:this.onNewLine();break}}sempred(e,n,r){switch(n){case 58:return this.NEWLINE_sempred(e,r)}return!0}NEWLINE_sempred(e,n){switch(n){case 0:return this.atStartOfInput()}return!0}static get _ATN(){return v0.__ATN||(v0.__ATN=new mu().deserialize(v0._serializedATN)),v0.__ATN}};T(v0,"INDENT",1),T(v0,"DEDENT",2),T(v0,"Point",3),T(v0,"OpenBracket",4),T(v0,"CloseBracket",5),T(v0,"OpenParen",6),T(v0,"CloseParen",7),T(v0,"Comma",8),T(v0,"Assign",9),T(v0,"QuestionMark",10),T(v0,"Colon",11),T(v0,"Plus",12),T(v0,"Minus",13),T(v0,"Multiply",14),T(v0,"Divide",15),T(v0,"Modulus",16),T(v0,"Hashtag",17),T(v0,"LessThan",18),T(v0,"MoreThan",19),T(v0,"LessThanEquals",20),T(v0,"GreaterThanEquals",21),T(v0,"Equals_",22),T(v0,"NotEquals",23),T(v0,"MultiplyAssign",24),T(v0,"DivideAssign",25),T(v0,"ModulusAssign",26),T(v0,"PlusAssign",27),T(v0,"MinusAssign",28),T(v0,"ARROW",29),T(v0,"ColonEquals",30),T(v0,"BooleanLiteral",31),T(v0,"IntegerLiteral",32),T(v0,"DecimalLiteral",33),T(v0,"Break",34),T(v0,"And",35),T(v0,"Export",36),T(v0,"For",37),T(v0,"Var",38),T(v0,"Continue",39),T(v0,"Varip",40),T(v0,"Switch",41),T(v0,"While",42),T(v0,"If",43),T(v0,"In",44),T(v0,"Or",45),T(v0,"Not",46),T(v0,"Method",47),T(v0,"Else",48),T(v0,"To",49),T(v0,"By",50),T(v0,"Type",51),T(v0,"Import",52),T(v0,"As",53),T(v0,"Enum",54),T(v0,"Map",55),T(v0,"ColorLiteral",56),T(v0,"StringLiteral",57),T(v0,"Identifier",58),T(v0,"HIDDEN_",59),T(v0,"COMMENT_",60),T(v0,"NEWLINE",61),T(v0,"EOF",Wu.EOF),T(v0,"channelNames",["DEFAULT_TOKEN_CHANNEL","HIDDEN"]),T(v0,"literalNames",[null,null,null,"'.'","'['","']'","'('","')'","','","'='","'?'","':'","'+'","'-'","'*'","'/'","'%'","'#'","'<'","'>'","'<='","'>='","'=='","'!='","'*='","'/='","'%='","'+='","'-='","'=>'","':='",null,null,null,"'break'","'and'","'export'","'for'","'var'","'continue'","'varip'","'switch'","'while'","'if'","'in'","'or'","'not'","'method'","'else'","'to'","'by'","'type'","'import'","'as'","'enum'","'map'"]),T(v0,"symbolicNames",[null,"INDENT","DEDENT","Point","OpenBracket","CloseBracket","OpenParen","CloseParen","Comma","Assign","QuestionMark","Colon","Plus","Minus","Multiply","Divide","Modulus","Hashtag","LessThan","MoreThan","LessThanEquals","GreaterThanEquals","Equals_","NotEquals","MultiplyAssign","DivideAssign","ModulusAssign","PlusAssign","MinusAssign","ARROW","ColonEquals","BooleanLiteral","IntegerLiteral","DecimalLiteral","Break","And","Export","For","Var","Continue","Varip","Switch","While","If","In","Or","Not","Method","Else","To","By","Type","Import","As","Enum","Map","ColorLiteral","StringLiteral","Identifier","HIDDEN_","COMMENT_","NEWLINE"]),T(v0,"modeNames",["DEFAULT_MODE"]),T(v0,"ruleNames",["Point","OpenBracket","CloseBracket","OpenParen","CloseParen","Comma","Assign","QuestionMark","Colon","Plus","Minus","Multiply","Divide","Modulus","Hashtag","LessThan","MoreThan","LessThanEquals","GreaterThanEquals","Equals_","NotEquals","MultiplyAssign","DivideAssign","ModulusAssign","PlusAssign","MinusAssign","ARROW","ColonEquals","BooleanLiteral","IntegerLiteral","DecimalLiteral","Break","And","Export","For","Var","Continue","Varip","Switch","While","If","In","Or","Not","Method","Else","To","By","Type","Import","As","Enum","Map","ColorLiteral","StringLiteral","Identifier","HIDDEN_","COMMENT_","NEWLINE","SHORT_STRING","DIGIT","DIGITS","HEX_DIGIT","SPACES","COMMENT","EXP"]),T(v0,"_serializedATN",[4,0,61,447,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,1,0,1,0,1,1,1,1,1,1,1,2,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,19,1,19,1,19,1,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,22,1,23,1,23,1,23,1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,26,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,3,28,214,8,28,1,29,1,29,1,30,1,30,1,30,3,30,221,8,30,1,30,1,30,1,30,1,30,3,30,227,8,30,3,30,229,8,30,1,30,3,30,232,8,30,3,30,234,8,30,1,31,1,31,1,31,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,41,1,41,1,41,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,3,53,362,8,53,1,54,1,54,1,55,1,55,5,55,368,8,55,10,55,12,55,371,9,55,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1,58,1,58,1,58,3,58,384,8,58,1,58,1,58,3,58,388,8,58,1,58,3,58,391,8,58,3,58,393,8,58,1,58,1,58,1,59,1,59,1,59,1,59,5,59,401,8,59,10,59,12,59,404,9,59,1,59,1,59,1,59,1,59,1,59,5,59,411,8,59,10,59,12,59,414,9,59,1,59,3,59,417,8,59,1,60,1,60,1,61,4,61,422,8,61,11,61,12,61,423,1,62,1,62,1,63,4,63,429,8,63,11,63,12,63,430,1,64,1,64,1,64,1,64,5,64,437,8,64,10,64,12,64,440,9,64,1,65,1,65,3,65,444,8,65,1,65,1,65,0,0,66,1,3,3,4,5,5,7,6,9,7,11,8,13,9,15,10,17,11,19,12,21,13,23,14,25,15,27,16,29,17,31,18,33,19,35,20,37,21,39,22,41,23,43,24,45,25,47,26,49,27,51,28,53,29,55,30,57,31,59,32,61,33,63,34,65,35,67,36,69,37,71,38,73,39,75,40,77,41,79,42,81,43,83,44,85,45,87,46,89,47,91,48,93,49,95,50,97,51,99,52,101,53,103,54,105,55,107,56,109,57,111,58,113,59,115,60,117,61,119,0,121,0,123,0,125,0,127,0,129,0,131,0,1,0,10,3,0,65,90,95,95,97,122,4,0,48,57,65,90,95,95,97,122,2,0,39,39,92,92,2,0,34,34,92,92,1,0,48,57,3,0,48,57,65,70,97,102,3,0,9,9,32,32,160,160,2,0,10,10,12,13,2,0,69,69,101,101,2,0,43,43,45,45,460,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,1,133,1,0,0,0,3,135,1,0,0,0,5,138,1,0,0,0,7,141,1,0,0,0,9,144,1,0,0,0,11,147,1,0,0,0,13,149,1,0,0,0,15,151,1,0,0,0,17,153,1,0,0,0,19,155,1,0,0,0,21,157,1,0,0,0,23,159,1,0,0,0,25,161,1,0,0,0,27,163,1,0,0,0,29,165,1,0,0,0,31,167,1,0,0,0,33,169,1,0,0,0,35,171,1,0,0,0,37,174,1,0,0,0,39,177,1,0,0,0,41,180,1,0,0,0,43,183,1,0,0,0,45,186,1,0,0,0,47,189,1,0,0,0,49,192,1,0,0,0,51,195,1,0,0,0,53,198,1,0,0,0,55,201,1,0,0,0,57,213,1,0,0,0,59,215,1,0,0,0,61,233,1,0,0,0,63,235,1,0,0,0,65,241,1,0,0,0,67,245,1,0,0,0,69,252,1,0,0,0,71,256,1,0,0,0,73,260,1,0,0,0,75,269,1,0,0,0,77,275,1,0,0,0,79,282,1,0,0,0,81,288,1,0,0,0,83,291,1,0,0,0,85,294,1,0,0,0,87,297,1,0,0,0,89,301,1,0,0,0,91,308,1,0,0,0,93,313,1,0,0,0,95,316,1,0,0,0,97,319,1,0,0,0,99,324,1,0,0,0,101,331,1,0,0,0,103,334,1,0,0,0,105,339,1,0,0,0,107,361,1,0,0,0,109,363,1,0,0,0,111,365,1,0,0,0,113,372,1,0,0,0,115,376,1,0,0,0,117,392,1,0,0,0,119,416,1,0,0,0,121,418,1,0,0,0,123,421,1,0,0,0,125,425,1,0,0,0,127,428,1,0,0,0,129,432,1,0,0,0,131,441,1,0,0,0,133,134,5,46,0,0,134,2,1,0,0,0,135,136,5,91,0,0,136,137,6,1,0,0,137,4,1,0,0,0,138,139,5,93,0,0,139,140,6,2,1,0,140,6,1,0,0,0,141,142,5,40,0,0,142,143,6,3,2,0,143,8,1,0,0,0,144,145,5,41,0,0,145,146,6,4,3,0,146,10,1,0,0,0,147,148,5,44,0,0,148,12,1,0,0,0,149,150,5,61,0,0,150,14,1,0,0,0,151,152,5,63,0,0,152,16,1,0,0,0,153,154,5,58,0,0,154,18,1,0,0,0,155,156,5,43,0,0,156,20,1,0,0,0,157,158,5,45,0,0,158,22,1,0,0,0,159,160,5,42,0,0,160,24,1,0,0,0,161,162,5,47,0,0,162,26,1,0,0,0,163,164,5,37,0,0,164,28,1,0,0,0,165,166,5,35,0,0,166,30,1,0,0,0,167,168,5,60,0,0,168,32,1,0,0,0,169,170,5,62,0,0,170,34,1,0,0,0,171,172,5,60,0,0,172,173,5,61,0,0,173,36,1,0,0,0,174,175,5,62,0,0,175,176,5,61,0,0,176,38,1,0,0,0,177,178,5,61,0,0,178,179,5,61,0,0,179,40,1,0,0,0,180,181,5,33,0,0,181,182,5,61,0,0,182,42,1,0,0,0,183,184,5,42,0,0,184,185,5,61,0,0,185,44,1,0,0,0,186,187,5,47,0,0,187,188,5,61,0,0,188,46,1,0,0,0,189,190,5,37,0,0,190,191,5,61,0,0,191,48,1,0,0,0,192,193,5,43,0,0,193,194,5,61,0,0,194,50,1,0,0,0,195,196,5,45,0,0,196,197,5,61,0,0,197,52,1,0,0,0,198,199,5,61,0,0,199,200,5,62,0,0,200,54,1,0,0,0,201,202,5,58,0,0,202,203,5,61,0,0,203,56,1,0,0,0,204,205,5,116,0,0,205,206,5,114,0,0,206,207,5,117,0,0,207,214,5,101,0,0,208,209,5,102,0,0,209,210,5,97,0,0,210,211,5,108,0,0,211,212,5,115,0,0,212,214,5,101,0,0,213,204,1,0,0,0,213,208,1,0,0,0,214,58,1,0,0,0,215,216,3,123,61,0,216,60,1,0,0,0,217,218,5,46,0,0,218,220,3,123,61,0,219,221,3,131,65,0,220,219,1,0,0,0,220,221,1,0,0,0,221,234,1,0,0,0,222,231,3,123,61,0,223,228,5,46,0,0,224,226,3,123,61,0,225,227,3,131,65,0,226,225,1,0,0,0,226,227,1,0,0,0,227,229,1,0,0,0,228,224,1,0,0,0,228,229,1,0,0,0,229,232,1,0,0,0,230,232,3,131,65,0,231,223,1,0,0,0,231,230,1,0,0,0,232,234,1,0,0,0,233,217,1,0,0,0,233,222,1,0,0,0,234,62,1,0,0,0,235,236,5,98,0,0,236,237,5,114,0,0,237,238,5,101,0,0,238,239,5,97,0,0,239,240,5,107,0,0,240,64,1,0,0,0,241,242,5,97,0,0,242,243,5,110,0,0,243,244,5,100,0,0,244,66,1,0,0,0,245,246,5,101,0,0,246,247,5,120,0,0,247,248,5,112,0,0,248,249,5,111,0,0,249,250,5,114,0,0,250,251,5,116,0,0,251,68,1,0,0,0,252,253,5,102,0,0,253,254,5,111,0,0,254,255,5,114,0,0,255,70,1,0,0,0,256,257,5,118,0,0,257,258,5,97,0,0,258,259,5,114,0,0,259,72,1,0,0,0,260,261,5,99,0,0,261,262,5,111,0,0,262,263,5,110,0,0,263,264,5,116,0,0,264,265,5,105,0,0,265,266,5,110,0,0,266,267,5,117,0,0,267,268,5,101,0,0,268,74,1,0,0,0,269,270,5,118,0,0,270,271,5,97,0,0,271,272,5,114,0,0,272,273,5,105,0,0,273,274,5,112,0,0,274,76,1,0,0,0,275,276,5,115,0,0,276,277,5,119,0,0,277,278,5,105,0,0,278,279,5,116,0,0,279,280,5,99,0,0,280,281,5,104,0,0,281,78,1,0,0,0,282,283,5,119,0,0,283,284,5,104,0,0,284,285,5,105,0,0,285,286,5,108,0,0,286,287,5,101,0,0,287,80,1,0,0,0,288,289,5,105,0,0,289,290,5,102,0,0,290,82,1,0,0,0,291,292,5,105,0,0,292,293,5,110,0,0,293,84,1,0,0,0,294,295,5,111,0,0,295,296,5,114,0,0,296,86,1,0,0,0,297,298,5,110,0,0,298,299,5,111,0,0,299,300,5,116,0,0,300,88,1,0,0,0,301,302,5,109,0,0,302,303,5,101,0,0,303,304,5,116,0,0,304,305,5,104,0,0,305,306,5,111,0,0,306,307,5,100,0,0,307,90,1,0,0,0,308,309,5,101,0,0,309,310,5,108,0,0,310,311,5,115,0,0,311,312,5,101,0,0,312,92,1,0,0,0,313,314,5,116,0,0,314,315,5,111,0,0,315,94,1,0,0,0,316,317,5,98,0,0,317,318,5,121,0,0,318,96,1,0,0,0,319,320,5,116,0,0,320,321,5,121,0,0,321,322,5,112,0,0,322,323,5,101,0,0,323,98,1,0,0,0,324,325,5,105,0,0,325,326,5,109,0,0,326,327,5,112,0,0,327,328,5,111,0,0,328,329,5,114,0,0,329,330,5,116,0,0,330,100,1,0,0,0,331,332,5,97,0,0,332,333,5,115,0,0,333,102,1,0,0,0,334,335,5,101,0,0,335,336,5,110,0,0,336,337,5,117,0,0,337,338,5,109,0,0,338,104,1,0,0,0,339,340,5,109,0,0,340,341,5,97,0,0,341,342,5,112,0,0,342,106,1,0,0,0,343,344,5,35,0,0,344,345,3,125,62,0,345,346,3,125,62,0,346,347,3,125,62,0,347,348,3,125,62,0,348,349,3,125,62,0,349,350,3,125,62,0,350,362,1,0,0,0,351,352,5,35,0,0,352,353,3,125,62,0,353,354,3,125,62,0,354,355,3,125,62,0,355,356,3,125,62,0,356,357,3,125,62,0,357,358,3,125,62,0,358,359,3,125,62,0,359,360,3,125,62,0,360,362,1,0,0,0,361,343,1,0,0,0,361,351,1,0,0,0,362,108,1,0,0,0,363,364,3,119,59,0,364,110,1,0,0,0,365,369,7,0,0,0,366,368,7,1,0,0,367,366,1,0,0,0,368,371,1,0,0,0,369,367,1,0,0,0,369,370,1,0,0,0,370,112,1,0,0,0,371,369,1,0,0,0,372,373,3,127,63,0,373,374,1,0,0,0,374,375,6,56,4,0,375,114,1,0,0,0,376,377,3,129,64,0,377,378,1,0,0,0,378,379,6,57,5,0,379,116,1,0,0,0,380,381,4,58,0,0,381,393,3,127,63,0,382,384,5,13,0,0,383,382,1,0,0,0,383,384,1,0,0,0,384,385,1,0,0,0,385,388,5,10,0,0,386,388,2,12,13,0,387,383,1,0,0,0,387,386,1,0,0,0,388,390,1,0,0,0,389,391,3,127,63,0,390,389,1,0,0,0,390,391,1,0,0,0,391,393,1,0,0,0,392,380,1,0,0,0,392,387,1,0,0,0,393,394,1,0,0,0,394,395,6,58,6,0,395,118,1,0,0,0,396,402,5,39,0,0,397,401,8,2,0,0,398,399,5,92,0,0,399,401,9,0,0,0,400,397,1,0,0,0,400,398,1,0,0,0,401,404,1,0,0,0,402,400,1,0,0,0,402,403,1,0,0,0,403,405,1,0,0,0,404,402,1,0,0,0,405,417,5,39,0,0,406,412,5,34,0,0,407,411,8,3,0,0,408,409,5,92,0,0,409,411,9,0,0,0,410,407,1,0,0,0,410,408,1,0,0,0,411,414,1,0,0,0,412,410,1,0,0,0,412,413,1,0,0,0,413,415,1,0,0,0,414,412,1,0,0,0,415,417,5,34,0,0,416,396,1,0,0,0,416,406,1,0,0,0,417,120,1,0,0,0,418,419,7,4,0,0,419,122,1,0,0,0,420,422,3,121,60,0,421,420,1,0,0,0,422,423,1,0,0,0,423,421,1,0,0,0,423,424,1,0,0,0,424,124,1,0,0,0,425,426,7,5,0,0,426,126,1,0,0,0,427,429,7,6,0,0,428,427,1,0,0,0,429,430,1,0,0,0,430,428,1,0,0,0,430,431,1,0,0,0,431,128,1,0,0,0,432,433,5,47,0,0,433,434,5,47,0,0,434,438,1,0,0,0,435,437,8,7,0,0,436,435,1,0,0,0,437,440,1,0,0,0,438,436,1,0,0,0,438,439,1,0,0,0,439,130,1,0,0,0,440,438,1,0,0,0,441,443,7,8,0,0,442,444,7,9,0,0,443,442,1,0,0,0,443,444,1,0,0,0,444,445,1,0,0,0,445,446,3,123,61,0,446,132,1,0,0,0,22,0,213,220,226,228,231,233,361,369,383,387,390,392,400,402,410,412,416,423,430,438,443,7,1,1,0,1,2,1,1,3,2,1,4,3,0,1,0,0,2,0,1,58,4]),T(v0,"__ATN"),T(v0,"DecisionsToDFA",v0._ATN.decisionToState.map((e,n)=>new _u(e,n)));let tp=v0;var P=(t=>(t.BOOL="bool",t.INT="int",t.FLOAT="float",t.ARRAY="array",t.BOX="box",t.CHART_POINT="chart.point",t.COLOR="color",t.CONST="const",t.LABEL="label",t.LINE="line",t.LINEFILL="linefill",t.MAP="map",t.MATRIX="matrix",t.POLYLINE="polyline",t.SERIES="series",t.SIMPLE="simple",t.STRING="string",t.TABLE="table",t.UNDETERMINED="undetermined type",t.INPUT="input",t.NA="na",t.VOID="void",t.ENUM="enum",t))(P||{}),p0=(t=>(t.FlowStmt="FlowStmt",t.DeclareAssign="DeclareAssign",t.VarBlockStmt="VarBlockStmt",t.VarSingle="VarSingle",t.VarMultiple="VarMultiple",t.ParenthesizedExpression="ParenthesizedExpression",t.AdditiveExpression="AdditiveExpression",t.RelationalExpression="RelationalExpression",t.EqualityExpression="EqualityExpression",t.TernaryExpression="TernaryExpression",t.UnaryExpression="UnaryExpression",t.NotExpression="NotExpression",t.MemberIndexExpression="MemberIndexExpression",t.MethodExpression="MethodExpression",t.LogicalAndExpression="LogicalAndExpression",t.LogicalOrExpression="LogicalOrExpression",t.MultiplicativeExpression="MultiplicativeExpression",t.Brackethesized="Brackethesized",t.IfStatement="IfStatement",t.ForToStatement="ForToStatement",t.ForInStatement="ForInStatement",t.SwitchStatement="SwitchStatement",t.CaseClause="CaseClause",t.DefaultCaluse="DefaultCaluse",t.WhileStatement="WhileStatement",t.ImportElement="ImportElement",t.Literal="Literal",t.ArrowFunction="ArrowFunction",t.ArrowMethod="ArrowMethod",t.TypeStatement="TypeStatement",t.Name="Name",t.AgainAssign="AgainAssign",t.EnumStatement="EnumStatement",t))(p0||{}),te=(t=>(t.description="description",t.field="field",t.function="function",t.param="param",t.returns="returns",t.type="type",t.variable="variable",t.enum="enum",t))(te||{}),sr=(t=>(t.library="library",t.indicator="indicator",t.strategy="strategy",t))(sr||{});const O0={onlyInLoop:"'$text' is only allowed inside loops",invalidType:"Invalid argument 'expr$index' in 'operator SQBR' call",typeUseError:"Cannot specify a type form '$text' without also specifying the type.",notTypeKeyword:"'$text' is not a valid type keyword in variable declaration",undeclared:"Undeclared identifier '$name'",repeatVar:"'$name' is already defined",typeRepeatErr:"$keyword '$name' is already defined.",typeMismatch:"Cannot call '$operator' with argument '$index'. An argument of '$typeE' type was used but a '$typeR' is expected.",assignTypeMismatch:"Cannot assign a value of the `$typeE` type to the '$name' variable. The variable is declared with the `$typeR` type.",voidNotVar:"Void expression cannot be assigned to a variable",declareTypeErr:"Declared type '$type' is not compatible with assigned type '$valueType'",mapKeyValErr:"Cannot put <$typeA, $typeB> pairs into a map containing `$typeC` keys and `$typeD` values. The maps passed into the `$name()` function must have the same key types and value types.",inputSourceErr:"Invalid value for the '$name' parameter of the '$funcName' function. Possible values: [open, high, low, close, hl2, hlc3, ohlc4, hlcc4, volume].",buildInUseErr:"Cannot use '$name' as the default value of a type's field. The default value cannot be a function, variable or calculation.",argsLenErr:"Too many arguments passed into the `$name()` function call. Passed $lenA arguments but expected $lenB.",requiredParamErr:"No value assigned to the `$argName` parameter in $name()",argsSyntaxErr:"Syntax error after the argument for `$argName`. Arguments without their parameter name cannot be used after arguments with parameter names.",requestArgsErr:"Type $type cannot be used in $name '$argName' argument",mapKeyErr:"Incorrect `key` type `$type` in the variable. The `key` type must be one of the following: int, float, string, bool, color.",templateErr:"Incorrect number of arguments for the template: $countA expected, $countB passed.",templateNoSupportErr:"The '$name()' function does not support templates",ifOrSwitchTypeErr:"Return type of one of the '$keyword' blocks is not compatible with return type of other block(s) ($types)",argsNameErr:"The '$name' function does not have an argument with the name '$argName'",noFiledErr:"Object has no field $name",methodNotExistErr:"Could not find method or method reference '$methodName' for '$name'",tupleVarErr:"Syntax error: The quantities of tuple elements on each side of the assignment operator do not match. The right side has $indexA but the left side has $indexB.",tupleLeftVarErr:"Invalid assignment. Cannot assign a tuple to a variable '$name'.",tupleRightVarErr:"Cannot assign a variable to a tuple. The right side must be a function call or structure ('if', 'switch', 'for', 'while') returning a tuple with the same number of elements.",tempateTypeErr:"Syntax error: Only templates for arrays and matrices consist of a single type identifier enclosed in angle brackets.",qualifierErr:"'$name' is not a valid type qualifier. Possible values: 'const', 'simple', 'series'",notFindFuncErr:"Could not find function or function reference '$name'",naVarErr:"Value with NA type cannot be assigned to a variable that was defined without type keyword",notHistoryErr:"Variable '$name' doesn't have history values",defaultValueErr:"The default value cannot be a function, variable or calculation.",defaultValueTypeErr:"Default value of type $typeE can not be assigned to an argument of type $typeR",typeFieldErr:"In a type declaration, all fields without a default value must be explicitly typified.",unaryErr:"Syntax error at input '$sign'",funcArgAssignErr:"Function arguments cannot be mutable ('$name')",declaredErr:"A variable declared with the '$prefix' keyword cannot accept values of the '$type' form. Assign a '$prefix' value to this variable or remove the '$prefix' keyword from its declaration.",globalFuncErr:"Cannot use '$name' in local scope",onlyStatementErr:"Scripts must contain one declaration statement: `indicator()`, `strategy()` or `library()`, Your script has $count.",modifyGlobalVarErr:"Cannot modify global variable '$name' in function",inputDefvalErr:"Arguments of input function must be of constant type, or 'source' builtin variables.",objectIsNaErr:"Cannot access the '$name' $type of an na object. The object is 'na'.",buidinAssignErr:"Cannot assign a new value to the built-in variable '$name'.",buidinVarErr:"Cannot shadow the built-in variable `$name` because it has already been used as a built-in.",useNaErr:"Cannot use an `na` value of an unspecified type in the `$name` function.",libraryTitleErr:"Invalid argument 'title' in 'library' call. It cannot contain spaces, special characters or begin with a digit.",exportFuncArgErr:"All exported functions args should be typified",indiRunErr:"An indicator must contain at least one of the following: any `plot*()` function, `barcolor()`, `bgcolor()`, `hline()`, `alertcondition()`, or any drawing (line, label, box, table, polyline).",libraryExportErr:"A library must contain at least one exported function, method, or type.",strategyRunErr:"A strategy must contain at least one of the following: any `strategy.*()` function that creates orders, any `plot*()` function, `barcolor()`, `bgcolor()`, `hline()`, or any drawing (line, label, box, table, polyline).",exportUseErr:"Only libraries can contain exported $type.",funcRepeatErr:"The '$name' function has overloads with the same parameters. The type of parameters must be different in overloaded versions of functions.",importMultipleErr:"Cannot import a library more than once",importNotExitErr:"The user '$username' does not have a published library titled '$libraryName'",importNameRepeatErr:"More than one import uses the same alias: $name. Previous usage at line: $line",exportFuncHasInputErr:"The exported function '$func' depends on the '$name' input variable, which is not allowed.",libraryTitleIsKeywordErr:"Invalid argument 'title' in 'library' call. Token: '$name' can't be used as library title.",exportFuncUseGlobalVarErr:"Cannot use global variables in exported functions. Function: $func",loopRuntimeErr:"Loop takes too long to execute (> 500 ms)",paramsErr:"Invalid value '$value' for '$param' parameter of the '$func' function. Possible values: $targetVal",displayErr:"Invalid argument 'display' in '$func' call. Possible values: $values",exportFuncUseReqErr:"Cannot use `request.*()` call in exported function `$name()`",requestExprErr:"Type series $type cannot be used in $name 'expression' argument",argDefaultErr:"The default value assigned to a parameter must be either a literal value (e.g., `5`) or a built-in variable (e.g., `close`)",overloadFuncErr:"Cannot use global variables or any values qualified as 'input' in the local scopes of overloaded functions or methods. Remove any global variables or inputs from the scopes of all '$name()' overloads.",againAssignErr:"Unable to determine the object for the field assignment. Try putting the object into a separate variable before assigning values to its fields.",requestUserInLoopErr:"Cannot use `request.*()` call within loops or conditional structures.",enumVarNameErr:"Invalid enum name '$name': `bool`, `int`, `float`, `string`, and `color` are not allowed.",enumVarNameBuiltinErr:"Invalid object name: $name. Namespaces of built-ins cannot be used.",typeNameErr:"Invalid user-defined type name '$name': `bool`, `int`, `float`, `string`, and `color` are not allowed.",enumUseErr:"Cannot use the '$name' as a value. Use one of the enum's fields instead.",conditionalErr:"'$name' conditional expression must be of a bool type!",fortoErr:'The value of the "for" loop must be a number.',indicatorUseStrategyFuncErr:"You cannot use strategy $type ($name) in indicator script.",arrEmptyErr:"Array must not be empty",arrLengthDiffErr:"Arrays have different lengths",arrTypeErr:"Array type error, the 'array.$name' method can only use $type type array.",inputOptErr:"input's defval should be in options, but '$defval' is not in [$args]",mathRandomErr:"min must be less than max",matrixRehapeErr:"New matrix must be of same area as original matrix",strategyExitErr:"strategy.exit must have at least one of the following parameters: 'profit', 'limit', 'loss', 'stop' or one of the following pairs: 'trail_offset' and 'trail_price' / 'trail_points'. To close the position at market price, use 'strategy.close'",arrLenErr:"Invalid array length",mergeCellErr:"error: start_column > end_column or start_row > end_row",minOrMaxErr:"Input's `defval` value must be between `minval` and `maxval`",requestsNumErr:"Exceeded the maximum number of requests 40",undeterminedTypeMethodErr:"Method calls must specify the type, please add the type to '$name'",requestUseFuncErr:"built-in '$func' cannot be used with any parameter of the `$name()` function.",requestLowerTfPeriodErr:"The chart's timeframe must be greater or equal to the `$period` timeframe used with `request.security_lower_tf()`.",optionsRepeatErr:"options have to be unique, but there is at least one duplicate in options. Duplicated values: $option",scriptLongTimeErr:"Script execution takes too long, the limit is 40 seconds"},_t={repeatVar:"Shadowing variable '$name' which exists in parent scope. Did you want to use the ':=' operator instead of '=' ?",typeMismatch:"The `$index` parameter of the `$operator` function accepts a '$type' argument. To avoid potential unexpected results, pass a '$type' value or expression to this parameter.",moreSameArg:"More than one '$arg' arguments are supplied. Only the first one will be used.",localScopeGetHistory:"The variable '$name' is declared in local scope, which may not be executed at every update. So, obtaining its historical values may lead to unexpected results",localScopeWarning:"The function '$name' should be called on each calculation for consistency. It is recommended to extract the call from this scope",strategyCalcTickWarn:"Strategies without `calc_on_every_tick = true` only calculate on confirmed chart bars. In this case, `barstate.islast` may not initially return `true` on realtime bars, as the last bar is unconfirmed until it closes. If you need to check whether a bar is the latest before it closes, enable `calc_on_every_tick` in the `strategy()` function.",conditionWarning:"The `condition` parameter of the `$name` accepts a 'bool' argument. To avoid potential unexpected results, pass a 'bool' value or expression to this parameter.",lineWidthWarning:"Passing a value below 1 to `linewidth` will be replaced with 1 during compilation.",boolVarNumWarning:"The `$name` variable casts a numeric value to the 'bool' type. To avoid potential unexpected results, assign a 'bool' value to this variable."},pr=[P.SERIES,P.SIMPLE,P.INPUT,P.CONST],ma=[P.INT,P.FLOAT,P.BOOL,P.COLOR,P.STRING],_a=["indicator","strategy","library"],np=["plot","plotbar","plotchar","plotarrow","plotshape","plotcandle","hline","alertcondition","barcolor","bgcolor","fill"],U3=[...np,"indicator","library","strategy","strategy.risk.max_drawdown","strategy.risk.allow_entry_in","strategy.risk.max_cons_loss_days","max_intraday_filled_orders","strategy.risk.max_intraday_loss","strategy.risk.max_position_size"],V3=[...np,"table.new","label.new","line.new","box.new","polyline.new","linefill.new"],j3=["strategy.entry","strategy.order","strategy.exit","strategy.close","strategy.cancel","strategy.close_all","strategy.cancel_all"],Vu=["strategy","input","table","color","line","linefill","label","box"],rp=["close","open","high","low","hl2","hlc3","hlcc4","ohlc4","volume"],H3=/^\/\/\s*@(description|field|function|param|returns|type|enum|variable)/,We=["case","catch","default","delete","do","finally","function","instanceof","new","return","this","throw","try","typeof","void","with","const"],ju=["session","ta","syminfo","timeframe","strategy","barstate","label","line","linefill","box","table","chart","earnings","polyline","math","adjustment","hline","position","size","plot","format","dayofweek","shape","location","scale","currency","barmerge","xloc","yloc","extend","display","text","font","order","alert","dividends","splits","color","input","str","request","ticker","array","matrix","runtime","log","map"];var xe=(t=>(t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error",t))(xe||{}),Hu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $3(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var $u={exports:{}};//! moment.js
11
+ `));this.indents.length;)this.emitToken(this.createDedent()),this.indents.pop();this.emitToken(this.commonToken(x.EOF,"<EOF>"))}const n=super.nextToken();return this.tokens.length?this.tokens.shift():n}createDedent(){return this.commonToken(x.DEDENT,"")}getCharIndex(){return this._input.index}commonToken(n,r){const i=this.getCharIndex()-1,s=r.length?i-r.length+1:i;return new b3([this,this._input],n,0,s,i)}getIndentationCount(n){let r=0;for(let i=0;i<n.length;i++)n[i]===" "?r+=4-r%4:r++;return r}atStartOfInput(){return this.getCharIndex()===0}openBrace(){this.opened++}closeBrace(){this.opened--}onNewLine(){const n=this.text.replace(/[^\r\n]+/g,""),r=this.text.replace(/[\r\n]+/g,""),i=this._input.LA(1),s=this._input.LA(2),b=this.getIndentationCount(r);if(this.opened>0||s!=-1&&(i===13||i===10||i===47&&s===47||b%4))this.skip();else{this.emitToken(this.commonToken(x.NEWLINE,n));const z=this.indents.length?this.indents[this.indents.length-1]:0;if(b===z)this.skip();else if(b>z)this.indents.push(b),this.emitToken(this.commonToken(x.INDENT,r));else for(;this.indents.length&&this.indents[this.indents.length-1]>b;)this.emitToken(this.createDedent()),this.indents.pop()}}}const v0=class v0 extends F3{constructor(e){super(e),this._interp=new f3(this,v0._ATN,v0.DecisionsToDFA,new yu)}get grammarFileName(){return"tccScriptLexer.g4"}get literalNames(){return v0.literalNames}get symbolicNames(){return v0.symbolicNames}get ruleNames(){return v0.ruleNames}get serializedATN(){return v0._serializedATN}get channelNames(){return v0.channelNames}get modeNames(){return v0.modeNames}action(e,n,r){switch(n){case 1:this.OpenBracket_action(e,r);break;case 2:this.CloseBracket_action(e,r);break;case 3:this.OpenParen_action(e,r);break;case 4:this.CloseParen_action(e,r);break;case 58:this.NEWLINE_action(e,r);break}}OpenBracket_action(e,n){switch(n){case 0:this.openBrace();break}}CloseBracket_action(e,n){switch(n){case 1:this.closeBrace();break}}OpenParen_action(e,n){switch(n){case 2:this.openBrace();break}}CloseParen_action(e,n){switch(n){case 3:this.closeBrace();break}}NEWLINE_action(e,n){switch(n){case 4:this.onNewLine();break}}sempred(e,n,r){switch(n){case 58:return this.NEWLINE_sempred(e,r)}return!0}NEWLINE_sempred(e,n){switch(n){case 0:return this.atStartOfInput()}return!0}static get _ATN(){return v0.__ATN||(v0.__ATN=new mu().deserialize(v0._serializedATN)),v0.__ATN}};T(v0,"INDENT",1),T(v0,"DEDENT",2),T(v0,"Point",3),T(v0,"OpenBracket",4),T(v0,"CloseBracket",5),T(v0,"OpenParen",6),T(v0,"CloseParen",7),T(v0,"Comma",8),T(v0,"Assign",9),T(v0,"QuestionMark",10),T(v0,"Colon",11),T(v0,"Plus",12),T(v0,"Minus",13),T(v0,"Multiply",14),T(v0,"Divide",15),T(v0,"Modulus",16),T(v0,"Hashtag",17),T(v0,"LessThan",18),T(v0,"MoreThan",19),T(v0,"LessThanEquals",20),T(v0,"GreaterThanEquals",21),T(v0,"Equals_",22),T(v0,"NotEquals",23),T(v0,"MultiplyAssign",24),T(v0,"DivideAssign",25),T(v0,"ModulusAssign",26),T(v0,"PlusAssign",27),T(v0,"MinusAssign",28),T(v0,"ARROW",29),T(v0,"ColonEquals",30),T(v0,"BooleanLiteral",31),T(v0,"IntegerLiteral",32),T(v0,"DecimalLiteral",33),T(v0,"Break",34),T(v0,"And",35),T(v0,"Export",36),T(v0,"For",37),T(v0,"Var",38),T(v0,"Continue",39),T(v0,"Varip",40),T(v0,"Switch",41),T(v0,"While",42),T(v0,"If",43),T(v0,"In",44),T(v0,"Or",45),T(v0,"Not",46),T(v0,"Method",47),T(v0,"Else",48),T(v0,"To",49),T(v0,"By",50),T(v0,"Type",51),T(v0,"Import",52),T(v0,"As",53),T(v0,"Enum",54),T(v0,"Map",55),T(v0,"ColorLiteral",56),T(v0,"StringLiteral",57),T(v0,"Identifier",58),T(v0,"HIDDEN_",59),T(v0,"COMMENT_",60),T(v0,"NEWLINE",61),T(v0,"EOF",Wu.EOF),T(v0,"channelNames",["DEFAULT_TOKEN_CHANNEL","HIDDEN"]),T(v0,"literalNames",[null,null,null,"'.'","'['","']'","'('","')'","','","'='","'?'","':'","'+'","'-'","'*'","'/'","'%'","'#'","'<'","'>'","'<='","'>='","'=='","'!='","'*='","'/='","'%='","'+='","'-='","'=>'","':='",null,null,null,"'break'","'and'","'export'","'for'","'var'","'continue'","'varip'","'switch'","'while'","'if'","'in'","'or'","'not'","'method'","'else'","'to'","'by'","'type'","'import'","'as'","'enum'","'map'"]),T(v0,"symbolicNames",[null,"INDENT","DEDENT","Point","OpenBracket","CloseBracket","OpenParen","CloseParen","Comma","Assign","QuestionMark","Colon","Plus","Minus","Multiply","Divide","Modulus","Hashtag","LessThan","MoreThan","LessThanEquals","GreaterThanEquals","Equals_","NotEquals","MultiplyAssign","DivideAssign","ModulusAssign","PlusAssign","MinusAssign","ARROW","ColonEquals","BooleanLiteral","IntegerLiteral","DecimalLiteral","Break","And","Export","For","Var","Continue","Varip","Switch","While","If","In","Or","Not","Method","Else","To","By","Type","Import","As","Enum","Map","ColorLiteral","StringLiteral","Identifier","HIDDEN_","COMMENT_","NEWLINE"]),T(v0,"modeNames",["DEFAULT_MODE"]),T(v0,"ruleNames",["Point","OpenBracket","CloseBracket","OpenParen","CloseParen","Comma","Assign","QuestionMark","Colon","Plus","Minus","Multiply","Divide","Modulus","Hashtag","LessThan","MoreThan","LessThanEquals","GreaterThanEquals","Equals_","NotEquals","MultiplyAssign","DivideAssign","ModulusAssign","PlusAssign","MinusAssign","ARROW","ColonEquals","BooleanLiteral","IntegerLiteral","DecimalLiteral","Break","And","Export","For","Var","Continue","Varip","Switch","While","If","In","Or","Not","Method","Else","To","By","Type","Import","As","Enum","Map","ColorLiteral","StringLiteral","Identifier","HIDDEN_","COMMENT_","NEWLINE","SHORT_STRING","DIGIT","DIGITS","HEX_DIGIT","SPACES","COMMENT","EXP"]),T(v0,"_serializedATN",[4,0,61,447,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,1,0,1,0,1,1,1,1,1,1,1,2,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,19,1,19,1,19,1,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,22,1,23,1,23,1,23,1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,26,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,3,28,214,8,28,1,29,1,29,1,30,1,30,1,30,3,30,221,8,30,1,30,1,30,1,30,1,30,3,30,227,8,30,3,30,229,8,30,1,30,3,30,232,8,30,3,30,234,8,30,1,31,1,31,1,31,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,41,1,41,1,41,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,3,53,362,8,53,1,54,1,54,1,55,1,55,5,55,368,8,55,10,55,12,55,371,9,55,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1,58,1,58,1,58,3,58,384,8,58,1,58,1,58,3,58,388,8,58,1,58,3,58,391,8,58,3,58,393,8,58,1,58,1,58,1,59,1,59,1,59,1,59,5,59,401,8,59,10,59,12,59,404,9,59,1,59,1,59,1,59,1,59,1,59,5,59,411,8,59,10,59,12,59,414,9,59,1,59,3,59,417,8,59,1,60,1,60,1,61,4,61,422,8,61,11,61,12,61,423,1,62,1,62,1,63,4,63,429,8,63,11,63,12,63,430,1,64,1,64,1,64,1,64,5,64,437,8,64,10,64,12,64,440,9,64,1,65,1,65,3,65,444,8,65,1,65,1,65,0,0,66,1,3,3,4,5,5,7,6,9,7,11,8,13,9,15,10,17,11,19,12,21,13,23,14,25,15,27,16,29,17,31,18,33,19,35,20,37,21,39,22,41,23,43,24,45,25,47,26,49,27,51,28,53,29,55,30,57,31,59,32,61,33,63,34,65,35,67,36,69,37,71,38,73,39,75,40,77,41,79,42,81,43,83,44,85,45,87,46,89,47,91,48,93,49,95,50,97,51,99,52,101,53,103,54,105,55,107,56,109,57,111,58,113,59,115,60,117,61,119,0,121,0,123,0,125,0,127,0,129,0,131,0,1,0,10,3,0,65,90,95,95,97,122,4,0,48,57,65,90,95,95,97,122,2,0,39,39,92,92,2,0,34,34,92,92,1,0,48,57,3,0,48,57,65,70,97,102,3,0,9,9,32,32,160,160,2,0,10,10,12,13,2,0,69,69,101,101,2,0,43,43,45,45,460,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,1,133,1,0,0,0,3,135,1,0,0,0,5,138,1,0,0,0,7,141,1,0,0,0,9,144,1,0,0,0,11,147,1,0,0,0,13,149,1,0,0,0,15,151,1,0,0,0,17,153,1,0,0,0,19,155,1,0,0,0,21,157,1,0,0,0,23,159,1,0,0,0,25,161,1,0,0,0,27,163,1,0,0,0,29,165,1,0,0,0,31,167,1,0,0,0,33,169,1,0,0,0,35,171,1,0,0,0,37,174,1,0,0,0,39,177,1,0,0,0,41,180,1,0,0,0,43,183,1,0,0,0,45,186,1,0,0,0,47,189,1,0,0,0,49,192,1,0,0,0,51,195,1,0,0,0,53,198,1,0,0,0,55,201,1,0,0,0,57,213,1,0,0,0,59,215,1,0,0,0,61,233,1,0,0,0,63,235,1,0,0,0,65,241,1,0,0,0,67,245,1,0,0,0,69,252,1,0,0,0,71,256,1,0,0,0,73,260,1,0,0,0,75,269,1,0,0,0,77,275,1,0,0,0,79,282,1,0,0,0,81,288,1,0,0,0,83,291,1,0,0,0,85,294,1,0,0,0,87,297,1,0,0,0,89,301,1,0,0,0,91,308,1,0,0,0,93,313,1,0,0,0,95,316,1,0,0,0,97,319,1,0,0,0,99,324,1,0,0,0,101,331,1,0,0,0,103,334,1,0,0,0,105,339,1,0,0,0,107,361,1,0,0,0,109,363,1,0,0,0,111,365,1,0,0,0,113,372,1,0,0,0,115,376,1,0,0,0,117,392,1,0,0,0,119,416,1,0,0,0,121,418,1,0,0,0,123,421,1,0,0,0,125,425,1,0,0,0,127,428,1,0,0,0,129,432,1,0,0,0,131,441,1,0,0,0,133,134,5,46,0,0,134,2,1,0,0,0,135,136,5,91,0,0,136,137,6,1,0,0,137,4,1,0,0,0,138,139,5,93,0,0,139,140,6,2,1,0,140,6,1,0,0,0,141,142,5,40,0,0,142,143,6,3,2,0,143,8,1,0,0,0,144,145,5,41,0,0,145,146,6,4,3,0,146,10,1,0,0,0,147,148,5,44,0,0,148,12,1,0,0,0,149,150,5,61,0,0,150,14,1,0,0,0,151,152,5,63,0,0,152,16,1,0,0,0,153,154,5,58,0,0,154,18,1,0,0,0,155,156,5,43,0,0,156,20,1,0,0,0,157,158,5,45,0,0,158,22,1,0,0,0,159,160,5,42,0,0,160,24,1,0,0,0,161,162,5,47,0,0,162,26,1,0,0,0,163,164,5,37,0,0,164,28,1,0,0,0,165,166,5,35,0,0,166,30,1,0,0,0,167,168,5,60,0,0,168,32,1,0,0,0,169,170,5,62,0,0,170,34,1,0,0,0,171,172,5,60,0,0,172,173,5,61,0,0,173,36,1,0,0,0,174,175,5,62,0,0,175,176,5,61,0,0,176,38,1,0,0,0,177,178,5,61,0,0,178,179,5,61,0,0,179,40,1,0,0,0,180,181,5,33,0,0,181,182,5,61,0,0,182,42,1,0,0,0,183,184,5,42,0,0,184,185,5,61,0,0,185,44,1,0,0,0,186,187,5,47,0,0,187,188,5,61,0,0,188,46,1,0,0,0,189,190,5,37,0,0,190,191,5,61,0,0,191,48,1,0,0,0,192,193,5,43,0,0,193,194,5,61,0,0,194,50,1,0,0,0,195,196,5,45,0,0,196,197,5,61,0,0,197,52,1,0,0,0,198,199,5,61,0,0,199,200,5,62,0,0,200,54,1,0,0,0,201,202,5,58,0,0,202,203,5,61,0,0,203,56,1,0,0,0,204,205,5,116,0,0,205,206,5,114,0,0,206,207,5,117,0,0,207,214,5,101,0,0,208,209,5,102,0,0,209,210,5,97,0,0,210,211,5,108,0,0,211,212,5,115,0,0,212,214,5,101,0,0,213,204,1,0,0,0,213,208,1,0,0,0,214,58,1,0,0,0,215,216,3,123,61,0,216,60,1,0,0,0,217,218,5,46,0,0,218,220,3,123,61,0,219,221,3,131,65,0,220,219,1,0,0,0,220,221,1,0,0,0,221,234,1,0,0,0,222,231,3,123,61,0,223,228,5,46,0,0,224,226,3,123,61,0,225,227,3,131,65,0,226,225,1,0,0,0,226,227,1,0,0,0,227,229,1,0,0,0,228,224,1,0,0,0,228,229,1,0,0,0,229,232,1,0,0,0,230,232,3,131,65,0,231,223,1,0,0,0,231,230,1,0,0,0,232,234,1,0,0,0,233,217,1,0,0,0,233,222,1,0,0,0,234,62,1,0,0,0,235,236,5,98,0,0,236,237,5,114,0,0,237,238,5,101,0,0,238,239,5,97,0,0,239,240,5,107,0,0,240,64,1,0,0,0,241,242,5,97,0,0,242,243,5,110,0,0,243,244,5,100,0,0,244,66,1,0,0,0,245,246,5,101,0,0,246,247,5,120,0,0,247,248,5,112,0,0,248,249,5,111,0,0,249,250,5,114,0,0,250,251,5,116,0,0,251,68,1,0,0,0,252,253,5,102,0,0,253,254,5,111,0,0,254,255,5,114,0,0,255,70,1,0,0,0,256,257,5,118,0,0,257,258,5,97,0,0,258,259,5,114,0,0,259,72,1,0,0,0,260,261,5,99,0,0,261,262,5,111,0,0,262,263,5,110,0,0,263,264,5,116,0,0,264,265,5,105,0,0,265,266,5,110,0,0,266,267,5,117,0,0,267,268,5,101,0,0,268,74,1,0,0,0,269,270,5,118,0,0,270,271,5,97,0,0,271,272,5,114,0,0,272,273,5,105,0,0,273,274,5,112,0,0,274,76,1,0,0,0,275,276,5,115,0,0,276,277,5,119,0,0,277,278,5,105,0,0,278,279,5,116,0,0,279,280,5,99,0,0,280,281,5,104,0,0,281,78,1,0,0,0,282,283,5,119,0,0,283,284,5,104,0,0,284,285,5,105,0,0,285,286,5,108,0,0,286,287,5,101,0,0,287,80,1,0,0,0,288,289,5,105,0,0,289,290,5,102,0,0,290,82,1,0,0,0,291,292,5,105,0,0,292,293,5,110,0,0,293,84,1,0,0,0,294,295,5,111,0,0,295,296,5,114,0,0,296,86,1,0,0,0,297,298,5,110,0,0,298,299,5,111,0,0,299,300,5,116,0,0,300,88,1,0,0,0,301,302,5,109,0,0,302,303,5,101,0,0,303,304,5,116,0,0,304,305,5,104,0,0,305,306,5,111,0,0,306,307,5,100,0,0,307,90,1,0,0,0,308,309,5,101,0,0,309,310,5,108,0,0,310,311,5,115,0,0,311,312,5,101,0,0,312,92,1,0,0,0,313,314,5,116,0,0,314,315,5,111,0,0,315,94,1,0,0,0,316,317,5,98,0,0,317,318,5,121,0,0,318,96,1,0,0,0,319,320,5,116,0,0,320,321,5,121,0,0,321,322,5,112,0,0,322,323,5,101,0,0,323,98,1,0,0,0,324,325,5,105,0,0,325,326,5,109,0,0,326,327,5,112,0,0,327,328,5,111,0,0,328,329,5,114,0,0,329,330,5,116,0,0,330,100,1,0,0,0,331,332,5,97,0,0,332,333,5,115,0,0,333,102,1,0,0,0,334,335,5,101,0,0,335,336,5,110,0,0,336,337,5,117,0,0,337,338,5,109,0,0,338,104,1,0,0,0,339,340,5,109,0,0,340,341,5,97,0,0,341,342,5,112,0,0,342,106,1,0,0,0,343,344,5,35,0,0,344,345,3,125,62,0,345,346,3,125,62,0,346,347,3,125,62,0,347,348,3,125,62,0,348,349,3,125,62,0,349,350,3,125,62,0,350,362,1,0,0,0,351,352,5,35,0,0,352,353,3,125,62,0,353,354,3,125,62,0,354,355,3,125,62,0,355,356,3,125,62,0,356,357,3,125,62,0,357,358,3,125,62,0,358,359,3,125,62,0,359,360,3,125,62,0,360,362,1,0,0,0,361,343,1,0,0,0,361,351,1,0,0,0,362,108,1,0,0,0,363,364,3,119,59,0,364,110,1,0,0,0,365,369,7,0,0,0,366,368,7,1,0,0,367,366,1,0,0,0,368,371,1,0,0,0,369,367,1,0,0,0,369,370,1,0,0,0,370,112,1,0,0,0,371,369,1,0,0,0,372,373,3,127,63,0,373,374,1,0,0,0,374,375,6,56,4,0,375,114,1,0,0,0,376,377,3,129,64,0,377,378,1,0,0,0,378,379,6,57,5,0,379,116,1,0,0,0,380,381,4,58,0,0,381,393,3,127,63,0,382,384,5,13,0,0,383,382,1,0,0,0,383,384,1,0,0,0,384,385,1,0,0,0,385,388,5,10,0,0,386,388,2,12,13,0,387,383,1,0,0,0,387,386,1,0,0,0,388,390,1,0,0,0,389,391,3,127,63,0,390,389,1,0,0,0,390,391,1,0,0,0,391,393,1,0,0,0,392,380,1,0,0,0,392,387,1,0,0,0,393,394,1,0,0,0,394,395,6,58,6,0,395,118,1,0,0,0,396,402,5,39,0,0,397,401,8,2,0,0,398,399,5,92,0,0,399,401,9,0,0,0,400,397,1,0,0,0,400,398,1,0,0,0,401,404,1,0,0,0,402,400,1,0,0,0,402,403,1,0,0,0,403,405,1,0,0,0,404,402,1,0,0,0,405,417,5,39,0,0,406,412,5,34,0,0,407,411,8,3,0,0,408,409,5,92,0,0,409,411,9,0,0,0,410,407,1,0,0,0,410,408,1,0,0,0,411,414,1,0,0,0,412,410,1,0,0,0,412,413,1,0,0,0,413,415,1,0,0,0,414,412,1,0,0,0,415,417,5,34,0,0,416,396,1,0,0,0,416,406,1,0,0,0,417,120,1,0,0,0,418,419,7,4,0,0,419,122,1,0,0,0,420,422,3,121,60,0,421,420,1,0,0,0,422,423,1,0,0,0,423,421,1,0,0,0,423,424,1,0,0,0,424,124,1,0,0,0,425,426,7,5,0,0,426,126,1,0,0,0,427,429,7,6,0,0,428,427,1,0,0,0,429,430,1,0,0,0,430,428,1,0,0,0,430,431,1,0,0,0,431,128,1,0,0,0,432,433,5,47,0,0,433,434,5,47,0,0,434,438,1,0,0,0,435,437,8,7,0,0,436,435,1,0,0,0,437,440,1,0,0,0,438,436,1,0,0,0,438,439,1,0,0,0,439,130,1,0,0,0,440,438,1,0,0,0,441,443,7,8,0,0,442,444,7,9,0,0,443,442,1,0,0,0,443,444,1,0,0,0,444,445,1,0,0,0,445,446,3,123,61,0,446,132,1,0,0,0,22,0,213,220,226,228,231,233,361,369,383,387,390,392,400,402,410,412,416,423,430,438,443,7,1,1,0,1,2,1,1,3,2,1,4,3,0,1,0,0,2,0,1,58,4]),T(v0,"__ATN"),T(v0,"DecisionsToDFA",v0._ATN.decisionToState.map((e,n)=>new _u(e,n)));let tp=v0;var P=(t=>(t.BOOL="bool",t.INT="int",t.FLOAT="float",t.ARRAY="array",t.BOX="box",t.CHART_POINT="chart.point",t.COLOR="color",t.CONST="const",t.LABEL="label",t.LINE="line",t.LINEFILL="linefill",t.MAP="map",t.MATRIX="matrix",t.POLYLINE="polyline",t.SERIES="series",t.SIMPLE="simple",t.STRING="string",t.TABLE="table",t.UNDETERMINED="undetermined type",t.INPUT="input",t.NA="na",t.VOID="void",t.ENUM="enum",t))(P||{}),p0=(t=>(t.FlowStmt="FlowStmt",t.DeclareAssign="DeclareAssign",t.VarBlockStmt="VarBlockStmt",t.VarSingle="VarSingle",t.VarMultiple="VarMultiple",t.ParenthesizedExpression="ParenthesizedExpression",t.AdditiveExpression="AdditiveExpression",t.RelationalExpression="RelationalExpression",t.EqualityExpression="EqualityExpression",t.TernaryExpression="TernaryExpression",t.UnaryExpression="UnaryExpression",t.NotExpression="NotExpression",t.MemberIndexExpression="MemberIndexExpression",t.MethodExpression="MethodExpression",t.LogicalAndExpression="LogicalAndExpression",t.LogicalOrExpression="LogicalOrExpression",t.MultiplicativeExpression="MultiplicativeExpression",t.Brackethesized="Brackethesized",t.IfStatement="IfStatement",t.ForToStatement="ForToStatement",t.ForInStatement="ForInStatement",t.SwitchStatement="SwitchStatement",t.CaseClause="CaseClause",t.DefaultCaluse="DefaultCaluse",t.WhileStatement="WhileStatement",t.ImportElement="ImportElement",t.Literal="Literal",t.ArrowFunction="ArrowFunction",t.ArrowMethod="ArrowMethod",t.TypeStatement="TypeStatement",t.Name="Name",t.AgainAssign="AgainAssign",t.EnumStatement="EnumStatement",t))(p0||{}),te=(t=>(t.description="description",t.field="field",t.function="function",t.param="param",t.returns="returns",t.type="type",t.variable="variable",t.enum="enum",t))(te||{}),sr=(t=>(t.library="library",t.indicator="indicator",t.strategy="strategy",t))(sr||{});const O0={onlyInLoop:"'$text' is only allowed inside loops",invalidType:"Invalid argument 'expr$index' in 'operator SQBR' call",typeUseError:"Cannot specify a type form '$text' without also specifying the type.",notTypeKeyword:"'$text' is not a valid type keyword in variable declaration",undeclared:"Undeclared identifier '$name'",repeatVar:"'$name' is already defined",typeRepeatErr:"$keyword '$name' is already defined.",typeMismatch:"Cannot call '$operator' with argument '$index'. An argument of '$typeE' type was used but a '$typeR' is expected.",assignTypeMismatch:"Cannot assign a value of the `$typeE` type to the '$name' variable. The variable is declared with the `$typeR` type.",voidNotVar:"Void expression cannot be assigned to a variable",declareTypeErr:"Declared type '$type' is not compatible with assigned type '$valueType'",mapKeyValErr:"Cannot put <$typeA, $typeB> pairs into a map containing `$typeC` keys and `$typeD` values. The maps passed into the `$name()` function must have the same key types and value types.",inputSourceErr:"Invalid value for the '$name' parameter of the '$funcName' function. Possible values: [open, high, low, close, hl2, hlc3, ohlc4, hlcc4, volume].",buildInUseErr:"Cannot use '$name' as the default value of a type's field. The default value cannot be a function, variable or calculation.",argsLenErr:"Too many arguments passed into the `$name()` function call. Passed $lenA arguments but expected $lenB.",requiredParamErr:"No value assigned to the `$argName` parameter in $name()",argsSyntaxErr:"Syntax error after the argument for `$argName`. Arguments without their parameter name cannot be used after arguments with parameter names.",requestArgsErr:"Type $type cannot be used in $name '$argName' argument",mapKeyErr:"Incorrect `key` type `$type` in the variable. The `key` type must be one of the following: int, float, string, bool, color.",templateErr:"Incorrect number of arguments for the template: $countA expected, $countB passed.",templateNoSupportErr:"The '$name()' function does not support templates",ifOrSwitchTypeErr:"Return type of one of the '$keyword' blocks is not compatible with return type of other block(s) ($types)",argsNameErr:"The '$name' function does not have an argument with the name '$argName'",noFiledErr:"Object has no field $name",methodNotExistErr:"Could not find method or method reference '$methodName' for '$name'",tupleVarErr:"Syntax error: The quantities of tuple elements on each side of the assignment operator do not match. The right side has $indexA but the left side has $indexB.",tupleLeftVarErr:"Invalid assignment. Cannot assign a tuple to a variable '$name'.",tupleRightVarErr:"Cannot assign a variable to a tuple. The right side must be a function call or structure ('if', 'switch', 'for', 'while') returning a tuple with the same number of elements.",tempateTypeErr:"Syntax error: Only templates for arrays and matrices consist of a single type identifier enclosed in angle brackets.",qualifierErr:"'$name' is not a valid type qualifier. Possible values: 'const', 'simple', 'series'",notFindFuncErr:"Could not find function or function reference '$name'",naVarErr:"Value with NA type cannot be assigned to a variable that was defined without type keyword",notHistoryErr:"Variable '$name' doesn't have history values",defaultValueErr:"The default value cannot be a function, variable or calculation.",defaultValueTypeErr:"Default value of type $typeE can not be assigned to an argument of type $typeR",typeFieldErr:"In a type declaration, all fields without a default value must be explicitly typified.",unaryErr:"Syntax error at input '$sign'",funcArgAssignErr:"Function arguments cannot be mutable ('$name')",declaredErr:"A variable declared with the '$prefix' keyword cannot accept values of the '$type' form. Assign a '$prefix' value to this variable or remove the '$prefix' keyword from its declaration.",globalFuncErr:"Cannot use '$name' in local scope",onlyStatementErr:"Scripts must contain one declaration statement: `indicator()`, `strategy()` or `library()`, Your script has $count.",modifyGlobalVarErr:"Cannot modify global variable '$name' in function",inputDefvalErr:"Arguments of input function must be of constant type, or 'source' builtin variables.",objectIsNaErr:"Cannot access the '$name' $type of an na object. The object is 'na'.",buidinAssignErr:"Cannot assign a new value to the built-in variable '$name'.",buidinVarErr:"Cannot shadow the built-in variable `$name` because it has already been used as a built-in.",useNaErr:"Cannot use an `na` value of an unspecified type in the `$name` function.",libraryTitleErr:"Invalid argument 'title' in 'library' call. It cannot contain spaces, special characters or begin with a digit.",exportFuncArgErr:"All exported functions args should be typified",indiRunErr:"An indicator must contain at least one of the following: any `plot*()` function, `barcolor()`, `bgcolor()`, `hline()`, `alertcondition()`, or any drawing (line, label, box, table, polyline).",libraryExportErr:"A library must contain at least one exported function, method, or type.",strategyRunErr:"A strategy must contain at least one of the following: any `strategy.*()` function that creates orders, any `plot*()` function, `barcolor()`, `bgcolor()`, `hline()`, or any drawing (line, label, box, table, polyline).",exportUseErr:"Only libraries can contain exported $type.",funcRepeatErr:"The '$name' function has overloads with the same parameters. The type of parameters must be different in overloaded versions of functions.",importMultipleErr:"Cannot import a library more than once",importNotExitErr:"The user '$username' does not have a published library titled '$libraryName'",importNameRepeatErr:"More than one import uses the same alias: $name. Previous usage at line: $line",exportFuncHasInputErr:"The exported function '$func' depends on the '$name' input variable, which is not allowed.",libraryTitleIsKeywordErr:"Invalid argument 'title' in 'library' call. Token: '$name' can't be used as library title.",exportFuncUseGlobalVarErr:"Cannot use global variables in exported functions. Function: $func",loopRuntimeErr:"Loop takes too long to execute (> 500 ms)",paramsErr:"Invalid value '$value' for '$param' parameter of the '$func' function. Possible values: $targetVal",displayErr:"Invalid argument 'display' in '$func' call. Possible values: $values",exportFuncUseReqErr:"Cannot use `request.*()` call in exported function `$name()`",requestExprErr:"Type series $type cannot be used in $name 'expression' argument",argDefaultErr:"The default value assigned to a parameter must be either a literal value (e.g., `5`) or a built-in variable (e.g., `close`)",overloadFuncErr:"Cannot use global variables or any values qualified as 'input' in the local scopes of overloaded functions or methods. Remove any global variables or inputs from the scopes of all '$name()' overloads.",againAssignErr:"Unable to determine the object for the field assignment. Try putting the object into a separate variable before assigning values to its fields.",requestUserInLoopErr:"Cannot use `request.*()` call within loops or conditional structures.",enumVarNameErr:"Invalid enum name '$name': `bool`, `int`, `float`, `string`, and `color` are not allowed.",enumVarNameBuiltinErr:"Invalid object name: $name. Namespaces of built-ins cannot be used.",typeNameErr:"Invalid user-defined type name '$name': `bool`, `int`, `float`, `string`, and `color` are not allowed.",enumUseErr:"Cannot use the '$name' as a value. Use one of the enum's fields instead.",conditionalErr:"'$name' conditional expression must be of a bool type!",fortoErr:'The value of the "for" loop must be a number.',indicatorUseStrategyFuncErr:"You cannot use strategy $type ($name) in indicator script.",arrEmptyErr:"Array must not be empty",arrLengthDiffErr:"Arrays have different lengths",arrTypeErr:"Array type error, the 'array.$name' method can only use $type type array.",inputOptErr:"input's defval should be in options, but '$defval' is not in [$args]",mathRandomErr:"min must be less than max",matrixRehapeErr:"New matrix must be of same area as original matrix",strategyExitErr:"strategy.exit must have at least one of the following parameters: 'profit', 'limit', 'loss', 'stop' or one of the following pairs: 'trail_offset' and 'trail_price' / 'trail_points'. To close the position at market price, use 'strategy.close'",arrLenErr:"Invalid array length",mergeCellErr:"error: start_column > end_column or start_row > end_row",minOrMaxErr:"Input's `defval` value must be between `minval` and `maxval`",requestsNumErr:"Exceeded the maximum number of requests 40",undeterminedTypeMethodErr:"Method calls must specify the type, please add the type to '$name'",requestUseFuncErr:"built-in '$func' cannot be used with any parameter of the `$name()` function.",requestLowerTfPeriodErr:"The chart's timeframe must be greater or equal to the `$period` timeframe used with `request.security_lower_tf()`.",optionsRepeatErr:"options have to be unique, but there is at least one duplicate in options. Duplicated values: $option",scriptLongTimeErr:"Script execution takes too long, the limit is 40 seconds",plotFillForceOverlayErr:"Cannot call `fill()` with two plots that may not show in the same pane. Both plots must have the same `force_overlay` value."},_t={repeatVar:"Shadowing variable '$name' which exists in parent scope. Did you want to use the ':=' operator instead of '=' ?",typeMismatch:"The `$index` parameter of the `$operator` function accepts a '$type' argument. To avoid potential unexpected results, pass a '$type' value or expression to this parameter.",moreSameArg:"More than one '$arg' arguments are supplied. Only the first one will be used.",localScopeGetHistory:"The variable '$name' is declared in local scope, which may not be executed at every update. So, obtaining its historical values may lead to unexpected results",localScopeWarning:"The function '$name' should be called on each calculation for consistency. It is recommended to extract the call from this scope",strategyCalcTickWarn:"Strategies without `calc_on_every_tick = true` only calculate on confirmed chart bars. In this case, `barstate.islast` may not initially return `true` on realtime bars, as the last bar is unconfirmed until it closes. If you need to check whether a bar is the latest before it closes, enable `calc_on_every_tick` in the `strategy()` function.",conditionWarning:"The `condition` parameter of the `$name` accepts a 'bool' argument. To avoid potential unexpected results, pass a 'bool' value or expression to this parameter.",lineWidthWarning:"Passing a value below 1 to `linewidth` will be replaced with 1 during compilation.",boolVarNumWarning:"The `$name` variable casts a numeric value to the 'bool' type. To avoid potential unexpected results, assign a 'bool' value to this variable."},pr=[P.SERIES,P.SIMPLE,P.INPUT,P.CONST],ma=[P.INT,P.FLOAT,P.BOOL,P.COLOR,P.STRING],_a=["indicator","strategy","library"],np=["plot","plotbar","plotchar","plotarrow","plotshape","plotcandle","hline","alertcondition","barcolor","bgcolor","fill"],U3=[...np,"indicator","library","strategy","strategy.risk.max_drawdown","strategy.risk.allow_entry_in","strategy.risk.max_cons_loss_days","max_intraday_filled_orders","strategy.risk.max_intraday_loss","strategy.risk.max_position_size"],V3=[...np,"table.new","label.new","line.new","box.new","polyline.new","linefill.new"],j3=["strategy.entry","strategy.order","strategy.exit","strategy.close","strategy.cancel","strategy.close_all","strategy.cancel_all"],Vu=["strategy","input","table","color","line","linefill","label","box"],rp=["close","open","high","low","hl2","hlc3","hlcc4","ohlc4","volume"],H3=/^\/\/\s*@(description|field|function|param|returns|type|enum|variable)/,We=["case","catch","default","delete","do","finally","function","instanceof","new","return","this","throw","try","typeof","void","with","const"],ju=["session","ta","syminfo","timeframe","strategy","barstate","label","line","linefill","box","table","chart","earnings","polyline","math","adjustment","hline","position","size","plot","format","dayofweek","shape","location","scale","currency","barmerge","xloc","yloc","extend","display","text","font","order","alert","dividends","splits","color","input","str","request","ticker","array","matrix","runtime","log","map"];var xe=(t=>(t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error",t))(xe||{}),Hu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $3(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var $u={exports:{}};//! moment.js
12
12
  //! version : 2.30.1
13
13
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
14
14
  //! license : MIT